/* General Styles */
* {
    border-style: border-box;
    margin: 0;
    padding: 0;   
}

:root {
    --primary-green: #00a652;
    --primary-gold: #eebf17;
    --light-color: #f2f7f5;
    --grey-color: #263238;
    --dark-color: #111;
}

body {
    margin:0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #263238;
    line-height: 1.6;
}

/* Navbar */
/* 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;
    }
    }


/* 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: #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;
}

.subcon4:hover {
    transform: scale(1.02); /* Slight zoom effect on hover */
}

.subcon4 h1 {
    color: #eebf17;
    font-size: 2em;
    font-weight: 700;
    text-align: left;
    margin-bottom: 15px;
}

.subcon4 p {
    color: white;
    font-size: 1rem;
    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.5em;
    font-weight: 700;
    color: #eebf17;
    text-align: center;
    margin-bottom: 20px;
}

.subcon5 ul {
    list-style: none;
    padding: 0;
}

.subcon5 li {
    font-size: 1rem;
    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: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
}

.con3 p {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

/* FAQ Section */
.con4 {
    background: #00a652;
    color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.con4 h3 {
    font-size: 1.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

/* FAQ Items */
.faq-content {
    max-width: 900px;
    margin: auto;
}

.faq-item {
    background: white;
    color: #333;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.8);
}

.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;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .con3, .con4 {
        padding: 20px;
    }
}

/* Utility */
h1 {
    color: #eebf17;
    text-align: center;
}

h2 {
    color: #00a652;
    text-align: center;
}

/* 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 */
}

/* 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;
}
