html {
    scroll-behavior: smooth;
}
body {
    font-family: sans-serif;
    line-height: 1.6;
}

.container {
    width: 95%;
    margin: 0 auto;
    max-width: 1600px;
}

header {
    background-color: white;
    padding: 10px 0; /* Reduced padding for a thinner header */
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1200px; /* Limit the width for centering */
    margin: 0 auto; /* Center the container */
}


.logo {
    position: relative;
    z-index: 101;
}
.menu-btn {
    display: none; /* Initially hide the button */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: #333;
    z-index: 102; /* Ensure it's above the header */
}

nav.main-nav {
    display: flex;
    justify-content: flex-start;
    padding-left: 12%;
    flex: 1;
}

nav.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 101;
}

nav.main-nav ul li {
    margin-left: 20px;
}

.dropdown:hover .dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 16px;
}

nav.main-nav a {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
nav.main-nav ul li a{
    color: #333;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: x-large;
    font-weight: 500;
    margin-left: 10px;
}

nav.main-nav a:hover {
    background-color: #ddd;
    color: #000;
}

.hero {
    background-color: #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 0;
    height: 80vh;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.services {
    padding: 50px 0;
    background-color: #f0f0f0;
    padding-bottom: 150px;
}
.services h2{
    text-align: center;
    padding-bottom: 50px;
    font-size: 30pt;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Increased minmax */
}

.service {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    padding:30px;
}

.about, .contact {
    padding: 50px 0;
    background-color: #f9f9f9;
    text-align: center;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.hero {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 0;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.service img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.service i {
    font-size: 2em;
    margin-bottom: 10px;
    color: #007bff;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.training-box {
    cursor: pointer;
}


#calendar-container {
    text-align: center;
}

.service {
    transition: box-shadow 0.3s ease;
}

.service:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown { 
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f0f0f0;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a:hover {
    background-color: #ddd;
    color:#000
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: auto;
}

.logo img {
    height: 75px; /* Adjust as needed */
}
.training-details {
    padding: 50px 0;
    position: relative; /* Add this to create a stacking context */
}
@media (max-width: 768px) {
    header .container {
        max-width: 100%;
        padding: 0 10px;
    }

    nav.main-nav {
        display: none; /* Hide the full nav */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: #f0f0f0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .menu-btn {
        display: block; /* Show the button */
    }

    nav.main-nav ul {
        flex-direction: column; /* Stack items vertically */
        align-items: flex-start; /* Left-align items */
        padding: 10px;
    }

    nav.main-nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}
.services h2{
    align-self: center;
}
.service.training-box {
    text-decoration: none;
    color: inherit;
    display: flex; /* Change to flex */
    flex-direction: column; /* Stack items vertically */
    height: 100%;
    padding: 10px; /* Adjust padding as needed */
}

.service.training-box i {
    /* Styles for the icon */
    font-size: 2em;
    margin-bottom: 10px;
}

.service.training-box h3 {
    /* Styles for the heading */
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service.training-box p {
    /* Styles for the paragraph */
    flex: 1; /* Allow paragraph to grow */
    margin-bottom: 0; /* Remove default paragraph margin */
}

.contact {
    padding: 60px 0; /* Increase top and bottom padding */
    background-color: #f9f9f9;
    text-align: center;
}

.contact h2 {
    margin-bottom: 40px; /* Add space below the heading */
}

.contact p {
    margin-bottom: 40px; /* Add space below the paragraph */
}

.our-classes {
    padding: 50px 0;
}

.classes-container {
    display: flex;
    flex-wrap: wrap; /* Allow boxes to wrap to the next row */
    justify-content: center; /* Center boxes horizontally */
    gap: 20px; /* Space between boxes */
}

.class-category {
    flex: 1 1 300px; /* Distribute space, min-width 300px */
    min-height: 200px;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to the bottom */
}

.class-category h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    padding: 5px;
    border-radius: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Example: add text shadow for readability over image */
    text-align: center; /* Ensures text inside h3 is centered if it wraps */
}

.class-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.class-category li {
    margin-bottom: 5px;
}

.class-category a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.class-category a:hover {
    color: #ddd;
}

.training-title {
    padding: 80px 0; /* Example padding */
    background-color: #ffffff; /* Example background */
}

.training-title-content {
    /* Use flexbox on the content wrapper to center its children (h1 and .training-title-row) */
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    max-width: 1200px; /* Limit width for centering on very wide screens */
    margin: 0 auto; /* Center the content wrapper itself */
}

.training-title-content h1 {
    /* text-align: center; is okay here, but align-items on parent is more robust */
    font-size: 3.5em; /* Make the h1 big */
    margin-bottom: 30px; /* Space between h1 and the h3s */
    color: #333;
    text-align: center; /* Keep this for smaller content that still needs text-align */
    width: 100%; /* Ensure h1 takes full width of its flex container */
}

.training-title-row {
    display: flex; /* Makes it a flex container */
    justify-content: center; /* Centers the h3 elements horizontally within this row */
    flex-wrap: wrap; /* Allows h3s to wrap to next line on smaller screens */
    gap: 30px; /* Space between the h3 elements */
    margin-top: 20px; /* Space above the h3 row */
    width: 100%; /* Ensure row takes full width for proper centering */
}

.training-title-row a {
    font-size: 1.2em; /* Adjust font size of the h3s */
    text-decoration: none;
    color: #555;
    margin: 0; /* Remove default h3 margins that might interfere */
    padding: 10px 15px; /* Add some padding if you want background behind them */
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center; /* Ensure text within h3 is centered */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.training-title-row a:hover {
    background-color: #ddd; /* Example: A blue background on hover */
    color: #333; /* Example: White text on hover */
    border-color: #ddd; /* Optional: Change border color to match background */
    cursor: pointer; /* Change cursor to pointer to indicate clickability */
}

/* Responsive adjustments for smaller screens (add if not already present or modify as needed) */
@media (max-width: 768px) {
    .training-title {
        padding: 40px 15px; /* Adjust padding for mobile */
    }
    .training-title-content h1 {
        font-size: 2.5em; /* Smaller h1 on mobile */
    }

    .training-title-row {
        flex-direction: column; /* Stack h3s vertically on very small screens */
        gap: 15px; /* Reduce gap when stacked */
        align-items: center; /* Center them when stacked */
    }
}
.image-container {
    text-align: center; /* Center the image */
    margin-top: 20px;
    margin-bottom: 20px;
}

.image-container img {
    max-width: 100%; /* Make the image responsive */
    height: auto;
    max-height: 600px; /* Optional: Limit the image height */
}

.training-details{
    background-color: #ece8e8;
    padding: 30px 0; /* Keep existing padding for internal space */
    margin-bottom: 40px; /* Add space below each section to create the break */
    border-radius: 8px; /* Optional: adds a slight roundness to the corners */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Optional: very subtle shadow for depth */
}

.training-details p{
    font-size: 12pt;
    color: #353535;
}

.training-details h2{
    font-size: 25pt;
    color: #353535;
    text-align: center;
    margin-bottom: 35px;
}
