@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');


:root {
    /* Colors */
    --bg-body: #050505;
    --bg-card: #111111;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.75);
    /* Increased contrast */
    --text-soft: rgba(255, 255, 255, 0.5);
    --accent: #FF6C1D;
    /* BFIT Orange */
    --accent-blue: #2a91ff;
    /* BFIT Blue */
    --accent-gold: #C5A059;
    /* Gold/Tan for icons */

    /* Typography */
    --font-main: 'Poppins', sans-serif;

    /* Spacing */
    --section-gap: 100px;
    --container-width: 1200px;

    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. Typography System --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    word-spacing: -1px;
    color: var(--text-main);
}

h1 {
    font-size: 4.5rem;
    letter-spacing: -2px;
}

h2 {
    font-size: 3rem;
    letter-spacing: -1.5px;
}

h3 {
    font-size: 2.2rem;
    letter-spacing: -1px;
}

h4 {
    font-size: 1.6rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 300;
    line-height: 2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.text-muted {
    color: var(--text-muted) !important;
}

img {
    display: block;
    max-width: 100%;
}

/* --- 3. Layout Components --- */
.container {
    max-width: var(--container-width);
    width: 90%;
    margin: 0 auto;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.section-padding {
    padding: var(--section-gap) 0;
}

.text-center {
    text-align: center;
}

/* Global Utilities (Reinforced for B5) */
.text-accent {
    color: var(--accent);
}

.text-blue {
    color: var(--accent-blue);
}

.bg-darker {
    background-color: #000;
}

/* --- 4. Global Indicators (Scroll Progress) --- */
#scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 10000;
}

#scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--accent), var(--accent-blue));
    box-shadow: 0 0 10px rgba(42, 145, 255, 0.4);
}

.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 50px;
    width: 50px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-wrap::after {
    position: absolute;
    content: '\f062';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    color: var(--accent);
    left: 0;
    top: 0;
    height: 50px;
    width: 50px;
    display: block;
    transition: var(--transition-smooth);
}

.progress-wrap svg path {
    fill: none;
}

.progress-wrap svg.progress-circle path {
    stroke: var(--accent-blue);
    stroke-width: 6;
    box-sizing: border-box;
    transition: stroke-dashoffset 10ms linear;
}

/* --- 5. Main Component: Header --- */
.bfit-main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 9999;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bfit-header-logo {
    height: 45px;
    width: auto;
}

.btn-header-apply {
    background: var(--accent);
    color: white;
    padding: 10px 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-header-apply:hover {
    background: var(--accent-blue);
    transform: scale(1.05);
    color: #fff;
}

@media (max-width: 768px) {
    .bfit-main-nav {
        height: 70px;
        padding: 0 10px;
    }

    .bfit-header-logo {
        height: 35px;
    }

    .btn-header-apply {
        padding: 8px 15px;
        font-size: 10px;
    }
}

/* --- Premium Hero Slider --- */
.hero-section-new {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-item-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
}

.slide-item-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;

}

.slide-text-overlay {
    position: absolute;
    top: 40%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 5;
    max-width: 900px;
    color: #fff;
    pointer-events: none;
}

.slide-title {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
    animation: slideUpFade 1s forwards 0.3s;
}

.slide-subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0;
    animation: slideUpFade 1s forwards 0.6s;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progressBarContainer {
    position: absolute;
    bottom: 35px;
    left: 5%;
    right: 5%;
    display: flex;
    justify-content: space-between;
    z-index: 100;
}

.progressBarContainer>div {
    flex: 1;
    cursor: pointer;
    color: #fff;
    opacity: 0.4;
    padding: 20px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    position: relative;
}

.progressBarContainer>div.active-progress-item {
    opacity: 1;
    border-top-color: #fff;
}

.progressBar {
    position: absolute;
    top: -1px;
    left: 0;
    height: 1.5px;
    background: var(--accent);
    width: 0%;
    z-index: 10;
}

/* --- Hero Lead Form --- */
#hero-lead-form-container {
    position: absolute;
    top: 45%;
    right: 8%;
    transform: translateY(-50%);
    z-index: 25;
    width: 380px;
    background: #ffffff;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 991px) {
    .hero-section-new {
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }

    #hero-lead-form-container {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 80%;
        max-width: 400px;
        margin: 40px auto 0;
    }
}

/* --- HERO BOTTOM BOXES --- */
.bfit-hero-wrapper {
    position: relative;
    width: 100%;
    clip-path: polygon(0% 10%, 75% 13%, 100% 8%, 100% 100%, 0% 100%);
    margin-top: -125px;
    z-index: 10;
}

.bfit-flex-container {
    display: flex;
    min-height: 600px;
}

.bfit-box {
    flex: 1;
    padding: 160px 40px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.bfit-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    transition: var(--transition-smooth);
}

