@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
/* ================= NAVBAR ================= */

/* ================= NAVBAR ================= */

/* Navbar Background */
nav {
    background-color: #162447 !important;
    color: white !important;
    padding: 10px;
    position: fixed !important;
    /* Fix navbar at the top */
    top: 0;
    /* Make sure it's at the top of the page */
    left: 0;
    /* Ensure it spans the entire width */
    width: 100%;
    /* Ensure it spans the full width */
    z-index: 1000;
    /* Ensure it stays above other content */

}

/* Center Navbar Content */
.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Center Navbar Links */
.navbar-nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Navbar Links */
a.nav-link {
    color: white !important;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 15px;
    /* Add spacing between links */
}

a.nav-link:hover {
    color: #fcc668 !important;
}

/* Navbar Toggler (Button) */
.navbar-toggler {
    border: 2px solid white !important;
    padding: 5px;
}

/* Navbar Toggler Icon */
.navbar-toggler-icon {
    background-image: none !important;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Custom Hamburger Icon */
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    position: absolute;
    left: 2px;
}

.navbar-toggler-icon::before {
    top: 7px;
}

.navbar-toggler-icon::after {
    bottom: 7px;
}

/* ================= BANNER ================= */

#banner {
    position: relative;
    width: 100%;
    height: 100vh;
    aspect-ratio: 16 / 9; /* Keeps it proportional (for modern browsers) */
    background: url('../image/banner2.png') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding-top: 120px;
    margin-top: 100px;
    overflow: hidden;
}

@supports not (aspect-ratio: 16 / 9) {
    #banner {
        min-height: 709px; /* Fallback for older browsers */
        height: auto;
    }
}



/* Make sure the overlay also adjusts */
#banner .overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner-text {
    position: relative;
    z-index: 2;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}


/* Banner Title */
#bannerTitle {
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    font-size: 61px;
    line-height: 120%;
    letter-spacing: -1.22px;
    color: #ffffff;
    text-align: left;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); /* Adds readability over light backgrounds */
}

/* Banner Paragraph */
#bannerParagraph {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.32px;
    color: #ffffff;
    max-width: 600px;
    text-align: left;
    margin-top: 10px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); /* Adds readability */
}
@media (max-width: 768px) {
    #banner {
        aspect-ratio: 4 / 5;
        padding-top: 80px;
    }

    #bannerTitle {
        font-size: 40px;
    }

    #bannerParagraph {
        font-size: 14px;
    }
}

@media (min-width: 1600px) {
    #banner {
        background-position: center top;
        background-size: 100% auto; /* keep height proportional */
    }
}

/* Join Button */
.btn-primary {
    background-color: #0D8888 !important;
    color: #F8F8FF !important;
    border: none !important;
    padding: 12px 20px !important;
    font-size: 18px !important;
    margin-top: 20px !important;
    transition: all 0.5s ease !important;
    align-self: flex-start !important;
    /* Align the button to the left */
}

.btn-primary:hover {
    background-color: #162447 !important;
}

/* Banner Image */
#banner img {
    display: block;
    margin-top: 30px;
    max-width: 100%;
}

/* ================= Team ================= */
#carousel {
    position: relative;
    height: 250px;
    max-width: 1000px;
    margin: 50px auto;
}

.arrow {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: white;
    text-align: center;
    font-size: 25px;
    border-radius: 50%;
    cursor: pointer;
    color: #228291;
    line-height: 40px;
    z-index: 1000;
    top: 50%;
    transform: translateY(-50%);
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

.item {
    position: absolute;
    transition: all 0.5s ease-in-out;
    background-color: #ccc;
    overflow: hidden;
    border-radius: 10px;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Position levels */
.level-2 {
    width: 100px;
    height: 140px;
    left: 5%;
    top: 30px;
    z-index: 1;
    transform: scale(0.8);
    opacity: 0.5;
}

.level-1 {
    width: 130px;
    height: 170px;
    left: 20%;
    top: 20px;
    z-index: 2;
    transform: scale(0.9);
    opacity: 0.7;
}

.level0 {
    width: 160px;
    height: 200px;
    left: 40%;
    top: 0px;
    z-index: 3;
    transform: scale(1);
    opacity: 1;
}

.level1 {
    width: 130px;
    height: 170px;
    left: 65%;
    top: 20px;
    z-index: 2;
    transform: scale(0.9);
    opacity: 0.7;
}

.level2 {
    width: 100px;
    height: 140px;
    left: 85%;
    top: 30px;
    z-index: 1;
    transform: scale(0.8);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .level0 {
        width: 120px;
        height: 160px;
        left: 35%;
    }

    .level-1,
    .level1 {
        width: 100px;
        height: 130px;
    }

    .level-2,
    .level2 {
        width: 80px;
        height: 100px;
    }
}

/* ========== TOP SOCCERS ========== */

.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #162447;
    border-left: 5px solid #0D8888;
    padding-left: 20px;
}

.player-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card img {
    height: 250px;
    object-fit: cover;
    border-bottom: 4px solid #0D8888;
}

.player-card .card-body {
    background-color: #F8F8FF;
    padding: 15px;
}

.player-card .card-title {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #0D8888;
    margin-bottom: 8px;
}

.player-card .card-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #333;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


/* ========== Latest News Section ========== */
#latest_news {
    background-color: #f8f9fa;
}

