/* General Styling */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
}

/* General Navbar Styles */
/* Navbar Styling */
nav {
    background-color: #ffffff;
    padding: 8px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Navbar Container */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Navbar Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    gap: 10px;
}

.navbar-text {
    color: #eebf17;
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease-in-out;
}

.navbar-text:hover {
    transform: scale(1.1);
}

.navbar-logo {
    height: 40px;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

.navbar-logo:hover {
    transform: rotate(360deg);
}

/* Navbar Links */
.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-link {
    color: #00a652;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    padding: 10px;
}

.nav-link:hover {
    color: #eebf17;
    transform: scale(1.1);
}

/* More Dropdown */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    top: 100%;
    left: 0;
    min-width: 200px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    color: #00a652;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.dropdown-menu a:hover {
    background-color: #eebf17;
    color: #263238;
}

/* Show dropdown on hover (desktop) */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* Mobile Navbar */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    color: #00a652;
}

.nav-toggle:hover {
    transform: scale(1.1);
}

/* Mobile View */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        padding: 20px 0;
        text-align: center;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-link {
        padding: 15px;
        width: 100%;
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        display: none;
        position: relative;
        box-shadow: none;
    }

    .nav-item.dropdown.open .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
    }
    }

/* Hero Section */
.hero {
    background-color: #00a652;
    height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px;
}

.hero-title {
    font-size: 2rem;
    color: #eebf17;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #eebf17;
    margin-bottom: 20px;
}

/* Hero Button */
.btn-primary {
    background-color: white;
    color: #00a652;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #eebf17;
    color: #263238;
    transform: scale(1.1);
}

/* Mobile View */
@media screen and (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        padding: 20px 0;
        text-align: center;
    }

    .navbar-nav.show {
        display: flex;
    }

    .nav-link {
        padding: 15px;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        text-align: center;
    }

    .dropdown.show .dropdown-menu {
        display: block;
    }

    .hero {
        height: 40vh;
        margin-top: 50px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}


/* News Carousel Section */
#news {
    background: #f8f9fa;
    padding: 60px 0;
}

#news h2 {
    text-align: center;
    color: #00a652;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Carousel Styling */
.carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.carousel-item img {
    width: 50%;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-item .ms-4 {
    max-width: 50%;
}

.carousel-item h5 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #00a652;
}

.carousel-item p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.carousel-control-prev, .carousel-control-next {
    filter: invert(100%);
}

/* Social Media Icons */
#social-media {
    background: #00a652;
    color: #eebf17;
    padding: 40px 0;
    text-align: center;
}

#social-media h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: bold;
}

#social-media a {
    color: white;
    font-size: 30px;
    margin: 0 15px;
    transition: all 0.3s ease-in-out;
}

#social-media a:hover {
    color: #eebf17;
    transform: scale(1.1);
}

/* Events Section */
#events {
    padding: 60px 0;
}

#events h2 {
    text-align: center;
    color: #00a652;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Event Cards */
.card {
    background: white;
    border: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00a652;
}

.btn-outline-dark {
    border: 2px solid #00a652;
    color: #00a652;
    transition: all 0.3s ease-in-out;
}

.btn-outline-dark:hover {
    background: #00a652;
    color: white;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        height: 60vh;
    }

    header h1 {
        font-size: 2rem;
    }

    .carousel-item {
        flex-direction: column;
    }

    .carousel-item img {
        width: 100%;
    }

    .carousel-item .ms-4 {
        max-width: 100%;
        text-align: center;
    }

    .card {
        margin-bottom: 20px;
    }
}

/* About*/ 
/* Main Body */
.wrapper {
    margin: 2em;
    min-height: 100vh;
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 20px;
}

