/* MOBILE.CSS - Responsive & Mobile Styles */


/* FROM: mobile-hero-banners.css */
/* Mobile Banner Styles */
/* This CSS file controls which hero banners are displayed on desktop vs mobile devices */

/* Slide 1 - Desktop: MAIN-HOMEPAGE-BANNER_1.webp, Mobile: 1-5.webp */
.hero-slide-1 {
    background-image: url('../images/MAIN-HOMEPAGE-BANNER_1.webp');
    background-size: cover;
    background-position: center;
}

/* Slide 2 - Desktop: mainpagenewbannersecond.webp, Mobile: 2-4.webp */
.hero-slide-2 {
    background-image: url('../images/mainpagenewbannersecond.webp');
    background-size: cover;
    background-position: center;
}

/* Slide 3 - Desktop: Beige Aesthetic Fashion Clothing Collection Medium Banneree.png, Mobile: NAAC-2.webp */
.hero-slide-3 {
    background-image: url('../images/Beige Aesthetic Fashion Clothing Collection Medium Banneree.png');
    background-size: cover;
    background-position: center;
}

/* Mobile devices (768px and below): Switch to mobile banners */
@media (max-width: 768px) {
    .hero-slide-1 {
        background-image: url('../images/banners/1-5.webp');
    }

    .hero-slide-2 {
        background-image: url('../images/banners/2-4.webp');
    }

    .hero-slide-3 {
        background-image: url('../images/banners/NAAC-2.webp');
    }

    /* Mobile Header Adjustments - Hide enquiry button and center logo */
    .enquiry-btn {
        display: none !important;
    }

    .header-container {
        justify-content: center !important; /* Center align */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Center align */
        padding: 6px 0 !important; /* Minimal padding - top & bottom */
    }

    .logo {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Center align */
        justify-content: center !important;
        text-align: center !important;
        gap: 0 !important;
    }
    
    .logo a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Center align */
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }
    
    .logo img {
        height: 55px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .logo-tagline {
        font-size: 9px !important;
        margin: 2px 0 0 0 !important; /* Minimal spacing from logo */
        padding: 0 !important;
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        line-height: 1.2 !important;
    }

    .mobile-menu-toggle {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001; /* Above mobile menu */
    }
    
    .mobile-menu-toggle .menu-btn {
        position: relative;
        z-index: 1001;
    }
    
    /* Enhanced active state for mobile */
    .mobile-menu-toggle .menu-btn.active {
        background: var(--primary-gold) !important;
        color: var(--primary-dark) !important;
    }
    
    .mobile-menu-toggle .menu-btn.active i {
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }

    /* Mobile Menu Items - ALL Left Aligned */
    .nav-menu {
        text-align: left !important;
        align-items: flex-start !important;
    }

    .nav-item {
        text-align: left !important;
        width: 100% !important;
    }

    .nav-item>a {
        text-align: left !important;
        justify-content: flex-start !important;
        display: block !important;
        width: 100% !important;
    }

    .dropdown-menu {
        text-align: left !important;
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 20px !important;
    }

    .dropdown-menu li {
        text-align: left !important;
        width: 100% !important;
    }

    .dropdown-menu a {
        text-align: left !important;
        display: block !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .sub-dropdown {
        text-align: left !important;
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 20px !important;
    }

    .sub-dropdown li {
        text-align: left !important;
        width: 100% !important;
    }

    .sub-dropdown a {
        text-align: left !important;
        display: block !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }

    /* Make hero buttons smaller and move them down on mobile */
    .hero-bottom-button {
        position: absolute !important;
        bottom: 5px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        display: flex !important;
        gap: 8px !important;
        justify-content: center !important;
    }

    .apply-now-button {
        padding: 6px 12px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    .explore-button {
        padding: 6px 12px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    /* Our Institutes Section - Mobile Responsive */
    .institutes-wrapper {
        position: relative !important;
        overflow: visible !important;
    }

    .institutes-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
        animation: none !important;
        transform: none !important;
        margin-top: 30px !important;
    }

    .institute-card {
        width: 100% !important;
        max-width: 100% !important;
        flex-shrink: 1 !important;
        margin: 0 !important;
    }

    .institute-card .institute-image img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: cover;
    }

    .institute-card .institute-content {
        padding: 20px;
    }

    .institute-card h3 {
        font-size: 1.3rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px;
    }

    .institute-card p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 15px;
    }

    /* Hide navigation buttons on mobile */
    .institute-nav-btn {
        display: none !important;
    }

    /* Fix Justified Text Spacing on Mobile */
    /* Override all justified text to left-aligned for better readability */
    .section-subtitle,
    .section-description,
    .placements-description,
    .research-description,
    .institutes-section .section-subtitle,
    .placements-section .section-description,
    .research-section .section-description,
    p,
    .about-section p,
    .programs-section p,
    .institute-card p {
        text-align: left !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -ms-hyphens: none !important;
    }
    
    /* ADMISSIONS - Keep justified with proper spacing (EXCEPTION) */
    .admissions-description,
    .admissions-section .admissions-description,
    .admissions-section .section-description,
    .admissions-section p {
        text-align: justify !important;
        text-justify: inter-word !important;
        word-spacing: 0.1em !important;
        letter-spacing: 0.3px !important; /* Consistent */
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
        -ms-hyphens: auto !important;
        font-family: 'Georgia', 'Times New Roman', serif !important;
        font-weight: 400 !important;
    }

    /* Ensure ALL Section Titles are Fully Displayed on Mobile */
    /* Prevents text cropping and allows multi-line titles */
    .section-title,
    h2.section-title,
    .about-section .section-title,
    .programs-section .section-title,
    .news-events-section .section-title,
    .testimonials-section .section-title,
    .institutes-section .section-title,
    .admissions-section .section-title,
    .admissions-title,
    .placements-section .section-title,
    .research-section .section-title {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        max-width: 100% !important;
        overflow: visible !important;
        text-overflow: clip !important;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
        -ms-hyphens: auto !important;
        word-break: break-word !important;
    }
    
    /* Campus Life - Keep on single line on mobile */
    .campus-life-section .section-title {
        white-space: nowrap !important; /* Single line */
        font-size: 1.5rem !important; /* Smaller to fit */
        overflow: visible !important;
        word-wrap: normal !important;
        overflow-wrap: normal !important;
    }
    
    /* Contact section - Full title visible, allow two lines */
    html body .contact-section .section-title,
    html body section.contact-section .section-title {
        font-size: 1.4rem !important; /* Readable size */
        white-space: normal !important; /* Allow wrapping to 2 lines */
        line-height: 1.4 !important;
        padding: 0 15px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        margin-bottom: 15px !important;
        max-width: 100% !important;
        letter-spacing: 0 !important; /* Reset for mobile */
        font-weight: 700 !important;
        color: #FFFFFF !important;
    }
    
    html body .contact-section .section-description,
    html body section.contact-section .section-description {
        font-size: 1.4rem !important; /* SAME as placements/research */
        line-height: 1.8 !important;
        padding: 0 15px !important;
        margin: 0 auto 20px auto !important;
        font-weight: 400 !important;
        color: #FFFFFF !important;
        text-align: center !important;
        font-family: 'Georgia', 'Times New Roman', serif !important;
    }

    /* Ensure ALL Paragraphs have Justified Text with Even Spacing */
    .section-description,
    .section-subtitle,
    .about-section .section-description,
    .programs-section .section-subtitle,
    .admissions-description,
    .placements-description,
    .research-description,
    .campus-life-section .section-description {
        text-align: justify !important;
        text-justify: inter-word !important;
        word-spacing: 0.1em !important;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
        -ms-hyphens: auto !important;
    }
}

