/*
 * VIGYANMEV JAYATE - Custom Design System
 * Inspired by Department of Science & Technology (DST) Gov of India Portal
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #122b5b;       /* Deep Navy Blue */
    --primary-light: #1e448a;
    --accent-color: #e15a27;        /* Indian Saffron */
    --accent-gold: #d4af37;         /* Gold details */
    --bg-light: #f7f9fb;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* Base resets & typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Government Top Bar --- */
.gov-top-bar {
    background: linear-gradient(90deg, #ff9933 0%, #ffffff 50%, #138808 100%);
    height: 4px;
    width: 100%;
}

.top-bar-links {
    background-color: #0f1e3d;
    color: var(--white);
    font-size: 0.75rem;
    padding: 6px 0;
}

.top-bar-links .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links a {
    color: #cbd5e1;
    margin-right: 15px;
}

.top-bar-links a:hover {
    color: var(--white);
}

.top-bar-right-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-switcher {
    display: flex;
    align-items: center;
}

.mobile-only-lang {
    display: none !important;
}

.accessibility-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-acc {
    background: none;
    border: 1px solid #475569;
    color: var(--white);
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.7rem;
}

.btn-acc:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* --- Header Section --- */
.main-header {
    background: linear-gradient(to bottom, #ffffff 0%, #fcfdfe 100%);
    padding: 22px 0;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(18, 43, 91, 0.03);
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-logo-img,
.header-emblem-img {
    height: 92px;
    width: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
    padding: 3px;
    background-color: var(--white);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.header-logo-img:hover,
.header-emblem-img:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    outline-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(225, 90, 39, 0.2);
}

.emblem-img {
    height: 75px;
    width: auto;
}

.logo-text-block h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.1;
    background: linear-gradient(135deg, #122b5b 0%, #1e4894 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-bottom: 5px;
    display: inline-block;
}

.logo-text-block .sub-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 2px;
    letter-spacing: 0.1px;
    line-height: 1.3;
}

.logo-text-block .ministry-text {
    font-size: 0.74rem;
    font-weight: 600;
    color: #475569; /* Elegant Slate Blue-Gray */
    text-transform: uppercase;
    margin-top: 8px;
    letter-spacing: 0.8px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    background-color: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
    border-left: 3px solid var(--accent-color);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.prgi-seal {
    border-left: 2px solid var(--border-color);
    padding-left: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    max-width: 200px;
}

/* --- Primary Navigation (Mega Menu style) --- */
.main-navbar {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(15, 30, 61, 0.12);
    border-bottom: 3px solid var(--accent-gold); /* Royal gold bottom border */
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 18px 14px;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 3px;
    background-color: var(--accent-gold);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: center;
}

.dropdown-caret {
    font-size: 0.72rem;
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.nav-item:hover .dropdown-caret {
    transform: rotate(180deg);
    color: var(--accent-gold);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-item:hover > .nav-link::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active,
.nav-item:hover > .nav-link {
    background-color: rgba(255, 255, 255, 0.05); /* Soft transparent background */
    color: var(--accent-gold) !important;
}

/* Dropdown styling */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 290px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 6px 6px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    border-top: 3px solid var(--accent-color);
    z-index: 999;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item a {
    display: block;
    padding: 14px 22px;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
    border-left: 0 solid var(--accent-gold);
    transition: var(--transition);
}

.dropdown-item a:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
    padding-left: 28px;
    border-left: 4px solid var(--accent-gold);
}

/* --- News Marquee / Announcement Banner --- */
.news-marquee-section {
    background-color: #e2e8f0;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.marquee-container {
    display: flex;
    align-items: center;
}

.marquee-label {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    margin-right: 15px;
    box-shadow: var(--shadow-sm);
}

.marquee-content {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.marquee-text a {
    color: var(--primary-color);
    margin-right: 40px;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- Slide Banners / Hero Section --- */
.hero-slider {
    position: relative;
    height: 420px;
    background-color: #0b132b;
    overflow: hidden;
}

.slide-item {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15,30,61,0.9) 0%, rgba(15,30,61,0.3) 100%);
}

.slide-caption {
    position: relative;
    z-index: 5;
    max-width: 650px;
    color: var(--white);
    padding-left: 60px;
}

.slide-tag {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 15px;
}

.slide-caption h2 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.2;
}

.slide-caption p {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

/* --- Dashboard Section (News & Announcements Cards) --- */
.dashboard-grid-section {
    padding: 50px 0;
}

.dashboard-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.dashboard-title h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.dashboard-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Left Grid: News & Articles Cards */
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-card {
    background-color: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card-img {
    height: 180px;
    background-color: #e2e8f0;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.news-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-card-body p {
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more-link {
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Right Grid Sidebar: Notice Board & Quick Links */
.sidebar-panel {
    background-color: var(--white);
    border-radius: 6px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: fit-content;
}

.panel-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
}

.notice-list {
    list-style: none;
}

.notice-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.notice-item a:hover {
    color: var(--accent-color);
}

.notice-date {
    font-size: 0.7rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-top: 4px;
}

/* --- Dynamic Directory Page Styles --- */
.page-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

.page-banner h1 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 0.8rem;
    color: #cbd5e1;
}

.breadcrumb a {
    color: #94a3b8;
}

.directory-section {
    padding: 50px 0;
}

/* Directory Members Table */
.data-table-wrapper {
    background-color: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
}

.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-dark);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

.member-badge {
    background-color: #fef3c7;
    color: #d97706;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

/* --- Dynamic News/Article Detail Page --- */
.article-detail-section {
    padding: 50px 0;
}

.article-container {
    background-color: var(--white);
    border-radius: 6px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.article-header h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-meta span strong {
    color: var(--primary-color);
}

.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
}

.article-body p {
    margin-bottom: 20px;
}

/* --- Online Payments Form --- */
.payment-card {
    background-color: var(--white);
    border-radius: 6px;
    padding: 35px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    max-width: 550px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(18, 43, 91, 0.15);
}

/* --- Footer Section --- */
.main-footer {
    background-color: #0f1e3d;
    color: #cbd5e1;
    padding: 60px 0 20px;
    font-size: 0.85rem;
    border-top: 5px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #94a3b8;
}

.footer-links li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
}

/* ==========================================================================
   Custom Side-by-Side Slider & What's New Section (Department of Science & Tech)
   ========================================================================== */
.custom-hero-banner {
    background-image: linear-gradient(rgba(6, 11, 24, 0.4), rgba(6, 11, 24, 0.45)), url('/images/hero_bg.png');
    background-size: cover;
    background-position: center;
    padding: 35px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid var(--accent-color);
}

.hero-split-container {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* Left Slider Panel */
.hero-left-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-color: #0b132b;
    display: flex;
    flex-direction: column;
    height: 440px;
}

.slider-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    flex-grow: 1;
    overflow: hidden;
}

.slides-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.slide-content-wrapper {
    position: relative;
    z-index: 10;
    padding: 40px 60px;
    color: var(--white);
    max-width: 85%;
}

.slide-label {
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.slide-heading {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.25;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.slide-description {
    font-size: 0.95rem;
    color: #e2e8f0;
    margin-bottom: 25px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

/* Meta Data Box: Date & Location */
.slide-meta-box {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-item {
    background: rgba(13, 27, 62, 0.75);
    border: 1px solid rgba(0, 242, 254, 0.45);
    border-radius: 6px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.meta-icon {
    font-size: 1.2rem;
}

.meta-info {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.65rem;
    font-weight: bold;
    color: #00f2fe;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.meta-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
}

.btn-slide-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #c2410c 100%);
    color: var(--white) !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 22px;
    border-radius: 4px;
    display: inline-block;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 10px rgba(225, 90, 39, 0.3);
}

.btn-slide-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(225, 90, 39, 0.5);
    color: var(--white) !important;
}

/* Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 20;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(225, 90, 39, 0.4);
}

.arrow-prev {
    left: 20px;
}

.arrow-next {
    right: 20px;
}

/* Controls Footer */
.slider-controls-footer {
    position: absolute;
    bottom: 20px;
    left: 60px;
    right: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    width: 28px;
    border-radius: 5px;
    background-color: var(--white);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.btn-slider-pause {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
    transition: var(--transition);
}

.btn-slider-pause:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

/* Right What's New Panel */
.hero-right-whatsnew {
    background: rgba(13, 27, 62, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    height: 440px;
}

.whatsnew-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsnew-header h3 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    border: none;
    padding: 0;
}

.whatsnew-controls {
    display: flex;
    align-items: center;
}

.whatsnew-ctrl-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition);
}

.whatsnew-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.whatsnew-scroll-container {
    flex-grow: 1;
    overflow-y: hidden;
    padding: 5px 20px;
    position: relative;
}

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

.whatsnew-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.whatsnew-item:last-child {
    border-bottom: none;
}

.whatsnew-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.whatsnew-content {
    flex-grow: 1;
}

.whatsnew-link {
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    transition: var(--transition);
    display: inline;
}

.whatsnew-link:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.whatsnew-text {
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Blinking highlighted new tag */
.highlight-new-tag {
    background-color: #ef4444;
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    animation: blinker 1.5s linear infinite;
    vertical-align: middle;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* High Contrast Mode adaptations */
body.contrast-mode .custom-hero-banner {
    background-color: #000000 !important;
    border-bottom-color: #ffffff !important;
}
body.contrast-mode .hero-right-whatsnew {
    background: #000000 !important;
    border-color: #ffffff !important;
}
body.contrast-mode .meta-item {
    background: #000000 !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
}
body.contrast-mode .meta-label {
    color: #ffffff !important;
}
body.contrast-mode .btn-slide-primary {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
}
body.contrast-mode .slider-dots .dot.active {
    background-color: #ffffff !important;
}

/* Responsive banner */
@media (max-width: 991px) {
    .hero-split-container {
        grid-template-columns: 1fr;
    }
    .hero-left-slider, .hero-right-whatsnew {
        height: auto;
        min-height: 380px;
    }
    .slide-content-wrapper {
        padding: 30px 40px;
        max-width: 90%;
    }
    .slider-controls-footer {
        left: 40px;
        right: 40px;
    }
}

@media (max-width: 576px) {
    .slide-heading {
        font-size: 1.6rem;
    }
    .slide-description {
        font-size: 0.85rem;
    }
    .slide-content-wrapper {
        padding: 20px 25px;
        max-width: 100%;
    }
    .slider-controls-footer {
        left: 25px;
        right: 25px;
    }
    .slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    .arrow-prev { left: 10px; }
    .arrow-next { right: 10px; }
}

/* ========================================================
   HAMBURGER MENU BUTTON (hidden on desktop)
   ======================================================== */
.nav-container {
    position: relative;
    display: flex;
    align-items: center;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 1100;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

/* Animated X when open */
.hamburger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================================
   TABLET BREAKPOINT (≤ 1024px)
   ======================================================== */
@media (max-width: 1024px) {
    /* Header */
    .logo-text-block h1 { font-size: 1.5rem; }
    .header-grid { gap: 10px; }

    /* Nav */
    .nav-link { padding: 14px 12px; font-size: 0.82rem; }

    /* Dashboard Grid */
    .dashboard-grid { grid-template-columns: 1fr; }

    /* Article grid */
    .news-grid,
    .news-cards-grid { grid-template-columns: repeat(2, 1fr); }

    /* Footer */
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* ========================================================
   MOBILE BREAKPOINT (≤ 900px)
   ======================================================== */
@media (max-width: 900px) {

    /* --- Top bar: hide accessibility tools on very small screens --- */
    .top-bar-links .accessibility-tools { display: none; }
    .top-bar-links .container { justify-content: space-between; }
    .top-bar-links .skip-link { display: none; }
    .mobile-only-lang { display: block !important; }

    /* --- Header: stack logo and emblem --- */
    .main-header { padding: 14px 0; }
    .header-grid { flex-direction: row; justify-content: space-between; }
    .logo-text-block h1 { font-size: 1.2rem; }
    .logo-text-block .sub-heading { font-size: 0.72rem; }
    .logo-text-block .ministry-text { display: none; }

    /* --- Hamburger: show on mobile --- */
    .hamburger-btn { display: flex; }

    /* --- Nav list: hidden by default, slide down on open --- */
    .main-navbar { position: sticky; top: 0; z-index: 1000; }

    .nav-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        background-color: var(--primary-color);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 999;
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
        animation: slideDown 0.25s ease;
    }

    .nav-list.nav-open { display: flex; }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .nav-link {
        padding: 14px 20px;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    /* --- Dropdown: stacked on mobile --- */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        box-shadow: none;
        border-radius: 0;
        background: rgba(0,0,0,0.2);
        transition: max-height 0.3s ease, visibility 0s 0.3s;
        min-width: auto;
        transform: none;
    }

    .has-dropdown.dropdown-open > .dropdown-menu {
        visibility: visible;
        max-height: 500px;
        transition: max-height 0.35s ease;
    }

    .dropdown-item a {
        color: #cbd5e1 !important;
        padding: 10px 30px;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .dropdown-item a:hover { color: var(--accent-gold) !important; }

    /* --- Hero/Slider --- */
    .hero-section, .slider-section { min-height: 260px; }
    .slide-heading { font-size: 1.5rem; }
    .slide-description { font-size: 0.85rem; }

    /* --- Main content layout --- */
    .content-layout,
    .main-content-area,
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        flex-direction: column;
    }

    .sidebar-panel {
        order: 2;
        margin-top: 20px;
    }

    /* --- News grid: 1 column --- */
    .news-grid,
    .news-cards-grid { grid-template-columns: 1fr !important; }

    /* --- Footer: single column --- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
    .footer-links { text-align: center; }

    /* --- Sections padding --- */
    .section-block,
    .page-section { padding: 24px 0; }

    /* --- Tables: horizontal scroll --- */
    .data-table-wrapper { overflow-x: auto; }
    .data-table { min-width: 600px; }

    /* --- Payments/Contact grids --- */
    .payment-card,
    .contact-grid { grid-template-columns: 1fr !important; }

    /* --- Directory listing --- */
    .directory-grid,
    .member-grid { grid-template-columns: 1fr !important; }
}

/* ========================================================
   SMALL MOBILE BREAKPOINT (≤ 480px)
   ======================================================== */
@media (max-width: 480px) {
    .container { padding: 0 14px; }

    .logo-text-block h1 { font-size: 1rem; }
    .logo-text-block .sub-heading { font-size: 0.65rem; }

    /* Top bar: adapt layout on tiny screens */
    .top-bar-links {
        display: block !important;
        padding: 6px 0;
    }
    .top-bar-links .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .top-bar-links .skip-link {
        display: none !important;
    }

    /* Header emblem smaller */
    .main-header img { height: 55px !important; width: 55px !important; }

    /* Full-width buttons */
    .btn-primary,
    .btn-secondary { width: 100%; text-align: center; }

    /* Announcement marquee */
    .news-marquee-section { font-size: 0.8rem; }
}
