@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* Color Palette */
    --primary: #800020;
    /* Burgundy */
    --primary-light: #a52a2a;
    --secondary: #D4AF37;
    /* Gold */
    --accent: #E91E63;
    --bg-light: #F9F7F2;
    /* Cream */
    --text-dark: #2D2D2D;
    --text-light: #666666;
    --white: #ffffff;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* --- Top Header --- */
.top-header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-logo {
    width: 60px;
    flex-shrink: 0;
}

.header-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-text .foundation {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
}

.header-text .college-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #c00000;
    /* Red from the image */
    line-height: 1.2;
    margin: 2px 0;
}

.header-text .affiliation {
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
}

.header-contact {
    text-align: right;
    font-size: 0.9rem;
    color: #333;
}

.header-contact p {
    margin-bottom: 2px;
}

.header-contact strong {
    font-weight: 700;
}

/* --- Navigation --- */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: #c00000;
    /* Red from the image */
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    justify-content: center;
}

.nav-links a {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a:hover {
    color: #e0e0e0;
}

/* Dropdown Support */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333 !important;
    padding: 0.8rem 1.5rem;
    display: block;
    font-size: 0.85rem;
}

.dropdown-content a:hover {
    background: #f5f5f5;
    color: var(--primary) !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Active Support */
.nav-links li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 2px;
    background: #fff;
}

/* --- Hero Section --- */
.hero {
    height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://i0.wp.com/dvphscoft.com/wp-content/uploads/2024/09/IMG_20240815_105743-min-scaled.jpg?fit=2560%2C1156&ssl=1') no-repeat center center/cover;
    color: var(--white);
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* --- Features Section --- */
.section {
    padding: var(--space-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.section-header .subtitle {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

/* --- About Section --- */
.about {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-img::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--secondary);
    border-left: 5px solid var(--secondary);
    z-index: -1;
}

/* --- Courses Section --- */
.course-card {
    overflow: hidden;
    padding: 0;
}

.course-img {
    height: 250px;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-img img {
    transform: scale(1.1);
}

.course-info {
    padding: var(--space-md);
}

/* --- Footer --- */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    display: block;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    color: var(--secondary);
}

.footer-links ul li {
    margin-bottom: var(--space-xs);
}

.footer-links ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stats Section */
.stats {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-lg) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.stat-item p {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 0, 32, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #a00000;
        padding: 1rem 0;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 1rem;
        display: block;
    }

    .dropdown-content {
        position: static;
        background: #800000;
        box-shadow: none;
        display: none;
        width: 100%;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}