/*
Theme Name: شبكة أخبار الجالية الموريتانية في أنغولا
Theme URI: https://mauritania-angola-news.didim956.chatgpt.site
Author: شبكة أخبار الجالية الموريتانية في أنغولا
Description: قالب إخباري عربي متجاوب مخصص لشبكة أخبار الجالية الموريتانية في أنغولا.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: network-angola-news
*/

:root {
  --ink: #0b1e19;
  --green-950: #051d16;
  --green-900: #073d2c;
  --green-800: #075b3d;
  --green-700: #0a7550;
  --gold: #d9a628;
  --gold-soft: #f3d57a;
  --paper: #f6f5f0;
  --muted: #6d756f;
  --line: #dfe3dd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Tahoma, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.topline { background: var(--green-950); color: #cdd9d4; font-size: 12px; }
.topline-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topline p { margin: 0; }
.top-links { display: flex; align-items: center; gap: 8px; }
.live-dot { width: 7px; height: 7px; background: #ff4b47; border-radius: 50%; box-shadow: 0 0 0 5px #ff4b4720; }
.site-header { background: #fff; position: relative; z-index: 20; }
.brand-row { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo-frame { width: 72px; height: 84px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #fff; }
.brand-logo { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-copy { display: grid; gap: 4px; }
.brand-copy strong { font-size: clamp(20px, 2.3vw, 29px); line-height: 1; color: var(--green-950); }
.brand-copy small { color: var(--green-700); font-size: 14px; font-weight: 700; }
.header-partners { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-right: auto; }
.partners-label { display: grid; gap: 3px; margin-left: 2px; text-align: right; }
.partners-label small { color: #8b928e; font-size: 9px; }
.partners-label strong { color: var(--green-950); font-size: 11px; white-space: nowrap; }
.sponsor-logo-card { height: 68px; display: grid; place-items: center; overflow: hidden; padding: 7px 12px; border: 1px solid #e6e9e3; border-radius: 9px; background: #fff; }
.sponsor-logo-card img { width: 100%; height: 100%; display: block; object-fit: contain; }
.bimbank-logo-card { width: 190px; }
.atiaf-logo-card { width: 104px; }
.menu-button { display: none; width: 44px; height: 44px; border: 0; background: var(--green-900); border-radius: 10px; padding: 11px; cursor: pointer; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: #fff; }
.main-nav { background: var(--green-900); color: #edf5f1; }
.nav-inner { min-height: 52px; display: flex; align-items: center; gap: 28px; }
.nav-inner > a, .nav-inner .menu-item > a { font-size: 13px; font-weight: 800; }
.nav-inner ul { display: flex; align-items: center; gap: 28px; padding: 0; margin: 0; list-style: none; }
.search-button { margin-right: auto; border: 0; background: transparent; color: #fff; font-size: 25px; cursor: pointer; }
.site-search { display: none; background: #fff; border-bottom: 1px solid var(--line); }
.site-search.open { display: block; }
.search-inner { min-height: 72px; display: flex; align-items: center; gap: 10px; }
.search-inner form { width: 100%; display: flex; gap: 10px; }
.search-inner input { flex: 1; min-width: 0; padding: 12px 15px; border: 1px solid var(--line); border-radius: 9px; }
.search-inner button { border: 0; border-radius: 9px; padding: 10px 17px; background: var(--green-900); color: #fff; cursor: pointer; }
.breaking { background: #fff; border-bottom: 1px solid var(--line); }
.breaking-inner { min-height: 48px; display: flex; align-items: center; gap: 18px; overflow: hidden; }
.breaking strong { align-self: stretch; display: flex; align-items: center; padding-inline: 20px; background: #b51f2b; color: #fff; position: relative; margin-right: -20px; }
.breaking strong::after { content: ""; position: absolute; left: -12px; border-block: 24px solid transparent; border-right: 12px solid #b51f2b; }
.breaking p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 700; }
.breaking-time { margin-right: auto; color: #9aa19d; font-size: 12px; }
.hero { padding-block: 30px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .75fr); gap: 18px; }
.lead-story, .side-card { position: relative; overflow: hidden; color: #fff; background: var(--green-950); }
.lead-story { min-height: 585px; border-radius: 22px; box-shadow: 0 18px 45px #152a221f; }
.lead-story > img, .side-card > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .7s ease; }
.lead-story:hover > img, .side-card:hover > img { transform: scale(1.035); }
.lead-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #06221810 15%, #06221885 55%, #031812 95%), linear-gradient(90deg, #041a1480, transparent 60%); }
.lead-content { position: absolute; z-index: 2; right: 38px; left: 38px; bottom: 34px; }
.story-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 12px; }
.story-meta span, .tag { padding: 7px 12px; border-radius: 999px; background: var(--gold); color: #17231d; font-weight: 800; }
.story-meta time { color: #d9e3de; }
.lead-content h1 { max-width: 830px; font-size: clamp(30px, 4.1vw, 51px); line-height: 1.25; margin: 0 0 14px; }
.lead-content p { max-width: 720px; color: #e0e8e4; font-size: 15px; line-height: 1.8; margin: 0 0 18px; }
.read-more { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--gold-soft); }
.side-stories { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.side-card { min-height: 280px; border-radius: 18px; }
.side-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, #02140fda 100%); }
.story-hit { position: absolute; z-index: 3; inset: 0; }
.side-card-content { position: absolute; z-index: 2; right: 22px; left: 22px; bottom: 20px; }
.tag { display: inline-block; padding: 6px 10px; font-size: 11px; margin-bottom: 9px; }
.side-card h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.45; }
.side-card time { font-size: 11px; color: #c9d5cf; }
.trust-strip { margin-block: 2px 48px; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: 0 10px 30px #1335290a; }
.trust-strip div { display: grid; gap: 4px; padding: 20px 28px; border-left: 1px solid var(--line); }
.trust-strip div:last-child { border: 0; }
.trust-strip strong { color: var(--green-800); font-size: 18px; }
.trust-strip span { color: var(--muted); font-size: 12px; }
.news-section { padding-bottom: 76px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--green-700); font-size: 11px; font-weight: 900; }
.section-heading h2 { margin: 0; font-size: clamp(27px, 3.3vw, 38px); color: var(--green-950); }
.section-heading h2::after { content: ""; display: block; width: 45px; height: 3px; margin-top: 10px; background: var(--gold); }
.filters { display: flex; align-items: center; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow-x: auto; }
.filters a { border-radius: 999px; padding: 9px 14px; color: #6c746f; font-size: 12px; font-weight: 800; white-space: nowrap; }
.filters a:hover { background: var(--green-900); color: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 12px 30px #15312908; transition: .25s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px #12342716; }
.news-image { display: block; height: 228px; position: relative; overflow: hidden; background: var(--green-950); }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-image img { transform: scale(1.045); }
.news-image span { position: absolute; z-index: 2; right: 14px; bottom: 13px; padding: 6px 10px; border-radius: 999px; background: var(--gold); color: #14241d; font-size: 10px; font-weight: 900; }
.news-card-content { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.news-card-content time { color: #939b96; font-size: 11px; }
.news-card-content h3 { margin: 9px 0; color: var(--green-950); font-size: 19px; line-height: 1.55; }
.news-card-content p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.card-link { margin-top: auto; color: var(--green-700); font-size: 12px; font-weight: 900; }
.insight-band { padding-block: 70px; background: #e9eee9; border-block: 1px solid #dce3dd; }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.editorial-card { min-height: 390px; padding: 42px; border-radius: 22px; background: linear-gradient(140deg, #073e2d, #041c16); color: #fff; }
.editorial-card h2 { margin: 8px 0 15px; font-size: 36px; }
.editorial-card p { color: #d4e3dc; font-size: 14px; line-height: 2; }
.editorial-card a { color: var(--gold-soft); font-weight: 800; }
.service-panel { padding: 34px; border: 1px solid #d9e0da; border-radius: 22px; background: #fff; }
.panel-title { margin-bottom: 20px; }
.panel-title h2 { margin: 0; font-size: 29px; }
.service-list { display: grid; }
.service-list > a { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.service-list > a:last-child { border: 0; }
.service-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #eaf3ee; color: var(--green-800); font-size: 20px; }
.service-list a > span:nth-child(2) { display: grid; gap: 4px; }
.service-list small { color: #848d88; }
.sponsor-feature { margin-block: 76px; min-height: 390px; display: grid; grid-template-columns: 1fr .82fr; overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.sponsor-feature-copy { padding: 56px; align-self: center; }
.atiaf-logo-lockup { width: 178px; height: 88px; margin: -8px 0 4px auto; }
.atiaf-logo-lockup img { width: 100%; height: 100%; object-fit: contain; }
.sponsor-feature h2 { margin: 0 0 14px; font-size: clamp(30px, 3.5vw, 45px); }
.sponsor-feature-copy p { color: var(--muted); line-height: 1.9; }
.sponsor-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
.primary-action { padding: 13px 18px; border-radius: 10px; background: #b4212a; color: #fff; font-weight: 900; }
.text-action { color: var(--green-800); font-weight: 900; }
.sponsor-feature-visual { min-height: 390px; overflow: hidden; }
.sponsor-feature-visual img { width: 100%; height: 100%; object-fit: cover; }
.site-footer { background: #041d16; color: #cfdbd5; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 44px; padding-block: 58px; }
.footer-grid > div:not(.footer-about) { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-grid h3 { margin: 0 0 10px; color: #fff; font-size: 15px; }
.footer-grid a, .footer-grid span { color: #aabbb3; font-size: 12px; }
.footer-brand .brand-copy strong { color: #fff; font-size: 21px; }
.footer-about p { color: #9eb0a8; font-size: 12px; line-height: 2; }
.footer-bottom { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #ffffff12; color: #7f9289; font-size: 11px; }
.whatsapp-fab { position: fixed; z-index: 30; left: 22px; bottom: 22px; width: 52px; height: 52px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #20b96c; color: #fff; font-size: 21px; }
.content-shell { padding-block: 46px 80px; }
.single-card { max-width: 860px; margin: auto; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 45px #0b2d2014; }
.single-card > img { width: 100%; max-height: 520px; object-fit: cover; }
.single-content { padding: 36px; }
.single-content h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.35; margin: 12px 0 20px; }
.single-content .entry-content { color: #48564f; font-size: 17px; line-height: 2.1; }
.pagination { grid-column: 1 / -1; margin-top: 30px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination a, .pagination span { padding: 9px 13px; background: #fff; border-radius: 7px; }
.screen-reader-text, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .brand-copy strong { font-size: 21px; }
  .partners-label { display: none; }
  .bimbank-logo-card { width: 158px; }
  .atiaf-logo-card { width: 88px; }
  .hero { grid-template-columns: 1fr; }
  .side-stories { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-grid, .sponsor-feature { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .topline-inner > p { display: none; }
  .brand-row { min-height: auto; padding-block: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; }
  .brand-logo-frame { width: 46px; height: 62px; }
  .brand-copy strong { font-size: 18px; }
  .menu-button { display: block; }
  .header-partners { grid-column: 1 / -1; width: 100%; margin: 0; padding-top: 9px; border-top: 1px solid #edf0ec; }
  .sponsor-logo-card { height: 44px; padding: 5px 8px; }
  .bimbank-logo-card { width: 130px; }
  .atiaf-logo-card { width: 72px; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; }
  .main-nav.open { display: block; }
  .nav-inner, .nav-inner ul { padding-block: 12px; display: grid; gap: 0; }
  .nav-inner a { padding: 11px 4px; border-bottom: 1px solid #ffffff16; }
  .search-button { display: none; }
  .hero { padding-block: 16px; }
  .lead-story { min-height: 500px; border-radius: 16px; }
  .lead-content { right: 20px; left: 20px; bottom: 22px; }
  .lead-content h1 { font-size: 29px; }
  .side-stories { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; margin-bottom: 30px; }
  .trust-strip div { border-left: 0; border-bottom: 1px solid var(--line); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .filters { width: 100%; border-radius: 13px; }
  .news-grid { grid-template-columns: 1fr; gap: 14px; }
  .insight-grid { grid-template-columns: 1fr; }
  .editorial-card { padding: 28px; }
  .service-panel { padding: 24px 20px; }
  .sponsor-feature { margin-block: 42px; }
  .sponsor-feature-copy { padding: 34px 24px; }
  .sponsor-feature-visual { min-height: 280px; order: -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; padding-block: 18px; }
  .single-content { padding: 24px 20px; }
}
