:root {
    /* Naye Logo ke according Premium Colors */
    --primary-dark: #554842; /* Updated Dark Color as requested */
    --primary-gold: #c5a059;
    --primary-light: #f9f8f6;
    --black-text: #000000;
}
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; overflow-x: hidden; background-color: var(--primary-light); }

/* --- Theme Utility Classes --- */
.text-theme-gold { color: var(--primary-gold) !important; }
.text-theme-dark { color: var(--primary-dark) !important; }
.bg-theme-gold { background-color: var(--primary-gold) !important; color: white !important; transition: 0.3s; }
.bg-theme-gold:hover { background-color: #a88746 !important; color: white !important; }
.bg-theme-dark { background-color: var(--primary-dark) !important; color: white !important; }

/* --- 1. Top Bar & Ticker CSS --- */
.top-bar {
    background-color: var(--primary-dark);
    color: white;
    font-size: 13px;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    width: 100%;
    overflow: hidden;
    line-height: 1.2;
}

.top-links {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 12px;
}

.top-links a {
    color: white;
    text-decoration: none;
    margin-right: 14px;
    font-weight: 500;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    transition: 0.3s;
    white-space: nowrap;
}

.top-links a:last-child {
    margin-right: 0;
}

.top-links a:hover {
    color: var(--primary-gold);
    text-decoration: none;
}

.top-links a i {
    font-size: 12px;
}

.ticker-container {
    background-color: var(--primary-gold);
    color: var(--primary-dark);
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 0;
    flex: 1 1 0%;
    min-width: 0; /* Ensures the flex item can shrink without overflowing */
    position: relative;
    cursor: default;
}

.ticker-text {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
    cursor: pointer;
}

/* MARQUEE HOVER PAUSE */
.ticker-container:hover .ticker-text,
.ticker-text:hover {
    animation-play-state: paused !important;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.top-enquiry {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 4px 8px;
}

.booking-btn {
    background-color: white;
    color: var(--primary-dark);
    font-weight: bold;
    border: none;
    padding: 5px 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    white-space: nowrap;
    font-size: 13px;
    border-radius: 4px;
}

.booking-btn:hover {
    background-color: #f0ede8;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .top-bar { font-size: 12px; }
    .top-links { padding: 5px 8px; }
    .top-links a { margin-right: 8px; font-size: 12px; }
    .booking-btn { padding: 4px 10px; font-size: 12px; }
}

@media (max-width: 480px) {
    .top-bar { font-size: 11px; }
    .top-links { padding: 4px 6px; }
    .top-links a { margin-right: 6px; font-size: 11px; }
    .top-link-extra { display: none; }
    .top-enquiry { padding: 2px 4px; }
    .booking-btn { padding: 4px 7px; font-size: 11px; }
}

@media (max-width: 360px) {
    .top-link-text { display: none; }
}

/* --- 2. Main Navbar CSS --- */
.navbar-brand { font-weight: bold; color: var(--primary-dark) !important; font-size: 1.5rem; display: flex; align-items: center; }
.navbar-brand i { color: var(--primary-gold); font-size: 2rem; margin-right: 10px; }
.nav-link { color: var(--primary-dark) !important; font-weight: 600; margin: 0 10px; transition: 0.3s; }
.nav-link:hover { color: var(--primary-gold) !important; }
.student-login-btn { border: 2px solid var(--primary-gold); color: var(--primary-dark); font-weight: bold; border-radius: 5px; padding: 8px 20px; transition: 0.3s; }
.student-login-btn:hover { background-color: var(--primary-gold); color: white; }

/* Multi-level Dropdown CSS */
.dropdown-menu { border-radius: 0; border-top: 3px solid var(--primary-gold); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.dropdown-submenu { position: relative; }
.dropdown-submenu .dropdown-menu { top: 0; left: 100%; margin-top: -3px; }
.dropdown-item:hover { background-color: #f8f9fa; color: var(--primary-gold); }
@media (min-width: 992px) {
    .dropdown-submenu:hover > .dropdown-menu { display: block; }
    .nav-item.dropdown:hover > .dropdown-menu { display: block; }
}

/* --- 3. Hero Slider & Wave CSS --- */
.hero-slider { position: relative; }
.carousel-item img { height: 600px; object-fit: cover; }

.wave-container { position: absolute; bottom: -5px; left: 0; width: 100%; z-index: 2; line-height: 0; }
.wave-container svg { display: block; width: calc(100% + 1.3px); height: 80px; }

/* --- 4. Floating Elements (Sticky Buttons) --- */
.side-btn-left {
    position: fixed; left: -75px; top: 40%; transform: rotate(-90deg);
    background-color: var(--primary-dark); color: white;
    padding: 8px 20px; font-weight: bold; font-size: 14px;
    z-index: 1000; border-radius: 0 0 10px 10px; text-decoration: none; box-shadow: 0 4px 6px rgba(0,0,0,0.3); transition: 0.3s;
}
.side-btn-left:hover { background-color: var(--primary-gold); color: white; }
.side-btn-right {
    position: fixed; right: -80px; top: 50%; transform: rotate(90deg);
    background-color: var(--primary-gold); color: white;
    padding: 10px 25px; font-weight: bold; font-size: 16px;
    z-index: 1000; border-radius: 10px 10px 0 0; text-decoration: none; box-shadow: 0 4px 6px rgba(0,0,0,0.3); transition: 0.3s;
}
.side-btn-right:hover { background-color: var(--primary-dark); color: white; }
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background-color: #25d366; color: white;
    border-radius: 50%; width: 60px; height: 60px;
    display: flex; justify-content: center; align-items: center;
    font-size: 35px; z-index: 1000; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

/* General Section padding */
.section-padding { padding: 80px 0; }

/* --- 5. Custom Carousel Controls Hover Effect --- */
.custom-carousel-control {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#homeCarousel:hover .custom-carousel-control {
    opacity: 1;
}
.text-muted {
    color: #64748b !important;
}

/* --- 6. About Section New Styles --- */
.about-section {
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
    padding: 100px 0;
}
/* Angular Geometric Background Shapes */
.shape-bg-1 {
    position: absolute;
    top: 0; left: 0;
    width: 70%; height: 100%;
    background: #f4f4f5; /* Light grey base just like the image */
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);
    z-index: 0;
}
.shape-bg-2 {
    position: absolute;
    bottom: 0; right: 0;
    width: 45%; height: 100%;
    background: linear-gradient(to top left, rgba(197, 160, 89, 0.1), transparent 60%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}
.about-content {
    position: relative;
    z-index: 1;
}
/* Framed Image Container (Dashed border behind image) */
.image-framed-container {
    position: relative;
    padding: 15px 15px 0 0; /* Space for the dashed border to show */
    z-index: 1;
}
.image-framed-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 15px; bottom: 15px;
    border: 2px dashed #d1d5db; /* Light gray dashed border */
    border-radius: 20px;
    z-index: -1;
}
.image-framed-container img {
    border-radius: 15px;
    width: 100%;
    margin-top: 15px;
    margin-left: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* --- 7. Counter Section Styles --- */
.counter-section-container {
    margin-top: 40px; /* Separator spacing */
    position: relative;
    z-index: 10;
}
.counter-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3e332e 100%); /* Premium dark gradient */
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-bottom: 5px solid var(--primary-gold);
}
.counter-item {
    border-right: 1px solid rgba(197, 160, 89, 0.4); /* Subtle gold dividers */
}
.counter-item:last-child {
    border-right: none;
}
.counter-number {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 5px;
}
.counter-number::after {
    content: '+';
    font-size: 2.5rem;
    margin-left: 3px;
    font-weight: bold;
}
.counter-text {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

@media (max-width: 767px) {
    .counter-item {
        border-right: none;
        border-bottom: 1px solid rgba(197, 160, 89, 0.4);
        padding: 25px 0;
    }
    .counter-item:last-child {
        border-bottom: none;
    }
    .counter-box {
        margin: 0 15px;
    }
}
/* --- Elite Mandatory Disclosure Dashboard Styles --- */
.aggs-sidebar-dock {
    background: white;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: sticky;
    top: 140px;
}
.aggs-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #64748b;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 8px;
    transition: 0.3s;
}
.aggs-nav-item:hover {
    background: #f1f5f9;
    color: var(--primary-dark);
}
.aggs-nav-item.active {
    background: var(--primary-dark);
    color: white;
}

.aggs-disclosure-tile {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    overflow: hidden; /* Prevents container breakdown on mobile */
}
.aggs-tile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

/* Responsive Table Wrapper */
.aggs-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    margin-bottom: 0;
}
/* Sleek horizontal scrollbar for mobile swipe */
.aggs-table-responsive::-webkit-scrollbar {
    height: 6px;
}
.aggs-table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}
.aggs-table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.aggs-table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}

