:root {
    --scout-purple: #4a1c73;
    --scout-purple-deep: #32124f;
    --scout-nav: #3d1566;
    --scout-green: #2f9b45;
    --scout-green-dark: #217a33;
    --scout-cream: #f6f3ee;
    --scout-gold: #c9a227;
    --text: #2a2433;
}

html, body {
    font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    background: #fff;
}

a { text-decoration: none; color: inherit; }

.topbar {
    background: var(--scout-purple-deep);
    color: #fff;
    font-size: .9rem;
    padding: .45rem 0;
}

.topbar-link, .lang-switch {
    color: #fff;
    background: transparent;
    border: 0;
    font-weight: 700;
}

.social-row a {
    color: #fff;
    margin-inline: .25rem;
}

.brand-header {
    background:
        linear-gradient(90deg, rgba(74, 28, 115, .88), rgba(30, 60, 40, .45)),
        url("/uploads/slides/slide-1.jpg?v=3") center/cover;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.brand-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0;
}

.brand-logo {
    width: 108px;
    height: 118px;
    object-fit: contain;
}
.brand-titles { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.brand-ar { font-size: 1.6rem; font-weight: 800; }
.brand-en { opacity: .92; }
.brand-motto { font-size: .95rem; color: #c6f3cf; font-weight: 700; margin-top: .15rem; }

.main-nav {
    background: var(--scout-nav);
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: .85rem;
    margin: 0;
    padding: .7rem 0;
    flex-wrap: nowrap;
    align-items: center;
    font-size: .95rem;
    overflow-x: auto;
}

.nav-links a, .nav-search {
    color: #fff;
    font-weight: 700;
    padding: .2rem .15rem;
}

.nav-links a.active, .nav-links a:hover { color: #b7f0c2; }

.hero-carousel { position: relative; }
.hero-img { height: 420px; object-fit: cover; background: #4a1c73; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 20%, rgba(20, 8, 40, .55));
    display: flex;
    align-items: flex-end;
    padding-bottom: 2.5rem;
    color: #fff;
}
.hero-overlay h1 { font-weight: 800; max-width: 18ch; }
.btn-hero {
    background: var(--scout-green);
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    padding: .45rem 1.2rem;
}
.btn-hero:hover { background: var(--scout-green-dark); color: #fff; }

.section { padding: 2.4rem 0; }
.section.alt { background: var(--scout-cream); }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}
.section-head h2 { color: var(--scout-purple); font-weight: 800; font-size: 1.35rem; }
.section-head a { color: var(--scout-green-dark); font-weight: 700; }

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(50, 18, 79, .08);
    height: 100%;
}
    .news-thumb {
        height: 160px;
        background-size: cover;
        background-position: center;
        position: relative;
        overflow: hidden;
        background-color: #efe8f4;
    }
    .news-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
.cat-tag {
    position: absolute;
    top: .7rem;
    inset-inline-start: .7rem;
    color: #fff;
    font-size: .78rem;
    padding: .15rem .55rem;
    border-radius: 4px;
}
.news-body { padding: .9rem; }
.news-body h3 { font-size: 1rem; font-weight: 700; min-height: 2.8em; }
.news-body time, .muted { color: #6b6573; font-size: .85rem; }

.event-list { display: flex; flex-direction: column; gap: .75rem; }
.event-item {
    display: flex;
    gap: .8rem;
    background: #fff;
    padding: .7rem;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(50, 18, 79, .07);
}
.event-date {
    min-width: 64px;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    padding: .35rem .2rem;
    display: flex;
    flex-direction: column;
}
.event-date.green { background: var(--scout-green); }
.event-date.purple { background: var(--scout-purple); }
.event-date .d { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.event-date .m, .event-date .y { font-size: .72rem; }

.map-panel, .story-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.1rem;
    box-shadow: 0 8px 24px rgba(50, 18, 79, .08);
    height: 100%;
}
.map-panel h2, .story-card h2 { color: var(--scout-purple); font-weight: 800; font-size: 1.2rem; }
.iraq-map-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    direction: ltr;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem 1.75rem;
}
.iraq-map-frame {
    flex: 1 1 260px;
    max-width: 380px;
}
.iraq-map-frame-lg { max-width: 520px; }
.iraq-map-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}
.iraq-map-svg .gov-link { cursor: pointer; outline: none; }
.iraq-map-svg path {
    fill: #7dbe6a;
    stroke: #fff;
    stroke-width: 1.4;
    stroke-linejoin: round;
    transition: fill .18s ease;
}
.iraq-map-svg #gov-baghdad {
    stroke-width: 2;
}
.iraq-map-svg .gov-link:hover path,
.iraq-map-svg .gov-link:focus-visible path,
.iraq-map-svg .gov-link.is-active path {
    fill: #4a1c73;
}
.gov-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1 1 220px;
    max-width: 280px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: .85rem;
    row-gap: .05rem;
    direction: rtl;
    text-align: start;
}
html[lang="en"] .gov-list {
    direction: ltr;
}
.gov-list a {
    color: var(--scout-green-dark);
    font-weight: 700;
    display: inline-block;
    padding: .15rem .2rem;
    border-radius: 6px;
}
.gov-list a.is-active,
.gov-list a:hover {
    color: #fff;
    background: var(--scout-purple);
}
.map-hint { color: #5b5266; font-size: .92rem; margin: .75rem 0 0; }
.story-card img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; margin: .6rem 0; }
.story-card a { color: var(--scout-green); font-weight: 800; }

