<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Swami Vivekanand Subharti University | Edunet</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">




<?php
include("header.php");


?>


    <style>
        /* (CSS for styling the entire university page - integrated from the previous design system) */
        :root {
            --primary-dark: #1e3a8a;
            --primary-blue: #4facfe;
            --primary-light: #00f2fe;
            --accent-orange: #ff9a00;
            --accent-dark-orange: #ff6a00;
            --light-bg: #f8fafc;
            --text-dark: #1e293b;
            --text-gray: #64748b;
            --white: #ffffff;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
        body { background-color: var(--light-bg); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }

        /* University Hero Section */
        .university-hero {
            position: relative;
            width: 100%;
            min-height: 85vh;
            background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 55, 153, 0.85) 100%),
                        url('https://images.unsplash.com/photo-1562774053-701939374585?ixlib=rb-4.0.3&auto=format&fit=crop&w=2065&q=80');
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            padding: 60px 20px;
            text-align: center;
        }
        .hero-content { position: relative; z-index: 3; max-width: 1200px; width: 100%; }
        .hero-badge {
            display: inline-block;
            background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-dark-orange) 100%);
            color: white;
            padding: 10px 28px;
            border-radius: 30px;
            font-size: 0.95rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            margin-bottom: 25px;
            transform: translateY(30px);
            opacity: 0;
            animation: fadeUp 0.8s ease-out 0.3s forwards;
            box-shadow: 0 8px 20px rgba(255, 106, 0, 0.3);
        }
        .university-hero h1 {
            font-size: 3.8rem;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 15px;
            text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            transform: translateY(40px);
            opacity: 0;
            animation: fadeUp 0.8s ease-out 0.5s forwards;
        }
        .university-hero h1 span {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .university-hero .motto {
            font-size: 1.8rem;
            font-weight: 300;
            color: #e2e8ff;
            margin-bottom: 40px;
            transform: translateY(40px);
            opacity: 0;
            animation: fadeUp 0.8s ease-out 0.7s forwards;
        }
        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 50px;
            flex-wrap: wrap;
            margin-top: 40px;
        }
        .stat-item {
            text-align: center;
            transform: translateY(40px);
            opacity: 0;
        }
        .stat-item:nth-child(1) { animation: fadeUp 0.8s ease-out 0.9s forwards; }
        .stat-item:nth-child(2) { animation: fadeUp 0.8s ease-out 1.1s forwards; }
        .stat-item:nth-child(3) { animation: fadeUp 0.8s ease-out 1.3s forwards; }
        .stat-number {
            display: block;
            font-size: 3rem;
            font-weight: 800;
            color: var(--primary-blue);
            margin-bottom: 5px;
            line-height: 1;
        }
        .stat-label {
            font-size: 1rem;
            color: #e2e8ff;
            font-weight: 500;
            max-width: 150px;
        }
        @keyframes fadeUp { to { transform: translateY(0); opacity: 1; } }

        /* Main Content Sections */
        .page-section {
            max-width: 1300px;
            margin: 80px auto;
            padding: 0 25px;
        }
        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }
        .section-subtitle {
            display: inline-block;
            background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-dark-orange) 100%);
            color: white;
            padding: 8px 24px;
            border-radius: 30px;
            font-size: 0.9rem;
            font-weight: 600;
            letter-spacing: 1px;
            margin-bottom: 20px;
        }
        .section-title {
            font-size: 2.8rem;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 20px;
            color: var(--primary-dark);
        }
        .section-title span {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Quick Facts Grid */
        .facts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 40px;
        }
        .fact-card {
            background: var(--white);
            border-radius: 18px;
            padding: 30px;
            box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border-left: 5px solid var(--primary-blue);
        }
        .fact-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
        }
        .fact-card i {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: var(--primary-blue);
        }
        .fact-card h3 {
            font-size: 1.4rem;
            color: var(--primary-dark);
            margin-bottom: 12px;
        }
        .fact-card p {
            color: var(--text-gray);
            font-size: 1rem;
        }

        /* Why Choose & Academics */
        .features-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
            margin-top: 30px;
        }
        .feature-box {
            background: var(--white);
            border-radius: 18px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
            transition: all 0.4s ease;
        }
        .feature-box:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        }
        .feature-box h3 {
            color: var(--primary-dark);
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.5rem;
        }
        .feature-box h3 i {
            color: var(--accent-orange);
        }
        .feature-list { list-style: none; }
        .feature-list li {
            padding: 10px 0;
            border-bottom: 1px dashed #e2e8f0;
            color: var(--text-gray);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .feature-list li:last-child { border-bottom: none; }
        .feature-list li i { color: var(--primary-blue); font-size: 0.9rem; }

        /* Placement Stats Table */
        .placement-table-container {
            overflow-x: auto;
            margin-top: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
        }
        .placement-table {
            width: 100%;
            border-collapse: collapse;
            background: var(--white);
            border-radius: 15px;
            overflow: hidden;
        }
        .placement-table thead {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
            color: white;
        }
        .placement-table th {
            padding: 20px 15px;
            text-align: left;
            font-weight: 600;
            font-size: 1.1rem;
        }
        .placement-table tbody tr {
            border-bottom: 1px solid #f1f5f9;
            transition: background 0.3s ease;
        }
        .placement-table tbody tr:hover { background: #f0f9ff; }
        .placement-table td {
            padding: 18px 15px;
            color: var(--text-dark);
            font-weight: 500;
        }
        .placement-table .highlight { color: var(--accent-dark-orange); font-weight: 700; }

        /* Testimonial Slider */
        .testimonial-slider {
            position: relative;
            max-width: 900px;
            margin: 60px auto;
            overflow: hidden;
            border-radius: 20px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
        }
        .testimonial-track {
            display: flex;
            transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .testimonial-slide {
            min-width: 100%;
            padding: 50px;
            background: var(--white);
            box-sizing: border-box;
        }
        .student-info {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 25px;
        }
        .student-avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.8rem;
            font-weight: 700;
        }
        .student-details h4 {
            color: var(--primary-dark);
            font-size: 1.3rem;
            margin-bottom: 5px;
        }
        .student-details .course { color: var(--accent-orange); font-weight: 600; }
        .testimonial-text {
            font-size: 1.15rem;
            line-height: 1.7;
            color: var(--text-gray);
            font-style: italic;
            position: relative;
            padding-left: 25px;
        }
        .testimonial-text:before {
            content: '"';
            position: absolute;
            left: 0;
            top: -10px;
            font-size: 4rem;
            color: var(--primary-blue);
            opacity: 0.2;
            font-family: serif;
        }
        .slider-nav {
            display: none;
            justify-content: center;
            gap: 15px;
            margin-top: 30px;
        }
        .slider-dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #cbd5e1;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .slider-dot.active { background: var(--primary-blue); transform: scale(1.3); }

        /* CTA & Contact */
        .cta-section {
            text-align: center;
            padding: 70px 30px;
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border-radius: 25px;
            margin: 80px auto;
            max-width: 1100px;
        }
        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }
        .contact-card {
            background: var(--white);
            padding: 35px;
            border-radius: 18px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
            text-align: center;
            transition: transform 0.4s ease;
        }
        .contact-card:hover { transform: translateY(-10px); }
        .contact-card i {
            font-size: 2.8rem;
            margin-bottom: 20px;
            color: var(--primary-blue);
        }
        .contact-card h4 {
            color: var(--primary-dark);
            margin-bottom: 15px;
            font-size: 1.4rem;
        }
        .contact-card p { color: var(--text-gray); margin-bottom: 5px; }
        .contact-card .phone { color: var(--accent-dark-orange); font-weight: 700; font-size: 1.2rem; }

        /* Responsive Design */
        @media (max-width: 992px) {
            .university-hero h1 { font-size: 3rem; }
            .hero-stats { gap: 30px; }
            .section-title { font-size: 2.3rem; }
        }
        @media (max-width: 768px) {
            .university-hero { min-height: auto; padding: 80px 20px; }
            .university-hero h1 { font-size: 2.4rem; }
            .motto { font-size: 1.4rem; }
            .hero-stats { gap: 25px; }
            .stat-number { font-size: 2.3rem; }
            .page-section { margin: 60px auto; }
            .testimonial-slide { padding: 35px 25px; }
            .contact-card { padding: 25px; }
        }
        @media (max-width: 576px) {
            .university-hero h1 { font-size: 2rem; }
            .section-title { font-size: 1.9rem; }
            .facts-grid, .features-container { grid-template-columns: 1fr; }
            .placement-table th, .placement-table td { padding: 12px 10px; font-size: 0.9rem; }
        }
    </style>
</head>
<body>
    <!-- University Hero Section -->
    <section class="university-hero">
        <div class="hero-content">
            <div class="hero-badge">
                <i class="fas fa-university"></i> NAAC 'A' Accredited | UGC Approved
            </div>
            <h1>Swami Vivekanand <span>Subharti University</span></h1>
            <p class="motto">"Education for All" – Transforming Lives Since 2008</p>
            <div class="hero-stats">
                <div class="stat-item" id="stat-companies">
                    <span class="stat-number" data-target="820">0</span>
                    <span class="stat-label">Companies for Placement</span>
                </div>
                <div class="stat-item" id="stat-rank">
                    <span class="stat-number" data-target="5">0</span>
                    <span class="stat-label">Rank in India (QS Asia 2026)</span>
                </div>
                <div class="stat-item" id="stat-placements">
                    <span class="stat-number" data-target="6745">0</span>
                    <span class="stat-label">Students Placed</span>
                </div>
            </div>
        </div>
    </section>

    <!-- Quick Facts Section -->
    <section class="page-section">
        <div class="section-header">
            <div class="section-subtitle"><i class="fas fa-lightbulb"></i> At a Glance</div>
            <h2>University <span>Quick Facts</span></h2>
        </div>
        <div class="facts-grid">
            <div class="fact-card">
                <i class="fas fa-map-marked-alt"></i>
                <h3>250+ Acre Campus</h3>
                <p>Sprawling urban campus in Meerut, NCR, with state-of-the-art infrastructure including a 1042-bed hospital.</p>
            </div>
            <div class="fact-card">
                <i class="fas fa-graduation-cap"></i>
                <h3>14 Faculties, 220+ Programs</h3>
                <p>Comprehensive education across Medicine, Engineering, Law, Management, Arts, and more.</p>
            </div>
            <div class="fact-card">
                <i class="fas fa-award"></i>
                <h3>Top Rankings & Recognition</h3>
                <p>Ranked 5th in India by QS Asia 2026, among top private universities by India Today, and an Incredible Workplaces™ Gold Certified institution.</p>
            </div>
            <div class="fact-card">
                <i class="fas fa-users"></i>
                <h3>Vibrant Community</h3>
                <p>Home to over 13,000 students and 700+ faculty members, fostering a dynamic learning environment.</p>
            </div>
        </div>
    </section>

    <!-- Why Choose Subharti & Academic Excellence -->
    <section class="page-section">
        <div class="section-header">
            <div class="section-subtitle"><i class="fas fa-star"></i> The Subharti Advantage</div>
            <h2>Why <span>Choose Subharti?</span></h2>
        </div>
        <div class="features-container">
            <div class="feature-box">
                <h3><i class="fas fa-check-circle"></i> Student-Favourable Environment</h3>
                <ul class="feature-list">
                    <li><i class="fas fa-wifi"></i> 100% Wi-Fi Enabled Campus</li>
                    <li><i class="fas fa-home"></i> 14 Hostels (Incl. separate NRI hostels)</li>
                    <li><i class="fas fa-stethoscope"></i> 24x7 Hospital in Campus</li>
                    <li><i class="fas fa-hand-holding-usd"></i> Up to 100% Scholarships</li>
                </ul>
            </div>
            <div class="feature-box">
                <h3><i class="fas fa-flask"></i> Research & Innovation</h3>
                <ul class="feature-list">
                    <li><i class="fas fa-file-alt"></i> 1229+ Research Papers Published</li>
                    <li><i class="fas fa-book"></i> 137+ Books & Chapters</li>
                    <li><i class="fas fa-cogs"></i> Recognized as SIRO by DSIR</li>
                    <li><i class="fas fa-satellite"></i> Nodal Center for ISRO's START Program</li>
                </ul>
            </div>
            <div class="feature-box">
                <h3><i class="fas fa-briefcase"></i> Career & Global Connect</h3>
                <ul class="feature-list">
                    <li><i class="fas fa-chart-line"></i> 100% Placement & Internship Assistance</li>
                    <li><i class="fas fa-globe-asia"></i> MoUs with National & International Universities</li>
                    <li><i class="fas fa-language"></i> Opportunity to learn foreign languages</li>
                    <li><i class="fas fa-user-tie"></i> Strong Industry Interface Department</li>
                </ul>
            </div>
        </div>
    </section>

    <!-- Academic Programs Section -->
    <section class="page-section">
        <div class="section-header">
            <div class="section-subtitle"><i class="fas fa-book-open"></i> Explore Education</div>
            <h2>Academic <span>Programs</span></h2>
        </div>
        <div class="features-container">
            <div class="feature-box">
                <h3><i class="fas fa-user-md"></i> Medical & Health Sciences</h3>
                <p>Faculty of Medicine, Dental Sciences, Nursing, Pharmacy, and Para-Medical Sciences. Admissions through NEET.</p>
            </div>
            <div class="feature-box">
                <h3><i class="fas fa-balance-scale"></i> Law & Management</h3>
                <p>Faculty of Law (BA.LLB, LLM), Management & Commerce (BBA, MBA). Known for producing Civil Judges and leaders.</p>
            </div>
            <div class="feature-box">
                <h3><i class="fas fa-laptop-code"></i> Technology & Engineering</h3>
                <p>Faculty of Engineering & Technology, Computer Applications. Focus on innovation and industry-ready skills.</p>
            </div>
            <div class="feature-box">
                <h3><i class="fas fa-paint-brush"></i> Arts & Humanities</h3>
                <p>Faculty of Arts, Education, Fine Arts, Hotel Management, Journalism. Diverse programs fostering creativity.</p>
            </div>
        </div>
    </section>

    <!-- Placement Success Section -->
    <section class="page-section">
        <div class="section-header">
            <div class="section-subtitle"><i class="fas fa-trophy"></i> Career Launchpad</div>
            <h2>Placement <span>Success</span></h2>
            <p style="color: var(--text-gray); max-width: 800px; margin: 10px auto;">With over <strong>820 companies</strong> visiting campus, Subharti has a strong track record of placing students in top national and international firms.</p>
        </div>

        <div class="placement-table-container">
            <table class="placement-table">
                <thead>
                    <tr>
                        <th>Program</th>
                        <th>Graduated (2022)</th>
                        <th>Placed (2022)</th>
                        <th>Top Recruiters</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>UG (4-Year)</td>
                        <td>350</td>
                        <td class="highlight">282</td>
                        <td>TCS, Infosys, Wipro</td>
                    </tr>
                    <tr>
                        <td>UG (5-Year)</td>
                        <td>359</td>
                        <td class="highlight">278</td>
                        <td>Law Firms, Courts</td>
                    </tr>
                    <tr>
                        <td>PG (2-Year)</td>
                        <td>278</td>
                        <td class="highlight">191</td>
                        <td>Genpact, HCL, Cognizant</td>
                    </tr>
                    <tr>
                        <td>MBA / BBA</td>
                        <td>-</td>
                        <td class="highlight">-</td>
                        <td>Axis Bank, American Express, Nestle</td>
                    </tr>
                </tbody>
            </table>
            <p style="text-align: center; color: var(--text-gray); font-size: 0.9rem; padding: 15px;">Source: Based on institutional data | Highest Package: <strong>22 LPA</strong></p>
        </div>
    </section>

    <!-- Student Testimonials -->
    <section class="page-section">
        <div class="section-header">
            <div class="section-subtitle"><i class="fas fa-comment-dots"></i> Voices of Subharti</div>
            <h2>Student <span>Testimonials</span></h2>
        </div>
        <div class="testimonial-slider">
            <div class="testimonial-track" id="testimonialTrack">
                <!-- Slide 1 -->
                <div class="testimonial-slide">
                    <div class="student-info">
                        <div class="student-avatar">SS</div>
                        <div class="student-details">
                            <h4>Shivani Sharma</h4>
                            <p class="course">BA.LLB, LLM | Now a Civil Judge</p>
                        </div>
                    </div>
                    <p class="testimonial-text">"It is that rare kind of institution which teaches the peculiarities of legal studies as well as essential values. The faculty and library taught me the discipline needed for my service. I never felt the need to join any coaching institute."</p>
                </div>
                <!-- Slide 2 -->
                <div class="testimonial-slide">
                    <div class="student-info">
                        <div class="student-avatar">GB</div>
                        <div class="student-details">
                            <h4>Gaurish Batra</h4>
                            <p class="course">BDS (Bachelor of Dental Surgery)</p>
                        </div>
                    </div>
                    <p class="testimonial-text">"An incredible university dedicated to giving students the best experience. A beautiful campus filled with excitement and activity. It gave us a platform to showcase our talents and have a voice."</p>
                </div>
                <!-- Slide 3 -->
                <div class="testimonial-slide">
                    <div class="student-info">
                        <div class="student-avatar">RS</div>
                        <div class="student-details">
                            <h4>Riya Sharma</h4>
                            <p class="course">BDS (Bachelor of Dental Surgery)</p>
                        </div>
                    </div>
                    <p class="testimonial-text">"A great contributor to my personality development. I established my leadership and team skills. The best thing is the endless opportunity and scope of enhancement it gives to students."</p>
                </div>
            </div>
            <div class="slider-nav"  id="sliderNav">
                <!-- Dots will be added by JS -->
            </div>
        </div>
    </section>

    <!-- Contact & CTA Section -->
    <section class="page-section">
        <div class="cta-section">
            <h2 style="color: var(--primary-dark); margin-bottom: 15px;">Begin Your Subharti Journey</h2>
            <p style="color: var(--text-gray); font-size: 1.2rem; max-width: 700px; margin: 0 auto 40px;">
                Admission is based on SNET, merit, or national exams like NEET. Applications can be submitted <strong>online or on-campus</strong> with a registration fee.
            </p>
            <button id="enquireBtn" style="background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%); color: white; border: none; padding: 18px 45px; font-size: 1.2rem; font-weight: 600; border-radius: 50px; cursor: pointer; transition: all 0.4s ease; box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);">
                <i class="fas fa-download"></i> Download Prospectus
            </button>
        </div>

        <div class="section-header">
            <h2>Get In <span>Touch</span></h2>
            <p style="color: var(--text-gray);">Reach out to the relevant department for queries.</p>
        </div>
        <div class="contact-grid">
            <div class="contact-card">
                <i class="fas fa-headset"></i>
                <h4>Central Admission Cell</h4>
                <p>For On-Campus Regular Programs</p>
                <p class="phone">+91-9639222288/89</p>
                <p> admission@subharti.org</p>
                <p> Mon-Sat: 8 AM - 4 PM</p>
            </div>
            <div class="contact-card">
                <i class="fas fa-globe"></i>
                <h4>International Students</h4>
                <p>Global Relations (ISGR)</p>
                <p class="phone">+91-121-6678000</p>
                <p> global@subharti.org</p>
            </div>
            <div class="contact-card">
                <i class="fas fa-map-marker-alt"></i>
                <h4>University Address</h4>
                <p>Swami Vivekanand Subharti University</p>
                <p>Subhartipuram, NH-58, Delhi-Haridwar Bypass Road,</p>
                <p>Meerut, Uttar Pradesh - 250005</p>
            </div>
        </div>
    </section>

    <script>
        // 1. Animated Stats Counter
        function animateStats() {
            const statElements = document.querySelectorAll('.stat-number');
            statElements.forEach(stat => {
                const target = parseInt(stat.getAttribute('data-target'));
                const increment = target / 60;
                let current = 0;
                const timer = setInterval(() => {
                    current += increment;
                    if (current >= target) {
                        stat.textContent = target + (stat.id.includes('companies') ? '+' : '');
                        clearInterval(timer);
                    } else {
                        stat.textContent = Math.floor(current);
                    }
                }, 30);
            });
        }
        // Trigger when hero section is in view
        const observer = new IntersectionObserver((entries) => {
            if (entries[0].isIntersecting) {
                animateStats();
                observer.unobserve(entries[0].target);
            }
        }, { threshold: 0.5 });
        observer.observe(document.querySelector('.university-hero'));

        // 2. Testimonial Slider Functionality
        const track = document.getElementById('testimonialTrack');
        const slides = document.querySelectorAll('.testimonial-slide');
        const navContainer = document.getElementById('sliderNav');
        let currentSlide = 0;
        // Create navigation dots
        slides.forEach((_, index) => {
            const dot = document.createElement('div');
            dot.classList.add('slider-dot');
            if (index === 0) dot.classList.add('active');
            dot.addEventListener('click', () => goToSlide(index));
            navContainer.appendChild(dot);
        });
        const dots = document.querySelectorAll('.slider-dot');
        function goToSlide(n) {
            currentSlide = n;
            track.style.transform = `translateX(-${currentSlide * 100}%)`;
            dots.forEach((dot, idx) => {
                dot.classList.toggle('active', idx === currentSlide);
            });
        }
        // Auto-slide every 6 seconds
        setInterval(() => {
            currentSlide = (currentSlide + 1) % slides.length;
            goToSlide(currentSlide);
        }, 6000);

        // 3. Button Interactions
        document.getElementById('enquireBtn').addEventListener('click', function() {
            alert('Prospectus download would start. For actual prospectus, visit: https://subharti.org/prospectus-subharti-university-india.php');
            this.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Redirecting...';
            setTimeout(() => {
                this.innerHTML = '<i class="fas fa-check"></i> Prospectus Downloaded!';
                this.style.background = 'linear-gradient(135deg, #00b09b 0%, #96c93d 100%)';
            }, 1500);
        });

        // 4. Fade-in animation on scroll for sections
        const sectionObserver = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    entry.target.style.opacity = '1';
                    entry.target.style.transform = 'translateY(0)';
                }
            });
        }, { threshold: 0.1 });
        document.querySelectorAll('.page-section').forEach(section => {
            section.style.opacity = '0';
            section.style.transform = 'translateY(30px)';
            section.style.transition = 'opacity 0.8s ease, transform 0.8s ease';
            sectionObserver.observe(section);
        });
    </script>



<?php
include("footer.php");


?>