/* General Reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #2C3E50;
    color: #fff;
    display: flex;            /* Flexbox for full height layout */
    flex-direction: column;   /* Stack content vertically */
    min-height: 100vh;        /* Ensure full height */
}

/* Main content styling */
main {
    flex: 1;                  /* Main content takes up remaining space */
}

/* Header Section with Smoother Polygon Shape */
.courses-header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to bottom, #000, #a37a0a);
    color: gold;
    margin-top: 20px;
    padding-top: 150px;
    clip-path: polygon(0 0, 100% 0%, 100% 85%, 50% 100%, 0 85%);
    animation: fadeIn 2s ease-out;
}

/* Animation for header */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Parent element of the header */
.header-wrapper {
    background-color: #34495E; /* Add background color to the wrapper */
}

.programs-offered {
    background-color: #e9810a;
    padding: 50px 20px;
    text-align: center;
}

.programs-offered .container {
    max-width: 1000px;
    margin: auto;
}

.program {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.program h3 {
    color: #d4af37; /* Gold color */
    font-size: 22px;
    margin-bottom: 10px;
}

.program p {
    font-size: 16px;
    color: #333;
}

/* Header Title */
.courses-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6); /* Shadow for readability */
}

/* Header Description */
.courses-header p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
    color: #ddd;
}

/* Full Screen Courses List */
.courses-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0; /* Remove margin to make it full width */
    width: 100%; /* Full width */
    gap: 40px; /* Space between course items */
    padding-right: 10px; /* Space for scrollbar */
    background: linear-gradient(to bottom, whitesmoke, #34495E);
    animation: slideIn 1s ease-out;
    overflow: hidden; /* Prevent overflow */
    justify-content: flex-start; /* Align items at the top */
    flex-grow: 1; /* Allow the container to take up remaining vertical space */
    padding-bottom: 40px; /* Add gap at the bottom */
}

/* Optional animation for sliding in */
@keyframes slideIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Course Item Styles */
.course-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: linear-gradient(to bottom,#e78f29bb, #fdc07a, #e78f29bb); /* Gradient effect on hover */
    border: 2px solid #444;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    max-width: 900px;
    width: 100%;
    gap: 20px;
    padding: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Add initial shadow */
    margin-top: 20px;
}


.course-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #ff9e2c, #d68c0a); /* Gradient effect on hover */
}

.course-item img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-right: 2px solid #34495E;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Course Info Section */
.course-info {
    padding: 30px;
    flex: 1;
}

.course-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: gold;
    text-transform: capitalize;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Add shadow for better readability */
}

.course-info p {
    font-size: 18px;
    line-height: 1.8;
    color: #fff;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.8); /* Subtle shadow for text clarity */
}

/* More Info Section */
.more-info {
    display: none; /* Hide extra content initially */
    overflow: hidden; /* Prevent overflow before showing content */
    max-height: 0; /* Initially hide the content by limiting height */
    transition: max-height 0.3s ease-in-out; /* Smooth transition */
}

.course-item.expanded {
    height: auto; /* Allow box to expand when clicked */
}

.course-item.expanded .more-info {
    display: block; /* Show the additional content */
    max-height: 5000px; /* Allow the extra content to expand */
}

/* See More Button Styling */
.see-more-btn {
    margin-top: 1500px; /* Adjust this value to move the button down */
    border-radius: 10px;
}

.see-more-btn:hover {
    background-color: #e6a800;
}

/* Why Choose Us Section */
.why-choose-us {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(to bottom, #34495E, whitesmoke); /* Gradient from dark blue to lighter shade */
    color: whitesmoke;
    animation: fadeIn 2s ease-out;
}

.why-choose-us h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: gold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Added shadow for better readability */
}

.why-choose-us ul {
    list-style-type: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.3); /* Added subtle background to improve contrast */
    border-radius: 8px;
    padding: 20px;
}

.why-choose-us li {
    font-size: 18px;
    line-height: 1.8;
    margin: 15px 0; /* Increased spacing for better readability */
    color: #ddd;
    position: relative;
    padding-left: 35px;
    font-weight: 400; /* Added a lighter font weight for better text flow */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4); /* Added subtle text shadow for contrast */
}

.why-choose-us li:before {
    content: "✔"; /* Example check mark for list items */
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: gold;
    font-size: 20px;
}

/* Certificates Section */
.certificates {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(to bottom, #34495E, whitesmoke); /* Gradient background */
    color: white;
    animation: fadeIn 2s ease-out;
}

.certificates h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: gold;
}

.certificate-item {
    display: inline-block;
    margin: 20px;
    text-align: center;
}

.certificate-item img {
    width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Description Text Styling */
.certificate-item p {
    font-size: 18px;
    margin-top: 10px;
    color: gold;
    text-shadow: 1px 1px 0px goldenrod, -1px -1px 0px goldenrod, 1px -1px 0px goldenrod, -1px 1px 0px goldenrod; /* Goldenrod outline */
    letter-spacing: 2px; /* Add space between letters */
}

/* Default Call-to-Action Section */
.call-to-action {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to right, #ff9d00, #e67e22);
    color: white;
    margin-top: 40px;
}

.call-to-action h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: gold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.call-to-action p {
    font-size: 20px;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #ddd;
    text-align: center;
}

/* Call-to-Action Buttons */
.call-to-action a {
    display: inline-block;
    padding: 15px 30px;
    font-size: 20px;
    text-decoration: none;
    background-color: #2C3E50;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin-right: 20px; /* Space between buttons */
}

/* Glowing Effect on Hover */
.call-to-action a:hover {
    background-color: #071d33;
    box-shadow: 0 0 15px 5px rgb(0, 255, 255); /* Glowing cyan color */
}

/* Responsive Design */

/* Tablets (Max Width: 1024px) */
@media (max-width: 1024px) {
    .call-to-action {
        padding: 50px 15px;
    }

    .call-to-action h2 {
        font-size: 30px;
    }

    .call-to-action p {
        font-size: 18px;
        max-width: 600px;
    }

    .call-to-action a {
        font-size: 18px;
        padding: 12px 25px;
        margin-right: 15px;
    }
}

/* Mobile (Max Width: 768px) */
@media (max-width: 768px) {
    .call-to-action {
        padding: 40px 10px;
    }

    .call-to-action h2 {
        font-size: 26px;
    }

    .call-to-action p {
        font-size: 16px;
        max-width: 500px;
    }

    .call-to-action a {
        font-size: 16px;
        padding: 10px 20px;
        margin-right: 10px;
    }
}

/* Small Mobile (Max Width: 480px) */
@media (max-width: 480px) {
    .call-to-action {
        padding: 30px 10px;
    }

    .call-to-action h2 {
        font-size: 22px;
    }

    .call-to-action p {
        font-size: 14px;
        max-width: 100%;
    }

    .call-to-action a {
        font-size: 14px;
        padding: 8px 15px;
        display: block; /* Stack buttons vertically */
        margin: 10px auto; /* Center them */
    }
}





/* Footer Section */
footer {
    background-color: #2C3E50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: auto; /* Ensure the footer stays at the bottom */
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .course-item {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .course-info h2 {
        font-size: 24px;
    }

    .course-info p {
        font-size: 16px;
    }

    .why-choose-us ul {
        padding: 10px;
    }

    .why-choose-us li {
        font-size: 16px;
    }
}
