@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

body {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0A0A0C;
    color: #F1E4C6;
    overflow-x: hidden;
    width: 100%;
}

/* HEADER STYLES */
.header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 166, 87, 0.2);
    z-index: 1000;
    padding: 1rem 0;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 3rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 65px;
    height: 65px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0A0A0C;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.institute-name {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.institute-name-line1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #7A1F1F;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.institute-name-line2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #D4A657;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* NAVIGATION */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #F1E4C6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link:hover,
.nav-link.active {
    color: #D4A657;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 1.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 12, 0.98);
    border: 2px solid rgba(212, 166, 87, 0.4);
    border-radius: 12px;
    min-width: 220px;
    padding: 0.75rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 166, 87, 0.2);
    animation: fadeInDown 0.3s ease;
    z-index: 1001;
}

/* Fix for hover gap - Trapezoid Bridge */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -2rem;
    /* Extend higher to overlap parent */
    left: 0;
    width: 100%;
    height: 2rem;
    background: transparent;
    /* Create a funnel shape to catch diagonal movement but avoid blocking neighbors */
    clip-path: polygon(0 100%, 100% 100%, 75% 0, 25% 0);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    padding: 0.85rem 1.5rem;
    color: #F1E4C6;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(212, 166, 87, 0.15);
    color: #D4A657;
    padding-left: 2rem;
}

.enrol-btn-header {
    background: linear-gradient(135deg, #D4A657, #CFA451);
    color: #0A0A0C;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 30px rgba(212, 166, 87, 0.6);
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    margin-left: 1rem;
    cursor: pointer;
}

.enrol-btn-header:hover {
    box-shadow: 0 0 40px rgba(212, 166, 87, 0.9);
    transform: translateY(-3px) scale(1.05);
}

/* MOBILE NAV */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid #D4A657;
    color: #D4A657;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: rgba(212, 166, 87, 0.1);
    box-shadow: 0 0 15px rgba(212, 166, 87, 0.3);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(15px);
    border-left: 2px solid rgba(212, 166, 87, 0.3);
    z-index: 2000;
    transition: right 0.4s ease;
    overflow-y: auto;
    padding: 2rem;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #D4A657;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-menu {
    list-style: none;
    margin-top: 3rem;
}

.mobile-nav-item {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    color: #F1E4C6;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-nav-link:hover {
    background: rgba(212, 166, 87, 0.1);
    color: #D4A657;
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1rem;
}

.mobile-dropdown-content.active {
    max-height: 500px;
}

.mobile-dropdown-item {
    padding: 0.75rem 1rem;
    color: #F1E4C6;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-left: 2px solid transparent;
}

.mobile-dropdown-item:hover {
    color: #D4A657;
    border-left-color: #D4A657;
}