.box-1::before {
    background: rgba(30, 80, 100, 0.85);
}

.box-2::before {
    background: rgba(20, 60, 90, 0.9);
}

.box-3::before {
    background: rgba(180, 120, 40, 0.85);
}

.box-4::before {
    background: rgba(20, 80, 80, 0.85);
}

.bfit-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.bfit-box .icon {
    width: 50px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.bfit-box h2 {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.line-divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 20px;
}

.bfit-box p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.bfit-btn {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 12px 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}

.bfit-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

/* --- BFIT PERFORMANCE METRICS --- */
.bf-stats-banner {
    width: 100%;
    padding: 80px 0;
    background-color: #f8f9fa;
}

.bf-stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border-radius: 8px;
}

.bf-stats-heading {
    background-color: var(--accent);
    color: #ffffff;
    padding: 60px 40px;
    width: 30%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.bf-stats-heading h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin: 0;
    color: #fff;
    font-weight: 800;
}

.bf-metrics-grid {
    width: 70%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.bf-metric-item {
    padding: 50px 20px;
    text-align: center;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition-smooth);
}

.bf-metric-item:last-child {
    border-right: none;
}

.bf-metric-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.bf-metric-icon {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 15px;
}

.bf-metric-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.bf-metric-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

@media (max-width: 1200px) {
    .bf-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bf-metric-item:nth-child(2) {
        border-right: none;
    }

    .bf-metric-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .bf-metric-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

/* --- ACADEMIC EXCELLENCE --- */
.academic-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.academic-title {
    margin: 1rem 0;
}

.italic-serif {
    font-style: italic;
}

.academic-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.academic-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.academic-features i {
    font-size: 1.1rem;
}

.academic-img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 600px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.academic-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: var(--transition-smooth);
}

.academic-img-wrapper:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.academic-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent);
    color: white;
    padding: 2.5rem;
    min-width: 220px;
    text-align: center;
}

.badge-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.badge-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.border-top-theme {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 992px) {
    .academic-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .academic-img-wrapper {
        height: 450px;
    }
}


/* --- EXPERIENCE SECTION --- */
.experience-section .container {
    max-width: 1350px !important;
}

.experience-slider-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.experience-card {
    position: relative;
    height: 550px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.experience-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.experience-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.4) 40%,
            transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: var(--transition-smooth);
}

.experience-card:hover .card-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.2) 60%,
            transparent 100%);
}

.experience-card .card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--accent-blue) !important;
    line-height: 1.2;
}

.experience-card .card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
    transform: translateY(0);
    opacity: 1;
    transition: var(--transition-smooth);
}

@media (max-width: 1200px) {
    .experience-slider-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .experience-slider-row {
        grid-template-columns: 1fr;
    }

    .experience-card {
        height: 450px;
    }
}

/* --- RECRUITERS & COLLABORATION --- */
.bg-white {
    background-color: #ffffff;
}

.bf-section-title {
    font-size: 2.5rem;
    color: var(--bg-body);
}

.bf-logo-container {
    width: 100%;
    overflow: hidden;
    /* Essential for marquee masking */
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.bf-logo-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.duplicate-set {
    display: none;
    /* Hide duplicate logos on desktop grid */
}

.bf-logo-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    width: 100%;
}

.bf-logo-box:hover {
    border-color: rgba(0, 0, 0, 0.05);
}

.bf-logo-box img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: var(--transition-smooth);
}

.bf-logo-box:hover img {
    transform: scale(1.05);
}

/* Marquee Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half width (one full set) */
    }
}

/* --- Responsive Marquee (Tablet & Mobile) --- */
@media (max-width: 992px) {
    .bf-logo-container {
        display: flex;
        /* Flex container for marquee */
    }

    .bf-logo-track {
        display: flex;
        gap: 2rem;
        width: max-content;
        /* Allow track to expand horizontally */
        animation: scroll 30s linear infinite;
    }

    .bf-logo-item {
        width: 150px;
        /* Fixed width for smooth scrolling items */
        flex-shrink: 0;
    }

    .duplicate-set {
        display: block;
        /* Show duplicates for the loop */
    }

    /* Override grid reset if inherited */
    .bf-logo-grid {
        display: none;
    }
}

#collaborations {
    background-color: #fdf9f4;
    /* Light off-white/cream background */
}

.bf-collab-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.bf-collab-visual {
    text-align: center;
}

.bf-collab-image-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.bf-collab-header {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--bg-body);
    font-weight: 800;
}

.bf-collab-header .industry-badge {
    background: #ffcc00;
    padding: 2px 10px;
    border-radius: 4px;
}

.bf-feature-item {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    margin-bottom: 20px;
}

.bf-feature-item:last-child {
    margin-bottom: 0;
}

