:root {
    /* EI official brand palette */
    --brand-primary: #0F2342;
    --brand-accent: #D61F3C;
    --bg-page: #F4F6F9;
    --bg-card: #FFFFFF;
    --text-heading: #111827;
    --text-muted: #64748B;

    --primary: #0F2342;
    --primary-hover: #0A182E;
    --primary-light: #E8EEF5;
    --accent: #D61F3C;
    --accent-hover: #B81932;
    --surface: #F4F6F9;
    --surface-card: #FFFFFF;
    --text-main: #111827;
    --border: #E2E8F0;
    --border-focus: #0F2342;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --header-h: 56px;
    --tabbar-h: 60px;
    --font-body: 1.02rem;
    --lh-body: 1.78;
    --font-sans: "Noto Sans Devanagari", Inter, "Segoe UI", system-ui, sans-serif;
    --font-display: Mukta, Inter, "Segoe UI", system-ui, sans-serif;
    --font-ui: Inter, "Noto Sans Devanagari", "Segoe UI", system-ui, sans-serif;
    --text-read: #111827;
}

html[lang="en"] {
    --font-sans: Inter, "Noto Sans Devanagari", "Segoe UI", system-ui, sans-serif;
    --font-display: Inter, Mukta, "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--surface);
    color: var(--text-read);
    font-family: var(--font-sans);
    font-size: var(--font-body);
    line-height: var(--lh-body);
    letter-spacing: 0.01em;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.page-title,
.lead-title,
.article-h1,
.section-title,
.card-title,
.footer-brand,
.footer-title,
.logo-box,
.cms-title,
.nav-item {
    font-family: var(--font-display);
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

a {
    overflow-wrap: anywhere;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content {
    min-width: 0;
    overflow-x: clip;
}
.main-content.has-mobile-tabbar {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 0.75rem);
}

/* Horizontal chip/pill rows: scroll without ugly native scrollbar */
.ek-h-scroll {
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 0.15rem;
}
.ek-h-scroll::-webkit-scrollbar {
    height: 4px;
}
.ek-h-scroll::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 999px;
}
.ek-h-scroll::-webkit-scrollbar-track {
    background: transparent;
}

/* Utilities */
.flex-align { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--text-muted); }
.hidden { display: none !important; }
.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;
}

.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

.tap-target {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.media-16x9 {
    aspect-ratio: 16 / 9;
    background: #E2E8F0;
    position: relative;
    overflow: hidden;
}
.media-16x9 img,
.media-16x9 video,
.media-16x9 iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border: 0;
    display: block;
    position: absolute;
    inset: 0;
}

.page-panel {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}
.page-kicker {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}
.page-title {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
    margin-bottom: 0.5rem;
}
.page-intro {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 42rem;
}
.empty-state {
    grid-column: 1 / -1;
    padding: 2.5rem 1.25rem;
    text-align: center;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border);
}
.empty-state strong {
    display: block;
    font-size: 1.1rem;
    color: #64748B;
    margin-bottom: 0.35rem;
}

/* Forms (public) */
.form-group { margin-bottom: 1.1rem; }
.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.form-control {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    background: #fff;
    color: var(--text-main);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 102, 79, 0.15);
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 1rem;
    background: #F1F5F9;
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
}

/* Language strip */
.top-nav-bar {
    background: #0F172A;
    color: #F8FAFC;
    border-bottom: 1px solid #1E293B;
}
.lang-strip {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 36px;
    gap: 0.35rem;
}
.lang-link {
    color: #CBD5E1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    min-height: 44px;
    padding: 0 0.45rem;
    display: inline-flex;
    align-items: center;
}
.lang-link:hover,
.active-lang {
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 var(--accent);
}
.badge-accent {
    background: rgba(224, 90, 43, 0.15);
    color: #C2410C;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

/* Sticky masthead */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 0.5rem 0.75rem;
}
.brand-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.logo-box {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.logo-subtext {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.4px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.icon-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.icon-btn:hover,
.icon-btn[aria-expanded="true"] {
    background: #F1F5F9;
    color: var(--primary);
}

.header-search-form {
    display: none;
    width: 100%;
    flex: 1 1 100%;
    order: 3;
    padding: 0 0 0.5rem;
}
.header-search-form.is-open {
    display: block;
}
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}
.search-input {
    width: 100%;
    min-height: 44px;
    padding: 9px 16px 9px 40px;
    background: #F1F5F9;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
}
.search-input:focus {
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 102, 79, 0.15);
}

.nav-panel {
    display: none;
    flex: 1 1 100%;
    order: 4;
    border-top: 1px solid var(--border);
    background: #fff;
}
.nav-panel.is-open {
    display: block;
}
.nav-links {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0 0.75rem;
}
.nav-item {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    min-height: 44px;
    padding: 0.65rem 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #F1F5F9;
}
.nav-item:hover { color: var(--primary); }
.nav-highlight {
    color: var(--primary);
}

