/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    text-align: center;
}

/* Hero Section */
.hero-section {
    padding-top: 120px;
    position: relative;
    width: 100%;
    height: 70vh;
    background: linear-gradient(to bottom, #1e3a8a, #ffffff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    color: white;
}

.learn-more {
    margin-top: 15px;
    padding: 10px 20px;
    background: #facc15;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.learn-more:hover {
    background: #1e3a8a;
    color: white;
}

/* Slider */
.slider-container {
    width: 80%;
    margin: 20px auto;
}

.slider img {
    width: 100%;
    height: 30vh;
    object-fit: cover;
    border-radius: 10px;
}

/* Courses Section */
.courses-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #f5f5f5;
}

.courses-section h2 {
    padding-top:50px;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.courses {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.course-card {
    width: 250px; /* Fixed size */
    height: 320px; /* Fixed height */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: white;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

/* Unique Colors */
.course-card:nth-child(1) {
    background-color:rgba(255, 88, 51, 0.64); /* Orange */
}
.course-card:nth-child(2) {
    background-color:rgba(51, 122, 255, 0.6); /* Blue */
}
.course-card:nth-child(3) {
    background-color:rgba(51, 182, 121, 0.62); /* Green */
}

.course-card img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    mix-blend-mode: multiply; /* Removes white background */
    margin: 10px auto;
    display: block;
}

.course-card h3 {
    font-size: 22px;
    margin: 10px 0;
}

.course-card p {
    font-size: 16px;
}

.course-card:hover {
    transform: scale(1.05);
}


/* Teacher Profile */
.teacher-profile {
    display: flex;
    justify-content: center;
    background: linear-gradient(to right, #1e3a8a, #6b21a8);
    padding: 50px 0;
}

.profile-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    color: white;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
}

.join-mission {
    margin-top: 15px;
    padding: 10px 20px;
    background: #facc15;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.join-mission:hover {
    background: #1e3a8a;
    color: white;
}

/* About Section Styling */
.about-section {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    text-align: center;
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Show animation on scroll */
.about-container.show {
    opacity: 1;
    transform: translateX(0);
}

.about-image {
    width: 100%;
    max-width: 400px;
}

.about-text {
    margin-top: 20px;
}

.about-text h2 {
    font-size: 28px;
    color: #1e3a8a;
    font-weight: bold;
}

.about-text p {
    margin-top: 10px;
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.6;
}

.highlight {
    color: #2563eb;
    font-weight: bold;
}

/* Responsive Design */
@media (min-width: 768px) {
    .about-container {
        flex-direction: row;
        text-align: left;
    }

    .about-text {
        margin-left: 20px;
    }
    .slider img {
    
    height: 60vh;
    }
}

