﻿:root {
    --primary-blue: #0a4a8f;
    --primary-yellow: #fdd100;
    --light-bg: #f8f9fa;
    --text-light: #ffffff;
    --text-dark: #212529;
    --text-muted-light: #f1f1f1;
}

body {
    font-family: 'Cardo', sans-serif;
    color: var(--text-dark);
    position: relative; /* Required for ScrollSpy */
    font-size: 20px;
    padding-top: 65px;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.6s ease-out;
}

    .fade-in-up.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Keyframe animations for carousel text */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Navigation Bar --- */
.navbar {
    background-color: var(--primary-blue);
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar-brand img {
    height: 40px;
}
/* Single size, no transition needed */
.navbar .nav-link {
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.9rem;
}

    .navbar .nav-link:hover, .navbar .nav-link.active {
        color: var(--primary-yellow);
    }

.navbar .btn-cta {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

    .navbar .btn-cta:hover {
        background-color: var(--text-light);
        transform: translateY(-2px);
    }

/* --- Hero Slider (Carousel) --- */
#home.carousel {
    /* The key fix: Use aspect-ratio instead of a fixed height. */
    /* 16 / 9 is a standard widescreen ratio. You can also use '2 / 1' for a slightly shorter look. */
    aspect-ratio: 2 / 1;
    /* We still set a max-height to prevent it from getting too tall on enormous screens */
    max-height: 90vh;
    width: 100%; /* Ensure it spans the full width */
    color: var(--text-light);
}

.carousel-item {
    height: 100%;
    position: relative;
}

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* This makes the image fill the container beautifully */
    }

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 1rem;
    background: rgba(10, 74, 143, 0.6);
}

    .carousel-caption h1 {
        font-weight: 900;
        font-size: clamp(2.2rem, 7vw, 4.5rem); /* Adjusted clamp for better responsiveness */
        text-transform: uppercase;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);
        color: var(--text-light);
        animation-name: fadeInDown;
        animation-duration: 1s;
    }

    .carousel-caption p {
        font-size: clamp(1rem, 3vw, 1.4rem); /* Adjusted clamp */
        max-width: 700px;
        margin: 1.5rem auto 2.5rem;
        animation-name: fadeInUp;
        animation-duration: 1s;
        animation-delay: 0.5s;
    }

.btn-cta-hero {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-delay: 1s;
}

    .btn-cta-hero:hover {
        background-color: var(--text-light);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

/* --- General Section Styling --- */
section {
    padding: 100px 0;
}

.section-title {
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
    color: #6c757d;
}

@media (min-width: 1700px) {
    #objective {
        margin-top: 4rem !important;
    }
}

@media (min-width: 1800px) {
    #objective {
        margin-top: 5rem !important;
    }
}

/* --- Specific Section Styles --- */
#competitions, #team {
    background-color: #f1f3f5;
}

.mission-image {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mission-point {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

    .mission-point .icon {
        font-size: 2.5rem;
        color: var(--primary-yellow);
        margin-right: 1.5rem;
    }

.history-timeline {
    list-style: none;
    padding: 0;
}

    .history-timeline li {
        position: relative;
        padding-left: 2rem;
        margin-bottom: 1.5rem;
    }

        .history-timeline li::before {
            content: '\f14a';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            top: 0;
            font-size: 1.5rem;
            color: var(--primary-yellow);
        }

    .history-timeline strong {
        color: var(--primary-blue);
    }

.feature-box {
    text-align: center;
    padding: 2rem;
}

    .feature-box .icon {
        display: inline-block;
        width: 80px;
        height: 80px;
        line-height: 80px;
        background-color: var(--primary-yellow);
        color: var(--text-dark);
        border-radius: 50%;
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-box h4 {
        color: var(--primary-blue);
        text-transform: uppercase;
    }

.parallax-section {
    background: linear-gradient(rgba(10, 74, 143, 0.85), rgba(0, 0, 0, 0.85)), url('images/parallax-image.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-light);
    text-align: center;
}

    .parallax-section blockquote {
        font-size: 1.5rem;
        font-style: italic;
        max-width: 800px;
        margin: 0 auto;
    }

    .parallax-section .blockquote-footer {
        font-size: 1.2rem;
        color: var(--primary-yellow);
        margin-top: 1rem;
    }

/* --- NEW Gallery Section --- */
.gallery-item img {
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .gallery-item img:hover {
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    }

footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 20px 0 20px 0;
}

    footer h5 {
        color: var(--primary-yellow);
        text-transform: uppercase;
    }

    footer p, footer a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
    }

        footer a:hover {
            color: var(--text-light);
        }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    margin-top: 40px;
}

.disclaimer {
    border-left: 4px solid var(--primary-yellow);
    padding: 1rem 1.5rem;
    background-color: #fff9e3;
}