/* ============================================
   GOVERNMENT PORTAL STYLE HEADER
   ============================================ */

/* Global - Prevent horizontal scrollbar */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Utility Bar - Top most bar */
.utility-bar {
    background: linear-gradient(135deg, #0f2744 0%, #1a365d 50%, #234876 100%);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    border-bottom: 3px solid #c9a227;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.utility-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.utility-left,
.utility-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.utility-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0.75rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.utility-link:hover {
    color: #1a365d;
    background: #c9a227;
}

.utility-link i {
    margin-right: 0.4rem;
}

.utility-divider {
    color: rgba(255, 255, 255, 0.3);
}

.utility-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    letter-spacing: 0.2px;
}

.utility-item i {
    color: #c9a227;
    margin-right: 0.4rem;
}

.location-display {
    color: #ffd700;
    font-weight: 500;
}

.location-display i {
    margin-right: 0.25rem;
}

/* Utility Bar Responsive - Hide helpline/email on mobile */
@media (max-width: 768px) {
    .utility-bar {
        padding: 0.4rem 0;
    }

    .utility-bar-content {
        justify-content: center;
    }

    .utility-right {
        display: none !important;
    }

    .utility-link {
        padding: 0.35rem 1rem;
        font-size: 0.85rem;
    }
}

/* Flash News Ticker - Inline in Navbar */
.navbar-flash-news {
    flex: 1;
    max-width: calc(100% - 2rem);
    overflow: hidden;
    margin: 0 1rem;
}

.flash-news-inline {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a365d 0%, #234876 100%);
    border-radius: 25px;
    padding: 0.35rem 1rem;
    gap: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.2);
}

.flash-news-label-inline {
    flex-shrink: 0;
    background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
    color: #1a365d;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(201, 162, 39, 0.3);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.flash-news-label-inline i {
    font-size: 0.7rem;
}

