:root {
    --nav-color: #AED3EE;
    --primary-blue: #2365a1;
    --secondary-blue: #3591d5;
    --accent-gold: #a3752d;
    --text-gray: #969696;
    --bg-white: #ffffff;
    --bg-footer: #dec8a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px; /* Adjusted from default (16px) */
}


body {
    width: 100%;
    height: auto;
    background-color: var(--bg-white);
}

.main-container {
    width: 90%;
    margin: 5vh auto;
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 3%;
    align-items: center;
    background-color: var(--nav-color);
    border-radius: 20px;
}

.logo img {
    width: 110px; /* Adjust logo size */
    height: 90px;
}

.nav-links {
    display: flex;
    flex: wrap;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
}

.nav-links a.active {
    color: black;
    text-decoration: underline;
}

/* Hero Section */
.hero {
    max-width: 100%;
    height: 712px;
    margin: 58px auto; /* Adjust spacing */
    
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 2rem;
    color: white;
    border-radius: 30px; /* Curved borders */
    overflow: hidden; /* Ensures no content spills out */
}


/* Carousel Container */
.carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Carousel Images */
.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Active Image */
.carousel-image.active {
    opacity: 1;
}

/* Hero Text Overlay - Move to Bottom */
.hero-text {
    position: absolute;
    bottom: 20px; /* Moves text to bottom */
    left: 10%;
    transform: none; /* Remove translateY(-50%) */
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    z-index: 2;
}


.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 1rem; /* Push text closer to bottom */
}

.hero p {
    font-size: 2rem;
    max-width: 80%;
    margin-bottom: 2rem; /* Adds space from the bottom */
}


/* Gallery Preview */
.gallery-preview {
    margin: 2rem auto;
    max-width: 100%;
}

.gallery-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.gallery-container img {
    width: 90px;
    height: 89px;
    object-fit: cover;
}

