/* STAR ACADEMY ROHTAK CUSTOM STYLES */
:root {
    --primary-color: #142b3c; /* Navy Blue */
    --secondary-color: #2047a2; /* Royal Blue */
    --accent-color: #f5a623; /* Gold Yellow */
    --accent-hover: #d98e16;
    --dark-bg: #0b1a27;
    --light-bg: #f8fafc;
    --text-color: #334155;
    --text-muted: #64748b;

    /* Admin Specific Palette */
    --admin-sidebar-bg: #0f172a; /* Slate 900 Deep Dark */
    --admin-sidebar-hover: #1e293b; /* Slate 800 */
    --admin-sidebar-active: #2047a2; /* Royal Blue Active */
    --admin-text-light: #f8fafc;
    --admin-text-muted: #94a3b8;
}

body {
    font-family: 'Rubik', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
}

/* Top Notification Bar */
.top-header {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header a {
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.top-quick-links li {
    display: inline-block;
    margin-left: 15px;
}

.top-quick-links li a {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
}

.top-quick-links li a:hover {
    background: var(--secondary-color);
    color: #ffffff;
}

/* Middle Contact Header */
.header-middle {
    padding: 15px 0;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.logo-brand h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -0.5px;
}

.logo-brand span {
    color: var(--secondary-color);
}

.header-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-info-box .icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.header-info-box .text p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.header-info-box .text h6 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Navbar */
.main-navbar {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.main-navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 18px !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    background-color: rgba(0, 0, 0, 0.15);
    color: var(--accent-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 8px 0;
}

.dropdown-item {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 20px;
    color: var(--primary-color);
}

.dropdown-item:hover {
    background-color: #eff6ff;
    color: var(--secondary-color);
}

/* Banner Carousel */
.hero-carousel .carousel-item {
    height: 540px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(11, 26, 39, 0.92) 0%, rgba(20, 43, 60, 0.75) 50%, rgba(32, 71, 162, 0.5) 100%);
}

.hero-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #ffffff;
    max-width: 750px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 35px 40px;
    border-radius: 16px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left-width: 5px;
}

.hero-caption h2 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.25;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    position: relative;
    padding-bottom: 12px;
}

.hero-caption h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.8);
}

.hero-caption p {
    font-size: 1.15rem;
    margin-top: 15px;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
    opacity: 0.95;
    line-height: 1.6;
}

/* Animations for Active Carousel Item */
.carousel-item.active .hero-caption {
    animation: fadeInUp 0.8s ease-out forwards;
}

.carousel-item.active .hero-caption h2 {
    animation: slideInLeft 0.9s ease-out forwards;
}

.carousel-item.active .hero-caption p {
    animation: fadeInUp 1s ease-out forwards;
}

/* Responsive Styling for Hero Carousel */
@media (max-width: 991.98px) {
    .hero-carousel .carousel-item {
        height: 480px;
    }
    .hero-caption {
        max-width: 90%;
        padding: 25px 30px;
    }
    .hero-caption h2 {
        font-size: 2rem;
    }
    .hero-caption p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel .carousel-item {
        height: 430px;
    }
    .hero-caption {
        max-width: 95%;
        padding: 18px 20px;
        border-radius: 12px;
        margin: 0 auto;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.55);
    }
    .hero-caption h2 {
        font-size: 1.45rem;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    .hero-caption h2::after {
        width: 60px;
        height: 3px;
    }
    .hero-caption p {
        font-size: 0.88rem;
        margin-top: 10px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    .hero-caption .btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        margin-bottom: 5px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-40%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 166, 35, 0.4);
}

/* Counter Section */
.counter-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.counter-box:hover {
    transform: translateY(-5px);
}

.counter-box h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.counter-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 600;
}

/* Course Cards */
.course-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(32, 71, 162, 0.15);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #cbd5e1;
    padding-top: 60px;
    font-size: 0.9rem;
}

/* ==========================================================================
   ENHANCED HIGH-CONTRAST ADMIN STYLING
   ========================================================================== */

.admin-sidebar {
    min-height: 100vh;
    background-color: var(--admin-sidebar-bg) !important;
    color: var(--admin-text-light) !important;
    border-right: 1px solid #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar-brand {
    padding: 15px 10px;
    border-bottom: 1px solid #1e293b;
}

.admin-sidebar .nav-link {
    color: #e2e8f0 !important; /* High contrast crisp text */
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
    text-decoration: none;
}

.admin-sidebar .nav-link i {
    font-size: 1.15rem;
    width: 28px;
    color: var(--accent-color) !important; /* Gold Icon Accent */
    transition: transform 0.2s ease;
}

.admin-sidebar .nav-link:hover {
    background-color: var(--admin-sidebar-hover) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

.admin-sidebar .nav-link:hover i {
    transform: scale(1.15);
}

.admin-sidebar .nav-link.active {
    background-color: var(--admin-sidebar-active) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(32, 71, 162, 0.4);
    border-left: 4px solid var(--accent-color);
}

.admin-sidebar .nav-link.active i {
    color: #ffffff !important;
}

/* Collapsed Desktop Sidebar Mode */
body.sidebar-collapsed .admin-sidebar {
    margin-left: -260px;
}
body.sidebar-collapsed .admin-main-content {
    max-width: 100vw !important;
}

/* Admin Dashboard Cards & UI */
.admin-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.admin-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.admin-topbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.sidebar-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #1e293b;
    border: none;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover {
    background: #2047a2;
    color: #ffffff;
}
