/* Explain: App-specific component classes (add as needed) */
/* ============ Header ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
}

.topbar {
    background: var(--primary-color);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    font-family: var(--font-body);
}

.lang-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #10233f;
}

.mainbar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--secondary-color);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.brand-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.brand-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.main-nav {
    display: none;
    align-items: center;
    gap: 0.15rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.72rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    background: transparent;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--surface-alt);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 100%;
    height: 10px;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 4px);
    inset-inline-start: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s;
    z-index: 70;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel,
.nav-dropdown.open .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.72rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.2s;
}

.dropdown-link:hover {
    background: var(--surface-alt);
    color: var(--primary-color);
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
}

.mobile-menu {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.mobile-menu a {
    display: block;
    padding: 0.7rem 0.6rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--surface-alt);
}

.mobile-menu a:hover {
    color: var(--primary-color);
    background: var(--surface-alt);
}

@media (min-width: 1024px) {
    .main-nav { display: flex; }
    .menu-toggle { display: none; }
    .brand-title { font-size: 1.12rem; }
}

/* ============ Buttons ============ */
.btn-gold,
.btn-navy,
.btn-outline,
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.15rem;
    border-radius: 10px;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.25s;
    text-align: center;
}

.btn-lg { padding: 0.85rem 1.5rem; font-size: 0.98rem; }
.btn-gold { background: var(--secondary-color); color: #10233f; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-navy { background: var(--primary-color); color: #fff; }
.btn-navy:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); }

:where(.btn-gold, .btn-navy, .btn-outline, .btn-outline-light):disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============ Section headings ============ */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.title-underline::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: var(--secondary-color);
    margin-top: 0.65rem;
}

/* ============ Cards ============ */
.card-base {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.card-hover { transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 162, 39, 0.5);
}

.card-body { padding: 1.25rem; }

.card-media { aspect-ratio: 16 / 10; background: var(--surface-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.journal-cover { aspect-ratio: 4 / 5; background: var(--surface-alt); }
.journal-cover img { width: 100%; height: 100%; object-fit: cover; }

.book-cover { aspect-ratio: 3 / 4; background: var(--surface-alt); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }

.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    font-size: 1.3rem;
    background: var(--surface-alt);
    color: var(--primary-color);
}

.icon-badge-gold {
    background: rgba(201, 162, 39, 0.16);
    color: var(--gold-dark);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--surface-alt);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.badge-gold {
    background: rgba(201, 162, 39, 0.16);
    color: var(--gold-dark);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.link-arrow:hover { color: var(--secondary-color); }

/* ============ Hero ============ */
.hero {
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, #0b2545 0%, #14325c 58%, #1b4272 100%);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -160px;
    inset-inline-end: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.28), transparent 68%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 162, 39, 0.18);
    border: 1px solid rgba(201, 162, 39, 0.45);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
}

.hero-title {
    color: #fff;
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    font-weight: 800;
    line-height: 1.25;
    margin-top: 1.1rem;
}

.hero-text {
    color: #c9d6ea;
    font-size: 1.04rem;
    margin-top: 1rem;
    max-width: 58ch;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.6rem;
    margin-top: 1.6rem;
    color: #e6edf8;
    font-size: 0.9rem;
}

.hero-points li { display: flex; align-items: center; gap: 0.5rem; }
.hero-points i { color: var(--secondary-color); }

.hero-visual { position: relative; }
.hero-img { width: 100%; border-radius: 16px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35); }

.hero-card {
    position: absolute;
    bottom: -1.1rem;
    inset-inline-start: -1.1rem;
    background: #fff;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.95rem 1.1rem;
    box-shadow: var(--shadow-md);
    max-width: 240px;
}

@media (max-width: 1023px) {
    .hero-card { position: static; inset-inline-start: auto; margin-top: 1rem; max-width: none; }
}

/* ============ Page hero ============ */
.page-hero {
    color: #fff;
    background: linear-gradient(135deg, #0b2545 0%, #14325c 70%, #1b4272 100%);
}

.page-title {
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 2.55rem);
    font-weight: 800;
}

.page-sub {
    color: #c9d6ea;
    max-width: 62ch;
    margin-top: 0.7rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    color: #9fb3d1;
    margin-bottom: 1rem;
}

.breadcrumb a { color: var(--gold-light); font-weight: 600; }

/* ============ Stats / facts ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.1rem 0.75rem;
    text-align: center;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label { font-size: 0.8rem; color: var(--text-muted); }

.facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.fact-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
}

.fact-label { display: block; font-size: 0.75rem; color: var(--text-muted); }
.fact-value { font-weight: 700; color: var(--primary-color); font-size: 0.92rem; }

@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr; }
    .facts-grid { grid-template-columns: 1fr; }
}

/* ============ Steps / timeline ============ */
.step-item {
    position: relative;
    padding-inline-start: 3.4rem;
}

.step-num {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-color);
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-weight: 800;
}

/* ============ Forms ============ */
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.form-input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.form-status {
    margin-top: 0.9rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-status-ok { background: rgba(22, 163, 74, 0.1); color: #15803d; }
.form-status-err { background: rgba(220, 38, 38, 0.08); color: #b91c1c; }

/* ============ Policy accordion ============ */
.policy-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.policy-item > summary {
    cursor: pointer;
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    list-style: none;
}

.policy-item > summary::-webkit-details-marker { display: none; }
.policy-item[open] > summary { background: var(--surface-color); }
.policy-item summary .chev { transition: transform 0.25s; color: var(--secondary-color); }
.policy-item[open] summary .chev { transform: rotate(180deg); }
.policy-body { padding: 0 1.15rem 1.15rem; color: var(--text-muted); font-size: 0.94rem; }

/* ============ Filter chips ============ */
.filter-chip {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.83rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.filter-chip:hover { border-color: var(--secondary-color); }
.filter-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ============ Footer ============ */
.footer { background: var(--primary-color); color: #cfd8e8; }
.footer a { color: #cfd8e8; transition: color 0.2s; }
.footer a:hover { color: var(--gold-light); }
.footer-heading {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.9rem;
    font-size: 1rem;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}
.footer-social a:hover { background: var(--secondary-color); color: #10233f; }