.bf-feature-item h4 {
    font-size: 1.1rem;
    color: #111;
    font-weight: 700;
    margin-bottom: 12px;
}

.bf-feature-item p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.bf-collab-image-container {
    position: relative;
    padding-top: 40px;
}

.main-collab-img {
    width: 100%;
    border-radius: 8px;
}

.floating-logo-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 5;
}

.f-logo {
    position: absolute;
    width: 60px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.f-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

.l1 {
    top: 0;
    left: 10%;
}

.l2 {
    top: 10px;
    left: 40%;
}

.l3 {
    top: -5px;
    left: 70%;
}

.l4 {
    top: 15px;
    left: 85%;
}

.bf-feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bf-feature-item {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.bf-feature-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-blue);
}

.bf-feature-item h4 {
    font-size: 1.1rem;
    color: var(--bg-body);
    margin-bottom: 10px;
}

.bf-feature-item p {
    font-size: 0.9rem;
    margin: 0;
}

.border-top-theme-dark {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- PLACEMENT & ALUMNI --- */
.placement-section {
    display: grid;
    grid-template-columns: 35% 65%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-body);
}

.placement-right {
    display: flex;
    flex-direction: column;
}

.student-image-side {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0;
    overflow: hidden;
}

.student-image-side img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.stats-container {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: #f8f7f5;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: #fff;
}

.stat-card-highlight {
    background: #FF6C1D !important;
}

.stat-card-highlight h3,
.stat-card-highlight p {
    color: #fff !important;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.75rem;
    color: #333;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

/* Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marqueeScroll 160s linear infinite;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    width: 300px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-item img {
    max-height: 100px;
    filter: none;
    opacity: 1;
}

/* Alumni */
.alumni-main-wrapper {
    gap: 4rem;
}

.alumni-main-wrapper .text-section {
    flex: 1;
}

.alumni-main-wrapper .image-section {
    flex: 2;
}

.alumni-image-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.alumni-col img {
    width: 100%;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.alumni-col img:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

@media (max-width: 991px) {

    .placement-section,
    .company-logos-wrapper {
        grid-template-columns: 1fr;
    }

    .student-image-side {
        display: flex;
        height: 350px;
        /* Constrain height */
        order: -1;
        /* Show at top */
        justify-content: center;
        align-items: center;
        background: #0d0d0d;
        overflow: hidden;
    }

    .student-image-side img {
        width: auto;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

    /* Placement Marquee Mobile Fix */
    .marquee-container {
        max-width: 100vw;
        overflow: hidden;
    }

    .marquee-content {
        width: max-content;
    }

    .marquee-item {
        width: 150px;
        padding: 0 10px;
    }

    .alumni-main-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .alumni-image-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stats-container {
        padding: 40px 20px;
    }
}

@media (max-width: 576px) {
    .stats-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Force 2 columns */
        gap: 0.5rem;
    }

    .stat-card {
        padding: 1rem 0.5rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    /* Testimonial Mobile Sizing */
    .tabs-cluster li[data-bs-slide-to="0"] img {
        width: 140px !important;
        height: 140px !important;
    }

    .tabs-cluster li[data-bs-slide-to="1"] img,
    .tabs-cluster li[data-bs-slide-to="2"] img {
        width: 80px;
        height: 80px;
    }
}

/* --- VOICES & CAMPUS LIFE --- */
.student-voices {
    padding-top: 0 !important;
    background-color: #f8f9fa;
    overflow: hidden;
}

.voices-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    /* Pin items to bottom */
    gap: 4rem;
}

.voices-media {
    flex: 1;
    min-width: 300px;
    line-height: 0;
    /* Remove potential descender space */
}

.voices-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    /* Make it square at bottom if needed, but keeping branding */
    margin-bottom: 0;
}

.voices-text {
    flex: 1;
    min-width: 300px;
    padding-bottom: 80px;
    /* Balance with image height */
}

.campus-experience .experience-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.experience-info {
    flex: 1;
    min-width: 350px;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    background: #f0f4f8;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 0.85rem;
}

/* Gallery */
.gallery-container {
    flex: 1.5;
    min-width: 350px;
}

.gallery {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 0.5em;
    padding: 0.5em;
    overflow: hidden;
    background: #111;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.gallery__image-wrapper {
    position: relative;
    cursor: pointer;
    padding-top: 75%;
    width: 100%;
    height: 0;
    transform-origin: 0 0;
    overflow: hidden;
    grid-row: span 2;
    grid-column: span 2;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 1px);
    border-radius: 8px;
}

.gallery__image-wrapper::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.33;
    z-index: 1;
    transition: all 500ms ease-out;
}

.gallery__image-wrapper::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
    background: var(--accent);
    transition: all 160ms ease-in;
    mix-blend-mode: hard-light;
}