.video-card h3, .page-card h3 { font-size: .98rem; margin-top: .55rem; font-weight: 700; }
.video-thumb, .photo-tile img {
    border-radius: 10px;
    overflow: hidden;
}
.video-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: block;
}
.play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 54px;
    height: 54px;
    background: rgba(47, 155, 69, .92);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
}
.duration {
    position: absolute;
    bottom: .5rem;
    inset-inline-end: .5rem;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: .75rem;
    padding: .1rem .35rem;
    border-radius: 4px;
}
.photo-tile img { width: 100%; height: 150px; object-fit: cover; }

.announce-bar {
    background: #d9f5df;
    color: #145c28;
    padding: .75rem 0;
    font-weight: 700;
}

.site-footer {
    background: var(--scout-purple);
    color: #efe8f7;
    padding: 2.4rem 0 1rem;
}
.site-footer h6 { font-weight: 800; margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links a { color: #efe8f7; }
.store-badges span {
    display: inline-block;
    border: 1px solid #fff;
    border-radius: 6px;
    padding: .25rem .55rem;
    margin: .15rem;
    font-size: .8rem;
}
.footer-logo {
    width: 86px;
    height: auto;
    margin-top: .6rem;
    object-fit: contain;
    background: #fff;
    border-radius: 18px;
    padding: 6px;
}
.footer-copy { border-top: 1px solid rgba(255,255,255,.2); margin-top: 1.4rem; padding-top: .8rem; text-align: center; }

.page-wrap { padding: 2rem 0 3rem; }
.page-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(50, 18, 79, .08);
    overflow: hidden;
    height: 100%;
}
.page-card.is-active { box-shadow: 0 0 0 2px var(--scout-purple); }
.page-card img { width: 100%; height: 180px; object-fit: cover; }
.page-card .pad { padding: 1rem; }
.article-hero { width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; }
.auth-card {
    max-width: 430px;
    margin: 3rem auto;
    background: #fff;
    padding: 1.6rem;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(50, 18, 79, .12);
}
.auth-card h1 { color: var(--scout-purple); font-weight: 800; font-size: 1.4rem; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.video-frame { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: 12px; }

@media (max-width: 768px) {
    .hero-img { height: 240px; }
    .brand-ar { font-size: 1.15rem; }
}
