/*=============== RESPONSIVE STYLES ===============*/

/* Large Screens (1024px and below) */
@media screen and (max-width: 1024px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
    }
    
    /* Hero Section */
    .hero__content {
        flex-direction: column;
    }
    
    .hero__image img {
        max-width: 350px;
    }
    
    /* About Section */
    .about__content {
        flex-direction: column;
    }
    
    .about__image {
        margin-bottom: var(--spacing-xl);
    }
    
    /* New Course Section */
    .new-course__content {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--spacing-xl);
    }
    
    .new-course__image img {
        max-width: 100%;
    }
    
    /* Footer */
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Screens (768px and below) */
@media screen and (max-width: 768px) {
    /* Course Hero Badge */
    .course-hero__badge {
        padding: 8px 15px;
        font-size: 0.9rem;
        top: 20px;
        right: 20px;
    }
    :root {
        --spacing-3xl: 3rem;
        --spacing-2xl: 2rem;
    }
    
    /* Navigation */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-dark);
        padding: var(--spacing-2xl) var(--spacing-lg);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right var(--transition-normal);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 100;
    }
    
    .nav__menu.show {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        text-align: center;
    }
    
    .nav__close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .nav__toggle {
        display: block;
    }
    
    /* Hero Section */
    .hero {
        height: auto;
        padding: 120px 0 var(--spacing-3xl);
    }
    
    .hero__image {
        margin-top: var(--spacing-xl);
    }
    
    /* New Course Section */
    .new-course {
        padding: 80px 0;
    }
    
    .new-course .section__title {
        font-size: 2.2rem;
    }
    
    .new-course .section__subtitle {
        font-size: 1.1rem;
    }
    
    .new-course__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .new-course__image {
        max-width: 90%;
        margin: 0 auto;
        transform: perspective(1000px) rotateY(0);
        border-width: 4px;
    }
    
    .new-course__play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .new-course__info {
        padding: 25px;
    }
    
    .new-course__title {
        font-size: 30px;
    }
    
    .new-course__subtitle {
        font-size: 20px;
    }
    
    .new-course__features {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .new-course__price {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .new-course__timer {
        padding: 8px 12px;
        margin-top: 8px;
    }
    
    .new-course__timer i {
        font-size: 18px;
    }
    
    .new-course__timer span {
        font-size: 14px;
    }
    
    /* Contact Section */
    .contact__content {
        grid-template-columns: 1fr;
    }
    
    /* Media Section */
    .media-card--large {
        grid-column: span 1;
    }
    
    /* Footer */
    .footer__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

/* Small Screens (576px and below) */
@media screen and (max-width: 576px) {
    /* Course Hero Badge */
    .course-hero__badge {
        padding: 6px 12px;
        font-size: 0.8rem;
        top: 15px;
        right: 15px;
    }
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --spacing-2xl: 1.5rem;
        --spacing-xl: 1.25rem;
    }
    
    /* Navigation */
    .nav__actions .btn {
        display: none;
    }
    
    /* Hero Section */
    .hero__stats,
    .hero__cta,
    .about__achievements,
    .about__cta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .hero__stat {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .hero__stat-number {
        margin-left: 0;
    }
    
    /* New Course Section */
    .new-course {
        padding: 60px 0;
    }
    
    .new-course .section__title {
        font-size: 1.8rem;
    }
    
    .new-course .section__subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .new-course__content {
        flex-direction: column;
    }
    
    .new-course__image {
        margin-bottom: var(--spacing-xl);
        max-width: 100%;
        border-width: 3px;
        transform: none;
    }
    
    .new-course__play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .new-course__badge {
        padding: 6px 12px;
        font-size: 0.8rem;
        top: 15px;
        right: 15px;
    }
    
    .new-course__info {
        padding: 15px;
        border-radius: 15px;
    }
    
    .new-course__title {
        font-size: 26px;
    }
    
    .new-course__subtitle {
        font-size: 18px;
    }
    
    .new-course__description {
        font-size: 15px;
        padding: 12px;
    }
    
    .new-course__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .new-course__features {
        padding: 12px;
        gap: 10px;
    }
    
    .new-course__feature {
        padding: 10px;
    }
    
    .new-course__price {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }
    
    .new-course__price-current {
        font-size: 32px;
    }
    
    .new-course__timer {
        padding: 6px 10px;
        margin-top: 6px;
    }
    
    .new-course__timer i {
        font-size: 16px;
    }
    
    .new-course__timer span {
        font-size: 13px;
    }
    
    .new-course__cta {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .new-course__cta .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* Testimonials Section */
    .testimonials__track {
        padding: var(--spacing-md);
    }
    
    .testimonial {
        padding: var(--spacing-sm);
    }
    
    .testimonial__content {
        padding: var(--spacing-md);
    }
    
    /* Footer */
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__bottom-links {
        justify-content: center;
    }
}

/* Responsive Styles for About Section */
@media screen and (max-width: 768px) {
    .about__content {
        flex-direction: column;
        align-items: center;
    }

    .about__image {
        width: 100%;
        max-width: 350px;
        margin-bottom: 2rem;
        position: relative;
    }

    .about__image img {
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .about__experience {
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(255, 255, 255, 0.9);
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .about__text {
        width: 100%;
        text-align: center;
        padding: 0 1rem;
    }

    .about__badge {
        display: inline-block;
        margin-bottom: 1rem;
    }

    .about__name {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .about__bio {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .about__highlights {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .about__highlight {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.02);
        padding: 1.5rem;
        border-radius: 12px;
        transition: transform 0.3s ease;
    }

    .about__highlight i {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: var(--primary-color);
    }

    .about__highlight div {
        text-align: center;
    }

    .about__highlight h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .about__highlight p {
        font-size: 0.9rem;
        color: var(--text-color-light);
    }

    .about__achievements {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .about__achievement {
        background-color: rgba(0, 0, 0, 0.02);
        padding: 1rem;
        border-radius: 12px;
    }

    .about__achievement-number {
        display: block;
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--primary-color);
        margin-bottom: 0.5rem;
    }

    .about__achievement-text {
        font-size: 0.8rem;
        color: var(--text-color-light);
        line-height: 1.4;
    }

    .about__cta {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .about__cta .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Responsive Styles for About Section Experience Badge */
@media screen and (max-width: 768px) {
    .about__experience {
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        background-color:  var(--color-primary);
        color: white;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        gap: 1rem;
        justify-content: center;
        z-index: 10;
    }

    .about__experience-number {
        font-size: 2.5rem;
        font-weight: bold;
        line-height: 1;
    }

    .about__experience-text {
        text-align: right;
        font-size: 0.9rem;
        line-height: 1.4;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}

/* Responsive Styles for New Course Section */
@media screen and (max-width: 768px) {
    .new-course__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .new-course__image {
        width: 100%;
        max-width: 350px;
        position: relative;
        margin-bottom: 2rem;
    }

    .new-course__image img {
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .new-course__badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background-color: var(--primary-color);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-size: 0.8rem;
        z-index: 10;
    }

    .new-course__image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 12px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .new-course__play-btn {
        background-color: white;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--primary-color);
        font-size: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .new-course__info {
        width: 100%;
        text-align: center;
        padding: 0 1rem;
    }

    .new-course__title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .new-course__subtitle {
        font-size: 1rem;
        color: var(--text-color-light);
        margin-bottom: 1.5rem;
    }

    .new-course__meta {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .new-course__meta-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.03);
        padding: 1rem;
        border-radius: 8px;
    }

    .new-course__meta-item i {
        font-size: 1.5rem;
        color: var(--primary-color);
        margin-bottom: 0.5rem;
    }

    .new-course__highlights {
        margin-bottom: 1.5rem;
    }

    .new-course__highlights-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .new-course__features {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .new-course__feature {
        display: flex;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.03);
        padding: 1rem;
        border-radius: 8px;
        text-align: right;
    }

    .new-course__feature i {
        color: var(--primary-color);
        margin-left: 1rem;
        font-size: 1.2rem;
    }

    .new-course__price {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .new-course__price-current {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--primary-color);
    }

    .new-course__price-original {
        text-decoration: line-through;
        color: var(--text-color-light);
        margin: 0.5rem 0;
    }

    .new-course__price-discount {
        background-color: var(--primary-color);
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.8rem;
    }

    .new-course__timer {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 1rem;
        color: var(--text-color-light);
    }

    .new-course__timer i {
        margin-left: 0.5rem;
        color: var(--primary-color);
    }

    .new-course__cta {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .new-course__cta .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        text-align: center;
    }
}

/* Responsive Styles for Services Section */
@media screen and (max-width: 768px) {
    .services__grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .service-card {
        width: 100%;
        margin: 0;
        padding: 2rem 1.5rem;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
        background-color: white;
    }

    .service-card--featured {
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        border-top: 4px solid var(--primary-color);
    }

    .service-card__badge {
        position: absolute;
        top: -1rem;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--primary-color);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-size: 0.8rem;
        z-index: 10;
    }

    .service-card__icon {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background-color: rgba(52, 152, 219, 0.1);
        margin: 0 auto 1.5rem;
    }

    .service-card__icon i {
        font-size: 2.5rem;
        color: var(--primary-color);
    }

    .service-card__title {
        text-align: center;
        font-size: 1.4rem;
        margin-bottom: 1rem;
        color: var(--text-color-dark);
    }

    .service-card__description {
        text-align: center;
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text-color-light);
        margin-bottom: 1.5rem;
    }

    .service-card__features {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .service-card__feature {
        display: flex;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.03);
        padding: 1rem;
        border-radius: 8px;
        text-align: right;
    }

    .service-card__feature i {
        color: var(--primary-color);
        margin-left: 1rem;
        font-size: 1.2rem;
    }

    .service-card__feature span {
        flex-grow: 1;
        font-size: 0.9rem;
    }

    .service-card .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem;
    }
}