* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

header {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none; /* Remove underline */
    color: white; /* Set text color */
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.menu-icon {
    font-size: 28px;
    cursor: pointer;
    display: none;
}

nav.show {
    display: flex;
}



nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    color: #fcbf49;
}


.hero {
    background: url('../img/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    padding: 50px 0;
    text-align: center;
}

.hero h1, .hero p {
    max-width: 700px;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.about-section, .services-section, .contact-section {
    background-color: #fff;
    padding: 40px 0;
    margin-top: 20px;
}

.section-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start; /* Add this to align items to the start of the container */
}

.feature {
    background: #f4f4f4;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%; /* Make sure all feature divs are the same height */
}

.feature img {
    width: 100%; /* Full width of the container */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 10px;
}

.feature p {
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    height: 4.5em; /* Fixed height for all paragraphs */
}

/* Ensure all feature images are the same height */
.feature img {
    height: 200px; /* Adjust as needed */
    object-fit: cover; /* Cover the space without stretching */
}


footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.logo {
    max-width: 200px;
    height: auto;
}

form {
    max-width: 500px;
    margin: 0 auto;
    background-color: white; /* Optional: Add a background color for the form */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle box shadow */
}

label {
    display: block;
    margin-bottom: 10px;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px; /* Optional: Increase the font size */
}

button:hover {
    background-color: #45a049;
}
#menu-toggle {
    display: none; /* Hide the checkbox */
}

.training-mentorship-section {
    background-color: #fff; /* Matches other sections like about, services, contact */
    padding: 40px 0; /* Consistent vertical padding with other sections */
    margin-top: 20px; /* Spacing from the previous section */
}

.training-mentorship-section .container {
    padding: 0 20px; /* Consistent horizontal padding */
    text-align: center; /* Center-aligns the content */
}

.training-mentorship-section h2 {
    margin-bottom: 20px; /* Spacing under the title */
}

.training-mentorship-section p {
    margin-bottom: 20px; /* Spacing under the paragraph */
}

.training-mentorship-section ul {
    list-style: none; /* Removes default list styling */
    padding: 0; /* Removes default padding */
    text-align: left; /* Aligns text to the left */
}

.training-mentorship-section li {
    margin-bottom: 10px; /* Spacing between list items */
}


@media screen and (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    nav {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #333;
        z-index: 1;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        padding: 15px;
        text-align: center;
    }

    #menu-toggle:checked ~ nav {
        display: flex;
    }

    nav.show {
        display: flex; /* Show when .show class is added */
    }


    .features {
        grid-template-columns: 1fr;
    }

    .feature img {
        height: auto; /* Reset the height for mobile view */
    }

    .header-container {
        flex-direction: column;
    }

    form {
        padding: 15px;
    }

    input,
    textarea {
        margin-bottom: 10px;
    }
    .learn-section .container {
        width: 95%;
    }
    .training-mentorship-section .container {
        width: 95%; /* Adjusts the width on smaller screens */
    }
}