.main-container {
    flex: 8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.con1 {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 30px;
    align-items: start;
    margin: auto;
    padding: 40px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Left Section - About ChessMORE */
.subcon4 {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.subcon4:hover {
    transform: scale(1.02); /* Slight zoom effect on hover */
}

.subcon4 h1 {
    color: #00a652;
    font-size: 2em;
    font-weight: 700;
    text-align: left;
    margin-bottom: 15px;
}

.subcon4 p {
    color: #444;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Right Section - Our Services */
.subcon5 {
    background: #00a652;
    padding: 30px;
    border-radius: 8px;
    color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.subcon5:hover {
    transform: scale(1.02);
}

.subcon5 h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: #eebf17;
    text-align: center;
    margin-bottom: 20px;
}

.subcon5 ul {
    list-style: none;
    padding: 0;
}

.subcon5 li {
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.subcon5 li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .con1 {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }

    .subcon4, .subcon5 {
        width: 100%;
        text-align: center;
    }
}

.con2 {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two-column layout */
    grid-template-rows: auto auto; /* Two rows */
    gap: 20px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Title Styling */
.con2 h1 {
    grid-column: 1 / -1; /* Make the title span both columns */
    grid-row: 1;
    text-align: center;
    font-size: 2rem;
    color: #eebf17;
    margin-bottom: 20px;
}

/* Left Column (Mission & Vision) */
.subcon1, .subcon2 {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.subcon1:hover {
    transform: scale(1.02);
}

.subcon2:hover {
    transform: scale(1.02);
}

/* Right Column (Core Values) */
.subcon3 {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.subcon3:hover {
    transform: scale(1.02);
}

/* Grid Positioning */
.subcon1 {
    grid-column: 1;
    grid-row: 2;
}

.subcon2 {
    grid-column: 1;
    grid-row: 3;
}

.subcon3 {
    grid-column: 2;
    grid-row: 2 / span 2; /* Make it stretch across two rows */
    align-self: start;
}

/* List Styling */
.subcon3 ul {
    list-style: none;
    padding: 0;
}

.subcon3 ul li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.subcon3 ul li::before {
    content: '\2022';
    color: #ff9800;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .con2 {
        display: flex;
        flex-direction: column;
    }
    
    .con2 h1 {
        grid-column: span 1;
    }

    .subcon3 {
        grid-column: 1;
        grid-row: auto; /* Reset so it stacks naturally */
    }
}

/* Container for History & FAQ */
.con3, .con4 {
    max-width: 1200px;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* History Section */
.con3 {
    background: white;
    text-align: left;
    margin-bottom: 30px;
    transition: transform 0.3s ease-in-out;
}

.con3:hover {
    transform: scale(1.02);
}

.con3 h2 {
    color: #00a652;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 15px;
}

.con3 p {
    color: #444;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* FAQ Section */
.con4 {
    background: #00a652;
    color: white;
    padding: 40px;
    max-width: 1100px;
    margin: 50px auto;
    border-radius: 10px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
}

.con4 h3 {
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.con4 h1 {
    font-size: 2.5rem;
    color: #eebf17;
    margin-bottom: 20px;
}

.faq-content {
    max-width: 900px;
    margin: auto;
}

.faq-item {
    background: #77b335;
    color: #333;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.faq-item:hover {
    background: #eebf17;
    color: white;
    transform: scale(1.05);
}

.faq-item h4 {
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item p {
    display: none; /* Hidden by default, revealed via JS */
    font-size: 1rem;
    line-height: 1.5;
    padding-top: 10px;
}

/* Members Highlight Section */
#members-highlight {
    text-align: center;
    padding: 50px 20px;
    background: #00a652;
    color: white;
    border-radius: 10px;
    margin: 50px auto;
    max-width: 1100px;
    animation: fadeIn 1s ease-in-out;
}

#members-highlight h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #eebf17;
}

#members-highlight p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

#members-highlight .btn {
    background: #eebf17;
    color: #263238;
    padding: 12px 20px;
    font-size: 1.2rem;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

#members-highlight .btn:hover {
    background: white;
    color: #00a652;
    transform: scale(1.1);
}

/* Subscription Section */
#subscribe {
    align-items: center;
    text-align: center;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
    max-width: 1100px;
    animation: fadeIn 1s ease-in-out;
}

#subscribe h2 {
    font-size: 2.2rem;
    color: #00a652;
    margin-bottom: 15px;
}

#subscribe p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #555;
}

#subscribe input {
    padding: 12px;
    width: 60%;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

#subscribe input:focus {
    border-color: #00a652;
    outline: none;
    box-shadow: 0px 0px 8px rgba(0, 166, 82, 0.5);
}

#subscribe button {
    background: #00a652;
    color: white;
    padding: 12px 20px;
    font-size: 1.2rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

#subscribe button:hover {
    background: #eebf17;
    color: #263238;
    transform: scale(1.1);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #subscribe input {
        width: 90%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Non-Discrimination Policy */
#policy {
    background-color: #f8f9fa;
    color: #333;
    text-align: center;
}

#policy h2 {
    font-size: 2.5rem;
    color: #6a11cb;
    font-weight: bold;
    margin-bottom: 20px;
}

#policy p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Styling for alternating backgrounds */

#policy {
    background: #f4f4f4;
    color: #333;
}

#minors-policy {
    background: linear-gradient(90deg, #457b9d, #1d3557);
    color: #ffffff;
}

/* Utilities */

h1 {
    color: #eebf17;
    text-align: center;
}

h2 {
    color: #00a652;
    text-align: center;
}

/* General Styles for All Sections */
section {
    margin-bottom: 40px;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

section p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 800px;
}

/* Footer */
footer {
    background-color: #00a652;
    color: #eebf17;
    padding: 40px 0;
    text-align: center;
    position: relative;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
}

/* Footer Styling */
#footer {
    background: #00a652;
    color: #eebf17;
    padding: 40px 0;
    text-align: center;
}

#footer h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: bold;
}

#footer a {
    color: white;
    font-size: 30px;
    margin: 0 15px;
    transition: all 0.3s ease-in-out;
}

#footer a:hover {
    color: #eebf17;
    transform: scale(1.1);
}

#footer p {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 15px;
}
@media (max-width: 768px) { /* Adjust for tablets and smaller screens */
    body {
        font-size: 16px;
    }
    .container {
        width: 100%; /* Ensure full width */
        padding: 10px;
    }
    img {
        max-width: 100%; /* Prevent oversized images */
        height: auto;
    }
    nav {
        display: flex;
        flex-direction: column; /* Stack nav items on mobile */
    }
}
/* 1. Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
}

/* 2. Ensure images resize properly */
img {
    max-width: 100%;
    height: auto;
}

/* 3. Adjust sections for smaller screens */
@media (max-width: 768px) { /* Tablets & smaller */
    .container {
        width: 100%;
        padding: 10px;
    }
    nav {
        display: flex;
        flex-direction: column; /* Stack nav links */
        text-align: center;
    }
    .btn {
        width: 100%; /* Make buttons full-width */
    }
}
