/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f10f51;
    --secondary-color: #033973;
    --accent-color: #ff6b9d;
    --success-color: #e91e63;
    --warning-color: #ff9800;
    --info-color: #ff6b9d;
    --light-bg: #fce4ec;
    --white: #ffffff;
    --text-dark: #2c003e;
    --text-light: #5e3551;
    --border-color: #f8bbd9;
    --shadow-sm: 0 1px 3px rgba(241, 15, 81, 0.12), 0 1px 2px rgba(241, 15, 81, 0.24);
    --shadow-md: 0 4px 6px rgba(241, 15, 81, 0.1), 0 2px 4px rgba(241, 15, 81, 0.06);
    --shadow-lg: 0 10px 25px rgba(241, 15, 81, 0.1), 0 6px 10px rgba(241, 15, 81, 0.08);
    --shadow-xl: 0 20px 40px rgba(241, 15, 81, 0.15), 0 10px 20px rgba(241, 15, 81, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(90deg, #f10f51, #033973);
    --gradient-secondary: linear-gradient(135deg, #ff6b9d 0%, #f10f51 100%);
    --gradient-success: linear-gradient(135deg, #e91e63 0%, #ff6b9d 100%);
    --gradient-info: linear-gradient(135deg, #ff6b9d 0%, #f8bbd9 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}
.nm {
    width: max-content;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Top Header */
.top-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

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

.govt-info span {
    margin-right: 10px;
}

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

.accessibility-btn {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.accessibility-btn:hover {
    background: var(--white);
    color: var(--primary-color);
}

.language-selector select {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.language-selector select option {
    background: var(--primary-color);
}

/* Main Header */
.main-header {
    background: var(--white);

    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

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

.cm-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.cm-section:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cm-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: fill;
    border: 3px solid var(--white);
    
}

.cm-info {
    text-align: right;
    display: none;
}

.cm-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.cm-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.odisha-logo {
    width: 120px;
    height: 80px;
    object-fit: contain;
}

.govt-emblem {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.title-section h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.title-section h2 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-light);
    font-size: 14px;
}

.search-section {
    display: none;
}

.login-section-header {
    display: flex;
    align-items: center;
}

.login-btn-header {
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.login-btn-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
    transition: left 0.4s ease;
    z-index: 0;
}

.login-btn-header:hover::before {
    left: 0;
}

.login-btn-header:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #ff6b9d 0%, #f10f51 100%);
}

.login-btn-header:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.login-btn-header i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.login-btn-header span {
    position: relative;
    z-index: 1;
}

.login-btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.login-btn-header i {
    font-size: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--light-bg);
    border-radius: 25px;
    padding: 5px;
    min-width: 300px;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    outline: none;
}

.search-box button {
    background: var(--secondary-color);
    border: none;
    color: var(--white);
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: #2980b9;
}

/* Notification Bar */
.notification-bar {
    background: linear-gradient(90deg, #2c3e50 0%, #f10f51 50%, #2c3e50 100%);
    color: var(--white);
    padding: 7px 380px;
    overflow: hidden;
    position: relative;
    border-top: 3px solid #e74c3c;
    border-bottom: 3px solid #c0392b1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* .notification-bar::before {
    content: '📢 LATEST UPDATES';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
    z-index: 15;
    animation: badge-pulse 2s infinite;
} */

@keyframes badge-pulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.05); }
}

.notification-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #e74c3c);
    animation: color-flow 3s infinite;
}

@keyframes color-flow {
    0% { background: linear-gradient(90deg, #e74c3c, #f39c12, #e74c3c); }
    50% { background: linear-gradient(90deg, #f39c12, #e74c3c, #f39c12); }
    100% { background: linear-gradient(90deg, #e74c3c, #f39c12, #e74c3c); }
}

.notification-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-left: 180px;
}

.notification-track {
    display: flex;
    animation: slide-left 25s linear infinite;
    white-space: nowrap;
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 0px 30px;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    min-width: max-content;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    margin: 0 8px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.notification-item i {
    margin-right: 15px;
    font-size: 20px;
    color: #3498db;
    background: rgba(52, 152, 219, 0.2);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: icon-glow 2s infinite alternate;
}

@keyframes icon-glow {
    0% { box-shadow: 0 0 5px rgba(52, 152, 219, 0.5); }
    100% { box-shadow: 0 0 15px rgba(52, 152, 219, 0.8); }
}

.notification-button {
    position: absolute;
   
    top: 50%;
    transform: translateY(-50%);
    background: #e74c3c;
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notification-button:hover {
    background: linear-gradient(135deg, #c0392b1 0%, #e74c3c 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
}

.notification-button i {
    font-size: 18px;
    animation: bell-ring 1.5s infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes bell-ring {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

@keyframes slide-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.notification-bar:hover .notification-track {
    animation-play-state: paused;
}

.notification-bar:hover .notification-button {
    animation-play-state: paused;
}

/* Mobile responsive for notification bar */
@media (max-width: 768px) {
    .notification-bar::before {
        display: none;
    }
    
    .notification-slider {
        margin-left: 0;
    }
    
    .notification-item {
        padding: 8px 20px;
        font-size: 13px;
        margin: 0 5px;
    }
    
    .notification-item i {
        font-size: 16px;
        margin-right: 10px;
        width: 28px;
        height: 28px;
    }
    
    .notification-button {
        right: 10px;
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .notification-bar {
        padding: 12px 0;
        border-top: 2px solid #e74c3c;
        border-bottom: 2px solid #c0392b1;
    }
    
    .notification-item {
        padding: 6px 15px;
        font-size: 11px;
        margin: 0 3px;
    }
    
    .notification-item i {
        font-size: 14px;
        margin-right: 8px;
        width: 24px;
        height: 24px;
    }
    
    .notification-button {
        right: 5px;
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Main Navigation */
.main-navigation {
    background: #f10f51;
    padding: 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--gradient-secondary);
    color: var(--white);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    padding: 15px;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff20" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
    animation: waveAnimation 10s ease-in-out infinite;
}

@keyframes waveAnimation {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-20px) translateY(-10px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Left Side Functionaries */
.hero-functionaries-left {
    text-align: center;
}

.hero-functionaries-left h3 {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    display: inline-block;
}

.hero-functionaries-left h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

.hero-functionaries-left .functionaries-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.hero-functionaries-left .functionary-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 15px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hero-functionaries-left .functionary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    transition: left 0.4s ease;
    z-index: 0;
}

.hero-functionaries-left .functionary-card:hover::before {
    left: 0;
}

.hero-functionaries-left .functionary-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-functionaries-left .functionary-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 12px;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

/* Chief Minister special styling - bigger photo */
.hero-functionaries-left .functionary-card:first-child img {
    width: 80px;
    height: 80px;
    border: 3px solid var(--white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.hero-functionaries-left .functionary-card:first-child {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 15px;
}

.hero-functionaries-left .functionary-card:first-child h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
}

.hero-functionaries-left .functionary-card:first-child p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 600;
}

.hero-functionaries-left .functionary-card:hover img {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Chief Minister hover effect - maintain larger size */
.hero-functionaries-left .functionary-card:first-child:hover img {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.9);
}

.hero-functionaries-left .functionary-card h4 {
    color: var(--white);
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.hero-functionaries-left .functionary-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-text h2 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 25px;
    opacity: 0.95;
    font-style: italic;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.9;
    line-height: 1.7;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.3);
}

.btn-primary:hover {
    background: #c53030;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(229, 62, 62, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Instructions Section */
.instructions-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    color: var(--white);
    width: 100%;
    max-width: 425px;
}

.instructions-container h3 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
}

.instructions-container h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

.instructions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.instruction-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.instruction-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.instruction-icon i {
    font-size: 18px;
    color: var(--white);
}

.instruction-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--white);
}

.instruction-content p {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Hero Image - Updated for Instructions */
.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
    width: 425px;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.hero-functionaries {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.hero-functionaries h3 {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    display: inline-block;
}

.hero-functionaries h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

.hero-functionaries .functionaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.hero-functionaries .functionary-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hero-functionaries .functionary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    transition: left 0.4s ease;
    z-index: 0;
}

.hero-functionaries .functionary-card:hover::before {
    left: 0;
}

.hero-functionaries .functionary-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-functionaries .functionary-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.hero-functionaries .functionary-card:hover img {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.hero-functionaries .functionary-card h4 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.hero-functionaries .functionary-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--white);
    border-bottom: 3px solid var(--white);
    transform: rotate(45deg);
    margin: 0 auto 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Main Content */
.main-content {
    padding: 60px 0;
    background: var(--light-bg);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Important Links */
.important-links {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.important-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-header h3 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
    margin-top: 15px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 25px 20px;
    background: var(--light-bg);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
    z-index: 0;
}

.link-card:hover::before {
    left: 0;
}

.link-card:hover {
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.link-card:hover .card-icon,
.link-card:hover .card-content h4,
.link-card:hover .card-content p,
.link-card:hover .card-arrow {
    color: var(--white);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.card-icon i {
    font-size: 20px;
    color: var(--white);
}

.card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.card-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
    transition: var(--transition);
}

.card-content p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    transition: var(--transition);
}

.card-arrow {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    transition: var(--transition);
}

.link-card:hover .card-arrow {
    transform: translateX(5px);
}

/* Quick Actions */
.quick-actions {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.quick-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-info);
    transition: left 0.4s ease;
    z-index: 0;
}

.action-btn:hover::before {
    left: 0;
}

.action-btn:hover {
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--info-color);
}

.action-btn:hover .action-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.action-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-info);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.action-icon i {
    font-size: 24px;
    color: var(--white);
}

.action-btn span {
    font-weight: 500;
    font-size: 14px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.action-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.action-badge:not(.urgent):not(.important) {
    background: var(--success-color);
    color: var(--white);
}

.action-badge.urgent {
    background: var(--accent-color);
    color: var(--white);
    animation: pulse 2s infinite;
}

.action-badge.important {
    background: var(--warning-color);
    color: var(--white);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(229, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

/* Login Section */
.login-section {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-success);
}

.login-section h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.login-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-success);
    border-radius: 2px;
}

.login-form {
    max-width: 100%;
}

.provisions-content {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.provisions-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.provisions-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.provisions-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.provisions-content p {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.btn-read-more {
    display:none;
    align-items: center;
    gap: 8px;

    padding: 12px 24px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--light-bg);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1);
    background: var(--white);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.captcha-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.captcha-image {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    user-select: none;
    color: var(--white);
    font-size: 18px;
    text-align: center;
    min-width: 120px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.captcha-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: captchaShine 3s infinite;
}

@keyframes captchaShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.login-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.login-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.login-links a:hover::after {
    width: 100%;
}

/* Guidelines Section */
.guidelines-section {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.guidelines-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-info);
}

.guidelines-section h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.guidelines-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-info);
    border-radius: 2px;
}

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

.guidelines-list li {
    margin-bottom: 15px;
    position: relative;
}

.guidelines-list a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    transition: var(--transition);
    background: var(--light-bg);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.guidelines-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-info);
    transition: left 0.4s ease;
    z-index: 0;
}

.guidelines-list a:hover::before {
    left: 0;
}

.guidelines-list a:hover {
    color: var(--white);
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.guidelines-list a::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.guidelines-list a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.guidelines-list a span {
    position: relative;
    z-index: 1;
}

/* News Section */
.news-section {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.news-section h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.news-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    padding: 25px;
    border-radius: 15px;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    transition: left 0.4s ease;
    z-index: 0;
}

.news-item:hover::before {
    left: 0;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.news-item:hover .news-date,
.news-item:hover h4,
.news-item:hover p {
    color: var(--white);
}

.news-date {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.news-item h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.news-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

/* Functionaries Section */
.functionaries-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    position: relative;
}

.functionaries-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%2300000020"/></svg>') repeat;
    background-size: 50px 50px;
    opacity: 0.3;
}

.functionaries-section h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-size: 32px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.functionaries-section h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.functionaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.functionary-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.functionary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.functionary-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px) scale(1.02);
}

.functionary-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.functionary-card:hover img {
    transform: scale(1.1);
    border-color: var(--secondary-color);
}

.functionary-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.functionary-card p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section i {
    margin-right: 8px;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.copyright {
    text-align: right;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-main {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-right {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .cm-section {
        justify-content: center;
    }

    .cm-info {
        text-align: center;
    }

    .search-section {
        width: 100%;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-functionaries-left {
        order: 2;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 3;
    }

    .hero-functionaries-left .functionaries-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-main {
        flex-direction: column;
        text-align: center;
    }

    .logo-section {
        flex-direction: column;
        text-align: center;
    }

    .cm-section {
        flex-direction: column;
        text-align: center;
        padding: 10px 15px;
    }

    .cm-photo {
        width: 50px;
        height: 50px;
    }

    .search-section {
        display: none;
    }

    .login-section-header {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    .login-btn-header {
        padding: 14px 32px;
        font-size: 16px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-functionaries-left {
        order: 2;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 3;
    }

    .hero-text h2 {
        font-size: 36px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-functionaries-left h3 {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .hero-functionaries-left .functionaries-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .hero-functionaries-left .functionary-card img {
        width: 50px;
        height: 50px;
    }

    /* Chief Minister special styling on mobile - still larger */
    .hero-functionaries-left .functionary-card:first-child img {
        width: 65px;
        height: 65px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .action-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .functionaries-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .cm-info h4 {
        font-size: 14px;
    }

    .cm-info p {
        font-size: 12px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-text h2 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-functionaries {
        margin-top: 30px;
        padding-top: 20px;
    }

    .hero-functionaries h3 {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .hero-functionaries .functionaries-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-functionaries .functionary-card img {
        width: 50px;
        height: 50px;
    }

    .hero-functionaries .functionary-card h4 {
        font-size: 14px;
    }

    .hero-functionaries .functionary-card p {
        font-size: 12px;
    }

    .links-grid,
    .action-grid {
        grid-template-columns: 1fr;
    }

    .login-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Print Styles */
@media print {
    .top-header,
    .main-navigation,
    .hero-section,
    .login-section,
    .main-footer {
        display: none;
    }

    .main-content {
        background: var(--white);
    }

    .container {
        max-width: none;
        padding: 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-light: #000000;
    }

    .btn,
    .link-card,
    .action-btn {
        border: 2px solid var(--text-dark);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