/* Additional breakpoint for very small phones (iPhone SE, etc.) */
@media (max-width: 375px) {

    .section-title,
    .about-section .section-title {
        font-size: 2rem !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }

    .section-description,
    .section-subtitle {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        word-spacing: 0.05em !important;
    }
    
    /* Admissions paragraph - SAME as placements/research */
    .admissions-section .section-description,
    .admissions-section .admissions-description,
    .admissions-section p,
    .admissions-description {
        font-size: 1.2rem !important; /* SAME as placements/research */
        line-height: 1.7 !important; /* SAME as placements/research */
        font-family: 'Georgia', 'Times New Roman', serif !important;
        text-align: justify !important;
        text-justify: inter-word !important;
        word-spacing: 0.1em !important; /* SAME as placements/research */
        letter-spacing: 0.3px !important; /* SAME as placements/research */
        color: #333 !important;
        padding: 0 !important;
    }
}

/* Breakpoint for standard phones */
@media (min-width: 376px) and (max-width: 480px) {

    .section-title,
    .about-section .section-title {
        font-size: 2.2rem !important;
        line-height: 1.3 !important;
    }

    .section-description,
    .section-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.7 !important;
    }
    
    /* Admissions paragraph - SAME as placements/research */
    .admissions-section .section-description,
    .admissions-section .admissions-description,
    .admissions-section p,
    .admissions-description {
        font-size: 1.2rem !important; /* SAME as placements/research */
        line-height: 1.7 !important; /* SAME as placements/research */
        font-family: 'Georgia', 'Times New Roman', serif !important;
        text-align: justify !important;
        text-justify: inter-word !important;
        word-spacing: 0.1em !important; /* SAME as placements/research */
        letter-spacing: 0.3px !important; /* SAME as placements/research */
        color: #333 !important;
        padding: 0 !important;
    }
}