/* Vision Mission Section */
.vision-mission {
    max-width: 1288px;
    margin: 3rem auto;
    padding: 2rem;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.card {
    flex: 1;
    text-align: center;
}

.card h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.card p {
    font-size: 1.375rem;
    line-height: 3rem;
}

.section2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-image: url('images/background-2.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 20px;
}

/* Tournaments Section */
.tournaments {
    width: 50%;
    text-align: center;
    /* padding: 3rem 0; */
    background-size: cover;
    background-position: center;
    background-color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

/* Tournament Heading */
.tournament-heading {
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 1rem;
    color: black;
}

/* Tournament List */
.tournament-list {
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

/* Tournament Card */
.tournament-card {
    display: flex;
    width: 100%;
    background: white;
    border-radius: 10px;
    padding: 0;
    margin: 1rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    align-items: center; /* Ensure proper vertical alignment */
}

/* Date Box */
.tournament-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    background: var(--primary-blue);
    color: white;
    padding: 10px;
    margin: 10px;
    border-radius: 8px;
    width: 20%;
}

/* Tournament Details */
.tournament-details {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px; /* Spacing */
    font-weight: bold;
    width: 70%;
}
.tournament-details h3,p {
    font-size: 12px;
}

.tournament-details a {
    font-size: 12px;
}

/* CricHeroes Link */
.cricheroes-link {
    text-decoration: none;
    font-weight: bold;
    color: var(--accent-gold);
}


.cricheroes-link:hover {
    text-decoration: underline;
}

.announcements{
    width: 40%;
    background-color: white;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 50px 20px; 
}

.announcements h2 {
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 1rem;
    color: black;
}

.announcements-content li {
    margin-top: 10px;
    border-radius: 10px;
    padding: 10px 2px;
    font-size: 12px;
    text-align: left;
}



/* Experts Section */
.experts {
    text-align: center;
    padding: 3rem 0;
}

.experts h2 {
    font-size: 4.5rem;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 3rem;
}

.experts-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1224px;
    margin: 0 auto;
    padding: 2rem;
}

.expert-card img {
    width: 100%;
    height: 286px;
    object-fit: cover;
}

.expert-card h4 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* Facilities Section */
.facilities {
    max-width: 1377px;
    margin: 3rem auto;
    padding: 2rem;
}

.experts-heading {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.facilities p {
    font-size: 2rem;
    line-height: 3rem;
}

.review-section {
    margin-bottom: 20px;
}


.review-section h2 {
    font-size: 4.5rem;
    font-style: italic;
    text-align: center;
}

.review-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.review-container {
    display: flex;
    gap: 2rem;
    overflow-x: hidden;
    padding: 1rem 0;
}

.review-card {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 300px;
    background-color: #e1e1e1;
    text-align: center;
    border-radius: 20px;
    padding: 20px 10px;
}
.review-card p {
    font-size: 18px;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
}

.slider-btn:hover {
    background-color: #333;
    color: white;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}


/* Footer */
footer {
    width: 100%;
    background-color: var(--bg-footer);
    padding: 1.5rem 0; /* Reduced padding */
}

.footer-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    align-items: flex-start;
    padding: 0 2rem;
}

.footer-logo {
    width: 30%;
}

.footer-logo img {
    width: 230px; /* Reduced logo size */
    height: 200px;
}

.footer-links{
    width: 70%;
    display: flex;
    justify-content: space-around;
}

.footer-links li {
    list-style: none;
    text-align: center;
    font-size: 1.2rem;
}

.footer-links li a {
    color: black;
    /* text-decoration: none; */
    font-size: 1.2rem;
}

.footer-heading {    
    font-size: 1.5rem; /* Adjusted heading size */
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}
.credits {
    width: 100%;
}

.credits p,a {
    font-size: 1.2rem;
}

.footer-gap {
    margin-top: 15px; /* Space between Contact & Social Links */
}

.social-icons {
    display: flex;
    gap: 12px;  /* Space between icons */
    justify-content: left;
    align-items: center;
}

.social-icons a img {
    width: 25px;  
    height: 25px;
    transition: transform 0.2s ease-in-out;
}

.social-icons a:hover img {
    transform: scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-column {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .social-icons a img {
        width: 18px;  
        height: 18px;
    }
}







/* Responsive Design */
@media (max-width: 1024px) {
    .cards-container,
    .experts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo img {
        width: 80px; /* Adjust logo size */
        height: 70px;
    }
    .nav-links {
        gap: 1.5rem;
    }
    .nav-links a {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.5rem;
    }

    .card h2 {
        color: var(--primary-blue);
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    .card p {
        font-size: 1rem;
        line-height: 2rem;
    }
    
    .line-item {    
        font-size: 1.5rem;
    }
    
    .experts {
        padding: 2rem 0;
    }
    
    .experts h2 {
        font-size: 3rem;
    }
    
    .expert-card h3 {
        font-size: 1.5rem;
    }

    .section2 {
        display: block;
    }

    .tournaments {
        width: 80%;
        margin: auto;
        padding: 20px 0;
        margin-bottom: 30px;
    }

    .tournament-heading {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    } 
    
    .tournament-details p,h3 {
        font-size: 10px;
    }

    .tournament-details a {
        font-size: 12px;
    }

    .announcements {
        width: 80%;
        margin: auto;
        padding: 20px;
    }

    .announcements h2 {
        font-size: 1.5rem;
    }

    .announcements li {
        font-size: 10px;
    }
    
    .facilities {
        max-width: 1377px;
        margin: 2rem auto;
        padding: 1rem;
    }
    
    .experts-heading {
        color: var(--primary-blue);
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }
    
    .facilities p {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }
    
    .review-section h2 {
        font-size: 3rem;
    }

    .review-card p {
        font-size: 16px;
    }
    
    .footer-logo img {
        width: 170px; /* Reduced logo size */
        height: 150px;
    }
    .footer-links li {
        list-style: none;
        text-align: center;
        font-size: 0.8rem;
    }
    .footer-links li {
        font-size: 0.8rem;
    }
    .footer-links li a {
        font-size: 0.8rem;
    }
    
    .footer-heading {    
        font-size: 1.3rem; /* Adjusted heading size */
        font-weight: bold;
        margin-bottom: 1rem;
    }
    .credits {
        width: 100%;
    }

    .credits p,a {
        font-size: 0.8rem;
    }
}

@media (max-width: 650px) {
    .logo img {
        width: 60px; /* Adjust logo size */
        height: 50px;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 10px;
    }

    .hero {
        height: 500px;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .gallery-container {
        gap: 1.2;
    }
    
    .gallery-container img {
        width: 70px;
        height: 69px;
        object-fit: cover;
    }

    .card h2 {
        color: var(--primary-blue);
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .card p {
        font-size: 0.5rem;
        line-height: 1rem;
    }

    .section2 {
        padding: 20px 0;
    }
    
    .tournaments {
        width: 95%;
        margin: auto;
        padding: 20px 0;
        margin-bottom: 30px;
    }

    .tournament-heading {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .tournament-details {
        padding-right: 0;
    }

    .tournament-details h3 {
        font-size: 8px;
    }
    
    .tournament-details p {
        font-size: 8px;
    }

    .tournament-details a {
        font-size: 8px;
    }

    .announcements {
        width: 95%;
        margin: auto;
        padding: 20px;
    }

    .announcements h2 {
        font-size: 1rem;
    }

    .announcements li {
        font-size: 8px;
    }
    
    
    .experts {
        padding: 2rem 0;
    }
    
    .experts h2 {
        font-size: 2rem;
    }

    .expert-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }
    
    .experts h2 {
        margin-bottom: 1rem;
    }
    
    .expert-card h3 {
        font-size: 1rem;
    }

    .announcements h2 {
        font-size: 1rem;
    }

    .announcements p {
        font-size: 10px;
    }

    .facilities {
        max-width: 1377px;
        margin: 1.5rem auto;
        padding: 1rem;
    }
    
    .experts-heading {
        color: var(--primary-blue);
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }
    
    .facilities p {
        font-size: 1rem;
        line-height: 1rem;
    }

    .review-section h2 {
        font-size: 2rem;
    }
    
    .review-card p {
        font-size: 12px;
    }

    .footer-logo img {
        width: 80px; /* Reduced logo size */
        height: 70px;
    }
    .footer-links li {
        list-style: none;
        text-align: center;
        font-size: 0.5rem;
    }        
    .footer-links li {
        font-size: 0.5rem;
    }
    .footer-links li a {
        font-size: 0.5rem;
    }
    .footer-heading {    
        font-size: 0.8rem; /* Adjusted heading size */
        font-weight: bold;
        margin-bottom: 1rem;
    }
    .credits {
        margin-top: 20px;
        width: 100%;
    }
    .credits p,a {
        font-size: 0.5rem;
    }
}