/* Courses Section Styling */
.courses-section {
    background-color: #ffffff; /* White background */
    padding: 3rem 1.5rem; /* Add spacing inside the box */
    text-align: center; /* Center align text */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for a lifted effect */
    margin: 0rem auto; /* Add spacing above and below */
    max-width: 100%; /* Default max width for smaller screens */
    border-radius: 8px; /* Rounded corners for better aesthetics */
}

.courses-section h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333333; /* Darker text for contrast */
}

.courses-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555; /* Slightly muted text color for readability */
    margin: 0.5rem 0;
}

/* White Boxes Section */
.courses-box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 1.5rem;
    margin-top: 2rem;
}

.course-box {
    background-color: #fff;
    padding: 1.5rem;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-icon {
    width: 50px; /* Icon width */
    height: 50px; /* Icon height */
    margin-bottom: 1rem; /* Adds space below the icon */
    object-fit: contain; /* Maintains aspect ratio */
}

.course-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.course-box p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.course-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15); /* Elevates on hover */
}

/* Increase Width on Desktop Screens */
@media (min-width: 1024px) {
    .courses-section {
        max-width: 90%; /* Minimize the width for desktops */
        padding: 4rem 2rem; /* Add more padding for larger screens */
    }
}

.hidden {
    display: none;
}

#dynamic-courses-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 2px solid #ccc;
    margin-top: 20px;
}

.course-details {
    margin-top: 40px;
}

.course-details h2 {
    margin-bottom: 40px; /* Add space below the heading */
    text-align: center; /* Center-align the heading */
    font-size: 2rem; /* Optional: Adjust font size for better appearance */
}


.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.course-image {
    width: 100%; /* Make the image responsive */
    max-width: 300px; /* Optional max width */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 10px; /* Space below the image */
    border-radius: 8px; /* Optional rounded corners for image */
}

.course-item {
    text-align: center; /* Center-align all content within the box */
    display: flex; /* Use flexbox for better alignment */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Horizontally center items */
    justify-content: space-between; /* Ensure even spacing */
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.course-item h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.4rem
}

.course-item p {
    text-align: justify; /* Justify paragraph text */
    margin: 10px 0; /* Add spacing around paragraphs */
    color: #555; /* Optional: Adjust color for readability */
    line-height: 1.6; /* Optional: Adjust line height for better readability */
    font-size: 1rem
}

/* Button container for alignment */
.course-buttons {
    display: flex;
    justify-content: center; /* Center align the buttons horizontally */
    gap: 10px; /* Add space between buttons */
    margin-top: 10px;
}

/* Syllabus Button */
.syllabus-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.syllabus-button:hover {
    background-color: #13c04c;
}

/* Apply Now Button */
.apply-now-button {
    background-color: #fd8f36;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.apply-now-button:hover {
    background-color: #000000;
}

/* Remove default link styling from the <a> tags */
.syllabus-button, .apply-now-button {
    text-decoration: none;
}