/* Reset & Global */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #333;
}

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

/* Layout */
.layout-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
}

.content {
    flex: 1; /* Pushes footer down */
    padding: 0;
}

/* Navbar Styling (Improved) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 35px;
    background: linear-gradient(90deg, #b30000, #800000);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-img {
    height: 45px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

    .nav-links li a {
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 0.5px;
        font-size: 1rem;
        position: relative;
        padding: 5px 0;
    }

        .nav-links li a::after {
            content: "";
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 0;
            height: 3px;
            background: #ffcc00;
            border-radius: 2px;
            transition: width 0.3s ease;
        }

        .nav-links li a:hover::after,
        .nav-links li a.active::after {
            width: 100%;
        }

/* Footer Styling */
.footer {
    background: #222;
    color: #fff;
    padding: 40px 20px 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer h4 {
    margin-bottom: 10px;
    color: #ffcc00;
}

.footer-about p {
    font-size: 0.95em;
    line-height: 1.5;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

    .footer-links ul li {
        margin-bottom: 8px;
    }

        .footer-links ul li a {
            color: #ddd;
            text-decoration: none;
        }

            .footer-links ul li a:hover {
                color: #fff;
            }

.footer-socials .social-icons a {
    display: inline-block;
    margin-right: 10px;
}

.footer-copy {
    text-align: center;
    font-size: 0.85em;
    color: #aaa;
    border-top: 1px solid #444;
    padding-top: 10px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 15px;
    background: #b30000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
}

    .btn-primary:hover {
        background: #8c0000;
    }

.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 15px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
}

    .btn-secondary:hover {
        background: #fff;
        color: #b30000;
    }

/* Hero Section (Home) */
.hero {
    position: relative;
    color: #fff;
    text-align: center;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .hero .overlay {
        background: rgba(0,0,0,0.55);
        padding: 40px;
        border-radius: 10px;
        animation: fadeIn 1.5s ease;
    }

.hero-title {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Services Section (Home) */
.services {
    padding: 60px 20px;
    text-align: center;
    background: #f9f9f9;
}

.services-intro {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #555;
}

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

.service-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

    .service-card img {
        margin-bottom: 15px;
    }

    .service-card h3 {
        margin-bottom: 10px;
        color: #b30000;
    }

    .service-card:hover {
        transform: translateY(-5px);
    }

/* Call to Action Section (Home) */
.cta {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(90deg, #b30000, #800000);
    color: #fff;
}

/* About Page */
.about-banner {
    position: relative;
    color: #fff;
    text-align: center;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .about-banner .overlay {
        background: rgba(0,0,0,0.55);
        padding: 30px;
        border-radius: 10px;
    }

.about-section {
    padding: 50px 20px;
}

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

.about-text h2 {
    color: #b30000;
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

/* Mission & Vision */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 50px 20px;
    background: #f9f9f9;
    text-align: center;
}

.mv-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.mv-card h3 {
    color: #b30000;
    margin-bottom: 10px;
}

/* Values */
.values {
    padding: 50px 20px;
    text-align: center;
}

    .values h2 {
        color: #b30000;
        margin-bottom: 30px;
    }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.value-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

    .value-card img {
        margin-bottom: 10px;
    }

    .value-card h4 {
        margin-bottom: 10px;
        color: #b30000;
    }


.gallery {
    padding: 50px 20px;
    text-align: center;
}

    .gallery h2 {
        color: #b30000;
        margin-bottom: 10px;
    }

    .gallery p {
        margin-bottom: 30px;
        color: #555;
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

    .gallery-grid img {
        border-radius: 8px;
        width: 100%;
        transition: transform 0.3s ease;
    }

        .gallery-grid img:hover {
            transform: scale(1.05);
        }



/* Stats Section (Shared) */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    text-align: center;
    gap: 20px;
    padding: 50px 20px;
    background: #b30000;
    color: #fff;
}

.stat-card h2 {
    font-size: 2.5em;
    margin-bottom: 5px;
}

/* Directors Banner */
.directors-banner {
    position: relative;
    color: #fff;
    text-align: center;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .directors-banner .overlay {
        background: rgba(0,0,0,0.55);
        padding: 30px;
        border-radius: 10px;
    }

/* Directors Section Polished */
.directors {
    padding: 50px 20px;
    text-align: center;
}

    .directors p {
        max-width: 800px;
        margin: 0 auto 30px;
        font-size: 1.1em;
        color: #555;
    }

.directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.director-card {
    text-align: center; /* Centers all text and elements inside */
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .director-card img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto 15px; /* Centers the image horizontally */
        display: block;
    }
    .director-card h3 {
        margin-bottom: 5px;
        font-size: 1.2em;
        color: #b30000;
    }

    .director-card .title {
        color: #666;
        font-size: 0.95em;
    }

    .director-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    }


/* Contact Banner */
.contact-banner {
    position: relative;
    color: #fff;
    text-align: center;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .contact-banner .overlay {
        background: rgba(0, 0, 0, 0.55);
        padding: 30px;
        border-radius: 10px;
    }

/* Contact Section */
.contact-section {
    padding: 50px 20px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h2,
.contact-form h2 {
    color: #b30000;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 15px;
    color: #555;
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

    .info-block img {
        width: 30px;
        height: 30px;
    }

.contact-form form input,
.contact-form form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

.contact-form form textarea {
    min-height: 120px;
    resize: vertical;
}


/* Alerts */
.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

    .alert.success {
        background: #d4edda;
        color: #155724;
    }

    .alert.error {
        background: #f8d7da;
        color: #721c24;
    }

/* Animations */
/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale on Hover for Cards */
.card-hover:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/* Smooth Scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Transition for buttons and links */
a, .btn-primary, .btn-secondary {
    transition: all 0.3s ease;
}


/* ============================
   RESPONSIVE STYLES
   ============================ */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .navbar {
        padding: 10px 20px;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.95rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

.menu-toggle {
    display: none; /* Hidden by default on desktop */
}


/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Navbar collapses into vertical menu */
    .nav-links {
        display: none;
        position: absolute;
        top: 65px;
        right: 0;
        background: #800000;
        flex-direction: column;
        width: 200px;
        padding: 10px;
    }

        .nav-links.show {
            display: flex;
        }

    .navbar {
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    /* Hero Section */
    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 1.8em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    /* Grid layouts become single column */
    .services-grid,
    .values-grid,
    .directors-grid,
    .gallery-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 18px;
        font-size: 0.9em;
    }

    .contact-form form input,
    .contact-form form textarea {
        font-size: 0.9em;
    }
}
