/* ===================================
   MP Website - Chuadanga-1
   Main Stylesheet
   =================================== */

:root {
    --primary: #006400;
    --secondary: #cc0000;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --dark-text: #1a1a1a;
    --card-shadow: 0 4px 15px rgba(0,0,0,0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Hind Siliguri', sans-serif;
    font-weight: 600;
}

.section-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}


/* ===================================
   Header Layout Fixes
   =================================== */
.header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.datetime-section {
    flex-shrink: 0;
}

.ticker-section {
    flex: 1;
    overflow: hidden;
}

.lang-section {
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* ===================================
   News Ticker - FIXED
   =================================== */
.news-ticker {
    background: linear-gradient(90deg, var(--primary) 0%, #004d00 100%);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 20s linear infinite;
    width: 100%;
}

.ticker-item {
    padding: 0 20px;
    white-space: nowrap;
    font-size: 14px;
    display: inline-block;
}

/* ===================================
   Premium Language Toggle - IMPROVED
   =================================== */
.premium-lang-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 3px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lang-segmented-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    min-width: 55px !important;
}

.lang-segmented-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none !important;
}

.lang-segmented-btn:hover::before {
    opacity: 1 !important;
}

.lang-segmented-btn:hover {
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

.lang-segmented-btn.active {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    transform: scale(1.05) !important;
}

.lang-segmented-btn.active::before {
    opacity: 0 !important;
}

.lang-segmented-btn:first-child {
    margin-right: 0 !important;
    border-radius: 20px 0 0 20px;
}

.lang-segmented-btn:last-child {
    margin-left: 0 !important;
    border-radius: 0 20px 20px 0;
}

.lang-text {
    position: relative;
    z-index: 1;
    font-weight: 600;
}

/* Ticker Animation */
@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-layout {
        gap: 15px;
    }
    
    .news-ticker {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .ticker-item {
        padding: 0 15px;
        font-size: 12px;
    }
    
    .premium-lang-toggle {
        padding: 2px;
    }
    
    .lang-segmented-btn {
        padding: 8px 14px;
        font-size: 12px;
        min-width: 45px;
    }
}

@media (max-width: 576px) {
    .header-layout {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-ticker {
        font-size: 11px;
    }
    
    .ticker-item {
        padding: 0 12px;
        font-size: 11px;
    }
    
    .premium-lang-toggle {
        padding: 2px;
    }
    
    .lang-segmented-btn {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 40px;
    }
}

.top-bar {
    background: var(--secondary);
    color: var(--white);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    background: var(--primary) !important;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: var(--white) !important;
    font-weight: 600;
}

.brand-logo {
    font-size: 2rem;
    color: var(--secondary);
}

.brand-title {
    font-size: 1.1rem;
    line-height: 1.2;
}

.brand-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    transition: var(--transition);
    margin: 0 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
    background: var(--secondary);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
}

.navbar-nav .lang-nav-item {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.navbar-nav .lang-nav-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* ===================================
   Professional Dropdown Language Switcher
   =================================== */
.navbar-nav .language-dropdown .btn.dropdown-toggle {
    background: #ffffff !important;
    color: #222222 !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
    border-radius: 4px !important;
    padding: 4px 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.navbar-nav .language-dropdown .btn.dropdown-toggle:hover {
    background: #f8f9fa !important;
    border-color: rgba(0,0,0,0.25) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.navbar-nav .language-dropdown .btn.dropdown-toggle:focus {
    box-shadow: 0 0 0 2px rgba(0, 100, 0, 0.25) !important;
    border-color: #006400 !important;
}

.language-selected {
    display: flex;
    align-items: center;
    gap: 6px;
}

.flag-icon {
    font-size: 14px;
    line-height: 1;
}

.language-name {
    font-weight: 500;
}

.language-dropdown .bi-chevron-down {
    color: #222222 !important;
    font-size: 12px;
}

.language-dropdown .dropdown-menu {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    margin-top: 8px;
    padding: 8px 0;
    z-index: 1000;
}

.navbar-nav .lang-nav-item {
    margin-left: 12px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--dark-text);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.language-option:hover {
    background: rgba(0, 102, 204, 0.05);
    color: #0066cc;
}

.language-option .flag-icon {
    font-size: 16px;
}

.language-option span {
    font-weight: 500;
}

/* Remove old language styles */
.modern-lang-toggle,
.modern-lang-btn,
.modern-lang-btn::before,
.modern-lang-btn:hover,
.modern-lang-btn.active,
.modern-lang-btn.active::before,
.modern-lang-text {
    display: none !important;
}

.dropdown-item:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    min-height: 80vh;
    background: linear-gradient(135deg, rgba(0,100,0,0.9) 0%, rgba(0,60,0,0.95) 100%), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary:hover {
    background: #004d00;
    border-color: #004d00;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #a30000;
    border-color: #a30000;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-width: 2px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
}

/* ===================================
   Stats Bar
   =================================== */
.stats-bar {
    background: var(--white);
    padding: 2rem 0;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.95rem;
}

/* ===================================
   Cards
   =================================== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title {
    color: var(--primary);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* ===================================
   Project Cards
   =================================== */
.project-card {
    border-left: 4px solid var(--primary);
}

.progress {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
}

.progress-bar {
    background: var(--primary);
    border-radius: 4px;
}

.budget-badge {
    background: var(--secondary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-running {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

/* ===================================
   Notice Cards
   =================================== */
.notice-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.notice-card:hover {
    background: #f8fff8;
    transform: translateX(5px);
}

.notice-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
}

.notice-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notice-date {
    color: #666;
    font-size: 0.85rem;
}

.notice-pdf {
    color: var(--secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.notice-pdf:hover {
    color: #a30000;
    transform: scale(1.1);
}

/* ===================================
   News Cards
   =================================== */
.news-card {
    position: relative;
}

.news-card .card-img-wrapper {
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.news-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===================================
   Event Cards
   =================================== */
.event-card {
    position: relative;
}

.event-date-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
}

.event-date-day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.event-date-month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* ===================================
   Gallery
   =================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,100,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-zoom {
    color: var(--white);
    font-size: 2rem;
}

/* ===================================
   Parliament Stats
   =================================== */
.parliament-stats {
    background: linear-gradient(135deg, var(--primary) 0%, #004d00 100%);
    padding: 4rem 0;
    color: var(--white);
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.stat-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
}

.stat-card-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-card-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===================================
   Service Cards
   =================================== */
.service-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--dark-text);
    display: block;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    color: var(--secondary);
    transform: scale(1.1);
}

.service-title {
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===================================
   Forms
   =================================== */
.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0,100,0,0.25);
}

.form-label {
    font-weight: 500;
    color: var(--primary);
}

.form-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

/* ===================================
   Complaint Form
   =================================== */
.complaint-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 3rem 0;
    color: var(--white);
}

.tracking-box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cce5ff;
    color: #004085;
}

.status-solved {
    background: #d4edda;
    color: #155724;
}

/* ===================================
   Transparency Page
   =================================== */
.transparency-hero {
    background: var(--primary);
    padding: 3rem 0;
    color: var(--white);
}

.budget-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.budget-table thead {
    background: var(--primary);
    color: var(--white);
}

.budget-table th,
.budget-table td {
    padding: 1rem;
    vertical-align: middle;
}

.budget-table tbody tr:hover {
    background: #f8fff8;
}

/* ===================================
   Contact Page
   =================================== */
.contact-info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    height: 100%;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===================================
   Profile Page
   =================================== */
.profile-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #004d00 100%);
    padding: 4rem 0;
    color: var(--white);
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: var(--card-shadow);
    object-fit: cover;
}

.profile-tabs .nav-link {
    color: var(--primary) !important;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 2rem !important;
}

.profile-tabs .nav-link.active {
    border-bottom-color: var(--secondary);
    font-weight: 600;
}

/* ===================================
   Top Bar
   =================================== */
.top-bar {
    background: var(--secondary);
    color: var(--white);
}

/* Live Date/Time in Top Bar */
.live-datetime {
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Remove gap between top bar and navbar */
.navbar {
    margin-top: 0;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--primary);
    color: var(--white);
}

.footer-title {
    color: var(--white);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.footer-text {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

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

.footer-contact li {
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255,255,255,0.2);
}

.footer-copyright {
    color: rgba(255,255,255,0.8);
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #a30000;
    color: var(--white);
    transform: translateY(-5px);
}

/* ===================================
   Pagination
   =================================== */
.pagination .page-link {
    color: var(--primary);
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 2px;
    border-radius: 4px;
}

.pagination .page-link:hover {
    background: var(--primary);
    color: var(--white);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: var(--white);
}

/* ===================================
   Alerts
   =================================== */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(0,0,0,0.1);
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stats-bar {
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .notice-card {
        flex-direction: column;
        text-align: center;
    }
    
    .notice-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }

.section-padding {
    padding: 4rem 0;
}

.section-light {
    background: var(--light-bg);
}

.section-white {
    background: var(--white);
}

/* ===================================
   Government Top Bar - Professional Style
   =================================== */

/* Professional Segmented Language Toggle - Updated */
.gov-lang-segmented {
    display: inline-flex !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 25px !important;
    padding: 3px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

.lang-btn {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 6px 16px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    border-radius: 22px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    position: relative !important;
    letter-spacing: 0.3px !important;
    min-width: 45px !important;
}

.lang-btn:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px) !important;
}

.lang-btn.active {
    background: #ffffff !important;
    color: #1a5f3f !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    transform: scale(1.05) !important;
}

.lang-btn:first-child {
    margin-right: 2px !important;
}

.lang-btn:last-child {
    margin-left: 2px !important;
}

.gov-top-bar {
    background: linear-gradient(135deg, #1a5f3f 0%, #2d7a57 100%);
    color: white;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Hind Siliguri', sans-serif;
}

.gov-datetime {
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-align: center;
    flex: 0 0 auto;
    min-width: 300px;
}

/* Professional Segmented Language Toggle */
.gov-lang-segmented {
    display: inline-flex !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 30px !important;
    padding: 4px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(20px) !important;
    position: relative !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.gov-lang-segmented::before {
    content: '' !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    right: 2px !important;
    bottom: 2px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border-radius: 28px !important;
    pointer-events: none !important;
}

.lang-btn {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 26px !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    position: relative !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    z-index: 2 !important;
    min-width: 50px !important;
}

.lang-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    border-radius: 26px !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    pointer-events: none !important;
}

.lang-btn:hover::before {
    opacity: 1 !important;
}

.lang-btn:hover {
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.lang-btn.active {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    color: #1a5f3f !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.05) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.lang-btn.active::before {
    opacity: 0 !important;
}

.lang-btn:first-child {
    margin-right: 3px !important;
}

.lang-btn:last-child {
    margin-left: 3px !important;
}

/* Micro-interactions */
.lang-btn:active {
    transform: scale(0.98) !important;
}

.lang-btn.active:active {
    transform: scale(1.02) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gov-top-bar {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .gov-datetime {
        font-size: 11px;
        text-align: center;
        margin-bottom: 8px;
        min-width: auto;
        width: 100%;
    }
    
    .gov-lang-segmented {
        padding: 2px;
        margin: 0 auto;
        display: table;
        border-width: 1px;
    }
    
    .lang-btn {
        padding: 5px 12px;
        font-size: 11px;
        min-width: 40px;
    }
    
    .gov-top-bar .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .gov-top-bar .flex-grow-1 {
        display: none;
    }
    
    .gov-top-bar .text-end {
        text-align: center !important;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .gov-top-bar {
        font-size: 11px;
    }
    
    .gov-datetime {
        font-size: 10px;
    }
    
    .lang-btn {
        padding: 4px 10px;
        font-size: 10px;
        min-width: 35px;
    }
}