.flash-news-ticker-inline {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-wrapper-inline {
    display: inline-flex;
    animation: ticker 60s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.ticker-wrapper-inline:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.flash-news-item {
    display: inline-flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.2px;
}

.flash-news-item a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: all 0.3s ease;
}

.flash-news-item a:hover {
    color: #c9a227;
    text-decoration: none;
}

.flash-news-item span {
    color: rgba(255, 255, 255, 0.95);
}

.flash-news-item .news-type-badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    margin-right: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.flash-news-item .news-type-badge.urgent {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a365d;
}

.flash-news-item .news-type-badge.important {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.flash-news-item .news-type-badge.exam {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.flash-news-item .news-type-badge.result {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.flash-news-item .news-type-badge.admission {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.flash-news-separator {
    color: #c9a227;
    margin: 0 0.75rem;
    font-size: 0.5rem;
}

/* Responsive - hide flash news on small screens */
@media (max-width: 991px) {
    .navbar-flash-news {
        display: none !important;
    }

    .home-navbar .container {
        justify-content: flex-end;
    }
}

/* Government Header - Main header section */
.govt-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 0.5rem 0;
    border-bottom: 2px solid #c9a227;
}

.govt-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

/* Leader Sections (CM and Education Minister) */
.leader-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
}

.leader-left {
    justify-content: flex-start;
}

.leader-right {
    justify-content: flex-end;
}

.leader-photo-wrapper {
    flex-shrink: 0;
}

.leader-photo {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #c9a227;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.leader-photo-placeholder {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #c9a227;
}

.leader-photo-placeholder i {
    font-size: 1.75rem;
    color: #64748b;
}

.leader-info {
    display: flex;
    flex-direction: column;
}

.leader-role {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #c9a227;
    font-weight: 700;
}

.leader-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a365d;
    line-height: 1.2;
}

/* Logo Section - Left */
.logo-section {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.state-logo-wrapper {
    flex-shrink: 0;
}

.state-logo {
    height: 60px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
}

.main-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.main-logo-icon {
    font-size: 2rem;
    color: #1a365d;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a365d;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header Auth Section - Right Side */
.header-auth-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-nav-link {
    color: #1a365d;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.header-nav-link:hover {
    background: #f1f5f9;
    color: #0056b3;
}

/* Header Login/Signup buttons */
.header-auth-section .nav-btn-login {
    background: #c9a227;
    color: #1a365d !important;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    border: 1px solid #c9a227;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-block;
}

.header-auth-section .nav-btn-login:hover {
    background: #b8922a;
    border-color: #b8922a;
    color: #1a365d !important;
}

.header-auth-section .nav-btn-login.active {
    background: white;
    color: #1a365d !important;
    border: 1px solid #1a365d;
}

.header-auth-section .nav-btn-signup {
    background: #c9a227;
    color: #1a365d !important;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    border: 1px solid #c9a227;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-block;
}

.header-auth-section .nav-btn-signup:hover {
    background: #b8922a;
    border-color: #b8922a;
    color: #1a365d !important;
}

.header-auth-section .nav-btn-signup.active {
    background: #c9a227;
    color: #1a365d !important;
    border: 1px solid #c9a227;
    font-weight: 700;
}

/* Responsive Header Auth */
@media (max-width: 991px) {
    /* Hide header auth section on mobile - navbar has its own buttons */
    .header-auth-section {
        display: none !important;
    }
}

/* Mobile Auth Navigation in Home Navbar */
.mobile-auth-nav {
    display: none;
}

@media (max-width: 991px) {
    .mobile-auth-nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 1.25rem 0.5rem;
        margin-top: 1rem;
        border-top: 2px solid #f0f0f0;
        gap: 0.5rem;
    }

    .mobile-auth-nav .nav-item {
        width: 100%;
        margin-bottom: 0;
    }

    .mobile-auth-nav .nav-link {
        display: flex;
        align-items: center;
        padding: 0.875rem 1.25rem;
        border-radius: 10px;
        color: #1a365d;
        font-weight: 500;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        background: #f8fafc;
        border: 1px solid transparent;
    }

    .mobile-auth-nav .nav-link i {
        margin-right: 0.75rem;
        font-size: 1.1rem;
    }

    .mobile-auth-nav .nav-link:hover {
        background: #eef2f7;
        border-color: #e2e8f0;
        transform: translateX(4px);
    }

    .mobile-auth-nav .nav-link.text-danger {
        color: #dc2626 !important;
        background: #fef2f2;
    }

    .mobile-auth-nav .nav-link.text-danger:hover {
        background: #fee2e2;
        border-color: #fecaca;
    }

    .mobile-auth-nav .nav-btn-login,
    .mobile-auth-nav .nav-btn-signup {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0.875rem 1.25rem !important;
        border-radius: 25px !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        margin: 0 !important;
        box-sizing: border-box;
        transition: all 0.3s ease !important;
        letter-spacing: 0.3px;
    }

    .mobile-auth-nav .nav-btn-login {
        background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%) !important;
        color: #1a365d !important;
        border: none !important;
        margin-bottom: 0.75rem !important;
        box-shadow: 0 3px 10px rgba(201, 162, 39, 0.3) !important;
    }

    .mobile-auth-nav .nav-btn-login:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(201, 162, 39, 0.4) !important;
    }

    .mobile-auth-nav .nav-btn-signup {
        background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%) !important;
        color: #1a365d !important;
        border: none !important;
        box-shadow: 0 3px 10px rgba(201, 162, 39, 0.3) !important;
    }

    .mobile-auth-nav .nav-btn-signup:hover {
        background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%) !important;
        color: #1a365d !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(201, 162, 39, 0.4) !important;
    }

    /* Home navbar collapse styling */
    .home-navbar .navbar-collapse {
        background: white;
        padding: 1.25rem;
        margin-top: 0.75rem;
        border-radius: 16px;
        box-shadow: 0 8px 30px rgba(26, 54, 93, 0.12);
        border: 1px solid #f0f0f0;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Home Page Navbar */
.home-navbar {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: 0 2px 12px rgba(26, 54, 93, 0.08);
    padding: 0.6rem 0;
    border-bottom: 3px solid #c9a227;
    transition: all 0.3s ease;
}

.home-navbar > .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.home-navbar .navbar-collapse {
    overflow-x: hidden;
}

/* Elegant Navbar Toggler - Hidden on desktop, visible on mobile only */
.home-navbar .navbar-toggler {
    border: 2px solid #1a365d;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

/* Show toggler only on mobile (below 992px) */
@media (max-width: 991.98px) {
    .home-navbar .navbar-toggler {
        display: flex;
    }
}

.home-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.3);
    outline: none;
}

