/* El3aed — Platform Design System */

:root {
    --aaed-primary: #4A6741;
    --aaed-primary-hover: #3A5233;
    --aaed-primary-dark: #2C3E2A;
    --aaed-gold: #C9A227;
    --aaed-gold-soft: #E8D48A;
    --aaed-bg: #F7F8F5;
    --aaed-surface: #FFFFFF;
    --aaed-olive-soft: #EEF1EA;
    --aaed-text: #1F2A1C;
    --aaed-muted: #5F6B5A;
    --aaed-border: #E2E6DE;
    --aaed-success: #3D7A45;
    --aaed-warning: #C4911A;
    --aaed-error: #B33A3A;
    --aaed-shadow: 0 4px 24px rgba(44, 62, 42, 0.08);
    --aaed-shadow-sm: 0 2px 10px rgba(44, 62, 42, 0.06);
    --aaed-radius: 12px;
    --aaed-radius-lg: 16px;
    --aaed-container: 1280px;
    --aaed-header-h: 72px;
    --aaed-transition: 200ms ease;

    /* Map legacy theme vars */
    --main-color: var(--aaed-primary);
    --body-bg: var(--aaed-bg);
    --card-bg: var(--aaed-surface);
    --h-color: var(--aaed-text);
    --e-color: var(--aaed-olive-soft);
    --border-color: var(--aaed-border);
    --icon-active: var(--aaed-primary-dark);
    --icon-idle: #A8B89E;
    --subp-color: var(--aaed-muted);
    --link-color: var(--aaed-primary);
    --a-light: #FFF;
    --shadow-color: rgba(74, 103, 65, 0.08);
    --sub-light: #FBFCF9;
    --border-input: #D5DCD0;
}

html {
    direction: rtl !important;
    scroll-behavior: smooth;
}

body {
    direction: rtl !important;
    text-align: right !important;
    background: var(--aaed-bg) !important;
    color: var(--aaed-text);
    font-family: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", sans-serif !important;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.aaed-platform .urgent,
body.aaed-platform .nav-banner,
body.aaed-platform .author,
body.aaed-platform .nav-today,
body.aaed-platform .urgent-link,
body.aaed-platform .cities-link {
    display: none !important;
}

.aaed-container {
    width: 100%;
    max-width: var(--aaed-container);
    margin-inline: auto;
    padding-inline: 20px;
}

/* ---------- Buttons ---------- */
.aaed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: background var(--aaed-transition), color var(--aaed-transition),
        border-color var(--aaed-transition), transform var(--aaed-transition),
        box-shadow var(--aaed-transition);
}

.aaed-btn:focus-visible {
    outline: 2px solid var(--aaed-gold);
    outline-offset: 2px;
}

.aaed-btn--primary {
    background: var(--aaed-primary);
    color: #fff !important;
}

.aaed-btn--primary:hover {
    background: var(--aaed-primary-hover);
    color: #fff !important;
    transform: translateY(-1px);
}

.aaed-btn--secondary {
    background: #fff;
    color: var(--aaed-primary) !important;
    border-color: var(--aaed-primary);
}

.aaed-btn--secondary:hover {
    background: var(--aaed-olive-soft);
}

.aaed-btn--accent {
    background: var(--aaed-gold);
    color: var(--aaed-primary-dark) !important;
}

.aaed-btn--accent:hover {
    background: #b8921f;
}

.aaed-btn--block {
    width: 100%;
}

/* ---------- Sticky Header ---------- */
.aaed-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: #fff;
    border-bottom: 1px solid var(--aaed-border);
    box-shadow: var(--aaed-shadow-sm);
}

.aaed-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--aaed-header-h);
}

.aaed-header__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.aaed-header__brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.aaed-header .aaed-logo,
.aaed-header .site-logo {
    height: 52px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.aaed-nav {
    display: none;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aaed-nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--aaed-text) !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background var(--aaed-transition), color var(--aaed-transition);
}

.aaed-nav a:hover,
.aaed-nav a.is-active {
    background: var(--aaed-olive-soft);
    color: var(--aaed-primary) !important;
}

.aaed-nav a.is-active {
    box-shadow: inset 0 -2px 0 var(--aaed-gold);
}