/* Breakpoint for larger phones and small tablets */
@media (min-width: 481px) and (max-width: 768px) {

    .section-title,
    .about-section .section-title {
        font-size: 2.5rem !important;
        line-height: 1.3 !important;
    }

    .section-description,
    .section-subtitle {
        font-size: 1.3rem !important;
        line-height: 1.8 !important;
    }
    
    /* Admissions paragraph - SAME as placements/research - HIGH SPECIFICITY */
    html body .admissions-section .section-description,
    html body .admissions-section .admissions-description,
    html body .admissions-section p,
    html body .admissions-description {
        font-size: 1.4rem !important; /* SAME as placements/research */
        line-height: 1.8 !important; /* SAME as placements/research */
        font-family: 'Georgia', 'Times New Roman', serif !important;
        text-align: justify !important;
        text-justify: inter-word !important;
        word-spacing: 0.1em !important; /* SAME as placements/research */
        letter-spacing: 0.3px !important; /* SAME as placements/research */
        color: #333 !important;
        padding: 0 !important;
        width: 100%;
        max-width: 100% !important;
        margin: 0 auto 30px auto !important;
    }
}

/* FROM: parallax-effects.css */
/**
 * Parallax Effects CSS
 * Srinivas University Website
 * Extracted from live WordPress site
 */

/* ========================================
   BASE PARALLAX STYLES
   ======================================== */

.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    min-height: 500px;
}

/* Overlay for all parallax sections */
.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Content above overlay */
.parallax-section .container {
    position: relative;
    z-index: 2;
}

/* ========================================
   ADMISSIONS SECTION - CLEAN WHITE DESIGN
   ======================================== */

.admissions-section {
    /* Clean white background - NO gradient, NO image */
    background: #FFFFFF !important;
    min-height: 500px;
    position: relative;
    padding: 80px 0;
}

/* No overlay needed */
.admissions-section::before {
    display: none !important;
}

.admissions-section .container {
    position: relative;
    z-index: 2;
}

/* Black text for admissions section */
.admissions-section h2,
.admissions-section .section-title {
    color: #000000 !important;
    font-size: 3em !important;
    font-weight: 800 !important;
    text-shadow: none !important;
    margin-bottom: 15px;
}

html body .admissions-section p,
html body .admissions-section .section-description,
html body .admissions-section .admissions-description,
html body .admissions-description {
    color: #333 !important;
    font-size: 1.8rem !important; /* SAME as placements/research */
    font-weight: 400 !important;
    text-shadow: none !important;
    line-height: 2.0 !important; /* SAME as placements/research */
    max-width: 100% !important;
    width: 100%;
    margin: 0 auto 30px auto !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    text-align: justify !important;
    text-justify: inter-word !important;
    word-spacing: 0.1em !important; /* SAME as placements/research */
    letter-spacing: 0.3px !important; /* SAME as placements/research */
    padding: 0 !important;
}

/* Admission steps - Initially hidden for scroll animation */
.admissions-section .admission-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    margin: 30px 0;
    position: relative;
}

.admissions-section .admission-step {
    background: transparent !important;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
    flex: 1;
    max-width: 300px;
    position: relative;
    /* Start hidden and off-screen */
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Scroll animation - slides in when visible */
.admissions-section .admission-step.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animation for each step */
.admissions-section .admission-step:nth-child(1) {
    transition-delay: 0.2s;
}

.admissions-section .admission-step:nth-child(2) {
    transition-delay: 0.4s;
}

.admissions-section .admission-step:nth-child(3) {
    transition-delay: 0.6s;
}

/* Modern gold gradient circle with number */
.admissions-section .step-number {
    background: linear-gradient(135deg, #FFB82C 0%, #FFA500 50%, #FFD700 100%);
    color: #ffffff !important;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 184, 44, 0.4);
    transition: all 0.3s ease;
    animation: subtleGoldPulse 3s ease-in-out infinite;
}

@keyframes subtleGoldPulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(255, 184, 44, 0.4), 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    50% {
        box-shadow: 0 6px 25px rgba(255, 184, 44, 0.6), 0 0 20px rgba(255, 215, 0, 0.3);
    }
}

/* Hover effect - golden glow */
.admissions-section .admission-step:hover .step-number {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(255, 184, 44, 0.7), 0 0 25px rgba(255, 215, 0, 0.5);
}

/* Elegant curved dotted line between steps */
.admissions-section .admission-step:not(:last-child) .step-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 80px;
    height: 2px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(to right,
            #FFB82C 0px,
            #FFB82C 10px,
            transparent 10px,
            transparent 20px);
    margin-left: 15px;
    opacity: 0.8;
}