.home-navbar .navbar-toggler:hover {
    background: #1a365d;
}

.home-navbar .navbar-toggler:hover .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.home-navbar .navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    transition: filter 0.3s ease;
    display: block;
}

/* Mobile Navbar Adjustments */
@media (max-width: 991px) {
    .home-navbar {
        padding: 0.75rem 0;
    }

    .home-navbar > .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-navbar .navbar-toggler {
        order: 1;
        margin-left: auto;
        margin-right: 0;
    }

    .home-navbar .navbar-collapse {
        order: 2;
        width: 100%;
        flex-basis: 100%;
    }
}

.home-navbar .nav-link {
    color: #1a365d;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.home-navbar .nav-link:hover {
    color: #c9a227;
}

.home-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #c9a227;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.home-navbar .nav-link:hover::after {
    width: 80%;
}

.home-navbar .nav-btn-login {
    background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
    color: #1a365d !important;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.3);
    letter-spacing: 0.3px;
}

.home-navbar .nav-btn-login:hover {
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
    color: #1a365d !important;
}

.home-navbar .nav-btn-login.active {
    background: white;
    color: #1a365d !important;
    border: 2px solid #1a365d;
    box-shadow: none;
}

.home-navbar .nav-btn-signup {
    background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
    color: #1a365d !important;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-block;
    margin-left: 0.75rem;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.3);
    letter-spacing: 0.3px;
}

.home-navbar .nav-btn-signup:hover {
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
    color: #1a365d !important;
}

.home-navbar .nav-btn-signup.active {
    background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
    color: #1a365d !important;
    border: none;
    font-weight: 700;
}

/* Responsive Styles for Header */
@media (max-width: 991px) {
    .govt-header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .leader-section {
        min-width: auto;
    }

    .leader-left,
    .leader-right {
        order: 2;
    }

    .logo-section {
        order: 1;
    }

    .leader-photo {
        width: 50px;
        height: 50px;
    }

    .leader-photo-placeholder {
        width: 50px;
        height: 50px;
    }

    .leader-photo-placeholder i {
        font-size: 1.25rem;
    }

    .logo-title {
        font-size: 1.25rem;
    }

    .main-logo-icon {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .utility-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .utility-left,
    .utility-right {
        justify-content: center;
    }

    .govt-header-content {
        flex-direction: column;
    }

    .leader-section {
        display: none;
    }

    .logo-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo-text {
        text-align: center;
    }

    .logo-title {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }
}

/* ============================================
   BANNER CAROUSEL STYLES
   ============================================ */

.banner-section {
    position: relative;
    background: #0a1628;
    overflow: hidden;
}

/* Gold line at bottom of banner */
.banner-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #b8860b 0%, #daa520 25%, #ffd700 50%, #daa520 75%, #b8860b 100%);
    z-index: 20;
}

/* Carousel Base */
#bannerCarousel {
    position: relative;
    width: 100%;
}

#bannerCarousel .carousel-inner {
    overflow: hidden;
}

#bannerCarousel .carousel-item {
    transition: transform 0.8s ease-in-out;
}

#bannerCarousel .carousel-item a {
    display: block;
    text-decoration: none;
}

/* Default Banner (when no state banners) */
.default-banner {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #1a365d 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.default-banner .banner-content {
    padding: 4rem 0;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.default-banner .banner-text {
    color: white;
    max-width: 800px;
}

.default-banner .banner-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.default-banner .banner-text .lead {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 650px;
}

/* Location Indicator */
.default-banner .location-indicator {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    padding: 0.6rem 1.25rem;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.default-banner .location-indicator i {
    margin-right: 0.5rem;
    color: #c9a227;
}

.default-banner .location-indicator .spinner-border {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Banner Slides - Professional Full Width */
.banner-slide {
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
    background: #0a1628;
}

/* Banner Image - Full width responsive - fits exactly to container */
.banner-slide .banner-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    transition: transform 0.5s ease;
}

.carousel-item:hover .banner-slide .banner-image {
    transform: scale(1.02);
}

/* Banner Overlay with Title */
.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
        rgba(10, 22, 40, 0.95) 0%,
        rgba(10, 22, 40, 0.7) 40%,
        rgba(10, 22, 40, 0.3) 70%,
        transparent 100%);
    padding: 4rem 0 2rem;
    z-index: 2;
}