.aaed-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.aaed-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--aaed-border);
    border-radius: 10px;
    background: #fff;
    color: var(--aaed-primary-dark);
    cursor: pointer;
    transition: border-color var(--aaed-transition), background var(--aaed-transition);
}

.aaed-icon-btn:hover,
.aaed-icon-btn:focus-visible {
    border-color: var(--aaed-primary);
    background: var(--aaed-olive-soft);
    outline: none;
}

.aaed-icon-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.aaed-theme-toggle .aaed-theme-toggle__sun {
    display: none;
}

.aaed-theme-toggle .aaed-theme-toggle__moon {
    display: block;
}

body.dark-mode .aaed-theme-toggle .aaed-theme-toggle__sun {
    display: block;
}

body.dark-mode .aaed-theme-toggle .aaed-theme-toggle__moon {
    display: none;
}

.aaed-theme-toggle--wide {
    width: auto;
    min-height: 48px;
    padding: 0 16px;
    gap: 10px;
    border-radius: 12px;
}

.aaed-theme-toggle__label-dark {
    display: none;
    font-weight: 600;
}

.aaed-theme-toggle__label-light {
    display: inline;
    font-weight: 600;
}

body.dark-mode .aaed-theme-toggle__label-light {
    display: none;
}

body.dark-mode .aaed-theme-toggle__label-dark {
    display: inline;
}

.aaed-drawer__theme {
    padding: 12px 20px 4px;
    border-bottom: 1px solid var(--aaed-border);
}

.aaed-drawer__theme .aaed-theme-toggle--wide {
    width: 100%;
    justify-content: center;
    background: var(--aaed-olive-soft);
    border-color: var(--aaed-border);
    color: var(--aaed-primary-dark);
}

.aaed-menu-toggle {
    display: inline-flex;
}

@media (min-width: 992px) {
    .aaed-nav { display: flex; }
    .aaed-menu-toggle { display: none; }
    .aaed-header .aaed-logo,
    .aaed-header .site-logo {
        height: 58px;
        max-width: 180px;
    }
}

/* ---------- Mobile Drawer ---------- */
.aaed-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
    visibility: hidden;
}

.aaed-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.aaed-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 42, 28, 0.45);
    opacity: 0;
    transition: opacity var(--aaed-transition);
}

.aaed-drawer.is-open .aaed-drawer__overlay {
    opacity: 1;
}

.aaed-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 360px);
    height: 100%;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform 250ms ease;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.aaed-drawer.is-open .aaed-drawer__panel {
    transform: translateX(0);
}

.aaed-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--aaed-border);
}

.aaed-drawer__nav {
    list-style: none;
    margin: 0;
    padding: 12px 12px 32px;
}

.aaed-drawer__nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 10px;
    color: var(--aaed-text) !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: background var(--aaed-transition);
}

.aaed-drawer__nav a:hover {
    background: var(--aaed-olive-soft);
    color: var(--aaed-primary) !important;
}

.aaed-drawer__search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--aaed-border);
}

/* ---------- Hero ---------- */
.aaed-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(201, 162, 39, 0.12), transparent 55%),
        radial-gradient(ellipse 70% 50% at 0% 100%, rgba(74, 103, 65, 0.14), transparent 50%),
        linear-gradient(165deg, #FBFCF9 0%, #EEF1EA 55%, #E6EBE2 100%);
    padding: 48px 0 56px;
    border-bottom: 1px solid var(--aaed-border);
}

.aaed-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(30deg, rgba(74, 103, 65, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(74, 103, 65, 0.03) 87.5%),
        linear-gradient(150deg, rgba(201, 162, 39, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(201, 162, 39, 0.04) 87.5%);
    background-size: 48px 84px;
    pointer-events: none;
    opacity: 0.7;
}

.aaed-hero__grid {
    position: relative;
    display: grid;
    gap: 32px;
    align-items: center;
}

@media (min-width: 992px) {
    .aaed-hero {
        padding: 64px 0 72px;
    }
    .aaed-hero__grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 48px;
    }
}

.aaed-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(74, 103, 65, 0.08);
    color: var(--aaed-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.aaed-hero__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--aaed-gold);
}

.aaed-hero__title {
    margin: 0 0 14px;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--aaed-primary-dark);
}

.aaed-hero__subtitle {
    margin: 0 0 28px;
    max-width: 36rem;
    color: var(--aaed-muted);
    font-size: 1.05rem;
    font-weight: 400;
}

