/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Section */
.header {
    background-color: #0073e6; /* Blue from logo */
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

.header h1 {
    font-size: 3rem;
}

.header p {
    font-size: 1.5rem;
    margin: 20px 0;
}

.header .logo {
    width: 150px;
    height: 50px;
    margin-bottom: 20px;
}

.cta-btn {
    background-color: #e63946; /* Corrected red from logo */
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    font-size: 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-btn:hover {
    background-color: #005bb5; /* Darker blue for hover effect */
    color: #fff;
}

/* Section Styles */
.container {
    width: 80%;
    margin: auto;
    padding: 10px 0;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0073e6; /* Blue from logo */
}

p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Why Retured Section */
.why-retured {
    background-color: #f4f4f4;
    padding: 50px 0;
}

/* Offer Section */
.offer ul {
    list-style: none;
    text-align: center;
}

.offer ul li {
    font-size: 1.2rem;
    padding: 10px;
    text-align: left;
    margin: 10px 0;
}

/* Education Section */
.education {
    background-color: #e6f2ff; /* Light blue to match logo theme */
    padding: 50px 0;
}

.education p {
    text-align: left;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Join Us Section */
.join-us {
    background-color: #333;
    color: #fff;
    padding: 50px 0;
}

.join-us p {
    color: #fff;
}

/* Footer */
.footer {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.footer .logo {
    width: 150px;
    height: 50px;
    margin-bottom: 10px;
}

.footer a {
    color: #e63946; /* Corrected red from logo */
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Button Styles */
.project-button {
    background-color: #e63946;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: block;
    margin: 10px 0;
    transition: background-color 0.3s;
}

.project-button:hover {
    background-color: #c5303f;
}

/* Subproject Styling */
.subproject {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.subproject h4 {
    font-size: 1.5rem;
    color: #0073e6;
}

.subproject p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.button-container {
    width: 100%;
    text-align: right;
}

.enroll-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #e63946;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

/* Subproject Flex Layout */
.subproject-content {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Space between image and text */
    flex-wrap: wrap;
}

.subproject-image {
    width: 300px; /* Adjust width as needed */
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.subproject-details {
    max-width: calc(100% - 320px); /* Adjust to ensure text does not overflow */
}

/* Responsive Layout for Smaller Screens */
@media (max-width: 768px) {
    .subproject-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .subproject-image {
        width: 100%; /* Full width on smaller screens */
        max-width: 100%;
        margin-bottom: 15px;
    }

    .subproject-details {
        max-width: 100%;
        text-align: center;
    }

    .enroll-button {
        width: 100%; /* Full width button */
        max-width: 200px;
        margin: 10px auto; /* Centered button with margin */
    }
}


.enroll-button:hover {
    background-color: #c72d3e;
}

/* Navigation Bar */
.navbar {
    background-color: #0073e6; /* Match with theme */
    padding: 10px;
    text-align: center;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar ul li {
    margin: 0 10px;
}

.navbar ul li a {
    color: #f8ccd0;
    text-decoration: none;
    padding: 10px 15px;
}

.navbar ul li a:hover {
    background-color: #005bb5;
    border-radius: 5px;
}

/* Subprojects Styling */
.subprojects {
    padding-left: 20px;
    border-left: 2px solid #e6f2ff;
    margin-top: 10px;
}
.project {
    margin-top: 50px;
}

.project h3 {
    font-size: 1.75rem;
    cursor: pointer;
    color: #0073e6;
    text-decoration: underline;
}

.project h3:hover {
    color: #005bb5;
}