:root {
    /* Premium Color Palette */
    --color-primary: #002244;
    /* Deep Royal Blue */
    --color-primary-light: #004080;
    --color-secondary: #DAA520;
    /* Goldenrod */
    --color-secondary-light: #FFD700;
    --color-accent: #800000;
    /* Maroon */
    --color-text: #2c3e50;
    --color-text-light: #596275;
    --color-bg: #FFFFFF;
    --color-bg-light: #F8F9FA;
    --color-footer-bg: #0f1c2e;
    --color-white: #FFFFFF;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #002244 0%, #004080 100%);
    --gradient-gold: linear-gradient(135deg, #DAA520 0%, #F4C430 100%);

    /* Typography */
    --font-heading: 'Pyidaungsu', 'Inter', sans-serif;
    --font-body: 'Pyidaungsu', 'Roboto', sans-serif;

    /* Spacing */
    --container-width: 1280px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 6px rgba(0, 34, 68, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 34, 68, 0.4);
}

.btn-secondary {
    background: var(--gradient-gold);
    color: var(--color-primary);
    box-shadow: 0 4px 6px rgba(218, 165, 32, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(218, 165, 32, 0.4);
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* needed so mobile dropdown positions relative to the header */
    isolation: isolate;
}

.top-bar {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    text-align: center;
}

.main-header {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 1.5rem;
    row-gap: 0.4rem;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.logo-area img {
    height: 50px;
    background: transparent;
    mix-blend-mode: multiply;
    flex-shrink: 0;
}

.logo-text {
    min-width: 0;
}

.logo-text h1 {
    font-size: 1.25rem;
    margin: 0;
    white-space: nowrap;
    color: var(--color-primary);
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* — Hamburger Button — */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background var(--transition-fast);
    z-index: 1001;
}

.nav-toggle:hover {
    background: rgba(0, 34, 68, 0.07);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.35s ease;
    transform-origin: center;
}

/* X animation when open */
.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* — Site Nav — */
.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: flex;
    font-weight: 600;
    color: var(--color-primary);
    position: relative;
    padding: 0.5rem 0;
}

.site-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width var(--transition-normal);
}

.site-nav a:hover::before {
    width: 100%;
}

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    height: 80vh;
    min-height: 600px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--color-white);
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1.2s ease;
    z-index: 0;
}

.hero-slide--active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0, 34, 68, 0.9) 0%, rgba(0, 34, 68, 0.7) 50%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-left: var(--spacing-sm);
}

.hero-slide h1 {
    font-size: 4rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-slide--active h1 {
    animation: fadeInUp 0.8s ease-out;
}

.hero-slide p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-slide--active p {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-slide .btn {
    opacity: 0;
}

.hero-slide--active .btn {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    opacity: 1;
}

/* Navigation Arrows */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav--prev {
    left: 2rem;
}

.hero-nav--next {
    right: 2rem;
}

/* Dot Indicators */
.hero-dots {
    position: absolute;
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0;
    position: relative;
}

.hero-dot:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.3);
}