.aaed-hero-search {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--aaed-border);
    border-radius: 14px;
    box-shadow: var(--aaed-shadow);
    overflow: hidden;
    max-width: 640px;
}

.aaed-hero-search:focus-within {
    border-color: var(--aaed-primary);
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.15), var(--aaed-shadow);
}

.aaed-hero-search__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    color: var(--aaed-muted);
    flex-shrink: 0;
}

.aaed-hero-search__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.aaed-hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    padding: 16px 4px;
    font-size: 1rem;
    color: var(--aaed-text);
}

.aaed-hero-search input::placeholder {
    color: #8A9484;
}

.aaed-hero-search button {
    flex-shrink: 0;
    border: 0;
    background: var(--aaed-primary);
    color: #fff;
    font-weight: 600;
    padding: 0 22px;
    cursor: pointer;
    transition: background var(--aaed-transition);
}

.aaed-hero-search button:hover {
    background: var(--aaed-primary-hover);
}

.aaed-hero__visual {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

@media (min-width: 992px) {
    .aaed-hero__visual { display: flex; }
}

.aaed-hero__mark {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(74, 103, 65, 0.12), rgba(201, 162, 39, 0.1)),
        #fff;
    border: 1px solid var(--aaed-border);
    box-shadow: var(--aaed-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.aaed-hero__mark::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1.5px solid rgba(201, 162, 39, 0.45);
    border-radius: 18px;
    clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
}

.aaed-hero__mark img {
    width: 72%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.aaed-hero__skyline {
    position: absolute;
    bottom: 18%;
    left: 12%;
    width: 38%;
    height: 28%;
    opacity: 0.18;
    background:
        linear-gradient(to top, var(--aaed-primary) 0 40%, transparent 40%) 10% 100% / 12% 70% no-repeat,
        linear-gradient(to top, var(--aaed-primary) 0 55%, transparent 55%) 28% 100% / 10% 90% no-repeat,
        linear-gradient(to top, var(--aaed-primary) 0 35%, transparent 35%) 42% 100% / 14% 60% no-repeat,
        linear-gradient(to top, var(--aaed-primary) 0 75%, transparent 75%) 62% 100% / 8% 100% no-repeat,
        linear-gradient(to top, var(--aaed-primary) 0 45%, transparent 45%) 78% 100% / 16% 70% no-repeat;
}

/* ---------- Sections ---------- */
.aaed-section {
    padding: 56px 0;
}

.aaed-section--soft {
    background: var(--aaed-olive-soft);
}

.aaed-section__head {
    margin-bottom: 28px;
    text-align: center;
}

.aaed-section__head h2 {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: var(--aaed-primary-dark);
}

.aaed-section__head p {
    margin: 0 auto;
    max-width: 36rem;
    color: var(--aaed-muted);
}

.aaed-section__head--start {
    text-align: right;
}

.aaed-section__accent {
    display: block;
    width: 48px;
    height: 3px;
    margin: 0 auto 14px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--aaed-primary), var(--aaed-gold));
}

.aaed-section__head--start .aaed-section__accent {
    margin-inline: 0;
}

/* ---------- Category Cards ---------- */
.aaed-cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 576px) {
    .aaed-cat-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
    .aaed-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.aaed-cat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 22px;
    background: #fff;
    border: 1px solid var(--aaed-border);
    border-radius: var(--aaed-radius-lg);
    box-shadow: var(--aaed-shadow-sm);
    text-decoration: none !important;
    color: inherit !important;
    transition: transform var(--aaed-transition), box-shadow var(--aaed-transition),
        border-color var(--aaed-transition);
}

.aaed-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--aaed-shadow);
    border-color: rgba(74, 103, 65, 0.35);
}

.aaed-cat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aaed-olive-soft);
    color: var(--aaed-primary);
    margin-bottom: 16px;
    transition: transform var(--aaed-transition), background var(--aaed-transition);
}

.aaed-cat-card:hover .aaed-cat-card__icon {
    background: rgba(201, 162, 39, 0.18);
    color: var(--aaed-primary-dark);
    transform: translateY(-2px);
}

.aaed-cat-card__icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
}

.aaed-cat-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--aaed-primary-dark);
}