.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #162447;
    margin-bottom: 30px;
}

.news-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card img {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    height: 220px;
    object-fit: cover;
}

.news-card .card-title {
    font-size: 20px;
    font-weight: 600;
    color: #054949;
}

.news-card .card-text {
    font-size: 14px;
    color: #555;
}

.news-card .btn-outline-primary {
    color: #0D8888;
    border-color: #0D8888;
    transition: all 0.3s ease;
    font-weight: 500;
}

.news-card .btn-outline-primary:hover {
    background-color: #0D8888;
    color: white;
}

/* ========== Accordion & Winner Section ========== */
#winners .card {
    border-radius: 15px;
    background-color: #fff;
    transition: transform 0.3s ease;
}

#winners .card:hover {
    transform: translateY(-5px);
}

#winners img {
    max-height: 160px;
    object-fit: cover;
}

.accordion-button {
    background-color: #f1f1f1;
    color: #162447;
    font-weight: bold;
}

.accordion-body {
    font-size: 15px;
    color: #333;
}

/* ========== Upcoming Matches ========== */
#upcoming_matches .card {
    border-radius: 15px;
}

#upcoming_matches .team p {
    font-weight: 600;
    color: #0D8888;
}

/* ========== Sponsor Carousel ========== */
#sponsors img {
    max-height: 100px;
    object-fit: contain;
}

/* General Card Styling */
.card_prvious_winners {
    position: relative;
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 300px;
    /* Fix height to make the layout consistent */
}

/* Champion Card Styling */
.champion-card {
    background-color: #e6f7e6;
    /* Light green for champions */
    border: 2px solid #28a745;
    /* Green border for champions */
}

/* Runner-Up Card Styling */
.runner-up-card {
    background-color: #f9d6d5;
    /* Light red for runners-up */
    border: 2px solid #dc3545;
    /* Red border for runners-up */
}

/* Card Image (Team Logo) Styling */
.card img.team-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    /* Adjust the size of the logo */
    height: auto;
    object-fit: contain;
}

/* Responsive Layout */
.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

/* Card Title Styling */
.card h5 {
    margin-top: 20px;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Ensuring consistent spacing between items */
.accordion-body {
    padding: 20px;
}

/* Optional: Styling for the Accordion Button */
.accordion-button {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Responsive Adjustment for Smaller Screens */
@media (max-width: 767px) {
    .col-md-4 {
        flex: 0 0 100%;
        /* Stack the cards on smaller screens */
        max-width: 100%;
    }
}



/* Footer Styles */
.footer {
    background-color: #343a40;
    /* Dark background for the footer */
    color: white;
    /* Text color */
}

.footer .footer-logo img {
    max-width: 120px;
    /* Set a max width for the logo */
}

.footer .footer-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer .list-unstyled {
    padding-left: 0;
}

.footer .list-unstyled li {
    margin-bottom: 10px;
}

.footer .list-unstyled li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
}

.footer .list-unstyled li a:hover {
    color: #28a745;
    /* Green hover effect */
}

.footer .social-links {
    font-size: 1.5rem;
}

.footer .social-links a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

.footer .social-links a:hover {
    color: #28a745;
    /* Green hover effect */
}

.footer .form-control {
    border-radius: 25px;
    padding: 12px;
    background-color: #ececec;
    color: white;
    border: 1px solid #28a745;
}

.footer .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    border-radius: 25px;
    padding: 12px;
}

.footer .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.footer .col-md-4 {
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 767px) {

    .footer .footer-logo,
    .footer .footer-title,
    .footer .social-links {
        text-align: center;
        /* Center text for mobile devices */
    }

    .footer .col-md-4 {
        margin-bottom: 30px;
    }

    .footer .form-control {
        font-size: 1rem;
    }
}

/* ================== END ================== */

.news-container {
    max-width: 800px;
    margin: 50px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.news-img {
    max-height: 400px;
    object-fit: cover;
    border-radius: 5px;
}
.contact-header {
    
    padding-top: 60px;
}
.contact-header h1 {
    font-weight: bold;
}
.form-section {
    padding: 60px 0;
}
.form-control:focus {
    box-shadow: none;
    border-color: #0d6efd;
}
.map-container {
    border-radius: 10px;
    overflow: hidden;
}