/* --- BVSUSA Master Theme: Saffron & Gold --- */
/* 1. Force the root variables to stay light */
:root, [data-bs-theme="light"] {
    --bs-body-bg: #ffffff !important;
    --bs-body-color: #212529 !important;
    --bs-tertiary-bg: #f8f9fa !important;
}

/* 2. Kill any automatic inversion */
html {
    color-scheme: light !important;
}

body {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #212529 !important;
}

/* 3. Ensure the sticky top and nav stay white */
.sticky-top, .navbar, .bg-light, .bg-white {
    background-color: #ffffff !important;
}
/* FORCE WHITE BACKGROUND ON ALL DEVICES */
html, body {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #212529 !important;
    color-scheme: light !important;
}

/* Fix for the sticky header and navbar */
.sticky-top, 
.navbar, 
.bg-light, 
.bg-white,
header.banner-top {
    background-color: #ffffff !important;
}

:root {
    --bvs-saffron: #FF9933;
    --bvs-saffron-dark: #E67E22;
    --bvs-gold: #D4AF37;
    --bvs-maroon: #800000;
    --bvs-dark: #1a1a1a;
    --bvs-white: #ffffff;
}

/* --- Global Layout --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: #ffffff; /* Removed !important to allow portal overrides */
    color: #212529;
}

.card, .navbar, .sticky-top {
    background-color: #ffffff !important;
}

h1, h2, h3, h4, .header-title {
    font-family: 'Playfair Display', serif;
}

/* --- Branding & Navigation --- */
.main-branding {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--bvs-white);
    border-bottom: 3px solid var(--bvs-saffron);
}

.logo-area h1 {
    font-size: 2.5rem;
    color: var(--bvs-maroon);
    margin-bottom: 5px;
}

.tagline {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: var(--bvs-saffron);
}

.sub-header-nav {
    background-color: var(--bvs-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sub-header-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0;
}

.sub-header-nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
}

.sub-header-nav ul li a:hover, .sub-header-nav ul li a.active {
    color: var(--bvs-saffron);
}

/* --- Hero Visual --- */
.hero-visual {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-instruments.jpg') center/cover no-repeat; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-overlay h2 {
    font-size: 3.5rem;
    font-weight: 700;
}

/* --- Course Grid & Cards --- */
.catalog-preview { padding: 80px 0; }

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.course-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-bottom: 4px solid var(--bvs-saffron);
}

.course-card:hover { transform: translateY(-10px); }

.course-card.highlight { background-color: var(--bvs-dark); color: white; }

.hindi-char, .icon {
    font-size: 3rem;
    color: var(--bvs-saffron);
    margin-bottom: 20px;
}

/* --- Official Certificate & Seal --- */
.certificate-container {
    width: 1000px;
    height: 750px;
    margin: 50px auto;
    border: 15px solid var(--bvs-saffron);
    background: #fffdf5;
    padding: 30px;
}

.bvs-seal {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--bvs-saffron) 0%, var(--bvs-gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- Footer --- */
.main-footer { background: var(--bvs-dark); color: #888; padding: 60px 0; }

/* --- Mobile Specific Overrides (Consolidated) --- */
@media (max-width: 768px) {
    .hero-visual { height: 40vh; }
    .hero-overlay h2 { font-size: 2.2rem; }
    
    .sub-header-nav ul {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px 5px;
        -webkit-overflow-scrolling: touch;
    }

    /* Table Stacking System */
    .table-stackable thead { display: none; }
    .table-stackable tr { 
        display: block; margin-bottom: 1.5rem; border: 1px solid #dee2e6; 
        border-radius: 12px; padding: 10px; background: #fff; 
    }
    .table-stackable td { 
        display: flex; justify-content: space-between; align-items: center;
        text-align: right; padding: 10px !important; position: relative; border-bottom: 1px solid #f8f9fa;
    }
    .table-stackable td:last-child { border-bottom: none; justify-content: center; }
    .table-stackable td::before {
        content: attr(data-label); font-weight: 700; text-transform: uppercase;
        font-size: 0.7rem; color: var(--bvs-maroon);
    }
}