.aaed-cat-card p {
    margin: 0 0 18px;
    flex: 1;
    color: var(--aaed-muted);
    font-size: 0.92rem;
}

.aaed-cat-card__arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--aaed-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap var(--aaed-transition);
}

.aaed-cat-card:hover .aaed-cat-card__arrow {
    gap: 10px;
}

.aaed-cat-card__arrow svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ---------- Service Cards ---------- */
.aaed-service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .aaed-service-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
    .aaed-service-grid { grid-template-columns: repeat(3, 1fr); }
}

.aaed-service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--aaed-border);
    border-radius: var(--aaed-radius);
    padding: 20px;
    box-shadow: var(--aaed-shadow-sm);
    transition: border-color var(--aaed-transition), box-shadow var(--aaed-transition);
}

.aaed-service-card:hover {
    border-color: rgba(74, 103, 65, 0.35);
    box-shadow: var(--aaed-shadow);
}

.aaed-service-card__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    background: rgba(201, 162, 39, 0.15);
    color: var(--aaed-primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
}

.aaed-service-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
}

.aaed-service-card h3 a {
    color: var(--aaed-primary-dark) !important;
    text-decoration: none !important;
}

.aaed-service-card h3 a:hover {
    color: var(--aaed-primary) !important;
}

.aaed-service-card p {
    margin: 0 0 16px;
    flex: 1;
    color: var(--aaed-muted);
    font-size: 0.9rem;
}

/* ---------- Quick Access ---------- */
.aaed-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .aaed-quick-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.aaed-quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 64px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--aaed-border);
    border-radius: 12px;
    color: var(--aaed-primary-dark) !important;
    font-weight: 600;
    text-decoration: none !important;
    text-align: center;
    transition: background var(--aaed-transition), border-color var(--aaed-transition),
        transform var(--aaed-transition);
}

.aaed-quick-link:hover {
    background: var(--aaed-olive-soft);
    border-color: var(--aaed-primary);
    transform: translateY(-2px);
}

.aaed-quick-link span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--aaed-gold);
    flex-shrink: 0;
}

/* ---------- CTA Band ---------- */
.aaed-cta {
    padding: 48px 0;
}

.aaed-cta__box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 36px 28px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, var(--aaed-primary-dark) 0%, var(--aaed-primary) 65%, #5A7A50 100%);
    color: #fff;
    box-shadow: var(--aaed-shadow);
    position: relative;
    overflow: hidden;
}

.aaed-cta__box::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -10%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.18);
    pointer-events: none;
}

.aaed-cta__box > * {
    position: relative;
    z-index: 1;
}

.aaed-cta__box h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
}

.aaed-cta__box p {
    margin: 0;
    opacity: 0.92;
    max-width: 36rem;
}

@media (min-width: 768px) {
    .aaed-cta__box {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 40px 44px;
    }
}

.aaed-cta .aaed-btn--accent {
    white-space: nowrap;
}

/* ---------- Footer ---------- */
.aaed-footer {
    background: var(--aaed-primary-dark);
    color: rgba(255, 255, 255, 0.88);
    padding-top: 48px;
}

.aaed-footer a {
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none !important;
    transition: color var(--aaed-transition);
}

.aaed-footer a:hover {
    color: var(--aaed-gold-soft) !important;
}

.aaed-footer__grid {
    display: grid;
    gap: 32px;
    padding-bottom: 36px;
}

@media (min-width: 768px) {
    .aaed-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

.aaed-footer .aaed-logo,
.aaed-footer .site-logo {
    height: 64px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
}

.aaed-footer__brand p {
    margin: 14px 0 0;
    max-width: 28rem;
    font-size: 0.92rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

.aaed-footer__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.aaed-footer__title::before {
    content: "";
    width: 16px;
    height: 2px;
    background: var(--aaed-gold);
}

.aaed-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aaed-footer__links li + li {
    margin-top: 10px;
}

.aaed-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    list-style: none;
    padding: 0;
}

.aaed-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
}

.aaed-footer__social a:hover {
    border-color: var(--aaed-gold);
    background: rgba(201, 162, 39, 0.15);
}

.aaed-footer__social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.aaed-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 18px 0;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
}

.aaed-footer__newsletter {
    margin-top: 12px;
}

.aaed-footer__newsletter span {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
}

