﻿.cta-hero-button {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 15px rgb(149, 178, 0, 0.30);
}

    .cta-hero-button:hover {
        background: var(--primary-dark);
        color: white;
        transition: var(--transition);
        box-shadow: 0 8px 20px rgb(149, 178, 0, 0.30);
    }

    .cta-hero-button i {
        margin-left: 8px;
        transition: var(--transition);
    }
        .cta-hero-button:hover i {
            transform: translateX(4px);
        }

.hero {
    padding: 40px 0 80px;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 500px;
        height: 500px;
        background: rgba(0, 162, 138, 0.05);
        border-radius: 50%;
        z-index: -1;
    }

    .hero::after {
        content: '';
        position: absolute;
        bottom: -150px;
        left: -100px;
        width: 600px;
        height: 600px;
        background: rgba(0, 162, 138, 0.03);
        border-radius: 50%;
        z-index: -1;
    }

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero h2 {
    font-weight:700;
    font-size: 3.8rem;
    margin-bottom: 20px;
    color: var(--secondary);
    line-height: 1.3;
}

    .hero h2 span {
        color: var(--primary);
        position: relative;
    }

        .hero h2 span::after {
            content: '';
            position: absolute;
            bottom: 5px;
            left: 0;
            width: 100%;
            height: 12px;
            background: rgba(0, 162, 138, 0.2);
            z-index: -1;
        }

.hero p {
    font-size: 1.25rem;
    color: var(--dark-gray);
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.secondary-hero-button {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .secondary-hero-button:hover {
        border: 2px solid var(--primary-dark);
        background: var(--primary-dark);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 162, 138, 0.3);
    }

.hero-image {
    flex: 1;
    position: relative;
}

.hero-img-container {
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    transform: rotate(-3deg);
}

    .hero-img-container img {
        width: 100%;
        border-radius: 15px;
        display: block;
    }

.stats-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 25px;
    position: absolute;
    bottom: -30px;
    left: -30px;
    z-index: 2;
    animation: floatUpDown 3s ease-in-out infinite;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
}
/* Default (Desktop) is already good, so just add mobile rules */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column; /* stack text and image */
        gap: 40px;
        text-align: center; /* center align for mobile */
    }

    .hero-text {
        flex: unset;
    }

    .hero h2 {
        font-size: 2.2rem; /* smaller font for mobile */
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
        max-width: 100%; /* full width text */
        margin: 0 auto 25px;
    }

    .hero-buttons {
        flex-direction: column; /* buttons stacked on mobile */
        gap: 15px;
        justify-content: center;
    }

    .hero-image {
        display:none;
    }

}

/* Courses Section */
.courses-section {
    padding: 50px 0;
    text-align: center;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab {
    background: white;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-light);
    color: var(--dark-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

    .tab.active, .tab:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 162, 138, 0.3);
    }

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

.course-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
}

    .course-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

.course-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

    .course-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-category-top-right {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #60b700;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2; /* To make sure it's on top of the image */
}

.course-title {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    line-height: 1.4;
    font-weight: 700;
    text-align:start;
}

.course-card:hover .course-title {
    color: var(--primary);
}

.course-description {
    font-size: 0.90rem;
    color: #878787;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: start;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.6em * 3); /* Ensures only 3 lines show */
}


.course-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.9rem;
    color: #777;
    margin-top: auto;
}

    .course-meta i {
        color: var(--primary);
    }

/* CTA Section */
.cta-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: -200px;
        right: -200px;
        width: 600px;
        height: 600px;
        background: rgba(0, 162, 138, 0.05);
        border-radius: 50%;
        z-index: -1;
    }

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    max-width: 900px;
    margin: 0 auto;
    padding: 70px;
    border-radius: 25px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

    .cta-box::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 200px;
        height: 200px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

    .cta-box::after {
        content: '';
        position: absolute;
        bottom: -80px;
        left: -80px;
        width: 250px;
        height: 250px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
    }

    .cta-box h2 {
        font-weight: 700;
        font-size: 2.8rem;
        margin-bottom: 20px;
        position: relative;
        z-index: 2;
    }

    .cta-box p {
        font-size: 1.3rem;
        max-width: 600px;
        margin: 0 auto 35px;
        opacity: 0.9;
        position: relative;
        z-index: 2;
    }