.mobile-enrol-btn {
    background: linear-gradient(135deg, #D4A657, #CFA451);
    color: #0A0A0C;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 0 25px rgba(212, 166, 87, 0.5);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1500;
}

.overlay.active {
    display: block;
}

/* HERO SECTION (Index) */
.hero-section {
    min-height: 90%;
    background: linear-gradient(135deg, #0A0A0C 0%, #6A1616 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.hero-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 166, 87, 0.15), transparent);
    border-radius: 50%;
    top: -250px;
    right: -200px;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(122, 31, 31, 0.2), transparent);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: #D4A657;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #F1E4C6, #D4A657);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    color: #F1E4C6;
    opacity: 0.95;
    line-height: 1.9;
    margin-bottom: 3rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image-card {
    position: relative;
    transform: rotate(-3deg);
    transition: transform 0.4s;
    max-width: 450px;
    margin-left: auto;
}

.hero-image-card:hover {
    transform: rotate(0deg) scale(1.03);
}

.image-wrapper {
    background: linear-gradient(135deg, #1a1a1c, #2a2a2c);
    border-radius: 20px;
    padding: 1.2rem;
    border: 3px solid #D4A657;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(212, 166, 87, 0.4);
}

.placeholder-image {
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, #7A1F1F, #6A1616);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(212, 166, 87, 0.3);
    overflow: hidden;
}

.placeholder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PAGE HEADER (Subpages) */
.page-header {
    background: linear-gradient(135deg, #0A0A0C 0%, #6A1616 100%);
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    color: #D4A657;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #F1E4C6;
    opacity: 0.9;
}

/* SECTIONS & COMPONENTS */
.section {
    padding: 7rem 2rem;
    width: 100%;
}

.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #D4A657;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: #F1E4C6;
    opacity: 0.85;
    margin-bottom: 5rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, #D4A657, #CFA451);
    color: #0A0A0C;
    padding: 1.2rem 3rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(212, 166, 87, 0.6);
    transition: all 0.3s;
    border: none;
    font-size: 1.05rem;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 0 35px rgba(212, 166, 87, 0.9);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: #D4A657;
    /* Changed from Maroon to Gold */
    padding: 1.2rem 3rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    border: 3px solid #D4A657;
    /* Changed from Maroon to Gold */
    transition: all 0.3s;
    font-size: 1.05rem;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background: #D4A657;
    /* Solid Gold on Hover */
    color: #0A0A0C;
    /* Dark Text */
    box-shadow: 0 0 25px rgba(212, 166, 87, 0.4);
}

/* CARDS & GRIDS */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.course-card {
    background: rgba(26, 26, 28, 0.8);
    border: 3px solid rgba(212, 166, 87, 0.3);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.4s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    border-color: #D4A657;
    box-shadow: 0 15px 50px rgba(212, 166, 87, 0.25);
    transform: translateY(-8px);
}

.course-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: #D4A657;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.course-card p {
    color: #F1E4C6;
    opacity: 0.85;
    line-height: 1.9;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    flex-grow: 1;
}

.course-btn {
    background: transparent;
    color: #7A1F1F;
    padding: 0.9rem 2rem;
    border: 2px solid #7A1F1F;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.course-btn:hover {
    background: rgba(122, 31, 31, 0.15);
    box-shadow: 0 0 20px rgba(122, 31, 31, 0.4);
    transform: translateY(-2px);
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 4rem;
}

.faculty-card {
    text-align: center;
}

.faculty-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7A1F1F, #6A1616);
    border: 5px solid #D4A657;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(212, 166, 87, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 166, 87, 0.3);
    transition: all 0.3s;
    overflow: hidden;
}

.faculty-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faculty-card:hover .faculty-photo {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(212, 166, 87, 0.5);
}

.faculty-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #F1E4C6;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.faculty-card p {
    color: #D4A657;
    font-size: 1rem;
    font-weight: 500;
}

.testimonials-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* Note: Original testimonial grid in testimonials.php uses .testimonials-grid, ensuring compatibility */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    background: rgba(26, 26, 28, 0.9);
    border: 3px solid rgba(212, 166, 87, 0.4);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: 0.3s;
}