.aaed-footer__newsletter form {
    display: flex;
    gap: 8px;
}

.aaed-footer__newsletter input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 8px;
    padding: 10px 12px;
}

.aaed-footer__newsletter input::placeholder {
    color: rgba(255,255,255,0.5);
}

.aaed-footer__newsletter button {
    border: 0;
    border-radius: 8px;
    background: var(--aaed-gold);
    color: var(--aaed-primary-dark);
    font-weight: 700;
    padding: 0 16px;
    cursor: pointer;
}

/* ---------- Page Header ---------- */
.aaed-page-header {
    background: linear-gradient(180deg, #EEF1EA 0%, var(--aaed-bg) 100%);
    border-bottom: 1px solid var(--aaed-border);
    padding: 28px 0 32px;
}

.aaed-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-size: 0.88rem;
    color: var(--aaed-muted);
}

.aaed-breadcrumb li:not(:last-child)::after {
    content: "‹";
    margin-right: 6px;
    color: var(--aaed-gold);
}

.aaed-breadcrumb a {
    color: var(--aaed-primary) !important;
    text-decoration: none !important;
}

.aaed-page-title {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--aaed-primary-dark);
}

.aaed-page-desc {
    margin: 0;
    max-width: 40rem;
    color: var(--aaed-muted);
}

/* ---------- Empty / Search states ---------- */
.aaed-empty {
    text-align: center;
    padding: 48px 20px;
    background: #fff;
    border: 1px dashed var(--aaed-border);
    border-radius: var(--aaed-radius-lg);
}

.aaed-empty__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: var(--aaed-olive-soft);
    color: var(--aaed-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aaed-empty h3 {
    margin: 0 0 8px;
    font-weight: 700;
}

.aaed-empty p {
    margin: 0 0 18px;
    color: var(--aaed-muted);
}

/* Soften legacy news chrome under platform body */
body.aaed-platform .header,
body.aaed-platform .down-nav-container,
body.aaed-platform .big-nav,
body.aaed-platform .footer:not(.aaed-footer) {
    display: none !important;
}

body.aaed-platform .content {
    min-height: 40vh;
}

body.aaed-platform .section-header-main .section-heading h1,
body.aaed-platform .section-header-main .section-heading h3,
body.aaed-platform .section-heading h1,
body.aaed-platform .section-heading h3 {
    color: var(--aaed-primary-dark) !important;
}

body.aaed-platform a {
    transition: color var(--aaed-transition);
}

/* Search results as service cards */
.aaed-search-results {
    display: grid;
    gap: 12px;
}

.aaed-search-result {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--aaed-border);
    border-radius: var(--aaed-radius);
    text-decoration: none !important;
    color: inherit !important;
    transition: border-color var(--aaed-transition), box-shadow var(--aaed-transition);
}

.aaed-search-result:hover {
    border-color: rgba(74, 103, 65, 0.4);
    box-shadow: var(--aaed-shadow-sm);
}

.aaed-search-result__thumb {
    width: 88px;
    height: 66px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--aaed-olive-soft);
}

.aaed-search-result__thumb img,
.aaed-search-result__thumb figure {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

.aaed-search-result h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--aaed-primary-dark);
}

.aaed-search-result__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--aaed-muted);
}

.aaed-badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--aaed-olive-soft);
    color: var(--aaed-primary);
    font-weight: 600;
}

/* Legacy cards polish */
body.aaed-platform .news-card,
body.aaed-platform .video-card,
body.aaed-platform .category-post-big {
    border-radius: var(--aaed-radius);
    overflow: hidden;
}

/* Soften remaining legacy news surfaces */
body.aaed-platform .post-page .post-content,
body.aaed-platform .privacy-content,
body.aaed-platform .contact-details {
    background: #fff;
    border: 1px solid var(--aaed-border);
    border-radius: var(--aaed-radius-lg);
    padding: 24px;
    box-shadow: var(--aaed-shadow-sm);
}

body.aaed-platform .post-cat {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(201, 162, 39, 0.15);
    color: var(--aaed-primary-dark) !important;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none !important;
}

body.aaed-platform .post-title {
    color: var(--aaed-primary-dark) !important;
}