/* Category rail under brand/heading */
.header-category-rail {
    padding: 0.15rem 0 0.65rem;
    border-top: 1px solid #F1F5F9;
    margin: 0;
}

/* Mobile bottom menu (app-like) */
.mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: var(--tabbar-h);
    padding: 0.2rem 0.15rem calc(0.2rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 16px rgb(15 23 42 / 0.06);
}
.tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-height: 48px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.tabbar-item svg {
    width: 1.25rem;
    height: 1.25rem;
}
.tabbar-item.is-active,
.tabbar-item:hover {
    color: var(--primary);
}
.desktop-only-nav {
    display: none;
}

/* Sector rail */
.sector-rail {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0.25rem 0 0.75rem;
    margin: 0 -0.15rem;
}
.sector-rail::-webkit-scrollbar { height: 4px; }
.sector-rail a,
.sector-chip {
    flex: 0 0 auto;
    background: #FFFFFF;
    border: 1px solid var(--border);
    padding: 0.55rem 0.95rem;
    min-height: 44px;
    border-radius: 9999px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.sector-rail a:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.sector-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.sector-pill {
    background: #FFFFFF;
    border: 1px solid var(--border);
    padding: 0.55rem 0.95rem;
    min-height: 44px;
    border-radius: 9999px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
}

/* Home lead / sections */
.home-lead {
    padding: 1.25rem 0 0.5rem;
    border-bottom: 1px solid var(--border);
    background: #FFFFFF;
}
.lead-story {
    display: grid;
    gap: 1rem;
    min-width: 0;
}
.lead-story-media {
    border-radius: var(--radius-md);
    overflow: hidden;
}
.lead-kicker {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.lead-title {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.lead-title a {
    color: var(--text-main);
    text-decoration: none;
}
.lead-title a:hover { color: var(--primary); }
.lead-summary {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}
.lead-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.section-block {
    padding: 1.75rem 0 0.25rem;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}
.view-all-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.view-all-link:hover { text-decoration: underline; }

/* Cards — mobile starts 2-col for news portal feel */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
    min-width: 0;
}
.cards-grid-news {
    gap: 0.7rem 0.65rem;
}
.article-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card-compact .card-content {
    padding: 0.65rem 0.7rem 0.75rem;
}
.article-card-compact .card-title {
    font-size: 0.92rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}
.article-card-compact .card-meta {
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
}
.article-card-compact .card-footer {
    margin-top: auto;
}
.article-card-compact .read-more-link {
    font-size: 0.78rem;
}
@media (hover: hover) {
    .article-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
        border-color: #CBD5E1;
    }
}
.card-thumb-wrapper {
    aspect-ratio: 16 / 9;
    background: #E2E8F0;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}
.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.case-badge { background: var(--accent); }
.card-content {
    padding: 0.85rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}
.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}
.card-title a {
    color: var(--text-main);
    text-decoration: none;
}
.card-title a:hover { color: var(--primary); }
.card-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid #F1F5F9;
    padding-top: 0.75rem;
    font-size: 0.85rem;
}
.read-more-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.opportunity-card {
    padding: 1.15rem;
}