.admissions-section .step-title {
    color: #FF9800 !important;
    /* Clean orange */
    font-size: 1.3em !important;
    font-weight: 700 !important;
    margin-bottom: 10px;
    text-shadow: none !important;
    /* No shadow */
    text-align: center !important;
}

.admissions-section .step-description {
    color: #666 !important;
    /* Simple gray */
    font-size: 1em !important;
    line-height: 1.6;
    text-shadow: none !important;
    /* No shadow */
    text-align: center !important;
}

/* Action buttons */
.admissions-section .admission-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.admissions-section .action-btn {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 2px solid #E0E0E0;
    padding: 15px 30px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.admissions-section .action-btn:hover {
    background: #F5F5F5 !important;
    border-color: #FFB82C;
    color: #FFB82C !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admissions-section .action-btn::after {
    content: '→';
    font-size: 1.2em;
}

/* Responsive */
@media (max-width: 768px) {
    .admissions-section .admission-steps {
        flex-direction: column;
        gap: 40px;
    }

    .admissions-section .admission-step:not(:last-child) .step-number::after {
        display: none;
    }
}

/* ========================================
   PLACEMENTS SECTION - CLEAN WHITE WITH STATS
   ======================================== */

.placements-section {
    background: #FFFFFF !important;
    padding: 80px 0;
    text-align: center;
}

.placements-section .section-title {
    color: #000000;
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 20px;
}

.placements-section .section-description {
    color: #333333;
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 60px;
}

/* Placement Stats Grid - 2 rows of 3 cards */
.placement-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

/* Placement CTA Button */
.placement-cta {
    text-align: center;
    margin-top: 50px;
}

.placement-btn {
    background: #FFB82C;
    color: #000000;
    padding: 18px 40px;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.placement-btn:hover {
    background: #FFA500;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 184, 44, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .placement-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.placements-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent !important;
    /* No overlay - just parallax image */
    z-index: 1;
}

.placements-section .container {
    position: relative;
    z-index: 2;
}

/* Dark text for placements section on white background */
.placements-section h2,
.placements-section .section-title,
.placements-section p,
.placements-section .placements-description {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Stat cards */
.placements-section .stat-card {
    background: #f5f5f5 !important;
    border: none;
    border-radius: 12px;
    padding: 40px 30px;
}

.placements-section .stat-number {
    color: #3A3184 !important;
    /* Purple */
    font-size: 3.5em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}

.placements-section .stat-label {
    color: #000000 !important;
    /* Dark */
    font-size: 1.1em;
    font-weight: 500;
}

/* Placement button */
.placements-section .placement-btn {
    background: #FFB82C !important;
    color: #000000 !important;
    padding: 16px 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.placements-section .placement-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 184, 44, 0.4);
}

/* ========================================
   PARALLAX DIVIDER (Between Placements & Research)
   ======================================== */

.placements-research-parallax {
    background-image: url('../images/backgrounds/parallax-divider-bg.webp') !important;
    background-attachment: fixed !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    min-height: 450px;
    position: relative;
    padding: 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gradient overlay for better text readability */
.placements-research-parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(58, 49, 132, 0.85) 0%,
            rgba(255, 184, 44, 0.75) 100%);
    z-index: 1;
}

.placements-research-parallax .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* White text with shadows for readability */
.placements-research-parallax h2,
.placements-research-parallax .section-title {
    color: #ffffff !important;
    font-size: 3.5em;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 3px 5px 15px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.placements-research-parallax p,
.placements-research-parallax .section-description {
    color: #ffffff !important;
    font-size: 1.4em;
    line-height: 1.8;
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .placements-research-parallax {
        background-attachment: scroll !important;
        min-height: 350px;
        padding: 100px 0;
    }

    .placements-research-parallax .section-title {
        font-size: 2.8em;
    }

    .placements-research-parallax .section-description {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .placements-research-parallax {
        min-height: 300px;
        padding: 80px 0;
    }

    .placements-research-parallax .section-title {
        font-size: 2.2em;
    }

    .placements-research-parallax .section-description {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .placements-research-parallax {
        min-height: 250px;
        padding: 60px 0;
    }

    .placements-research-parallax .section-title {
        font-size: 1.8em;
    }

    .placements-research-parallax .section-description {
        font-size: 1em;
    }
}

/* ========================================
   CAMPUS LIFE SECTION PARALLAX - ENHANCED
   ======================================== */

.campus-life-section {
    background-image: url('../images/backgrounds/campus-life-bg.webp') !important;
    background-attachment: fixed !important;
    background-position: center !important;
    background-size: cover !important;
    min-height: 500px;
    position: relative;
    padding: 100px 0;
}

/* Light transparent overlay for readability */
.campus-life-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3) !important;
    /* Light dark overlay for text readability */
    z-index: 1;
}

.campus-life-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* White text with shadows for readability on image */
.campus-life-section h2,
.campus-life-section .section-title {
    color: #ffffff !important;
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.7) !important;
    white-space: nowrap !important; /* Keep title on single line */
    overflow: visible !important;
    text-overflow: clip !important;
}

.campus-life-section p,
.campus-life-section .section-description {
    color: #ffffff !important;
    font-size: 1.2em;
    line-height: 1.9;
    max-width: 100% !important; /* SAME AS OTHER SECTIONS */
    width: 100%;
    margin: 0 auto 30px auto !important; /* SAME AS OTHER SECTIONS */
    padding: 0 20px !important;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.7) !important;
}