.hero-dot--active {
    border-color: var(--color-secondary);
    background: var(--color-secondary);
    transform: scale(1.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Minister Message */
.minister-card {
    display: flex;
    gap: 4rem;
    align-items: center;
    background: var(--color-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.minister-photo {
    flex: 0 0 160px;
    width: 160px;
    position: relative;
}

.minister-photo img {
    border-radius: 12px;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.minister-info {
    flex: 2;
}

.minister-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.minister-quote {
    font-size: 1.1rem;
    color: var(--color-text);
    font-style: italic;
    border-left: 4px solid var(--color-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--color-white);
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* ===== Featured News Section (NASA-Style) ===== */
.featured-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.featured-news-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0;
}

.recently-published-link {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recently-published-link:hover {
    color: var(--color-primary);
}

/* Featured Grid: 3 columns — large (50%), medium (25%), stack of 2 small (25%) */
.featured-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

/* Card base */
.featured-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    background: #111;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.featured-card:hover img {
    transform: scale(1.05);
}

.featured-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.featured-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.05) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
    z-index: 2;
}

.featured-card__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 0.5rem;
}

.featured-card__meta {
    margin-bottom: 0.35rem;
}

.featured-card__date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.featured-card__title {
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* Large card */
.featured-card--large {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    min-height: 420px;
}

.featured-card--large .featured-card__title {
    font-size: 1.4rem;
}

/* Medium card */
.featured-card--medium {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    min-height: 420px;
}

.featured-card--medium .featured-card__title {
    font-size: 1.1rem;
}

/* Small stacked cards */
.featured-card-stack {
    grid-row: 1 / 2;
    grid-column: 3 / 4;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.featured-card--small {
    flex: 1;
    min-height: 200px;
}

.featured-card--small .featured-card__title {
    font-size: 0.95rem;
}

.featured-card--small .featured-card__overlay {
    padding: 1rem;
}

/* Bottom Row Horizontal Items */
.news-bottom-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.news-compact-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.5rem 0;
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition-fast);
}

.news-compact-item:hover {
    transform: translateY(-2px);
}

.news-compact-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.news-compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.news-compact-thumb__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
    border-radius: 50%;
}

.news-compact-info {
    flex: 1;
    min-width: 0;
}

.news-compact-date {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-compact-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0.15rem 0 0.3rem;
    line-height: 1.3;
}

.news-compact-badge {
    display: inline-block;
    font-size: 0.65rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Department Topics Section ===== */
.dept-topics-section {
    position: relative;
    background: var(--color-primary);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
    padding: 6rem 0;
    overflow: hidden;
}

.dept-topics-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 34, 68, 0.97) 0%, rgba(0, 34, 68, 0.85) 50%, rgba(0, 64, 128, 0.9) 100%);
    z-index: 0;
}

.dept-topics-container {
    position: relative;
    z-index: 1;
}

.dept-topics-section .section-title {
    color: var(--color-white);
    margin-bottom: 3.5rem;
}

.dept-topics-section .section-title::after {
    background: var(--gradient-gold);
}

.dept-topics-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.75rem;
}

.dept-topics-heading {
    color: var(--color-white) !important;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.dept-topics-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    font-style: italic;
}

.dept-topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.dept-topic-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    animation: deptCardFadeIn 0.5s ease-out backwards;
    animation-delay: calc(var(--card-delay, 0) * 0.1s);
}

.dept-topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: left;
}

.dept-topic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dept-topic-card:hover::before {
    transform: scaleX(1);
}

.dept-topic-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    color: var(--color-secondary);
}

.dept-topic-card__icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-secondary);
    transition: transform 0.3s ease;
}

.dept-topic-card:hover .dept-topic-card__icon svg {
    transform: scale(1.1);
}

.dept-topic-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.dept-topic-card__desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

@keyframes deptCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive: Featured News */
@media (max-width: 1024px) {
    .featured-news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .featured-card--large {
        grid-column: 1 / 3;
    }

    .featured-card--medium {
        grid-column: 1 / 2;
        min-height: 300px;
    }

    .featured-card-stack {
        grid-column: 2 / 3;
    }

    .news-bottom-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .dept-topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-news-grid {
        grid-template-columns: 1fr;
    }

    .featured-card--large,
    .featured-card--medium {
        grid-column: 1;
        min-height: 280px;
    }

    .featured-card-stack {
        grid-column: 1;
    }

    .featured-news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .news-bottom-row {
        grid-template-columns: 1fr;
    }

    .dept-topics-section {
        padding: 4rem 0;
    }

    .dept-topics-heading {
        font-size: 1.75rem;
    }

    .dept-topics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dept-topic-card {
        padding: 2rem 1.25rem;
    }
}