/* Minimal Overlay (no title) */
.banner-overlay-minimal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top,
        rgba(10, 22, 40, 0.6) 0%,
        transparent 100%);
    z-index: 2;
}

.banner-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin: 0;
    letter-spacing: -0.5px;
}

.banner-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Carousel Controls - Professional Style */
#bannerCarousel .carousel-control-prev,
#bannerCarousel .carousel-control-next {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#bannerCarousel:hover .carousel-control-prev,
#bannerCarousel:hover .carousel-control-next {
    opacity: 1;
}

#bannerCarousel .carousel-control-prev {
    left: 25px;
}

#bannerCarousel .carousel-control-next {
    right: 25px;
}

#bannerCarousel .carousel-control-prev:hover,
#bannerCarousel .carousel-control-next:hover {
    background: #c9a227;
    transform: translateY(-50%) scale(1.1);
}

#bannerCarousel .carousel-control-prev-icon,
#bannerCarousel .carousel-control-next-icon {
    width: 22px;
    height: 22px;
    filter: invert(20%) sepia(50%) saturate(1000%) hue-rotate(190deg);
}

#bannerCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#bannerCarousel .carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(10%) sepia(50%) saturate(2000%) hue-rotate(190deg);
}

/* Carousel Indicators - Professional Pills */
#bannerCarousel .carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
    gap: 8px;
}

#bannerCarousel .carousel-indicators button {
    width: 35px;
    height: 5px;
    border-radius: 3px;
    background-color: rgba(255,255,255,0.4);
    border: none;
    margin: 0;
    transition: all 0.4s ease;
    opacity: 1;
}

#bannerCarousel .carousel-indicators button.active {
    background-color: #c9a227;
    width: 50px;
}

#bannerCarousel .carousel-indicators button:hover {
    background-color: rgba(255,255,255,0.7);
}

/* Leaders Overlay */
.leaders-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 54, 93, 0.95) 0%, rgba(26, 54, 93, 0.8) 70%, transparent 100%);
    padding: 1.5rem 0 1rem;
    z-index: 10;
}

.leaders-overlay .leaders-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.leaders-overlay .leader-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.leaders-overlay .leader-card:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(201,162,39,0.5);
    transform: translateY(-2px);
}

.leaders-overlay .leader-photo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #c9a227;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.leaders-overlay .leader-photo-placeholder {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.leaders-overlay .leader-photo-placeholder i {
    font-size: 1.5rem;
    color: #1a365d;
}

.leaders-overlay .leader-info {
    color: white;
}

.leaders-overlay .leader-info .role {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #c9a227;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.leaders-overlay .leader-info .name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Responsive Styles */
@media (max-width: 1399px) {
    .banner-slide {
        height: 380px;
    }

    .default-banner .banner-content {
        min-height: 380px;
    }
}

@media (max-width: 1199px) {
    .banner-slide {
        height: 350px;
    }

    .default-banner .banner-content {
        min-height: 350px;
    }

    .default-banner .banner-text h1 {
        font-size: 2.25rem;
    }

    .banner-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 991px) {
    .banner-slide {
        height: 320px;
    }

    .default-banner .banner-content {
        min-height: 320px;
        padding: 3rem 0;
    }

    .default-banner .banner-text h1 {
        font-size: 2rem;
    }

    .banner-title {
        font-size: 1.5rem;
    }

    #bannerCarousel .carousel-control-prev,
    #bannerCarousel .carousel-control-next {
        width: 48px;
        height: 48px;
    }

    #bannerCarousel .carousel-control-prev {
        left: 15px;
    }

    #bannerCarousel .carousel-control-next {
        right: 15px;
    }
}