/* ========================================
   RESEARCH SECTION - CLEAN WHITE WITH STATS
   ======================================== */

.research-section {
    background: #FFFFFF !important;
    padding: 80px 0;
    text-align: center;
}

.research-section .section-title {
    color: #000000;
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 20px;
}

.research-section .section-description {
    color: #333333;
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 60px;
}

/* Research Stats Grid - 4 in first row, 3 in second */
.research-stats-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 50px;
}

/* First 4 items span 2 columns each */
.research-stats-grid .stat-card:nth-child(1) {
    grid-column: 1 / 3;
}

.research-stats-grid .stat-card:nth-child(2) {
    grid-column: 3 / 5;
}

.research-stats-grid .stat-card:nth-child(3) {
    grid-column: 5 / 7;
}

.research-stats-grid .stat-card:nth-child(4) {
    grid-column: 7 / 9;
}

/* Last 3 items centered - span 2 columns each, starting from column 2 */
.research-stats-grid .stat-card:nth-child(5) {
    grid-column: 2 / 4;
}

.research-stats-grid .stat-card:nth-child(6) {
    grid-column: 4 / 6;
}

.research-stats-grid .stat-card:nth-child(7) {
    grid-column: 6 / 8;
}

/* Stat Card */
.stat-card {
    background: #F5F5F5;
    padding: 40px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: #EEEEEE;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Stat Number - Purple */
.stat-number {
    color: #3A3184;
    font-size: 4em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 15px;
}

/* Stat Label */
.stat-label {
    color: #000000;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.4;
}

/* CTA Button */
.research-cta {
    text-align: center;
    margin-top: 50px;
}

.research-btn {
    background: #FFB82C;
    color: #000000;
    padding: 18px 40px;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.research-btn:hover {
    background: #FFA500;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 184, 44, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .research-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .research-stats-grid .stat-card:nth-child(n) {
        grid-column: 1 / -1 !important;
    }

    .stat-number {
        font-size: 3em;
    }
}


/* ========================================
   TESTIMONIALS SECTION PARALLAX
   ======================================== */

.testimonials-section {
    background-image: url('../images/backgrounds/testimonials-bg.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    min-height: 650px;
    position: relative;
    padding: 80px 0;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    /* Reduced from 0.92 to 0.75 for more visibility */
    /* Removed backdrop-filter blur for clearer background */
    z-index: 1;
}

.testimonials-section .container {
    position: relative;
    z-index: 2;
}

/* Section Header */
.testimonials-section .section-label {
    color: #FFB82C;
    font-size: 0.9em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.testimonials-section .section-title {
    color: #000000;
    font-size: 2.5em;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: none;
}

.testimonials-section .section-description {
    color: #FFFFFF !important;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.05em;
    line-height: 1.7;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.5) !important;
}

/* Testimonials Slider */
.testimonials-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 350px;
}

/* Testimonial Card */
.testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    display: none;
    gap: 40px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.testimonial-card.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Testimonial Image */
.testimonial-image {
    flex-shrink: 0;
}

.testimonial-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #FFB82C;
    box-shadow: 0 8px 25px rgba(255, 184, 44, 0.3);
}

/* Testimonial Content */
.testimonial-content {
    flex: 1;
}

.quote-icon {
    color: #FFB82C;
    font-size: 3.5em;
    opacity: 0.25;
    margin-bottom: 20px;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.15em;
    line-height: 1.8;
    color: #333;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
}

