/* General Body and Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f9f9f9;
    color: #333;
    overflow-x: hidden; /* Prevents horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ------ HEADER & NAVBAR STYLES ------ */
.header {
    position: relative;
    z-index: 1000;
}
.top-bar {
    background-color: #2c2c2c;
    color: #f0f0f0;
    padding: 0.5rem 2rem;
    font-size: 0.85em;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.top-bar-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.top-bar a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.top-bar a:hover {
    opacity: 0.8;
}
.main-navbar {
    background-color: #800000;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 55px;
    width: 55px;
    margin-right: 15px;
    border-radius: 50%;
    object-fit: contain;
    background-color: #fff;
}
.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.nav-links li {
    position: relative;
}
.nav-links > li > a {
    color: #fff;
    text-decoration: none;
    padding: 1.5rem;
    display: block;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}
.nav-links > li:hover > a {
    background-color: #9a0000;
}
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #800000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
.nav-links li:hover .dropdown {
    display: block;
}
.dropdown li a {
    padding: 12px 20px;
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
    display: block;
    text-transform: none;
    font-weight: 400;
    letter-spacing: normal;
}
.dropdown li a:hover {
    background-color: #9a0000;
}
.hamburger-menu {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('Images/hero-bg2.jpeg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-position: 0% 50%;
    animation: slideBackground 30s linear infinite alternate;
}
@keyframes slideBackground {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* YouTube Video Section */
.youtube-video-section {
    background-color: #f0f0f0;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}
.youtube-video-section h2 {
    font-size: 2.5rem;
    color: #800000;
    margin-bottom: 2rem;
}
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Content Sections */
.content-section {
    background-color: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ------ NEW HOMEPAGE CARD GRID ------ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.info-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.info-card h2 {
    color: #800000;
    margin-top: 0;
}
.info-card ul {
    padding-left: 20px;
    margin: 0;
}

/* President & CEO Styles */
.president-container, .ceo-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.president-photo, .ceo-photo {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    margin: 0 auto;
}
.president-photo img, .ceo-photo img {
    width: 100%;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.president-text, .ceo-text {
    flex: 2;
    min-width: 300px;
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.activity-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #800000;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background-color: #9a0000;
}

/* Footer */
.site-footer-elegant {
    color: #a0a0a0;
    padding: 3rem 2rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 0;
}
.site-footer-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Images/college-campus.jpeg') no-repeat center center/cover;
    filter: blur(8px);
    transform: scale(1.1);
    z-index: -2;
}
.site-footer-elegant::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
}
.footer-about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-logo {
    height: 80px;
    width: 80px;
    margin-bottom: 1rem;
    border-radius: 50%;
    object-fit: contain;
    background-color: #fff;
}
.footer-about h4 {
    color: #fff;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}
.footer-about p {
    line-height: 1.8;
}
.footer-nav-contact {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    border-left: 1px solid #444;
    padding-left: 3rem;
}
.footer-quick-links h4, .footer-address h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 8px;
}
.footer-quick-links h4::after, .footer-address h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #800000;
}
.footer-quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-quick-links li {
    margin-bottom: 10px;
}
.footer-quick-links a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.footer-quick-links a:hover {
    opacity: 0.8;
}
.footer-address p {
    margin: 0 0 10px 0;
}
.footer-bottom-elegant {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    position: relative;
}
.footer-bottom-elegant p {
    margin: 0;
}
.developer-credit {
    font-size: 0.9em;
}
.developer-credit a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
}
.developer-credit a:hover {
    opacity: 0.8;
}

/* Scroll Animation Styles */
[data-animation] {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
[data-animation="fade-in"] {
    transform: translateY(30px);
}
[data-animation="slide-in-left"] {
    transform: translateX(-50px);
}
[data-animation="slide-in-right"] {
    transform: translateX(50px);
}
[data-animation].visible {
    opacity: 1;
    transform: none;
}

/* ------ MOBILE RESPONSIVENESS ------ */

@media (max-width: 992px) {
    /* --- Navbar Adjustments --- */
    .main-navbar {
        flex-wrap: wrap; /* Allow wrapping for the mobile menu */
        background-color: #800000; /* Ensure the navbar color remains the same */
    }
    .nav-links {
        display: none; /* Hide desktop links by default */
        flex-direction: column;
        width: 100%;
        background-color: #800000;
        position: absolute;
        top: 100%; /* Position below the navbar */
        left: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex; /* Show when active */
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links > li > a {
        padding: 1rem;
        border-bottom: 1px solid #9a0000;
    }
    .hamburger-menu {
        display: block; /* Show hamburger menu */
    }
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .dropdown {
        position: static; /* Make dropdown part of the flow */
        display: none; /* Keep hidden until parent is hovered/clicked */
        box-shadow: none;
        background-color: #700000; /* Slightly darker to show hierarchy */
    }
    .dropdown li a {
        padding-left: 2rem; /* Indent dropdown links */
    }

    /* --- General Layout --- */
    .logo a {
        font-size: 1.2rem; /* Reduce logo text size */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    .top-bar {
        font-size: 0.8em;
        padding: 0.5rem 1rem;
    }
    .main-navbar {
        padding: 1rem;
    }

    /* Footer adjustments */
    .footer-container {
        grid-template-columns: 1fr; /* Stack footer columns */
        gap: 2rem;
    }
    .footer-nav-contact {
        border-left: none; /* Remove vertical divider */
        padding-left: 0;
    }
    .footer-bottom-elegant {
        flex-direction: column; /* Stack copyright and credit */
        text-align: center;
    }
}