/* المنارة 24 - الهوية البصرية (على نمط PanneFacile بألوان علم ألمانيا) */
:root {
  --a24-black: #161616;
  --a24-red: #DD0000;
  --a24-red-text: #B00020;
  --a24-gold: #FFCE00;
  --a24-gold-light: #FFF6D6;
  --a24-gold-border: #F1DE9C;
  --a24-bg: #F6F5F1;
  --a24-border: #E4E2DA;
  --a24-muted: #5B6478;
  --a24-flag: linear-gradient(to bottom, #000 0 33.33%, #DD0000 33.33% 66.66%, #FFCE00 66.66% 100%);
  --a24-flag-h: linear-gradient(to left, #000 0 33.33%, #DD0000 33.33% 66.66%, #FFCE00 66.66% 100%);
}

/* أساسيات */
body {
  background: var(--a24-bg);
  color: var(--a24-black);
  font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.85;
}
h1, h2, h3, h4, .main-title, .entry-title, .widget-title, .page-title {
  font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  color: var(--a24-black);
}
h1, .entry-title { font-size: 38px; font-weight: 800; line-height: 1.4; }
h2 { font-size: 28px; font-weight: 800; line-height: 1.45; margin-top: 1.6em; }
h3 { font-size: 21px; font-weight: 800; line-height: 1.5; }
a { color: var(--a24-red-text); }
a:hover, a:focus { color: #7A0016; }

/* الرأس */
.site-header { background: #fff; border-bottom: 1px solid var(--a24-border); }
.inside-header { padding-top: 14px; padding-bottom: 14px; }
.main-title { font-size: 26px; font-weight: 800; line-height: 1.2; margin: 0; }
.main-title a { color: var(--a24-black); display: inline-flex; align-items: center; }
.main-title a::before {
  content: ""; width: 38px; height: 38px; border-radius: 9px; flex: none; margin-left: 10px;
  background: var(--a24-flag);
}
.main-title .a24-accent { color: var(--a24-red); }
.site-description { display: none; }
.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a { color: var(--a24-black); font-weight: 500; font-size: 15px; }
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a { color: var(--a24-red-text); background: transparent; }
.main-navigation .main-nav ul ul { background: #fff; border: 1px solid var(--a24-border); }
.main-navigation .menu-toggle { color: var(--a24-black); background: transparent; }
.menu-bar-item.a24-cta a {
  background: var(--a24-black); color: #fff !important; border-radius: 8px;
  padding: 0 16px; line-height: 40px; font-size: 14px; font-weight: 600; margin-right: 10px; white-space: nowrap;
}
.menu-bar-item.a24-cta a:hover { background: var(--a24-red); }
@media (max-width: 1080px) { .menu-bar-item.a24-cta { display: none; } }

/* المقالات والصفحات */
.separate-containers .inside-article,
.one-container .container { background: #fff; border: 1px solid var(--a24-border); border-radius: 14px; }
.single .site-main, .page:not(.a24-home) .site-main, .archive .site-main, .search .site-main { max-width: 860px; margin-left: auto; margin-right: auto; }
.entry-meta, .entry-meta a { color: var(--a24-muted); font-size: 14px; }
.post-image img, .featured-image img { border-radius: 12px; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 15px; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { border: 1px solid var(--a24-border); padding: 10px 14px; }
.entry-content .wp-block-table thead th { background: var(--a24-black); color: #fff; text-align: right; }
.entry-content .wp-block-table tbody tr:nth-child(even) { background: #FAF9F6; }
.entry-content blockquote { border-right: 4px solid var(--a24-gold); border-left: 0; background: var(--a24-gold-light); padding: 16px 20px; border-radius: 0; font-style: normal; }
.entry-content blockquote p { margin: 0; }
.archive .inside-article .entry-summary, .blog .entry-summary { color: var(--a24-muted); }
.page-header { background: transparent; border: 0; padding-left: 0; padding-right: 0; }
.page-header .page-title { font-size: 32px; }
.taxonomy-description { color: var(--a24-muted); }

/* الأزرار والبحث */
button, .button, input[type="submit"], .wp-block-search__button {
  background: var(--a24-red); color: #fff; border: 0; border-radius: 8px; font-weight: 600;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}
button:hover, .button:hover, input[type="submit"]:hover, .wp-block-search__button:hover { background: #A30000; color: #fff; }

/* الصفحة الرئيسية */
.a24-home .site-content { padding: 0; display: block; }
.a24-home .site-main { margin: 0; max-width: none; }
.a24-home .container.grid-container, .a24-home .site.grid-container { max-width: 100%; }
.a24-home .inside-article { padding: 0; background: transparent; border: 0; border-radius: 0; }
.a24-home .entry-content { margin-top: 0; }
.a24-home .entry-content > .alignfull { margin-left: 0; margin-right: 0; }
.a24-home .entry-content > .wp-block-group { margin-top: 0; margin-bottom: 0; }
.a24-home .wp-block-group__inner-container { padding: 0; }
.a24-home .entry-content h2:first-child { margin-top: 0; }
.a24-home .wp-block-group > :last-child,
.a24-home .wp-block-column > :last-child { margin-bottom: 0; }
.a24-home #recherche { position: relative; }
.a24-home #recherche::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--a24-flag-h); }
.a24-home h1.wp-block-heading { color: #fff; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.35; }
.a24-home .wp-block-search { max-width: 640px; margin: 28px auto 18px; }
.a24-home .wp-block-search__inside-wrapper { background: #fff; border-radius: 12px; padding: 6px; border: 0; }
.a24-home .wp-block-search__input { border: 0; font-size: 17px; padding: 12px 14px; color: var(--a24-black); font-family: inherit; }
.a24-home .wp-block-search__button { padding: 12px 26px; font-size: 16px; margin-right: 6px; margin-left: 0; }
.a24-home .a24-popular a { display: inline-block; color: #fff; border: 1px solid #3A3A3A; border-radius: 999px; padding: 2px 12px; margin: 3px 2px; text-decoration: none; }
.a24-home .a24-popular a:hover { border-color: var(--a24-gold); color: var(--a24-gold); }
.a24-home .a24-card { background: #fff; transition: border-color .15s, transform .15s; }
.a24-home .a24-card:hover { border-color: var(--a24-red) !important; transform: translateY(-2px); }
.a24-home .a24-card a { color: var(--a24-black); text-decoration: none; }
.a24-home .a24-card::before {
  content: ""; display: block; width: 52px; height: 52px; border-radius: 12px; margin-bottom: 14px;
  background-color: var(--a24-gold-light); background-position: center; background-repeat: no-repeat; background-size: 28px;
}
.a24-ico-hijra::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3Cpath d='M8 17h8'/%3E%3C/svg%3E"); }
.a24-ico-amal::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='12' rx='2'/%3E%3Cpath d='M9 8V5h6v3M3 13h18'/%3E%3C/svg%3E"); }
.a24-ico-dirasa::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c3 2 9 2 12 0v-5'/%3E%3C/svg%3E"); }
.a24-ico-siyaha::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 16l20-8-8 12-2-5z'/%3E%3Cpath d='M12 15l-6 3'/%3E%3C/svg%3E"); }
.a24-ico-ilaj::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l2-4 4 8 2-4h6'/%3E%3C/svg%3E"); }
.a24-ico-hayat::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10M10 20v-6h4v6'/%3E%3C/svg%3E"); }
.a24-home .a24-terms h3 { font-size: 20px; }
.a24-home .a24-term-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.a24-home .a24-term { display: inline-block; direction: ltr; background: #fff; border: 1px solid var(--a24-border); border-radius: 999px; padding: 9px 18px; font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--a24-black); text-decoration: none; }
.a24-home a.a24-term:hover { border-color: var(--a24-red); color: var(--a24-red-text); }
.a24-home .a24-step-num { font-family: 'Cairo', sans-serif; font-size: 40px; font-weight: 800; color: var(--a24-red); margin-bottom: 4px; line-height: 1; }
.a24-home .wp-block-latest-posts.is-grid li { background: #fff; border: 1px solid var(--a24-border); border-radius: 14px; padding: 0 0 18px; overflow: hidden; }
.a24-home .wp-block-latest-posts__featured-image { margin: 0 0 14px; }
.a24-home .wp-block-latest-posts__featured-image img { width: 100%; height: auto; border-radius: 0; }
.a24-home .wp-block-latest-posts__post-title { display: block; padding: 0 18px; font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 19px; line-height: 1.45; color: var(--a24-black); text-decoration: none; }
.a24-home .wp-block-latest-posts__post-title:hover { color: var(--a24-red-text); }
.a24-home .wp-block-latest-posts__post-excerpt { padding: 0 18px; margin-top: 8px; margin-bottom: 0; color: var(--a24-muted); font-size: 15px; line-height: 1.7; }
.a24-home .a24-trust::before { content: ""; display: block; width: 54px; height: 54px; border-radius: 12px; background: var(--a24-flag); margin-bottom: 14px; }
.a24-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.a24-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; background: #fff; border: 1px solid var(--a24-border); color: var(--a24-black); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; text-decoration: none; }
.a24-pagination .page-numbers.current { background: var(--a24-black); color: #fff; border-color: var(--a24-black); }

/* التذييل */
.site-footer, .site-info { background: var(--a24-black); color: #CFCFCF; }
.site-footer { position: relative; }
.site-footer::before { content: ""; display: block; height: 5px; background: var(--a24-flag-h); }
.inside-site-info { display: block; padding: 44px 24px 18px; }
.site-info .footer-bar { display: none; }
.copyright-bar { width: 100%; text-align: right; }
.a24-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; max-width: 1100px; margin: 0 auto; }
.a24-footer-brand { display: flex; flex-direction: column; gap: 6px; max-width: 380px; }
.a24-footer-logo { font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 22px; color: #fff; }
.a24-accent-light { color: var(--a24-gold); }
.a24-footer-tagline { font-size: 14px; line-height: 1.7; }
.a24-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; }
.a24-footer-menu a, .site-info a { color: #CFCFCF; text-decoration: none; }
.a24-footer-menu a:hover { color: #fff; }
.a24-copy { max-width: 1100px; margin: 28px auto 0; padding-top: 16px; border-top: 1px solid #2E2E2E; font-size: 13px; }

@media (max-width: 768px) {
  body { font-size: 16px; }
  h1, .entry-title { font-size: 28px; }
  h2 { font-size: 23px; }
  .main-title { font-size: 22px; }
  .main-title a::before { width: 32px; height: 32px; }
  .a24-home .entry-content > .wp-block-group { padding: 36px 18px !important; }
  .a24-home .entry-content > #recherche { padding: 40px 18px 40px !important; }
  .a24-home #recherche h1.wp-block-heading { font-size: 28px; margin-bottom: 12px; }
  .a24-home #recherche p { font-size: 15px !important; }
  .a24-home #recherche p:first-child { font-size: 12px !important; margin-bottom: 10px; }
  .a24-home .wp-block-search { margin: 20px auto 14px; }
  .a24-home .wp-block-search__input { font-size: 15px; padding: 10px 12px; min-width: 0; }
  .a24-home .wp-block-search__button { padding: 10px 16px; font-size: 15px; }
  .a24-home .wp-block-columns:has(.a24-card) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 0; }
  .a24-home .a24-card { padding: 16px !important; margin: 0 !important; }
  .a24-home .a24-card::before { width: 40px; height: 40px; border-radius: 10px; background-size: 22px; margin-bottom: 10px; }
  .a24-home .a24-card p:first-child { font-size: 16px !important; margin-bottom: 4px !important; }
  .a24-home .a24-card p + p { font-size: 13px !important; line-height: 1.5 !important; }
  .a24-home .a24-terms { margin-top: 28px !important; }
  .a24-home .a24-term { padding: 8px 14px; font-size: 14px; }
  .a24-home .wp-block-latest-posts.is-grid li { margin-bottom: 16px; }
  .a24-home .wp-block-latest-posts__post-title { font-size: 18px; }
  .a24-home .wp-block-columns:has(.a24-step-num) { gap: 22px; }
  .a24-home .a24-step-num { font-size: 32px; }
  .a24-home .wp-block-group.has-background:not(.alignfull) { padding: 22px !important; }
  .inside-site-info { padding: 36px 18px 18px; }
}
