/* Full-screen Hero Image */
.hero-image {
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Use a fallback for images that are part of an <img> tag */
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Content box styling */
.content-box {
    margin-left: 20px;
    color: white;
    max-width: 400px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

.content-box h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.content-box p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.read-more-button {
    display: inline-block;
    padding: 10px 20px;
    color: black;
    background-color: #FFC107;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.read-more-button:hover {
    background-color: hsl(251, 86%, 15%);
    color: white;
}

/* White Background Section */
.about-section {
    background-color: #fff;
    padding: 60px 20px;
    color: #0e0101;
}

.about-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-heading {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: black;
    animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: justify;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Reasons Section */
.reasons-section {
    background-color: #f7f7f7;
    padding: 60px 20px;
    color: #333;
    text-align: center;
}

.reasons-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.reasons-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.reason-item {
    background-color: #FFC107;
    color: black;
    padding: 40px;
    width: 250px;
    border-radius: 50%;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.reason-item:hover {
    transform: scale(1.1);
}

.circle-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.reason-heading {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.reason-description {
    font-size: 16px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .reasons-container {
        flex-direction: column;
        align-items: center;
    }

    .reason-item {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Courses Section */
.courses-section {
    background-color: #fff;
    padding: 60px 20px;
    color: #333;
    text-align: center;
}

.courses-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.courses-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.course-box {
    background-color: white;
    border: 2px solid hsl(251, 86%, 15%);
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.course-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.course-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.course-heading {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.read-more-btn {
    display: inline-block;
    background-color: #FFC107;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: hsl(251, 86%, 15%);
    color: white;
}

@media (max-width: 768px) {
    .courses-container {
        flex-direction: column;
        align-items: center;
    }

    .course-box {
        width: 100%;
    }
}

/* Blog Section */
.blog-section {
    padding: 50px;
    text-align: center;
    background-color: #ffc107;
}

.blog-section h2 {
    font-size: 2em;
    color: hsl(251, 86%, 15%);
    margin-bottom: 20px;
}

.blog-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-container {
    display: flex;
    gap: 20px;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.blog-card {
    width: 300px;
    background-color: #fff;
    border: 1px solid hsl(251, 86%, 15%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card .content {
    padding: 20px;
}

.blog-card .content p {
    font-size: 1em;
    font-weight: bold;
    color: hsl(251, 86%, 15%);
    margin-bottom: 15px;
}

.blog-card .content a {
    text-decoration: none;
    color: white;
    background-color: hsl(251, 86%, 15%);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.blog-card .content a:hover {
    background-color: red;
}

@media (max-width: 768px) {
    .blog-container {
        flex-direction: column;
        align-items: center;
    }

    .blog-card {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Study Section */
.study-section {
    position: relative;
    text-align: center;
    color: white;
    height: 100vh;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
}

.study-section h2,
.study-section p,
.study-section h1 {
    position: absolute;
    z-index: 2;
    width: 100%;
    text-align: center;
    color: white;
    padding: 10px;
    margin: 0;
}

.study-section h2 {
    top: 20%;
    font-size: 3em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.study-section p {
    top: 30%;
    font-size: 1.5em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .study-section h2 {
        font-size: 2em;
    }

    .study-section p {
        font-size: 1.2em;
    }
}