/* Article */
.article-header {
    padding: 1.25rem 0 1.5rem;
}
.article-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}
.article-breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.article-h1 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    overflow-wrap: anywhere;
}
.article-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.article-byline {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
}
.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.share-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.share-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
}
.share-btn .share-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    display: block;
}
.share-btn-icon {
    padding: 0;
    width: 44px;
}
.share-btn .share-label {
    line-height: 1;
}
.share-btn-wa {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}
.share-btn-fb {
    background: #1877F2;
    border-color: #1877F2;
    color: #fff;
}
.share-btn-x {
    background: #111;
    border-color: #111;
    color: #fff;
}
.share-btn-tg {
    background: #229ED9;
    border-color: #229ED9;
    color: #fff;
}
.article-hero-media {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}
.article-body {
    font-family: var(--font-sans);
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-read);
    overflow-wrap: anywhere;
}
.article-body h2,
.article-body h3 {
    font-family: var(--font-display);
}
.article-body p { margin-bottom: 1.15rem; }
.article-body h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0F172A;
    margin: 1.75rem 0 0.85rem;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 0.35rem;
}
.article-sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.article-sidebar-card h4 {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.4rem;
}
.related-item {
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #F1F5F9;
}
.related-item a {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.related-item a:hover { color: var(--primary); }
.cta-box {
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}
.cta-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 0.75rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

/* In-text / callouts */
.in-text-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
    text-underline-offset: 3px;
}
.in-text-link:hover { color: var(--accent); }
.callout-box {
    padding: 1rem 1.15rem;
    border-radius: var(--radius-sm);
    margin: 1.35rem 0;
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
}
.callout-tip {
    border-left-color: var(--primary);
    background: #F0FDF4;
}
.callout-title {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.callout-body {
    font-size: 0.95rem;
    color: #334155;
}

/* Author */
.author-hero {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.author-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* Search toolbar */
.search-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.search-toolbar .search-input {
    padding-left: 1rem;
}
.search-toolbar select {
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    font: inherit;
}
.search-toolbar button {
    min-height: 44px;
    border: none;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 0 1.1rem;
}

/* Opportunities banner */
.opp-banner {
    background: linear-gradient(135deg, #0F2342 0%, #0A182E 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    margin-bottom: 1.75rem;
}
.opp-banner .page-kicker {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.opp-banner .page-intro { color: #CBD5E1; }

/* Footer */
.main-footer {
    background: #0F2342;
    color: #F8FAFC;
    padding: 2.5rem 0 1.75rem;
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}
.footer-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.65rem;
}
.footer-desc {
    color: #94A3B8;
    font-size: 0.9rem;
    line-height: 1.6;
}
.eco-badge {
    background: #1E293B;
    border: 1px solid #334155;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: #CBD5E1;
}
.footer-title {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}
.footer-links a:hover { color: #FFFFFF; }

.hidden-mobile { display: none; }

/* Tablet+ */
@media (min-width: 768px) {
    .container { padding: 0 1.25rem; }
    :root { --header-h: 64px; }

    .hidden-mobile { display: inline; }
    .page-title { font-size: 2rem; }
    .lead-title { font-size: 1.9rem; }
    .article-h1 { font-size: 2.1rem; }
    .section-title { font-size: 1.5rem; }

    .header-container { flex-wrap: nowrap; }
    .header-search-form {
        display: block;
        flex: 1 1 auto;
        max-width: 360px;
        padding: 0;
        order: 0;
        width: auto;
    }
    .header-search-form.is-open { display: block; }
    .search-toggle { display: none; }
    .menu-toggle { display: none; }

    .nav-panel {
        display: block;
        border-top: none;
        flex: 0 0 auto;
        order: 0;
        width: auto;
    }
    .nav-links {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 0;
    }
    .nav-item {
        border-bottom: none;
        min-height: 44px;
        padding: 0.35rem 0;
        font-size: 0.9rem;
    }

    .header-container {
        gap: 1.25rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.1rem;
    }
    .article-card-compact .card-title { font-size: 1rem; }

    .lead-story {
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
        gap: 1.5rem;
    }

    .page-panel { padding: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .search-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .search-toolbar .search-input { flex: 1; min-width: 220px; }
}

/* Laptop+ */
@media (min-width: 768px) {
    .mobile-tabbar { display: none; }
    .main-content.has-mobile-tabbar { padding-bottom: 0; }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
    .article-layout {
        grid-template-columns: minmax(0, 2.6fr) minmax(240px, 1fr);
        gap: 2.5rem;
    }
    .lead-title { font-size: 2.15rem; }
    .article-h1 { font-size: 2.25rem; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .header-search-form { max-width: 420px; }
    .nav-item { font-size: 0.95rem; }
}

/* Desktop */
@media (min-width: 1280px) {
    .container { max-width: 1200px; }
    .home-lead { padding-top: 1.75rem; }
}

/* Content media: video, gallery, slides */
.content-video,
.content-video-native {
    margin: 1.35rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0F172A;
}
.content-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    aspect-ratio: 16 / 9;
    display: block;
}
.content-video-native video {
    width: 100%;
    display: block;
    max-height: 70vh;
    background: #0F172A;
}
.content-caption {
    display: block;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 0.55rem 0.75rem;
    background: #F8FAFC;
}
.content-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 1.35rem 0;
}
.content-gallery-item {
    margin: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #E2E8F0;
}
.content-gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}
.content-gallery-item a:hover img {
    transform: scale(1.03);
}
.content-slides {
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
}
.content-slides-track {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0F172A;
}
.content-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.content-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.content-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.content-slide figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.65rem 0.9rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.75));
    color: #fff;
    font-size: 0.9rem;
}
.content-slides-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    background: #F8FAFC;
    border-top: 1px solid var(--border);
}
.content-slides-btn {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-main);
}
.content-slides-btn:hover { border-color: var(--primary); color: var(--primary); }
.content-slides-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Reading comfort */
.article-header {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}
.article-reading-progress {
    position: fixed;
    top: var(--header-h, 56px);
    left: 0;
    height: 3px;
    width: 0;
    z-index: 45;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    pointer-events: none;
}
.faq-item {
    margin: 1rem 0;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #F8FAFC;
}
.faq-question {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}
.faq-answer {
    font-size: 0.98rem;
    color: #334155;
    line-height: 1.65;
}
.article-body {
    max-width: 42rem;
}
.featured-video-wrap {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

@media (min-width: 640px) {
    .content-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .article-body {
        max-width: none;
        font-size: 1.08rem;
        line-height: 1.8;
    }
}