@media (max-width: 767px) {
    .banner-slide {
        height: 280px;
    }

    .default-banner .banner-content {
        min-height: 280px;
        padding: 2.5rem 0;
    }

    .default-banner .banner-text h1 {
        font-size: 1.65rem;
    }

    .default-banner .banner-text .lead {
        font-size: 0.95rem;
    }

    .banner-title {
        font-size: 1.35rem;
    }

    .banner-overlay {
        padding: 3rem 0 1.5rem;
    }

    .leaders-overlay {
        padding: 1rem 0 0.75rem;
    }

    .leaders-overlay .leaders-row {
        gap: 1rem;
    }

    .leaders-overlay .leader-card {
        padding: 0.5rem 1rem;
    }

    .leaders-overlay .leader-photo,
    .leaders-overlay .leader-photo-placeholder {
        width: 45px;
        height: 45px;
    }

    .leaders-overlay .leader-info .name {
        font-size: 0.8rem;
    }

    #bannerCarousel .carousel-control-prev,
    #bannerCarousel .carousel-control-next {
        width: 42px;
        height: 42px;
        opacity: 1;
    }

    #bannerCarousel .carousel-control-prev {
        left: 10px;
    }

    #bannerCarousel .carousel-control-next {
        right: 10px;
    }

    #bannerCarousel .carousel-indicators button {
        width: 25px;
        height: 4px;
    }

    #bannerCarousel .carousel-indicators button.active {
        width: 40px;
    }

    .carousel-item:hover .banner-slide .banner-image {
        transform: none;
    }
}

@media (max-width: 575px) {
    .banner-slide {
        height: 200px;
    }

    .default-banner .banner-content {
        min-height: 200px;
        padding: 1.5rem 0;
        text-align: center;
    }

    .default-banner .banner-text h1 {
        font-size: 1.25rem;
    }

    .default-banner .banner-text .lead {
        font-size: 0.85rem;
    }

    .default-banner .location-indicator {
        font-size: 0.75rem;
        padding: 0.4rem 0.85rem;
    }

    .banner-title {
        font-size: 1rem;
    }

    .banner-overlay {
        padding: 1.5rem 0 0.75rem;
    }

    .banner-overlay-minimal {
        height: 50px;
    }

    .leaders-overlay .leaders-row {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .leaders-overlay .leader-card {
        width: auto;
        max-width: 220px;
        padding: 0.4rem 0.75rem;
    }

    .leaders-overlay .leader-photo,
    .leaders-overlay .leader-photo-placeholder {
        width: 40px;
        height: 40px;
    }

    #bannerCarousel .carousel-indicators {
        bottom: 8px;
    }

    #bannerCarousel .carousel-indicators button {
        width: 18px;
        height: 3px;
    }

    #bannerCarousel .carousel-indicators button.active {
        width: 28px;
    }

    #bannerCarousel .carousel-control-prev,
    #bannerCarousel .carousel-control-next {
        width: 32px;
        height: 32px;
    }

    #bannerCarousel .carousel-control-prev-icon,
    #bannerCarousel .carousel-control-next-icon {
        width: 14px;
        height: 14px;
    }
}