/* Footer */
footer {
    background-color: var(--color-footer-bg);
    color: #a0aec0;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-slideshow {
        height: auto;
        min-height: 500px;
        clip-path: none;
    }

    .hero-slide {
        position: relative;
        display: none;
    }

    .hero-slide--active {
        display: flex;
        padding: 4rem 0;
    }

    .hero-slide h1 {
        font-size: 2.5rem;
    }

    .hero-nav {
        width: 36px;
        height: 36px;
    }

    .hero-nav--prev {
        left: 1rem;
    }

    .hero-nav--next {
        right: 1rem;
    }

    .hero-dots {
        bottom: 1.5rem;
    }

    .minister-card {
        flex-direction: column;
        padding: 1.5rem;
        gap: 2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        padding: 1rem 0;
        z-index: 999;
        border-top: 2px solid var(--color-secondary);
    }

    .site-nav.is-open {
        display: block;
        animation: slideDown 0.25s ease;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0 var(--spacing-sm);
    }

    .site-nav ul li {
        border-bottom: 1px solid rgba(0, 34, 68, 0.07);
    }

    .site-nav ul li:last-child {
        border-bottom: none;
    }

    .site-nav a {
        display: block;
        padding: 0.85rem 0.5rem;
        font-size: 1rem;
    }

    .site-nav a::before {
        display: none;
    }

    /* Simplified for now */
}
/* ===== Related News Slider ===== */
.news-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--color-secondary) transparent;
}
.news-slider::-webkit-scrollbar {
    height: 6px;
}
.news-slider::-webkit-scrollbar-track {
    background: transparent;
}
.news-slider::-webkit-scrollbar-thumb {
    background-color: var(--color-secondary);
    border-radius: 20px;
}

