/* =========================================
   SVPMC - PREMIUM THEME (Midnight Blue & Gold)
   ========================================= */

:root {
    /* Color Palette */
    --primary-color: #0a2351;   /* Deep Midnight Blue */
    --secondary-color: #1a4a8d; /* Royal Blue */
    --accent-color: #d4af37;    /* Metallic Gold */
    --text-color: #333333;      /* Dark Grey Text */
    --light-text: #666666;      /* Light Grey Text */
    --bg-color: #f9f9f9;        /* Off-white Background */
    --white: #ffffff;
    
    /* Layout & Effects */
    --max-width: 1200px;
    --border-radius: 10px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    color: var(--light-text);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   PRELOADER
   ========================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   POPUP (BAND BANNER)
   ========================================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Dark dim background */
    z-index: 10000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.popup-overlay.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.popup-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    animation: zoomIn 0.4s ease;
}

.popup-img {
    width: 100%;
    border-radius: 12px;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    cursor: pointer;
    transition: transform 0.3s;
}

.popup-img:hover {
    transform: scale(1.02);
}

.close-popup {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 35px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-popup:hover {
    color: var(--accent-color);
}

/* =========================================
   NAVIGATION BAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    height: 70px; /* Fixed height for calculations */
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* Desktop Links */
.nav-links ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}

.nav-item:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-item:hover:after,
.nav-item.active:after {
    width: 100%;
}

.nav-item:hover, 
.nav-item.active {
    color: var(--secondary-color);
}

/* Highlight Links (Panel & Band) */
.highlight-link {
    color: var(--accent-color) !important;
    border: 1px solid var(--accent-color);
    padding: 6px 16px !important;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.highlight-link:hover {
    background-color: var(--accent-color);
    color: var(--white) !important;
}

.highlight-link:after {
    display: none; /* Remove underline effect */
}

/* Contact Button */
.contact-btn {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(10, 35, 81, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    background-color: var(--secondary-color);
    color: var(--white) !important;
}

.contact-btn:after {
    display: none;
}

/* Mobile Hamburger Toggle */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 70px; /* Offset for fixed navbar */
    overflow: hidden;
}

/* Affiliation Bar */
.affiliation-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(212, 175, 55, 0.95); /* Gold */
    color: var(--primary-color);
    text-align: center;
    padding: 8px 0;
    z-index: 20;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideDown 0.8s ease-out;
}

.affiliation-bar i {
    margin-right: 5px;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

/* Text Gradient (Crucial for clear images) */
.text-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient only on the left side, fades to transparent */
    background: linear-gradient(90deg, 
        rgba(10, 35, 81, 0.95) 0%, 
        rgba(10, 35, 81, 0.7) 40%, 
        rgba(10, 35, 81, 0) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin-left: 10%; /* Left alignment */
    color: var(--white);
}

.slide-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.slide-content p {
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
    margin-right: 15px;
}

.btn-primary:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: 15px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Swiper Controls */
.swiper-button-next, .swiper-button-prev {
    color: var(--accent-color) !important;
}
.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
}

/* =========================================
   COMMON SECTION STYLES
   ========================================= */
section {
    padding: 80px 0;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* =========================================
   STATS SECTION
   ========================================= */
.stats-section {
    background: var(--white);
    margin-top: -50px; /* Overlap hero */
    position: relative;
    z-index: 10;
    border-radius: 20px 20px 0 0;
    padding-top: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #eee;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--accent-color);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
    background: var(--bg-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 5px solid var(--white);
}

.about-text h3 {
    color: var(--secondary-color);
    margin-top: 20px;
}

/* =========================================
   COURSES & FACILITIES (GRID CARDS)
   ========================================= */
.courses-grid, .facilities-grid, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.course-card, .facility-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.course-card:hover, .facility-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.course-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

.course-content, .facility-card {
    padding: 25px;
}

.course-features {
    margin: 15px 0;
}

.course-features li {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 8px;
}

.course-features i {
    color: var(--accent-color);
    margin-right: 8px;
}

.facility-card {
    text-align: center;
}

.facility-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.facility-card:hover .facility-icon {
    color: var(--accent-color);
    transform: scale(1.1);
    transition: var(--transition);
}

/* =========================================
   FACULTY SECTION
   ========================================= */
.faculty-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 10px; /* Space for shadow */
    transition: var(--transition);
}

.faculty-card:hover {
    transform: translateY(-10px);
}

.faculty-image {
    height: 280px;
    overflow: hidden;
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.faculty-info {
    padding: 20px;
    text-align: center;
}

.faculty-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.faculty-position {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.faculty-qualification {
    font-size: 0.85rem;
    color: var(--light-text);
}

/* =========================================
   GALLERY SECTION
   ========================================= */
.gallery-item {
    height: 250px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-button {
    text-align: center;
    margin-top: 40px;
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonials-section {
    background: var(--bg-color);
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 15px;
}

.quote-icon {
    color: var(--accent-color);
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 15px;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.85rem;
}

/* =========================================
   FAQ SECTION (ACCORDION)
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f4f4f4;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.faq-toggle {
    color: var(--accent-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #fafafa;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust based on content */
    padding: 15px 20px;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.contact-icon {
    background: rgba(10, 35, 81, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent-color);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.contact-form button {
    width: 100%;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 70px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.2rem;
}

.footer-logo p {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: space-around;
}

.footer-column h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--white);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: 0.3s;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright p {
    color: #999;
    font-size: 0.9rem;
    margin: 5px 0;
}

.copyright a {
    color: var(--accent-color);
}

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */
.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s linear;
    background: var(--white);
}

.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-wrap i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--primary-color);
}

.progress-circle path {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 4;
    transition: stroke-dashoffset 10ms linear;
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE)
   ========================================= */
@media (max-width: 992px) {
    .about-content, .contact-container, .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        justify-content: flex-start;
        gap: 50px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    /* Navbar Mobile */
    .menu-toggle {
        display: flex; /* Show Hamburger */
    }

    .nav-links {
        position: absolute;
        top: 70px; /* Below Navbar */
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .nav-links.active {
        max-height: 600px; /* Open height */
    }

    .nav-links ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .nav-item {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Hero Mobile */
    .slide-content h1 {
        font-size: 2.2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .text-gradient {
        /* Darker overlay on mobile for readability */
        background: linear-gradient(90deg, rgba(10,35,81,0.8) 0%, rgba(10,35,81,0.8) 100%);
    }
    
    .slide-content {
        margin-left: 20px;
        margin-right: 20px;
        text-align: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }

    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Scroll Animation Classes */
[data-animate] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}