/* ============================================
   END BANNER CAROUSEL STYLES
   ============================================ */

    /* Legacy Hero Section styles removed - now merged into state-hero-section */

    /* Onboarding Cards */
    .onboarding-section {
        margin-top: -3rem;
        position: relative;
        z-index: 10;
    }

    .onboard-card {
        background: white;
        border-radius: 12px;
        padding: 1.5rem;
        text-align: center;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        transition: all 0.3s;
        cursor: pointer;
        height: 100%;
    }

    .onboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    }

    .onboard-card .icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin: 0 auto 1rem;
        color: white;
    }

    .onboard-card.student .icon { background: linear-gradient(135deg, #667eea, #764ba2); }
    .onboard-card.teacher .icon { background: linear-gradient(135deg, #f093fb, #f5576c); }
    .onboard-card.principal .icon { background: linear-gradient(135deg, #4facfe, #00f2fe); }
    .onboard-card.institution .icon { background: linear-gradient(135deg, #43e97b, #38f9d7); }

    .onboard-card h5 {
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--udemy-dark);
    }

    .onboard-card p {
        font-size: 0.875rem;
        color: var(--udemy-gray);
        margin-bottom: 0;
    }

    /* Featured Exams */
    .exam-card {
        background: white;
        border: 1px solid var(--udemy-border);
        border-radius: 8px;
        padding: 1.25rem;
        text-align: center;
        transition: all 0.2s ease;
        height: 100%;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .exam-card:hover {
        border-color: var(--udemy-purple);
        box-shadow: 0 4px 12px rgba(164, 53, 240, 0.15);
        transform: translateY(-2px);
    }

    .exam-card .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .exam-card .exam-logo {
        width: 60px;
        height: 60px;
        object-fit: contain;
        margin-bottom: 0.75rem;
    }

    .exam-card .exam-logo-placeholder {
        width: 60px;
        height: 60px;
        background: var(--udemy-light-gray);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 0.75rem;
        font-size: 1.5rem;
        color: var(--udemy-purple);
    }

    .exam-card h6 {
        font-weight: 600;
        color: var(--udemy-dark);
        margin-bottom: 0.25rem;
    }

    .exam-card .exam-body {
        font-size: 0.75rem;
        color: var(--udemy-gray);
        flex-grow: 1;
    }

    .exam-card .mt-2 {
        margin-top: auto !important;
        padding-top: 0.75rem;
    }

    /* Stats Section */
    .stats-section {
        background: var(--udemy-light-gray);
        padding: 3rem 0;
    }

    .stat-item {
        text-align: center;
        padding: 1rem;
    }

    .stat-item .stat-number {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--udemy-purple);
    }

    .stat-item .stat-label {
        font-size: 0.875rem;
        color: var(--udemy-gray);
    }

    /* Leadership Section */
    .leadership-section {
        background: white;
        padding: 3rem 0;
    }

    .leader-card {
        text-align: center;
        padding: 1.5rem;
    }

    .leader-card img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 1rem;
        border: 4px solid var(--udemy-light-gray);
    }

    .leader-card .leader-placeholder {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: var(--udemy-light-gray);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
        font-size: 3rem;
        color: var(--udemy-gray);
    }

    .leader-card h6 {
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .leader-card p {
        font-size: 0.875rem;
        color: var(--udemy-gray);
        margin-bottom: 0;
    }

    /* Course Cards */
    .course-card {
        background: white;
        border: 1px solid var(--udemy-border);
        border-radius: 0;
        overflow: hidden;
        transition: all 0.2s;
        height: 100%;
    }

    .course-card:hover {
        box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.08);
    }

    .course-card .course-img {
        height: 160px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .course-card .course-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .course-card .course-body {
        padding: 1rem;
    }

    .course-card h6 {
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .course-card .course-meta {
        font-size: 0.75rem;
        color: var(--udemy-gray);
    }

    .course-card .course-footer {
        padding: 0.75rem 1rem;
        border-top: 1px solid var(--udemy-border);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .course-card .price {
        font-weight: 700;
        color: var(--udemy-dark);
    }

    .course-card .price.free {
        color: #059669;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .section-header p {
        color: var(--udemy-gray);
    }

    /* Empty State */
    .empty-state {
        text-align: center;
        padding: 3rem;
        color: var(--udemy-gray);
    }

    .empty-state i {
        font-size: 3rem;
        opacity: 0.5;
        margin-bottom: 1rem;
    }

    /* Modal Styles */
    .onboard-modal .modal-content {
        border-radius: 12px;
        border: none;
    }

    .onboard-modal .modal-header {
        border-bottom: none;
        padding: 1.5rem 1.5rem 0;
    }

    .onboard-modal .modal-body {
        padding: 1.5rem;
    }

    .onboard-modal .form-label {
        font-weight: 500;
        font-size: 0.875rem;
    }

    .onboard-modal .form-control,
    .onboard-modal .form-select {
        border-radius: 8px;
        padding: 0.75rem 1rem;
        border: 1px solid var(--udemy-border);
    }

    .onboard-modal .form-control:focus,
    .onboard-modal .form-select:focus {
        border-color: var(--udemy-purple);
        box-shadow: 0 0 0 3px rgba(164, 53, 240, 0.1);
    }

    .onboard-modal .btn-primary {
        background: var(--udemy-purple);
        border: none;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        font-weight: 600;
    }

    .onboard-modal .btn-primary:hover {
        background: var(--secondary-color);
    }

    /* Auth Toggle */
    .auth-toggle {
        display: flex;
        background: var(--udemy-light-gray);
        border-radius: 8px;
        padding: 4px;
        margin-bottom: 1.5rem;
    }

    .auth-toggle .btn {
        flex: 1;
        border-radius: 6px;
        padding: 0.5rem 1rem;
        font-weight: 500;
        border: none;
        background: transparent;
        color: var(--udemy-gray);
    }

    .auth-toggle .btn.active {
        background: white;
        color: var(--udemy-dark);
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    @media (max-width: 768px) {
        .hero-section h1 {
            font-size: 2rem;
        }

        .onboarding-section {
            margin-top: -2rem;
        }

        .onboard-card {
            padding: 1rem;
        }

        .stat-item .stat-number {
            font-size: 1.75rem;
        }
    }

    /* Combined State Info & Hero Section - Professional Government Style */
    .state-hero-section {
        background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
        color: white;
        padding: 0;
        border-bottom: 4px solid #c9a227;
    }

    .state-info-row {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero-content-row {
        padding: 1.5rem 0 2rem;
    }

    /* Leaders Row */
    .leaders-row {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .leader-card {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: rgba(255,255,255,0.08);
        border-radius: 10px;
        padding: 0.75rem 1rem;
        border: 1px solid rgba(255,255,255,0.12);
        transition: all 0.2s ease;
        flex: 1;
        min-width: 200px;
        max-width: 280px;
    }

    .leader-card:hover {
        background: rgba(255,255,255,0.12);
        border-color: rgba(201,162,39,0.4);
        transform: translateY(-1px);
    }

    .leader-photo {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #c9a227;
        box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    }

    .leader-photo-placeholder {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid rgba(255,255,255,0.4);
        box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    }

    .leader-photo-placeholder i {
        font-size: 1.5rem;
        color: #1a365d;
    }

    .leader-info {
        flex: 1;
    }

    .leader-info .role {
        font-size: 0.6rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #c9a227;
        font-weight: 700;
        margin-bottom: 0.15rem;
    }

    .leader-info .name {
        font-size: 0.85rem;
        font-weight: 600;
        color: white;
        line-height: 1.3;
        word-wrap: break-word;
    }

    /* State Writeup Box */
    .state-writeup-box {
        background: rgba(255,255,255,0.08);
        border-radius: 10px;
        padding: 0.85rem 1rem;
        border: 1px solid rgba(255,255,255,0.12);
        height: 100%;
        display: flex;
        align-items: center;
    }

    .state-writeup-section {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .state-writeup-section p {
        margin: 0;
    }

    .welcome-text {
        font-size: 0.85rem;
        color: #c9a227;
        font-weight: 500;
    }

    /* Hero Content */
    .hero-content-row .location-indicator {
        display: inline-flex;
        align-items: center;
        background: rgba(255,255,255,0.15);
        padding: 0.4rem 0.85rem;
        border-radius: 20px;
        font-size: 0.8rem;
        margin-bottom: 1rem;
        color: white;
        border: 1px solid rgba(255,255,255,0.2);
    }

    .hero-content-row .location-indicator i {
        margin-right: 0.4rem;
        color: #c9a227;
    }

    .hero-content-row .location-indicator .spinner-border {
        width: 0.9rem;
        height: 0.9rem;
        margin-right: 0.4rem;
    }

    .hero-content-row h1 {
        font-size: 1.85rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: white;
    }

    .hero-content-row .lead {
        font-size: 1rem;
        color: rgba(255,255,255,0.85);
        margin-bottom: 0;
        max-width: 700px;
    }

    @media (max-width: 991px) {
        .state-info-row .row > div {
            margin-bottom: 0.75rem;
        }

        .state-info-row .row > div:last-child {
            margin-bottom: 0;
        }

        .leaders-row {
            justify-content: center;
        }
    }

    @media (max-width: 768px) {
        .hero-content-row h1 {
            font-size: 1.5rem;
        }

        .leader-card {
            min-width: 160px;
            max-width: none;
        }

        .leader-info .name {
            font-size: 0.8rem;
        }
    }

    @media (max-width: 576px) {
        .leaders-row {
            flex-direction: column;
        }

        .leader-card {
            width: 100%;
        }

        .state-writeup-box,
        .hero-content-row {
            text-align: center;
        }
    }

    /* Feature Icons */
    .feature-icon {
        font-size: 3rem;
        margin-bottom: 0.75rem;
    }

    .feature-icon-purple {
        color: var(--udemy-purple, #a435f0);
    }

    .feature-icon-green {
        color: #059669;
    }

    .feature-icon-amber {
        color: #f59e0b;
    }

    /* Header Logo */
    .header-logo-img {
        height: 60px;
        width: auto;
    }

    /* Hidden utility */
    .hidden-field {
        display: none;
    }