/* Testimonial Author */
.testimonial-author h4 {
    font-size: 1.4em;
    color: #000;
    font-weight: 700;
    margin-bottom: 8px;
}

.author-degree {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 5px;
    font-weight: 500;
}

.author-position {
    color: #FFB82C;
    font-weight: 700;
    font-size: 1em;
}

/* Testimonial Navigation */
.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.testimonial-prev,
.testimonial-next {
    background: #FFB82C;
    color: #ffffff;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    box-shadow: 0 4px 15px rgba(255, 184, 44, 0.3);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: #3A3184;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(58, 49, 132, 0.4);
}

.testimonial-prev:active,
.testimonial-next:active {
    transform: scale(0.95);
}

/* Testimonial Dots */
.testimonial-dots {
    display: flex;
    gap: 12px;
}

.testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
    background: #FFB82C;
    width: 35px;
    border-radius: 6px;
}

.testimonial-dots .dot:hover {
    background: #FFB82C;
    transform: scale(1.2);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .testimonials-section {
        min-height: 600px;
        padding: 60px 0;
    }

    .testimonial-card {
        padding: 40px;
        gap: 30px;
    }

    .testimonial-image img {
        width: 150px;
        height: 150px;
    }

    .testimonial-text {
        font-size: 1.05em;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .testimonials-section {
        min-height: 550px;
        padding: 50px 0;
        background-attachment: scroll;
    }

    .testimonial-card {
        flex-direction: column;
        text-align: center;
        padding: 35px 25px;
        gap: 25px;
    }

    .testimonial-image img {
        width: 120px;
        height: 120px;
        border-width: 4px;
    }

    .quote-icon {
        font-size: 2.5em;
    }

    .testimonial-text {
        font-size: 1em;
    }

    .testimonial-author h4 {
        font-size: 1.2em;
    }

    .testimonial-prev,
    .testimonial-next {
        width: 45px;
        height: 45px;
        font-size: 1em;
    }

    .testimonials-section .section-title {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        min-height: 500px;
        padding: 40px 0;
    }

    .testimonial-card {
        padding: 25px 20px;
    }

    .testimonial-image img {
        width: 100px;
        height: 100px;
    }

    .testimonial-text {
        font-size: 0.95em;
    }

    .testimonials-section .section-title {
        font-size: 1.75em;
    }

    .testimonials-section .section-description {
        font-size: 0.95em;
    }
}


/* ========================================
   RESPONSIVE - MOBILE OPTIMIZATION
   ======================================== */

@media (max-width: 1024px) {
    .parallax-section {
        /* Reduce parallax intensity on tablets */
        background-attachment: scroll;
        min-height: 450px;
    }

    .admissions-section {
        min-height: 550px;
    }

    .placements-section {
        min-height: 450px;
    }

    .campus-life-section {
        min-height: 350px;
    }

    .research-section {
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .parallax-section {
        /* Disable parallax on mobile for performance */
        background-attachment: scroll;
        min-height: 400px;
    }

    .admissions-section {
        min-height: 500px;
    }

    .placements-section {
        min-height: 400px;
    }

    .campus-life-section {
        min-height: 300px;
    }

    .research-section {
        min-height: 400px;
    }

    /* Adjust stat cards for mobile */
    .placements-section .stat-number {
        font-size: 2.5em;
    }

    .placements-section .stat-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .parallax-section {
        min-height: 350px;
    }

    .admissions-section {
        min-height: 450px;
    }

    .placements-section {
        min-height: 350px;
    }

    .campus-life-section {
        min-height: 250px;
    }

    .research-section {
        min-height: 350px;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATION
   ======================================== */

/* Use GPU acceleration for smoother parallax */
.parallax-section {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Prevent layout shift */
.parallax-section .container {
    will-change: auto;
}

/* ========================================
   ADDITIONAL ENHANCEMENTS
   ======================================== */

/* Subtle animation on scroll (optional) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.parallax-section .container>* {
    animation: fadeInUp 0.8s ease-out;
}

/* Glassmorphism effect for cards on parallax backgrounds */
.parallax-section .glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
}

/* Text shadow for better readability on images */
.parallax-section h2,
.parallax-section h3 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.parallax-section p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ========================================
   BROWSER COMPATIBILITY
   ======================================== */

/* Firefox */
@-moz-document url-prefix() {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* Edge Legacy */
@supports (-ms-ime-align: auto) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* iOS Safari - disable parallax for better performance */
@supports (-webkit-touch-callout: none) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* FROM: section-spacing-fix.css */
/* Fix for Section Spacing - Smooth Scroll Sync */

/* Ensure all sections have consistent spacing */
section {
    position: relative;
    margin: 0;
    padding: 80px 0;
}

/* Remove any transform that might cause scroll issues */
section {
    transform: none !important;
    overflow: visible !important;
}

/* Testimonials section spacing */
.testimonials-section {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 80px 0 !important;
}

/* Institutes section - clean separation */
.institutes-section {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 80px 0;
    margin: 0;
}

/* Admissions section - parallax */
.admissions-section {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 80px 0;
}

/* Placements section - white background, no parallax */
.placements-section {
    position: relative !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 80px 0 !important;
    transform: none !important;
    overflow: visible !important;
}

/* Campus Life section - parallax */
.campus-life-section {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 80px 0;
}

/* Research section - parallax */
.research-section {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 80px 0;
}

/* Contact section */
.contact-section {
    position: relative;
    z-index: 2;
    background: #f4f4f4;
    margin: 0;
    padding: 80px 0;
}

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Fix any parallax sections that might have positioning issues */
.parallax-section {
    position: relative;
    margin: 0;
}


/* ========================================
   MOBILE FIX: Reduce Section Title Sizes
   To prevent text cropping on mobile
   ======================================== */

/* For very small screens (phones) */
@media (max-width: 480px) {

    /* Academic Programs Section */
    .programs-section .section-title {
        font-size: 1.8em !important;
        line-height: 1.3 !important;
        margin-bottom: 15px;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -ms-hyphens: none !important;
    }

    .programs-section .section-subtitle {
        font-size: 0.95em !important;
        line-height: 1.6;
        word-break: keep-all !important;
        hyphens: none !important;
        text-align: left !important;
    }

    /* Institutes Section */
    .institutes-section .section-title {
        font-size: 1.8em !important;
        line-height: 1.3 !important;
        margin-bottom: 15px;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -ms-hyphens: none !important;
    }

    /* Placements Section */
    .placements-section .section-title,
    .placements-research-parallax .section-title {
        font-size: 1.6em !important;
        line-height: 1.3 !important;
        margin-bottom: 15px;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -ms-hyphens: none !important;
    }

    .placements-section .section-description,
    .placements-research-parallax .section-description {
        font-size: 0.95em !important;
        line-height: 1.6;
        word-break: keep-all !important;
        hyphens: none !important;
        text-align: left !important;
    }

    /* Research Section */
    .research-section .section-title {
        font-size: 1.8em !important;
        line-height: 1.3 !important;
        margin-bottom: 15px;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -ms-hyphens: none !important;
    }

    .research-section .section-description {
        font-size: 0.95em !important;
        line-height: 1.6;
        word-break: keep-all !important;
        hyphens: none !important;
        text-align: left !important;
    }

    /* General section title fix - PREVENT WORD BREAKING */
    .section-title {
        font-size: 1.8em !important;
        line-height: 1.3 !important;
        padding: 0 15px;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -ms-hyphens: none !important;
        white-space: normal !important;
    }

    .section-subtitle,
    .section-description {
        font-size: 0.95em !important;
        line-height: 1.6 !important;
        padding: 0 15px;
        word-break: keep-all !important;
        hyphens: none !important;
        text-align: left !important;
    }
}

/* For small tablets and large phones */
@media (min-width: 481px) and (max-width: 768px) {

    /* Academic Programs Section */
    .programs-section .section-title {
        font-size: 2.2em !important;
        line-height: 1.3;
        word-break: keep-all !important;
        hyphens: none !important;
    }

    /* Institutes Section */
    .institutes-section .section-title {
        font-size: 2.2em !important;
        line-height: 1.3;
        word-break: keep-all !important;
        hyphens: none !important;
    }

    /* Placements Section */
    .placements-section .section-title,
    .placements-research-parallax .section-title {
        font-size: 2em !important;
        line-height: 1.3;
        word-break: keep-all !important;
        hyphens: none !important;
    }

    /* Research Section */
    .research-section .section-title {
        font-size: 2.2em !important;
        line-height: 1.3;
        word-break: keep-all !important;
        hyphens: none !important;
    }

    .section-title {
        font-size: 2.2em !important;
        line-height: 1.3 !important;
        word-break: keep-all !important;
        hyphens: none !important;
    }

    .section-subtitle,
    .section-description {
        font-size: 1.05em !important;
        line-height: 1.7 !important;
        word-break: keep-all !important;
        hyphens: none !important;
        text-align: left !important;
    }
}

/* ========================================
   MOBILE FIX: Ensure Program Cards are Clickable
   ======================================== */

@media (max-width: 768px) {

    /* Ensure program cards and their links are clickable on mobile */
    .programs-section {
        position: relative;
        z-index: 1;
    }

    .programs-grid {
        position: relative;
        z-index: 2;
    }

    .program-card {
        position: relative;
        z-index: 3;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    .program-card * {
        pointer-events: auto !important;
    }

    .program-link {
        position: relative;
        z-index: 10;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255, 184, 44, 0.3);
    }

    /* Ensure no overlays block clicks */
    .programs-section::before,
    .programs-section::after {
        pointer-events: none !important;
    }

    /* Make the entire card area more touch-friendly */
    .program-card {
        padding: 30px 20px !important;
        min-height: auto;
    }

    /* Increase touch target size for links */
    .program-link {
        padding: 12px 20px;
        display: inline-block;
        min-height: 44px;
        min-width: 120px;
        text-align: center;
    }
}

/* ========================================
   TABLET FIX: 768px - Contact Section Mobile Image
   ======================================== */

@media (max-width: 768px) {
    
    /* Contact section - Use mobile-optimized background image for tablets too */
    .contact-section {
        background-image: url('../images/banners/journey-700x700.jpeg.webp?v=2026011202') !important;
        background-attachment: scroll !important; /* Better performance on mobile/tablet */
        background-position: center center !important;
        background-size: cover !important;
    }
}

/* ========================================
   MOBILE FIX: 480px - Campus Life & Contact Sections
   ======================================== */

@media (max-width: 480px) {
    
    /* Campus Life - Keep title on single line */
    .campus-life-section .section-title {
        font-size: 1.4rem !important; /* Smaller to fit on one line */
        white-space: nowrap !important;
        overflow: visible !important;
        word-wrap: normal !important;
        text-overflow: clip !important;
    }
    
    .campus-life-section .section-description {
        font-size: 0.95rem !important; /* Smaller paragraph */
        line-height: 1.6 !important;
    }
    
    /* Logo smaller on small phones - center aligned */
    .header-container {
        padding: 5px 0 !important; /* Minimal padding - top & bottom */
    }
    
    .logo img {
        height: 50px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }
    
    .logo-tagline {
        font-size: 8px !important;
        margin: 2px 0 0 0 !important; /* Minimal spacing from logo */
        padding: 0 !important;
        line-height: 1.2 !important;
    }
    
    /* Contact section - Use mobile-optimized background image */
    .contact-section {
        background-image: url('../images/banners/journey-700x700.jpeg.webp?v=2026011202') !important;
        background-attachment: scroll !important; /* Better performance on mobile */
        background-position: center center !important;
        background-size: cover !important;
        min-height: 400px !important; /* Reduced height for mobile */
        padding: 40px 0 !important;
    }
    
    /* Contact section - Full title visible, break into 2 lines */
    html body .contact-section .section-title,
    html body section.contact-section .section-title {
        font-size: 1.25rem !important; /* Clear readable size */
        white-space: normal !important; /* Allow line breaks */
        line-height: 1.4 !important;
        padding: 0 12px !important;
        margin-bottom: 12px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important; /* Reset for mobile */
        color: #FFFFFF !important;
    }
    
    html body .contact-section .section-description,
    html body section.contact-section .section-description {
        font-size: 1.2rem !important; /* SAME as placements/research */
        line-height: 1.7 !important;
        padding: 0 12px !important;
        margin: 0 auto 15px auto !important;
        font-weight: 400 !important;
        color: #FFFFFF !important;
        text-align: center !important;
        font-family: 'Georgia', 'Times New Roman', serif !important;
    }
    
    /* Admissions section - SAME as placements/research - HIGH SPECIFICITY */
    html body .admissions-section .section-description,
    html body .admissions-section .admissions-description,
    html body .admissions-section p,
    html body .admissions-description {
        font-size: 1.2rem !important; /* SAME as placements/research */
        line-height: 1.7 !important; /* SAME as placements/research */
        font-family: 'Georgia', 'Times New Roman', serif !important;
        text-align: justify !important;
        text-justify: inter-word !important;
        word-spacing: 0.1em !important; /* SAME as placements/research */
        letter-spacing: 0.3px !important; /* SAME as placements/research */
        color: #333 !important;
        padding: 0 !important;
        margin: 0 auto 30px auto !important;
        max-width: 100% !important;
        width: 100%;
    }
}

/* ========================================
   TIGHT SECTION SPACING - MOBILE
   Remove gaps between sections
   ======================================== */
@media (max-width: 768px) {
    .about-section {
        padding-bottom: 10px !important;
        margin-bottom: 0 !important;
    }
    
    .programs-section {
        padding-top: 10px !important;
        margin-top: 0 !important;
    }
}