.news-slide-card {
    flex: 0 0 280px;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
    transition: var(--transition-normal);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.news-slide-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-slide-thumb {
    height: 160px;
    background: linear-gradient(135deg, #dce3ec 0%, #b8c5d6 100%);
    overflow: hidden;
}

.news-slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-slide-card:hover .news-slide-thumb img {
    transform: scale(1.05);
}

.news-slide-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8fa3bb;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-slide-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-slide-date {
    font-size: 0.75rem;
    color: var(--color-secondary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.news-slide-title {
    font-size: 1.05rem;
    margin: 0;
    color: var(--color-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Lightbox Gallery ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    object-fit: contain;
    animation: zoom 0.3s;
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
}
#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-size: 1.1rem;
}
@keyframes zoom {
    from {transform: scale(0.9)} 
    to {transform: scale(1)}
}

/* ═══════════════════════════════════════════════
   Auth Nav — Login Button & User Dropdown
   ═══════════════════════════════════════════════ */
.nav-auth {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    flex-shrink: 0;
}
.site-nav .nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    background: var(--color-secondary);
    color: var(--color-primary);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(218, 165, 32, 0.2);
}
.site-nav .nav-login-btn:hover { 
    opacity: 0.95; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 14px rgba(218, 165, 32, 0.35); 
}
.site-nav .nav-login-btn::before {
    display: none; /* Hide the underline animation from .site-nav a */
}

/* User menu */
.nav-user-menu { position: relative; }
.nav-user-btn {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
    outline: none;
}
.nav-user-btn:hover { transform: translateY(-2px); }
.nav-user-avatar {
    width: 38px; height: 38px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.nav-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    min-width: 220px;
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 0.5rem;
}
.nav-user-dropdown.open { display: block; animation: dropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes dropIn { from { opacity:0; transform:translateY(-8px) scale(0.95); } to { opacity:1; transform:translateY(0) scale(1); } }
.nav-dropdown-header {
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,34,68,0.05), rgba(0,34,68,0.01));
    margin-bottom: 0.5rem;
}
.nav-dropdown-header strong {
    display: block;
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 700;
}
.nav-dropdown-header span {
    display: block;
    color: #555;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}
.nav-dropdown-item svg {
    color: #888;
    transition: color 0.2s;
}
.nav-dropdown-item:hover { 
    background: #f4f6fb; 
    color: var(--color-primary);
}
.nav-dropdown-item:hover svg {
    color: var(--color-primary);
}
.nav-logout { 
    margin-top: 0.2rem;
    color: #c53030; 
}
.nav-logout svg {
    color: #e53e3e;
}
.nav-logout:hover { 
    background: #fff5f5; 
    color: #c53030;
}
.nav-logout:hover svg {
    color: #c53030;
}

/* ═══════════════════════════════════════════════
   Site-wide Flash Messages
   ═══════════════════════════════════════════════ */
.site-messages {
    position: fixed;
    top: 80px;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 360px;
}
.site-message {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    animation: slideInRight 0.3s ease;
}
@keyframes slideInRight {
    from { opacity:0; transform:translateX(30px); }
    to   { opacity:1; transform:translateX(0); }
}
.site-message--success { background:#f0fff4; border:1px solid #c6f6d5; color:#276749; }
.site-message--error   { background:#fff5f5; border:1px solid #fed7d7; color:#c53030; }
.site-message--warning { background:#fffbeb; border:1px solid #fbd38d; color:#92400e; }
.site-message--info    { background:#ebf8ff; border:1px solid #bee3f8; color:#2b6cb0; }

/* ================================================================
   Contact Page
   ================================================================ */

/* Hero */
.contact-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #004080 100%);
    color: #fff;
    padding: 2.25rem 0 2rem;
    text-align: center;
}
.contact-hero h1 {
    font-size: 1.5rem !important;
    font-weight: 700;
    margin: 0 0 0.35rem !important;
    color: #fff !important;
    line-height: 1.3;
}
.contact-hero p {
    font-size: 0.875rem;
    opacity: 0.78;
    margin: 0;
}

/* Body wrapper */
.contact-body {
    padding: 2.5rem 0 3.5rem;
    background: #f4f6f9;
}

/* Two-column grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* ── Section title ── */
.contact-section-title {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-primary) !important;
    margin: 0 0 1rem !important;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-secondary);
    display: block;
}

/* ── Info cards ── */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.contact-info-card {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    background: #fff;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    border: 1px solid #e8ecf0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.contact-info-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-card h3 {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #8a94a6 !important;
    margin: 0 0 0.15rem !important;
    line-height: 1.3;
}

.contact-info-card p,
.contact-info-card a {
    font-size: 0.85rem;
    color: var(--color-text);
    margin: 0;
    text-decoration: none;
    line-height: 1.5;
}
.contact-info-card a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Map */
.contact-map {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.contact-map iframe { display: block; }

/* ── Form box ── */
.contact-form-box {
    background: #fff;
    border-radius: 10px;
    padding: 1.6rem;
    border: 1px solid #e8ecf0;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}

/* Field row */
.cf-field {
    margin-bottom: 0.9rem;
}
.cf-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.3rem;
    letter-spacing: 0.1px;
}
.cf-field .required { color: #e53e3e; }

/* Input/Select/Textarea */
.cf-input {
    display: block;
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text);
    background: #fafbfc;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.cf-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,34,68,0.09);
    background: #fff;
}
.cf-input::placeholder { color: #b0b8c4; }

/* Select arrow */
.cf-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238a94a6' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
    cursor: pointer;
}

/* Textarea */
.cf-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.55;
}

/* Error */
.cf-error {
    color: #e53e3e;
    font-size: 0.75rem;
    margin: 0.2rem 0 0;
}
.contact-form-error {
    background: #fff5f5;
    border-left: 3px solid #fc8181;
    padding: 0.6rem 0.85rem;
    margin-bottom: 0.9rem;
    font-size: 0.82rem;
    color: #c53030;
    border-radius: 4px;
}

/* Submit */
.cf-submit {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    margin-top: 0.4rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.3px;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 3px 8px rgba(0,34,68,0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}
.cf-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(0,34,68,0.35);
}

.recaptcha-notice {
    margin-top: 0.75rem;
    font-size: 0.72rem;
    color: #888;
    line-height: 1.5;
}
.recaptcha-notice a {
    color: #888;
    text-decoration: underline;
}

/* ── Login prompt & success ── */
.contact-login-prompt,
.contact-success {
    background: #fff;
    border-radius: 10px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid #e8ecf0;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}
.contact-login-prompt svg,
.contact-success svg {
    display: block;
    margin: 0 auto 0.75rem;
    color: var(--color-primary);
}
.contact-success svg { color: #38a169; }

.contact-login-prompt h3,
.contact-success h3 {
    font-size: 0.95rem !important;
    font-weight: 700;
    color: var(--color-primary) !important;
    margin: 0 0 0.35rem !important;
}
.contact-login-prompt p,
.contact-success p {
    color: #8a94a6;
    font-size: 0.82rem;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-form-box { padding: 1.2rem; }
    .contact-hero h1 { font-size: 1.2rem !important; }
}
