/* --- General Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* --- Perfect Header Styling --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #004d40;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

header nav {
    display: flex;
    align-items: center;
}

header nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

header nav a:hover {
    color: #d4af37;
}

.enroll-btn {
    background: #d4af37;
    color: white;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.enroll-btn:hover {
    background: #c19b2e;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    padding: 60px 8%;
    background-color: #f9f9f9;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #004d40;
    margin-bottom: 20px;
}

.cta-btn {
    background: #004d40;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* --- Features Bar --- */
.features-bar {
    display: flex;
    justify-content: space-around;
    padding: 40px 8%;
    background: #fff;
    border-top: 1px solid #eee;
}

.feature-item {
    text-align: center;
    font-weight: bold;
    color: #333;
}

.feature-item span {
    font-weight: normal;
    font-size: 0.9rem;
    color: #666;
}

/* --- Courses Section --- */
.courses {
    padding: 50px 8%;
    text-align: center;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.card {
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
    background: #fff;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 60px;
    margin-bottom: 15px;
}

/* --- Reviews Section --- */
.reviews {
    padding: 50px 8%;
    text-align: center;
    background-color: #fcfcfc;
}

.review-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.review-card {
    flex: 1;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 15px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.review-card p {
    margin-bottom: 15px;
    font-style: italic;
    color: #555;
}

.review-card h3 {
    color: #004d40;
    margin-bottom: 5px;
}

/* --- Footer --- */
footer {
    background: #004d40;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* --- Course Card Button Style --- */
.card-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 18px;
    background-color: #004d40;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.card-btn:hover {
    background-color: #00332c;
}

/* --- Mobile Responsive Fixes --- */
@media (max-width: 768px) {

    /* Header styling ko mobile ke liye column karein */
    header {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    header nav {
        flex-direction: column;
        gap: 10px;
    }

    header nav a {
        margin: 5px 0;
    }

    /* Hero section ko stack karein taake text aur image neechay neechay aayein */
    .hero {
        flex-direction: column;
        padding: 40px 5%;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    /* Features bar ke items ko aik ke neechay aik karein */
    .features-bar {
        flex-direction: column;
        gap: 20px;
    }

    /* Course grid jo 4 columns thi, usko mobile par 1 column kar dein */
    .course-grid {
        grid-template-columns: 1fr !important;
    }

    /* Reviews grid ko bhi column mein convert karein */
    .review-grid {
        flex-direction: column;
    }
}