body.aaed-platform .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.aaed-platform .news-card,
body.aaed-platform .client-card {
    border-radius: var(--aaed-radius);
    overflow: hidden;
    border: 1px solid var(--aaed-border);
    box-shadow: var(--aaed-shadow-sm);
    transition: transform var(--aaed-transition), box-shadow var(--aaed-transition);
}

body.aaed-platform .news-card:hover,
body.aaed-platform .client-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--aaed-shadow);
}

body.aaed-platform .btn,
body.aaed-platform button[type="submit"]:not(.aaed-hero-search button):not(.aaed-footer__newsletter button),
body.aaed-platform .save-btn {
    background: var(--aaed-primary) !important;
    border-color: var(--aaed-primary) !important;
    color: #fff !important;
    border-radius: 10px !important;
}

body.aaed-platform .aaed-footer .footer-col {
    margin-top: 20px;
}

body.aaed-platform .aaed-footer .footer-head {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

body.aaed-platform .aaed-footer .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.aaed-platform .aaed-footer .footer-col li + li {
    margin-top: 8px;
}

body.dark-mode.aaed-platform {
    --aaed-bg: #121612;
    --aaed-surface: #1B221A;
    --aaed-olive-soft: #232B21;
    --aaed-text: #F2F5F0;
    --aaed-muted: #A7B3A2;
    --aaed-border: #313B2F;
    --aaed-primary: #7FA873;
    --aaed-primary-hover: #93BC86;
    --aaed-primary-dark: #D7E4D1;
    --aaed-gold: #D4B44A;
    --body-bg: #121612;
    --card-bg: #1B221A;
    --h-color: #F2F5F0;
    --e-color: #232B21;
    --border-color: #313B2F;
    --subp-color: #A7B3A2;
    --link-color: #7FA873;
}

body.dark-mode.aaed-platform,
body.dark-mode.aaed-platform .content {
    background: var(--aaed-bg) !important;
    color: var(--aaed-text);
}

body.dark-mode.aaed-platform .aaed-header {
    background: rgba(27, 34, 26, 0.96);
    border-bottom-color: var(--aaed-border);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

body.dark-mode.aaed-platform .aaed-nav a {
    color: var(--aaed-text) !important;
}

body.dark-mode.aaed-platform .aaed-nav a:hover,
body.dark-mode.aaed-platform .aaed-nav a.is-active {
    background: var(--aaed-olive-soft);
    color: var(--aaed-gold) !important;
}

body.dark-mode.aaed-platform .aaed-icon-btn {
    background: var(--aaed-surface);
    border-color: var(--aaed-border);
    color: var(--aaed-text);
}

body.dark-mode.aaed-platform .aaed-icon-btn:hover,
body.dark-mode.aaed-platform .aaed-icon-btn:focus-visible {
    background: var(--aaed-olive-soft);
    border-color: var(--aaed-primary);
}

body.aaed-platform .site-logo--dark {
    display: none !important;
}

/* Legacy theme CSS hides .site-logo--light in dark mode — keep brand logo visible */
body.aaed-platform .site-logo--light,
body.aaed-platform .aaed-logo,
body.dark-mode.aaed-platform .site-logo--light,
body.dark-mode.aaed-platform .aaed-logo,
body.dark-mode.aaed-platform .aaed-header .site-logo,
body.dark-mode.aaed-platform .aaed-drawer .site-logo,
body.dark-mode.aaed-platform .aaed-footer .site-logo,
body.dark-mode.aaed-platform .aaed-header .aaed-logo,
body.dark-mode.aaed-platform .aaed-drawer .aaed-logo,
body.dark-mode.aaed-platform .aaed-footer .aaed-logo {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.dark-mode.aaed-platform .aaed-header .aaed-logo,
body.dark-mode.aaed-platform .aaed-drawer .aaed-logo,
body.dark-mode.aaed-platform .aaed-header .site-logo,
body.dark-mode.aaed-platform .aaed-drawer .site-logo,
body.dark-mode.aaed-platform .aaed-footer .aaed-logo,
body.dark-mode.aaed-platform .aaed-footer .site-logo {
    background: #fff !important;
    border-radius: 10px;
    padding: 6px 10px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.dark-mode.aaed-platform .aaed-cat-card,
body.dark-mode.aaed-platform .aaed-service-card,
body.dark-mode.aaed-platform .aaed-quick-link,
body.dark-mode.aaed-platform .aaed-drawer__panel,
body.dark-mode.aaed-platform .aaed-hero-search,
body.dark-mode.aaed-platform .aaed-empty,
body.dark-mode.aaed-platform .aaed-search-result,
body.dark-mode.aaed-platform .aaed-poll-card,
body.dark-mode.aaed-platform .poll.poll-n,
body.dark-mode.aaed-platform .post-page .post-content,
body.dark-mode.aaed-platform .privacy-content,
body.dark-mode.aaed-platform .contact-details,
body.dark-mode.aaed-platform .contact-form-card,
body.dark-mode.aaed-platform .client-card,
body.dark-mode.aaed-platform .news-card,
body.dark-mode.aaed-platform .album-header {
    background: var(--aaed-surface) !important;
    color: var(--aaed-text);
    border-color: var(--aaed-border) !important;
}

body.dark-mode.aaed-platform .aaed-section--soft,
body.dark-mode.aaed-platform .aaed-page-header {
    background: linear-gradient(180deg, #1A2118 0%, var(--aaed-bg) 100%) !important;
    border-color: var(--aaed-border);
}

body.dark-mode.aaed-platform .aaed-hero {
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(212, 180, 74, 0.12), transparent 55%),
        radial-gradient(ellipse 70% 50% at 0% 100%, rgba(127, 168, 115, 0.14), transparent 50%),
        linear-gradient(165deg, #1A2118 0%, #121612 100%) !important;
    border-bottom-color: var(--aaed-border);
}

body.dark-mode.aaed-platform .aaed-hero__title,
body.dark-mode.aaed-platform .aaed-page-title,
body.dark-mode.aaed-platform .aaed-section__head h2,
body.dark-mode.aaed-platform .aaed-cat-card h3,
body.dark-mode.aaed-platform .aaed-service-card h3,
body.dark-mode.aaed-platform .aaed-service-card h3 a,
body.dark-mode.aaed-platform .aaed-search-result h3,
body.dark-mode.aaed-platform .section-heading,
body.dark-mode.aaed-platform .section-heading h1,
body.dark-mode.aaed-platform .section-heading h2,
body.dark-mode.aaed-platform .section-heading h3,
body.dark-mode.aaed-platform .post-title,
body.dark-mode.aaed-platform .widget-title {
    color: var(--aaed-primary-dark) !important;
}

body.dark-mode.aaed-platform .aaed-hero__subtitle,
body.dark-mode.aaed-platform .aaed-page-desc,
body.dark-mode.aaed-platform .aaed-cat-card p,
body.dark-mode.aaed-platform .aaed-service-card p,
body.dark-mode.aaed-platform .aaed-muted,
body.dark-mode.aaed-platform .aaed-breadcrumb,
body.dark-mode.aaed-platform .news-info,
body.dark-mode.aaed-platform .post-author {
    color: var(--aaed-muted) !important;
}

body.dark-mode.aaed-platform .aaed-hero-search {
    border-color: var(--aaed-border);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

body.dark-mode.aaed-platform .aaed-hero-search input {
    color: var(--aaed-text);
}

body.dark-mode.aaed-platform .aaed-hero-search input::placeholder {
    color: #8A9684;
}

body.dark-mode.aaed-platform .aaed-cat-card__icon {
    background: rgba(127, 168, 115, 0.16);
    color: var(--aaed-gold);
}

body.dark-mode.aaed-platform .aaed-btn--secondary {
    background: transparent;
    color: var(--aaed-primary) !important;
    border-color: var(--aaed-primary);
}

body.dark-mode.aaed-platform .aaed-btn--secondary:hover {
    background: var(--aaed-olive-soft);
}

body.dark-mode.aaed-platform .aaed-hero__mark {
    background: linear-gradient(145deg, rgba(127, 168, 115, 0.16), rgba(212, 180, 74, 0.1)), #1B221A;
    border-color: var(--aaed-border);
}

body.dark-mode.aaed-platform .aaed-drawer__overlay {
    background: rgba(0, 0, 0, 0.62);
}

body.dark-mode.aaed-platform .aaed-drawer__nav a {
    color: var(--aaed-text) !important;
}

body.dark-mode.aaed-platform .aaed-drawer__nav a:hover {
    background: var(--aaed-olive-soft);
    color: var(--aaed-gold) !important;
}

body.dark-mode.aaed-platform .form-control,
body.dark-mode.aaed-platform input,
body.dark-mode.aaed-platform textarea,
body.dark-mode.aaed-platform select {
    background: var(--aaed-olive-soft) !important;
    border-color: var(--aaed-border) !important;
    color: var(--aaed-text) !important;
}

body.dark-mode.aaed-platform .contact-page .contact-form__group label,
body.dark-mode.aaed-platform .contact-details h4,
body.dark-mode.aaed-platform .contact-form-card h4 {
    color: var(--aaed-primary-dark) !important;
}

body.dark-mode.aaed-platform .article-body,
body.dark-mode.aaed-platform .static-page-render,
body.dark-mode.aaed-platform .post-content-body {
    color: var(--aaed-text);
}

body.dark-mode.aaed-platform .aaed-badge,
body.dark-mode.aaed-platform .aaed-service-card__badge,
body.dark-mode.aaed-platform .post-cat {
    background: rgba(212, 180, 74, 0.18) !important;
    color: var(--aaed-gold) !important;
}

body.dark-mode.aaed-platform .latest-news-small .news-card-small,
body.dark-mode.aaed-platform .aaed-sidebar .news-card-small {
    border-color: var(--aaed-border);
}

body.dark-mode.aaed-platform .pagination .page-link {
    background: var(--aaed-surface);
    border-color: var(--aaed-border);
    color: var(--aaed-text);
}

body.dark-mode.aaed-platform .pagination .page-item.active .page-link {
    background: var(--aaed-primary);
    border-color: var(--aaed-primary);
    color: #fff;
}

body.dark-mode.aaed-platform .aaed-footer {
    background: #0E130E;
}

body.dark-mode.aaed-platform .settings-container,
body.dark-mode.aaed-platform .close-overlay {
    display: none !important;
}

/* Settings overlay */
.close-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(31, 42, 28, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease, visibility 200ms ease;
}

.close-overlay.open-over {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.aaed-platform .aaed-poll-card,
body.aaed-platform .poll.poll-n {
    background: #fff;
    border: 1px solid var(--aaed-border);
    border-radius: var(--aaed-radius);
    padding: 16px;
    box-shadow: var(--aaed-shadow-sm);
    height: 100%;
}

body.aaed-platform .aaed-sidebar .widget-title {
    color: var(--aaed-primary-dark);
    font-weight: 700;
}

body.aaed-platform .news-card .news-date {
    opacity: 0.85;
    font-size: 0.8rem;
}

body.aaed-platform .album {
    border-radius: var(--aaed-radius);
    overflow: hidden;
    border: 1px solid var(--aaed-border);
}

body.aaed-platform .settings-container,
body.aaed-platform .close-overlay {
    display: none !important;
}

@media (max-width: 575.98px) {
    .aaed-hero-search {
        flex-direction: column;
    }
    .aaed-hero-search button {
        min-height: 48px;
        width: 100%;
    }
    .aaed-footer__newsletter form {
        flex-direction: column;
    }
    .aaed-footer__newsletter button {
        min-height: 44px;
    }
    .aaed-section .aaed-btn,
    .aaed-cta .aaed-btn,
    .aaed-empty .aaed-btn {
        width: 100%;
    }
}

/* Contact form — platform alignment */
body.aaed-platform .contact-page .contact-form-card,
body.aaed-platform .contact-page .contact-details {
    background: #fff;
    border: 1px solid var(--aaed-border);
    border-radius: var(--aaed-radius-lg);
    padding: 24px;
    box-shadow: var(--aaed-shadow-sm);
}

body.aaed-platform .contact-page .contact-form__group label {
    position: static !important;
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--aaed-primary-dark);
}

body.aaed-platform .contact-page .form-control {
    border: 1px solid var(--aaed-border);
    border-radius: 10px;
    min-height: 44px;
    padding: 10px 14px;
}

body.aaed-platform .contact-page .contact-form__submit,
body.aaed-platform .contact-page button[type="submit"] {
    background: var(--aaed-primary) !important;
    border: 0 !important;
    border-radius: 10px !important;
    min-height: 48px;
    width: 100%;
    font-weight: 700;
    color: #fff !important;
}

body.aaed-platform .contact-page .contact-form__submit:hover {
    background: var(--aaed-primary-hover) !important;
}
