/* Basic Reset & Variables */
:root {
    --primary-color: #002244;
    /* Deep Navy */
    --secondary-color: #D3A447;
    /* Gold */
    --accent-color: #A6192E;
    /* Deep Red (Academic Accents) */
    --text-color: #333333;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --header-font: 'Merriweather', serif;
    --body-font: 'Inter', sans-serif;
    --radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--header-font);
    color: var(--primary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-block;
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
    /* Adjust based on background */
}

/* Specific hover if background is white/light */
.cta-section .btn-primary:hover,
.hero .btn-primary:hover {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

nav .btn-primary:hover {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    border: 2px solid var(--bg-white);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i,
.social-links i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.social-links a {
    color: #fff;
    margin-left: 15px;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    height: 100px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-right: auto;
    /* Push to the left */
    width: auto;
    padding: 5px 0;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Hide old text logo elements if they still exist in HTML until replaced, or remove styles */
.logo i,
.logo h1,
.logo span {
    display: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-left: auto;
    /* Push to right */
    margin-right: 0;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

/* Contact Us Button Styling */
.nav-links a[href="contact.html"] {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a[href="contact.html"]:hover {
    background-color: #c09035;
    /* Darker gold */
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    margin-left: 20px;
}

/* Hero Section */
.hero {
    position: relative;
    /* Background handled by slider */
    color: #fff;
    padding: 100px 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1s ease-in-out, transform 8s linear;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.15);
    /* Slow zoom in */
    transition: opacity 1s ease-in-out, transform 8s linear;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 34, 68, 0.8), rgba(0, 34, 68, 0.6));
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero .badge {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* News Ticker */
.news-ticker {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 0;
    font-weight: 600;
}

.news-ticker .container {
    display: flex;
    align-items: center;
}

.news-ticker .label {
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    margin-right: 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.img-placeholder {
    width: 100%;
    height: 400px;
    background-color: #eee;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaa;
    border: 2px dashed #ddd;
}

.img-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.section-subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.features-list {
    margin: 20px 0;
}

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.features-list i {
    color: var(--secondary-color);
}

.btn-text {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-text:hover {
    gap: 10px;
    /* slide arrow */
}

/* Academics Section */
.academics-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 50px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.course-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--secondary-color);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: #f0f4f8;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    transition: var(--transition);
}

.course-card:hover .card-icon {
    background-color: var(--primary-color);
    color: #fff;
}

.course-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.course-card .desc {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.stats-section .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item h2 {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    position: relative;
    background-color: var(--primary-color);
    color: #fff;
    overflow: hidden;
}

/* Background image */
.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.cta-content {
    flex: 1;
    max-width: 500px;
}

.cta-content h2 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.1rem;
    color: #eee;
    margin-bottom: 30px;
}

.form-wrapper {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 350px;
}

.quick-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quick-contact-form h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.quick-contact-form input,
.quick-contact-form select {
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
}

.quick-contact-form button {
    cursor: pointer;
    font-size: 1.1rem;
    border: none;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px;
    border-radius: var(--radius);
    font-weight: 700;
}

.quick-contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-contact-form input,
.quick-contact-form select {
    padding: 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
}

.quick-contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    /* Adjusted for logo col */
    gap: 40px;
    margin-bottom: 40px;
}

.logo-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-family: var(--header-font);
    font-weight: 700;
}

.logo-footer i {
    color: var(--secondary-color);
    font-size: 2rem;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
}

.footer-col a:hover {
    color: var(--secondary-color);
    margin-left: 5px;
    /* slight transition */
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-list i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple hide for now */
    }

    .mobile-menu-btn {
        display: block;
    }

    .about-grid,
    .cta-section .container {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .stats-section .container {
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery Styles (Moved from gallery.html) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 0;
    /* Adjusted padding */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    height: 250px;
    background-color: #eee;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}