.gallery__image-wrapper:hover:not(.selected)::before {
    opacity: 0.32;
}

.gallery__image-wrapper.selected {
    grid-row: span 4;
    grid-column: span 4;
    z-index: 5;
}

.gallery__image-wrapper:nth-child(3).selected {
    order: 3 !important;
}

.gallery__image-wrapper:nth-child(6).selected {
    order: 9 !important;
}

.gallery__image-wrapper.selected::after {
    opacity: 0;
    transform: translate(0, 100%);
}

.gallery__image {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    width: auto;
    transform: translate(-50%, -50%);
    transition: all 320ms ease;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }

    .voices-row,
    .experience-row {
        flex-direction: column;
        text-align: center;
    }
}

/* --- APPLICATION PROCESS --- */
.application-process-section {
    position: relative;
    background-color: #0d0d0d;
    overflow: hidden;
}

.radial-dots-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.process-title-container h2 {
    background-color: #004dc5 !important;
    /* Solid Darker Blue Badge */
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: capitalize;
    box-shadow: 0 10px 30px rgba(0, 77, 197, 0.3);
}

.row-app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-card {
    background-color: #1a1a1a;
    /* Solid Dark Grey */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3.5rem 2rem;
    border-radius: 4px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.process-card .icon-box {
    font-size: 3.5rem;
    color: var(--accent-gold);
    /* Gold/Tan icon */
    margin-bottom: 2rem;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-pill {
    background-color: #262626;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.process-card .card-heading {
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.4;
    font-weight: 600;
}

.process-card .btn-link {
    margin-top: 1rem;
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.8;
}

.process-card:hover {
    transform: translateY(-10px);
    border-color: #5bb3ff;
    /* Light Blue Border on Hover */
    box-shadow: 0 0 30px rgba(42, 145, 255, 0.2);
}

.process-card:hover::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 2px solid #5bb3ff;
    border-radius: 4px;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(91, 179, 255, 0.4);
}

.process-card:hover .icon-box {
    transform: scale(1.1);
}

@media (max-width: 1100px) {
    .row-app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .row-app-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FACILITIES (HORIZONTAL SCROLL) --- */
#horizontal-journey-wrapper {
    height: 500vh;
    position: relative;
    overflow: visible;
}

#horizontal-journey-wrapper .sticky-frame {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

#horizontal-journey-wrapper .content-belt {
    display: flex;
    height: 80vh;
    will-change: transform;
    padding: 0 10vw;
    align-items: center;
}

#horizontal-journey-wrapper .story-slide {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#horizontal-journey-wrapper .text-slide {
    width: 45vw;
}

#horizontal-journey-wrapper .image-slide {
    width: auto;
}

#horizontal-journey-wrapper .img-strip {
    display: flex;
    gap: 30px;
}

#horizontal-journey-wrapper .img-strip img {
    height: 65vh;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scroll-progress-horizontal {
    position: absolute;
    bottom: 40px;
    left: 10vw;
    width: 80vw;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.scroll-progress-horizontal .progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent);
}

@media (max-width: 991px) {
    #horizontal-journey-wrapper {
        height: auto !important;
    }

    #horizontal-journey-wrapper .sticky-frame {
        position: relative;
        height: auto;
        overflow: visible;
    }

    #horizontal-journey-wrapper .content-belt {
        flex-direction: column;
        transform: none !important;
        height: auto;
        padding: 60px 20px;
        gap: 60px;
    }

    #horizontal-journey-wrapper .story-slide {
        width: 100% !important;
        text-align: center;
    }

    #horizontal-journey-wrapper .img-strip {
        flex-direction: column;
        align-items: center;
    }

    #horizontal-journey-wrapper .img-strip img {
        height: auto;
        width: 100%;
        max-width: 500px;
    }

    .scroll-progress-horizontal {
        display: none;
    }
}

/* --- HOSTEL (VERTICAL SLIDER) --- */
.vertical-carousel {
    height: 700px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.vertical-carousel .carousel-inner,
.vertical-carousel .carousel-item {
    height: 100%;
}

.vertical-carousel .fill {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.vertical-carousel .fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent 70%);
}

.vertical-carousel .slide-content {
    position: relative;
    z-index: 2;
    color: white;
    padding-left: 10%;
    max-width: 600px;
}

/* Vertical Animation */
.vertical-carousel .carousel-item {
    transition: transform 1s cubic-bezier(0.7, 0, 0.3, 1) !important;
}

.vertical-carousel .carousel-item-next:not(.carousel-item-start),
.vertical-carousel .active.carousel-item-end {
    transform: translateY(100%) !important;
}

.vertical-carousel .carousel-item-prev:not(.carousel-item-end),
.vertical-carousel .active.carousel-item-start {
    transform: translateY(-100%) !important;
}

