/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #800000; /* Maroon */
    --secondary-color: #D4AF37; /* Gold */
    --text-color: #333;
    --light-bg: #fdfbf7; /* Cream/Off-white */
    --white: #ffffff;
    --dark-overlay: rgba(0, 0, 0, 0.6);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-family: var(--font-body);
}

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

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--secondary-color);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    font-family: var(--font-body);
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.underline {
    height: 3px;
    width: 100px;
    background-color: var(--secondary-color);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.underline::after {
    content: '♪';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--light-bg);
    padding: 0 10px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

section {
    padding: 80px 0;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.logo p {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: -5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 1rem;
    position: relative;
}

nav ul li a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

nav ul li a:not(.btn-primary):hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
    border-left: 1px solid #ddd;
    padding-left: 15px;
}

.lang-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    color: #777;
    font-weight: 600;
    padding: 2px 5px;
    transition: all 0.3s;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.lang-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 2;
}

.hero::before {
    display: none; /* Remove previous border effect if it conflicts, or keep it on top */
}

/* Add the border effect back on top of the video */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 20px solid rgba(255, 255, 255, 0.1);
    margin: 20px;
    pointer-events: none;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.6rem;
    margin-bottom: 40px;
    animation: fadeInUp 1.2s ease;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Section */
.stats {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239c1b1b' fill-opacity='0.4' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.stats .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    gap: 30px;
}

.stat-item {
    flex: 1;
    min-width: 200px;
}

.stat-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-text {
    max-width: 900px;
    text-align: center;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--secondary-color);
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.15rem;
    color: #555;
}

.features-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 35px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
}

.features-list li i {
    color: var(--secondary-color);
}

/* Courses Section */
.courses {
    background-color: var(--white);
}

.courses-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid #eee;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.3);
}

.tab-content-wrapper {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    min-height: 350px;
    position: relative;
}

.tab-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--secondary-color);
}

.tab-content {
    display: none;
    padding: 50px;
    animation: fadeIn 0.6s ease;
}

.tab-content.active {
    display: block;
}

.course-detail {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.course-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary-color);
    border: 3px solid var(--secondary-color);
}

.course-info h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.course-info p {
    margin-bottom: 25px;
    color: #666;
    font-size: 1.1rem;
}

.exam-box {
    background-color: var(--light-bg);
    border-left: 5px solid var(--secondary-color);
    padding: 25px;
    border-radius: 0 10px 10px 0;
    margin-top: 25px;
}

.exam-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.exam-box h4 i {
    color: var(--secondary-color);
}

.fee-note {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background-color: rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: 500;
    border: 1px dashed var(--secondary-color);
}

/* Services Section */
.services {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-bottom: 4px solid transparent;
    transition: all 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--secondary-color);
}

.service-item h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Faculty Section */
.faculty-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.faculty-card {
    background: var(--white);
    width: 350px;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid #eee;
}

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

.faculty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.faculty-img {
    width: 130px;
    height: 130px;
    background-color: var(--light-bg);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #ccc;
    border: 3px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faculty-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.faculty-card .role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.faculty-card .contact {
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(128, 0, 0, 0.05);
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
}

.info-item i {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.info-item h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-top: 5px solid var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    background-color: #f9f9f9;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 50px 0 30px;
    text-align: center;
    border-top: 5px solid var(--secondary-color);
}

.developer-credit {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #333;
    padding-top: 15px;
    display: inline-block;
}

.social-links {
    margin-top: 25px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: var(--white);
    margin: 0 8px;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive & Mobile Optimizations */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 3rem;
    }
    
    .course-detail {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .exam-box {
        text-align: left;
        border-left: none;
        border-top: 4px solid var(--secondary-color);
        border-radius: 10px;
    }
}

@media (max-width: 768px) {
    header .container {
        padding: 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
        border-top: 1px solid #eee;
    }

    nav ul.active {
        display: flex;
    }
    
    .lang-switcher {
        margin: 15px 0 0;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 15px;
        padding-left: 0;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .tab-content {
        padding: 30px 20px;
    }
    
    .course-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .contact-wrapper {
        flex-direction: column;
    }
    
    .faculty-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 12px 20px;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .tab-buttons {
        gap: 10px;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
}