.testimonial-card:hover {
    border-color: #D4A657;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.testimonial-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4A657, #CFA451);
    border: 4px solid #7A1F1F;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #0A0A0C;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-size: 1.2rem;
    color: #F1E4C6;
    font-style: italic;
    line-height: 2;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.testimonial-author {
    color: #D4A657;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* GALLERY CAROUSEL (Homepage) */
.gallery-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0 2rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
}

/* GALLERY GRID (Gallery Page) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Base Item Style */
.gallery-item {
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(212, 166, 87, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    background: #1a1a1c;
}

/* Specific to Carousel Items */
.gallery-carousel .gallery-item {
    min-width: 300px;
    /* Fixed width for carousel */
    flex-shrink: 0;
    scroll-snap-align: center;
}

.gallery-item:hover {
    transform: scale(1.05);
    /* Works for both */
    border-color: #D4A657;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: #D4A657;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* FACILITIES & RESULTS (Styles specific to subpages but useful globally) */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.facility-card {
    background: rgba(26, 26, 28, 0.8);
    border: 2px solid rgba(212, 166, 87, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
}

.facility-card:hover {
    border-color: #D4A657;
    transform: translateY(-5px);
}

.facility-image {
    height: 220px;
    background: #222;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.facility-content {
    padding: 2rem;
    text-align: center;
}

.facility-content h3 {
    font-family: 'Montserrat', sans-serif;
    color: #D4A657;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.facility-content p {
    color: #F1E4C6;
    opacity: 0.9;
    line-height: 1.6;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.result-card {
    background: linear-gradient(135deg, #1a1a1c, #2a2a2c);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 2px solid rgba(212, 166, 87, 0.2);
    transition: all 0.4s;
    overflow: hidden;
}

.result-card:hover {
    transform: translateY(-10px);
    border-color: #D4A657;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.topper-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #D4A657;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
    border: 4px solid #7A1F1F;
}

.topper-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #F1E4C6;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.rank {
    display: inline-block;
    background: #7A1F1F;
    color: #F1E4C6;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.marks {
    color: #D4A657;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ABOUT PAGE STYLES */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.content-block h2 {
    font-family: 'Montserrat', sans-serif;
    color: #D4A657;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content-block p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 1.05rem;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #D4A657;
    height: 100%;
    min-height: 400px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ceo-messages {
    padding: 2rem;
    background: rgba(26, 26, 28, 0.6);
    border-left: 4px solid #D4A657;
    border-radius: 10px;
    margin-top: 2rem;
}

/* CONTACT PAGE STYLES */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    background: rgba(26, 26, 28, 0.6);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 166, 87, 0.1);
}

.contact-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: #D4A657;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(212, 166, 87, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4A657;
}

.contact-form {
    background: linear-gradient(135deg, #1a1a1c, #0A0A0C);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(212, 166, 87, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    color: #D4A657;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 12, 0.8);
    border: 1px solid rgba(212, 166, 87, 0.3);
    border-radius: 8px;
    color: #F1E4C6;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #D4A657, #CFA451);
    color: #0A0A0C;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

/* FOOTER */
.footer {
    background: #0A0A0C;
    border-top: 2px solid rgba(212, 166, 87, 0.2);
    padding: 5rem 2rem 2rem;
    width: 100%;
    margin-top: 4rem;
    text-align: center;
}

/* Unified padding/margin */
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    margin-bottom: 2rem;
    /* Reduced from 4rem */
    text-align: left;
}

.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    color: #D4A657;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.footer-col p,
.footer-col a {
    color: #F1E4C6;
    opacity: 0.85;
    line-height: 2;
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
    transition: all 0.3s;
    font-size: 1rem;
}

.footer-col a:hover {
    color: #D4A657;
    opacity: 1;
    padding-left: 0.5rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4A657, #CFA451);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #0A0A0C;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(212, 166, 87, 0.4);
    overflow: hidden;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Hide Footer Logo on Desktop to align headings */
@media (min-width: 901px) {
    .footer-logo {
        display: none;
    }
}

.social-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 50%;
    border: 1px solid #D4A657;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4A657;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.5rem;
}

.social-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.social-icon:hover {
    background: #D4A657;
    color: #0A0A0C;
    box-shadow: 0 0 15px rgba(212, 166, 87, 0.4);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(212, 166, 87, 0.15);
    color: #F1E4C6;
    opacity: 0.7;
    font-size: 0.95rem;
}

/* POPUP MODAL */
.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.popup-modal.active {
    display: flex;
}

.popup-content {
    background: linear-gradient(135deg, #1a1a1c, #0A0A0C);
    border: 3px solid #D4A657;
    border-radius: 24px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(212, 166, 87, 0.3);
    animation: popupSlideIn 0.5s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #D4A657;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0.5rem;
    line-height: 1;
}

.popup-close:hover {
    transform: rotate(90deg);
    color: #F1E4C6;
}

.popup-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: #D4A657;
    margin-bottom: 0.5rem;
    font-weight: 800;
    text-align: center;
}

.popup-content p {
    text-align: center;
    color: #F1E4C6;
    opacity: 0.85;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.popup-form .form-group {
    margin-bottom: 1.5rem;
}

/* MOBILE RESPONSIVE TWEAKS */
@media (max-width: 1024px) {
    .header-container {
        grid-template-columns: auto 1fr;
    }

    .nav-menu {
        display: none;
    }

    .enrol-btn-header {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-card {
        max-width: 400px;
        margin: 2rem auto 0;
        transform: rotate(0deg);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        margin-bottom: 2rem;
        height: 300px;
    }
}

@media (max-width: 640px) {
    .header-container {
        padding: 0 1rem;
        gap: 1rem;
    }

    .institute-name-line1 {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .institute-name-line2 {
        font-size: 0.7rem;
        letter-spacing: 3px;
    }

    .logo {
        width: 55px;
        height: 55px;
        font-size: 1.7rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content h2 {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .courses-grid,
    .faculty-grid {
        grid-template-columns: 1fr;
    }

    .popup-content {
        padding: 1.5rem;
        width: 85%;
        max-width: 400px;
    }

    .popup-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.8rem;
        padding: 0.5rem;
    }

    .popup-content h2 {
        font-size: 1.6rem;
        margin-top: 1rem;
        /* Clear the close button */
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* EXTENSION: Subpage Specifics */
/* courses.php */
.course-image {
    height: 200px;
    background: #222;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #F1E4C6;
    opacity: 0.8;
}

.course-desc {
    color: #F1E4C6;
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* faculty.php */
.designation {
    color: #F1E4C6;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.qualification {
    color: #D4A657;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.experience {
    font-style: italic;
    opacity: 0.7;
}

/* course-details.php */
.course-header {
    background: linear-gradient(135deg, #0A0A0C 0%, #6A1616 100%);
    padding: 6rem 2rem;
    text-align: center;
}

.course-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    color: #D4A657;
    font-weight: 800;
    margin-bottom: 1rem;
}

.course-image-large {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    border: 2px solid #D4A657;
}

.course-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-block {
    background: rgba(26, 26, 28, 0.8);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 166, 87, 0.2);
    margin-bottom: 3rem;
}

.content-block h2 {
    color: #D4A657;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.content-block p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.features-list li::before {
    content: '✓';
    color: #D4A657;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
}

/* PRIVACY & TERMS */
.policy-container {
    background: rgba(26, 26, 28, 0.8);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 166, 87, 0.2);
    max-width: 1000px;
    margin: 0 auto;
}

.policy-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: #D4A657;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.policy-container h2:first-child {
    margin-top: 0;
}

.policy-container p {
    color: #F1E4C6;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.policy-container ul {
    list-style: disc;
    padding-left: 2rem;
    color: #F1E4C6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .logo {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .institute-name-line1 {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .institute-name-line2 {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .header-container {
        grid-template-columns: 1fr auto;
    }

    .nav-menu,
    .enrol-btn-header {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-image-container {
        display: none;
        /* Hide hero image on mobile to save space */
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 0 1rem;
    }

    .institute-name {
        display: none;
        /* Hide name on very small screens */
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
        /* Changed from center */
        gap: 2rem;
        /* Reduced gap */
    }

    .footer-col {
        align-items: flex-start;
        /* Changed from center */
        margin-bottom: 1.5rem;
        /* Reduced usage */
    }

    .footer-col h4 {
        margin-bottom: 0.8rem;
    }

    .footer-col p,
    .footer-col a {
        margin-bottom: 0.3rem;
        /* Tighter lines */
    }

    .social-icons {
        justify-content: flex-start;
        /* Left align */
        gap: 0.8rem;
    }

    /* Tighter Copyright Space */
    .footer-grid {
        margin-bottom: 1.5rem;
        /* Reduced from 4rem */
    }

    .footer-col:last-child {
        margin-bottom: 0;
    }

    .footer-bottom {
        padding-top: 1rem;
        /* Reduced from 2.5rem */
        margin-top: 0;
        border-top: none;
        /* Optional: remove separator line for cleaner look if very close */
    }

    .policy-container {
        padding: 1.5rem;
    }
}



.policy-container li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

@media (max-width: 640px) {
    .policy-container {
        padding: 2rem;
    }

}

/* Hero Mobile Background Update - Reverted to Background Image */
@media (max-width: 900px) {
    .hero-section {
        background: url('../../images/homepagephoto.jpg') no-repeat center top/cover !important;
        position: relative;
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    /* Restore overlay */
    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        /* Dark overlay */
        z-index: 1;
        display: block;
    }

    .hero-container {
        position: relative;
        z-index: 2;
        grid-template-columns: 1fr;
    }

    /* Hide the standalone image on mobile */
    .hero-image-desktop {
        display: none !important;
    }

    .hero-content {
        text-align: center;
        align-items: center;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Footer Tightening */
    .footer-col {
        margin-bottom: 2rem;
    }

    .footer-col h4 {
        margin-bottom: 1rem;
    }

    .footer-col p,
    .footer-col a {
        margin-bottom: 0.5rem;
        /* Reduced from 1rem */
        line-height: 1.5;
    }
}

@media (min-width: 901px) {
    .hero-section {
        overflow: visible;
        /* Allow image to overlap */
        padding-bottom: 8rem;
        /* Space for the overlap */
    }

    .hero-image-desktop {
        display: block;
        position: relative;
        z-index: 10;
        margin-top: 2rem;
        /* Position to overlap the intersection */
        margin-bottom: -150px;
        animation: float 6s ease-in-out infinite;
    }

    .image-wrapper {
        border-radius: 20px;
        overflow: hidden;
        width: 100%;
        height: 500px;
        /* Fixed height for consistent look */
        position: relative;
        border: 2px solid rgba(212, 166, 87, 0.3);
        box-shadow: 0 0 30px rgba(212, 166, 87, 0.1);
    }

    .image-wrapper img {
        width: 100%;
        height: 100%;
        /* Force height to match wrapper */
        object-fit: cover;
        /* Crop to fit, never distort */
        display: block;
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        display: block;
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        /* Shadow on image itself */
    }

    @keyframes float {
        0% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-10px);
        }

        /* Reduced float movement */
        100% {
            transform: translateY(0px);
        }
    }
}



/* Floating Pill Header for Mobile */
@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        background: rgba(15, 15, 18, 0.95);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(212, 166, 87, 0.3);
        border-radius: 50px;
        padding: 0.5rem 1.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        z-index: 10000;
        border-bottom: 1px solid rgba(212, 166, 87, 0.3);
        /* Ensure border is consistent */
    }

    .header-container {
        padding: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .logo-section {
        gap: 10px;
    }

    .logo {
        width: 40px;
        height: 40px;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .logo img {
        height: 100%;
        width: 100%;
        object-fit: contain;
    }

    .institute-name {
        display: flex !important;
        /* Force show */
        flex-direction: column;
        justify-content: center;
    }

    .institute-name-line1 {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        line-height: 1.1;
        font-weight: 700;
    }

    .institute-name-line2 {
        display: block !important;
        font-size: 0.55rem;
        letter-spacing: 1px;
        color: #D4A657;
        font-weight: 600;
        line-height: 1;
    }

    .mobile-menu-btn {
        background: transparent;
        border: 1px solid rgba(212, 166, 87, 0.3);
        color: #D4A657;
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        /* Circular button fitting the aesthetic */
        display: flex;
        /* Ensure visible */
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .nav-menu,
    .enrol-btn-header {
        display: none;
    }
}

/* Courses Carousel */
.courses-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.courses-carousel::-webkit-scrollbar {
    display: none;
}

.courses-carousel .course-card {
    min-width: 300px;
    max-width: 350px;
    scroll-snap-align: center;
    flex: 0 0 auto;
}

.courses-carousel:active {
    cursor: grabbing;
}

/* --- MODERN POPUP STYLES --- */
.popup-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
}

.popup-card {
    background: #fff;
    width: 90%;
    max-width: 420px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.popup-overlay.show .popup-card {
    transform: translateY(0);
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
}

.popup-close-btn:hover {
    opacity: 1;
}

/* Header */
.popup-header {
    background: linear-gradient(135deg, #0A0A0C 0%, #6A1616 100%);
    /* Dark to Maroon */
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
    color: #D4A657;
    /* Gold Text */
    position: relative;
    border-bottom: 2px solid #D4A657;
}

.popup-icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(212, 166, 87, 0.1);
    border: 1px solid #D4A657;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 24px;
    color: #D4A657;
}

.popup-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #D4A657;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-header p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: #F1E4C6;
}

/* Body */
.popup-body {
    padding: 1.5rem;
    background: #1a1a1c;
    /* Dark BG */
}

.modern-input-group {
    margin-bottom: 1rem;
}

.modern-input,
.modern-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(212, 166, 87, 0.3);
    background: #0A0A0C;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #F1E4C6;
    outline: none;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.modern-input:focus,
.modern-select:focus {
    border-color: #D4A657;
    background: #0A0A0C;
    box-shadow: 0 0 0 3px rgba(212, 166, 87, 0.1);
}

.modern-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #D4A657, #CFA451);
    /* Gold Gradient */
    color: #0A0A0C;
    /* Dark Text */
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.modern-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 166, 87, 0.3);
}

.popup-trusted-badges {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: #F1E4C6;
    opacity: 0.7;
}

.popup-trusted-badges i {
    color: #D4A657;
    /* Gold check */
}


/* --- NEW HOMEPAGE SECTIONS (Dark Theme) --- */

/* Why Choose Us (Stats) */
.stats-section {
    padding: 4rem 2rem;
    background: #0A0A0C;
}

.stats-grid-container {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.legacy-card {
    background: linear-gradient(135deg, #D4A657, #CFA451);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #0A0A0C;
    box-shadow: 0 20px 40px rgba(212, 166, 87, 0.2);
    position: relative;
    overflow: hidden;
}

.legacy-card h2 {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.legacy-card span {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.legacy-card::before {
    content: '★';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg);
}

.small-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card-modern {
    background: #1a1a1c;
    border: 1px solid rgba(212, 166, 87, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: 0.3s;
}

.stat-card-modern:hover {
    border-color: #D4A657;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-icon-modern {
    font-size: 2.5rem;
    color: #D4A657;
    margin-bottom: 1rem;
}

.stat-card-modern h3 {
    font-size: 2rem;
    color: #D4A657;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.5rem;
}

.stat-card-modern p {
    color: #F1E4C6;
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Facilities (Features) */
.modern-features-section {
    padding: 4rem 2rem;
    background: #0f0f11;
}

.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    background: #1a1a1c;
    border: 1px solid rgba(212, 166, 87, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: 0.3s;
}

.feature-box:hover {
    background: #222224;
    border-color: #D4A657;
    transform: translateY(-5px);
}

.feature-icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7A1F1F, #0A0A0C);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4A657;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 166, 87, 0.3);
}

.feature-box h4 {
    color: #F1E4C6;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-family: 'Montserrat', sans-serif;
}

.feature-box p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Study Bag Banner */
.study-bag-banner {
    max-width: 1200px;
    margin: 3rem auto 0;
    background: linear-gradient(135deg, #1a1a1c, #0A0A0C);
    border: 2px solid #D4A657;
    border-radius: 24px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: 2rem;
    gap: 3rem;
}

.bag-content {
    flex: 1;
    z-index: 2;
}

.bag-tag {
    background: #D4A657;
    color: #0A0A0C;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.bag-content h3 {
    font-size: 2rem;
    color: #D4A657;
    /* Gold */
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
}

.bag-content p {
    color: #F1E4C6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.bag-list {
    list-style: none;
    color: #F1E4C6;
    font-size: 0.95rem;
}

.bag-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bag-list li::before {
    content: '✓';
    color: #D4A657;
    font-weight: 800;
}

.bag-image-col {
    flex: 1;
    display: flex;
    justify-content: center;
}

.bag-placeholder {
    width: 300px;
    height: 200px;
    background: #6A1616;
    /* Maroon Placeholder */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4A657;
    font-size: 3rem;
    border: 2px dashed #D4A657;
}

@media (max-width: 900px) {
    .stats-grid-container {
        grid-template-columns: 1fr;
    }

    .study-bag-banner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .bag-list {
        text-align: left;
        display: inline-block;
    }
}