.vertical-carousel .carousel-item-next.carousel-item-start,
.vertical-carousel .carousel-item-prev.carousel-item-end,
.vertical-carousel .active {
    transform: translateY(0) !important;
}

.vertical-carousel .carousel-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Indicators */
.vertical-indicators {
    position: absolute;
    top: 50%;
    right: 40px;
    left: auto;
    width: auto;
    margin: 0;
    flex-direction: column;
    transform: translateY(-50%);
    z-index: 10;
}

.vertical-indicators button {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    margin: 12px 0;
    padding: 0;
    transition: var(--transition-smooth);
    border-radius: 50%;
}

.vertical-indicators button.active {
    background-color: var(--accent);
    transform: scale(1.4);
}

/* --- TESTIMONIALS --- */
.testimonial-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.image-container {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
}

.tabs-cluster {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

.tabs-cluster li {
    position: absolute;
    cursor: pointer;
    z-index: 1;
    transition: var(--transition-smooth);
}

.tabs-cluster li img {
    border-radius: 50%;
    filter: grayscale(100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    object-fit: cover;
}

.tabs-cluster li[data-bs-slide-to="0"] {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.tabs-cluster li[data-bs-slide-to="0"] img {
    width: 300px;
    height: 300px;
}

.tabs-cluster li[data-bs-slide-to="1"] {
    top: 0;
    right: 12%;
}

.tabs-cluster li[data-bs-slide-to="1"] img {
    width: 120px;
    height: 120px;
}

.tabs-cluster li[data-bs-slide-to="2"] {
    bottom: 0;
    right: 12%;
}

.tabs-cluster li[data-bs-slide-to="2"] img {
    width: 140px;
    height: 140px;
}

.tabs-cluster li.active img {
    filter: grayscale(0%);
    border-color: var(--accent);
    box-shadow: 0 0 50px rgba(255, 108, 29, 0.4);
    transform: scale(1.08);
}

.deco-dots {
    position: absolute;
    display: flex;
    gap: 15px;
    z-index: 10;
    pointer-events: none;
    transition: all 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: fit-content;
}

.dot-bridge {
    border-radius: 50%;
}

.dot-bridge.orange {
    width: 24px;
    height: 24px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

.dot-bridge.blue {
    width: 14px;
    height: 14px;
    background: var(--accent-blue);
    align-self: center;
    box-shadow: 0 0 10px var(--accent-blue);
}

.deco-dots.pos-0 {
    right: -20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
}

.deco-dots.pos-1 {
    right: 0px;
    top: 25%;
    transform: rotate(35deg);
}

.deco-dots.pos-2 {
    right: 0px;
    top: 75%;
    transform: rotate(-35deg);
}

.carousel-column {
    padding-left: 100px;
}

.author-name {
    display: flex;
    align-items: center;
}

.author-name::before {
    content: '';
    width: 45px;
    height: 3px;
    background: var(--accent);
    margin-right: 15px;
}

.ind-line {
    width: 45px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ind-line.active {
    background: var(--accent-blue);
    width: 80px;
}

@media (max-width: 991px) {
    .image-container {
        height: 400px;
        margin-bottom: 50px;
        justify-content: center;
    }

    .carousel-column {
        padding-left: 0;
        text-align: center;
    }

    .author-name {
        justify-content: center;
    }

    .author-name::before {
        display: none;
    }

    .deco-dots {
        display: none;
    }

    .tabs-cluster li[data-bs-slide-to="0"] img {
        width: 180px;
        /* Reduced from 220px */
        height: 180px;
    }

    .testimonial-section {
        padding-bottom: 50px;
    }
}

/* --- MAP & CONTACT --- */
.map-card {
    height: 550px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) brightness(0.9);
}

.icon-box {
    width: 55px;
    height: 55px;
    min-width: 55px;
    font-size: 1.4rem;
}

.blue-glow {
    background: rgba(42, 145, 255, 0.1);
    color: var(--accent-blue);
}

.orange-glow {
    background: rgba(255, 108, 29, 0.1);
    color: var(--accent);
}

/* Reveal Animations */
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.17, 0.85, 0.438, 0.99);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Utilities */
.backdrop-blur-10 {
    backdrop-filter: blur(10px);
}

.w-fit {
    width: fit-content;
}

/* --- EVENTS COLLAGE --- */
.container-custom-1350 {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 15px;
}

.events-collage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 15px;

}

.collage-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: #111;
}

.collage-media {
    width: 100%;
    height: 100%;
}

.collage-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.collage-item:hover img {
    transform: scale(1.03);
}

/* Grid Positioning */
.guitarist {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 600px;
}

.group-top {
    grid-column: 2;
    grid-row: 1;
    height: 300px;
}

.sitting-guy {
    grid-column: 3;
    grid-row: 1;
    height: 300px;
}

.small-pair {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    gap: 15px;
    background: none;
    border-radius: 0;
    overflow: visible;
}

.pair-media {
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
    height: 300px;
}

.pair-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Branded Card - Ashoka Style */
.branded-card {
    grid-column: 3;
    grid-row: 2;
    background: #901b1b;
    /* Deep Red from the reference image */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    color: white;
    min-height: 300px;
}

.card-top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-logo img {
    max-width: 80px;
    filter: brightness(0) invert(1);
}

.top-hashtag {
    font-weight: 800;
    font-size: 0.9rem;
    opacity: 0.9;
}

.card-center-img {
    margin: 15px 0;
    height: 140px;
    border-radius: 4px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.card-center-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-bottom-info h4 {
    margin: 0;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    text-transform: uppercase;
}

.building-wide {
    grid-column: 1 / span 2;
    /* In reference, it's wide but not full? */
    grid-row: 3;
    height: 350px;
}

/* Actually, let's fix the building and card to match the image exactly */
.events-collage-grid {
    grid-template-rows: auto auto auto;
}

.building-wide {
    grid-column: 1 / span 2;
    grid-row: 3;
}

.branded-card {
    grid-row: 2 / span 2;
    /* Taller card on right bottom */
}

/* --- Responsive Events --- */
@media (max-width: 991px) {
    .events-collage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guitarist {
        grid-column: 1;
        grid-row: 1;
        min-height: 350px;
    }

    .group-top {
        grid-column: 2;
        grid-row: 1;
    }

    .sitting-guy {
        grid-column: 1;
        grid-row: 2;
    }

    .small-pair {
        grid-column: 2;
        grid-row: 2;
    }

    .branded-card {
        grid-column: 1;
        grid-row: 3;
    }

    .building-wide {
        grid-column: 2;
        grid-row: 3;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .events-collage-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .collage-item,
    .guitarist,
    .group-top,
    .sitting-guy,
    .small-pair,
    .branded-card,
    .building-wide {
        grid-column: auto !important;
        grid-row: auto !important;
        height: 250px !important;
        min-height: auto;
    }

    .small-pair {
        display: flex;
        flex-direction: row;
        height: auto !important;
    }

    .pair-media {
        height: 250px !important;
    }

    .building-wide {
        height: 200px !important;
    }
}

/* --- RESIDENTIAL LIFE --- */
.container-custom-1100 {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.residential-life-section {
    padding: 80px 0;
    color: #ffffff;
}

.res-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    /* Wider right column for top-right image dominance */
    grid-template-rows: repeat(15, minmax(32px, auto));
    gap: 30px;
    align-items: stretch;
    max-width: 1100px;
    /* Increased overall width to allow images to grow */
    margin: 0 auto;
}

.res-icon {
    color: #C5A059;
    /* Goldish as in reference */
    opacity: 0.8;
}

.res-title {
    font-family: 'Georgia', serif;
    /* Serif as in reference */
    font-size: 3.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.res-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 440px;
    line-height: 1.4;
    margin-bottom: 35px;
    font-weight: 400;
}

.res-learn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #2b2b2b;
    padding: 15px 25px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 280px;
    transition: all 0.3s ease;
}

.res-learn-btn:hover {
    background: #3a3a3a;
    color: #fff;
}

.res-learn-btn i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.res-img-frame {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.res-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Staggered Grid Mapping - Precise Reference Match */
.res-header {
    grid-column: 1;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 10px;
}

.top-right {
    grid-column: 2;
    grid-row: 1 / span 7;
    /* Reduced height (from 8 to 7 units) */
    margin: 0;
}

.mid-left {
    grid-column: 1;
    grid-row: 5 / span 7;
    /* Staggered - Starts below header */
    margin: 0;
}

.res-video-box {
    grid-column: 2;
    grid-row: 8 / span 6;
    /* Shifted up to follow top-right */
    width: 82%;
    /* Further constrained for more contrast with top-right */
    justify-self: end;
    /* Align to right edge */
    background: #000;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.bottom-left {
    grid-column: 1;
    grid-row: 12 / span 4;
    /* Overlaps bottom of video */
    width: 85%;
    /* Narrower than mid-left image above it */
    justify-self: start;
    /* Align to left edge */
    margin: 0;
}

.res-img-frame {
    width: 100%;
    height: 100%;
    /* Force fill unit span */
    border-radius: 4px;
    overflow: hidden;
}

.res-video-box {
    width: 100%;
    aspect-ratio: 1.6 / 1;
    background: #000;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.res-video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.res-video-box.is-playing iframe {
    opacity: 1;
    visibility: visible;
}

.res-video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: var(--transition-smooth);
}

.res-video-box.is-playing .res-video-thumbnail {
    opacity: 0;
    visibility: hidden;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.res-video-box.is-playing .video-overlay {
    opacity: 0;
    visibility: hidden;
}

.play-pause-btn {
    background: #fff;
    color: #000;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.play-pause-btn:hover {
    background: var(--accent);
    color: #fff;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 108, 29, 0.4);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(255, 108, 29, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 108, 29, 0);
    }
}

/* Responsive Residential */
@media (max-width: 1024px) {
    .res-layout-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 30px;
        max-width: 100%;
    }

    .res-header,
    .top-right,
    .mid-left,
    .res-video-box,
    .bottom-left {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 350px;
    }

    .res-header {
        min-height: auto;
        padding-bottom: 20px;
    }

    .res-video-box {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .res-title {
        font-size: 2rem;
    }

    .res-img-frame,
    .res-video-box {
        min-height: 280px;
    }
}

/* --- EVENTS COLLAGE --- */
.collage-container {
    display: grid;
    background-color: #ffffff;
    grid-template-columns: 1fr 1fr 0.9fr;
    grid-template-rows: repeat(10, 80px);
    gap: 15px;
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Image styling */
.collage-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 1. Tall Left Image (Spans 6 units) */
.item-guitarist {
    grid-column: 1;
    grid-row: 1 / span 6;
}

/* 2. Middle Top (Wide horizontal - 2 units) */
.item-group-top {
    grid-column: 2;
    grid-row: 1 / span 2;
}

/* 3. Middle vertical pair (4 units) */
.item-small-pair {
    grid-column: 2;
    grid-row: 3 / span 4;
    display: flex;
    gap: 15px;
}

.item-small-pair div {
    flex: 1;
}

/* 4. Right Column - Top Portrait (Spans 5 units - 50%) */
.item-sitting {
    grid-column: 3;
    grid-row: 1 / span 5;
}

/* 5. Right Column - Bottom Group Photo (Spans 5 units - 50%) */
.item-social-frame {
    grid-column: 3;
    grid-row: 6 / span 5;
    background-color: #FF6C1D;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: white;
    text-align: center;
}

/* 6. Bottom Wide Landscape (Spans Col 1 & 2, Row 7-10 - 4 units) */
.item-campus {
    grid-column: 1 / span 2;
    grid-row: 7 / span 4;
}

.social-img {
    width: 100%;
    height: 80%;
    border: 2px solid white;
    border-radius: 2px;
}

.hashtag {
    font-weight: bold;
    font-size: 1.2rem;
    margin: 5px 0;
}

.top-tags {
    font-size: 0.8rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

/* Responsive Events */
@media (max-width: 991px) {
    .collage-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }

    .item-guitarist,
    .item-group-top,
    .item-sitting,
    .item-campus,
    .item-social-frame,
    .item-small-pair {
        grid-column: span 1 !important;
        grid-row: auto !important;
        height: 350px;
    }

    .item-guitarist {
        height: 450px;
    }

    .item-campus {
        grid-column: span 2 !important;
        height: 300px;
    }
}

@media (max-width: 600px) {
    .collage-container {
        grid-template-columns: 1fr;
    }

    .item-guitarist,
    .item-group-top,
    .item-sitting,
    .item-campus,
    .item-social-frame,
    .item-small-pair,
    .item-campus {
        grid-column: span 1 !important;
        height: 300px;
    }

    .item-small-pair {
        display: grid;
        grid-template-columns: 1fr 1fr;
        height: auto;
    }

    .item-small-pair div {
        height: 200px;
    }
}

/* --- FOOTER --- */
.site-footer {
    background: var(--darker);
    position: relative;
    z-index: 10;
    padding: 2rem 0;
}

.section-padding-sm {
    padding: 4rem 0 2rem;
}

/* Border Utilities */
.border-white {
    border-color: #fff !important;
}

.border-opacity-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-opacity-5 {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* --- PROGRAMS --- */
.max-w-700 {
    max-width: 700px;
}

.section-padding-lg {
    padding: 10rem 0;
}

.bf-filter-container {
    margin-top: -32px;
    position: relative;
    z-index: 10;
}

.bf-filter-bar {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 80%;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.bf-filter-group {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 15px;
}

.bf-filter-group:last-child {
    border-right: none;
    padding-right: 0;
}

.filter-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 8px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.filter-select,
.filter-input {
    background: transparent !important;
    border: none !important;
    color: #fff;
    font-size: 1.1rem !important;
    padding: 5px 0 !important;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 15px;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.filter-select option {
    background: #1a1a1a;
    color: #fff;
}

.bf-course-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bf-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--accent) !important;
}

.bf-course-card .card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bf-course-card .card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.3;
}

.bf-course-card .card-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    flex-grow: 1;
}

.bf-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.1);
}