.aggs-table {
    width: 100%;
    min-width: 520px; /* Guarantees table columns remain clean & readable on mobile scroll */
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    margin-bottom: 0;
}
.aggs-table thead {
    background: var(--primary-dark);
    color: white;
}
.aggs-table thead th {
    padding: 14px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: none;
}
.aggs-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.92rem;
    vertical-align: middle;
    color: #334155;
    word-break: break-word;
}
.aggs-table tbody tr:last-child td {
    border-bottom: none;
}
.aggs-table tbody tr:hover td {
    background-color: #faf9f6;
}
.aggs-sl {
    background: var(--primary-gold) !important;
    color: white !important;
    width: 55px;
    min-width: 55px;
    text-align: center;
    font-weight: bold;
}
.aggs-btn {
    background: var(--primary-dark);
    color: white;
    padding: 6px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
    transition: 0.25s ease;
}
.aggs-btn:hover {
    background: var(--primary-gold);
    color: white;
}

@media (max-width: 991px) {
    .aggs-sidebar-dock {
        position: static;
        margin-bottom: 25px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 14px;
    }
    .aggs-sidebar-dock p {
        width: 100%;
        margin-bottom: 8px !important;
    }
    .aggs-nav-item {
        margin-bottom: 0;
        padding: 8px 14px;
        font-size: 0.85rem;
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .aggs-disclosure-tile {
        padding: 18px 14px;
        border-radius: 16px;
        margin-bottom: 24px;
    }
    .aggs-tile-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    .aggs-tile-header h4 {
        font-size: 1.15rem;
    }
    .aggs-table {
        min-width: 480px;
    }
    .aggs-table thead th {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    .aggs-table tbody td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    .aggs-sl {
        width: 45px;
        min-width: 45px;
        padding: 10px 6px;
        font-size: 0.82rem;
    }
    .aggs-btn {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}