.meta-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #bbb;
    font-weight: 800;
}

.bf-course-card .course-fee {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.bf-course-card .btn {
    font-size: 0.9rem;
    padding: 8px 15px;
}

.bf-power-tag {
    display: inline-block;
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-apply-now {
    background: var(--accent);
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.btn-apply-now:hover {
    background: #e55a10;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 108, 29, 0.3);
}

.bf-results-area {

    background: var(--bg-body);
}

.info-text {
    color: var(--text-muted);
}

.description-text {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 991px) {
    .map-card {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .vertical-carousel {
        height: 500px;
    }

    .vertical-carousel .slide-content {
        padding-left: 5%;
        text-align: center;
        margin: 0 auto;
    }

    .vertical-indicators {
        display: none;
    }

    .bf-filter-bar {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        margin-bottom: -50px !important;
    }

    .bf-filter-group {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding-bottom: 15px;
    }

    .bf-filter-group:last-child {
        border-bottom: none !important;
        padding-bottom: 0;
    }

    .bf-results-area {
        padding-top: 100px;
    }
}

/* --- SOCIAL SIDEBAR --- */
.social-sidebar {
    width: 70px;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 20px 0 0 20px;
}

.social-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
    opacity: 0.7;
}

.social-link:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.social-link.whatsapp:hover {
    color: #25D366;
}

.social-link.phone:hover {
    color: var(--accent-blue);
}

.social-link.instagram:hover {
    color: #E4405F;
}

.social-link.facebook:hover {
    color: #1877F2;
}

.social-link.linkedin:hover {
    color: #0077B5;
}

.social-link.youtube:hover {
    color: #FF0000;
}

@media (max-width: 768px) {
    .social-sidebar {
        width: 55px;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* --- 6. Base Responsive --- */
@media (max-width: 1200px) {
    .bf-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bf-metric-item:nth-child(2) {
        border-right: none;
    }

    .bf-metric-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .bf-metric-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .experience-slider-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    .academic-row,
    .bf-collab-row,
    .placement-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .academic-img-wrapper {
        height: 400px;
    }

    .map-card {
        height: 400px;
    }

    .bf-logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Hero Tablet/Mobile Adjustments */
    .progressBarContainer {
        display: none;
    }

    .hero-section-new {
        height: auto;
        min-height: auto;
    }

    .slide-item-wrapper {
        height: 50vh;
        min-height: 400px;
    }

    .slide-item-wrapper img {
        object-fit: cover;
    }

    #hero-lead-form-container {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 20px;
        background: #f8f9fa;
        box-shadow: none;
        border-radius: 0;
    }

    /* Stats Section Stacking */
    .bf-stats-container {
        flex-direction: column;
    }

    .bf-stats-heading {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 40px;
    }

    .bf-metrics-grid {
        width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Hero Text Scaling */
    .slide-title {
        font-size: 2.2rem;
    }

    .slide-subtitle {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .slide-text-overlay {
        left: 5%;
        width: 90%;
        top: 50%;
    }

    /* Grids stacking */
    .row-app-grid,
    .experience-slider-row,
    .bf-metrics-grid,
    .bf-logo-grid,
    .alumni-image-row,
    .stats-cards-grid {
        grid-template-columns: 1fr;
        display: grid;
        /* Ensure grid display is kept where used */
    }

    .contact-row {
        display: flex;
        flex-direction: column;
    }

    /* Specific Items */
    .bf-metric-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .bf-metric-item:last-child {
        border-bottom: none;
    }

    .vertical-carousel {
        height: 500px;
    }

    .vertical-carousel .slide-content {
        padding-left: 5%;
        text-align: center;
        margin: 0 auto;
    }

    .vertical-indicators {
        display: flex;
        flex-direction: row;
        top: auto;
        bottom: 10px;
        right: 50%;
        transform: translateX(50%);
        left: auto;
        width: auto;
    }

    .vertical-indicators button {
        margin: 0 5px;
        background-color: rgba(255, 255, 255, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .vertical-indicators button.active {
        background-color: var(--accent);
        transform: scale(1.2);
    }

    .bf-filter-bar {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        margin-bottom: -50px !important;
    }

    .bf-filter-group {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding-bottom: 15px;
    }

    .bf-filter-group:last-child {
        border-bottom: none !important;
        padding-bottom: 0;
    }

    .bf-results-area {
        padding-top: 100px;
    }

    .social-sidebar {
        width: 55px;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Hero Bottom stacking */
    .bfit-flex-container {
        flex-direction: column;
    }

    .bfit-hero-wrapper {
        margin-top: 0;
        clip-path: none;
    }

    .bfit-box {
        padding: 60px 30px;
        min-height: auto;
    }
}