/* Responsive Design */

/* Tablet and Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .header-social-media-icons {
        display: none !important;
    }
    .hero-section-compact {
        margin-top: 120px !important;
    }
    /*     
    .hero-title {
        font-size: 2.5rem;
    } */

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .card {
        margin-bottom: 2rem;
    }

    .update-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .update-main {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .update-time {
        margin-top: 0;
    }

    .updates-content {
        max-height: 350px;
    }

    .video-item {
        width: 280px;
    }

    .video-item iframe {
        height: 160px;
    }

    .marquee-content {
        gap: 1.5rem;
    }

    .current-affairs-container {
        padding: 1.5rem 0;
        margin: 1.5rem 0;
    }
    /* Recent blog cards: reduce fixed image height and clamp text */
    .blog-image {
        height: 180px;
    }
    .blog-title {
        -webkit-line-clamp: 2;
    }
    .blog-excerpt {
        -webkit-line-clamp: 2;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .video-item {
        width: 250px;
    }

    .video-item iframe {
        height: 140px;
    }

    .marquee-content {
        gap: 1rem;
    }

    .video-title {
        font-size: 14px;
        padding: 0.75rem;
    }

    /* my css */

    /* Mobile Responsive Fixes */
    @media (max-width: 480px) {
        .hero-title {
            font-size: 25px !important;
            font-weight: 600 !important ;
            letter-spacing: -0.003em !important;
            margin-bottom: 1.5rem !important;
            font-family: math !important;
            line-height: 35px !important;
            text-align: center;
        }

        .hero-subtitle {
            font-size: 15px !important;
            font-weight: 400;
            letter-spacing: 0.011em;
            line-height: 1.38;
            color: rgba(0, 0, 0, 0.8);
            margin-bottom: 2rem;
            font-family: sans-serif;
            line-height: 22px;
            text-align: center;
        }

        .hero-btn {
            transition: all 0.3s ease;
            border: none;
            font-weight: 600;
            letter-spacing: -0.022em;
            text-decoration: none;
            display: inline-block;
            font-family: math !important;
        }
        .hero-image img {
            margin-top: 10px !important;
        }
        .btn-primary {
            font-size: 15px;
        }

        .btn {
            border-radius: 980px;
            font-weight: 600;
            letter-spacing: -0.022em;
            transition: all 0.3s ease;
            border: none;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            font-size: 14px;
        }
        .course-title {
            font-size: 19px;
            font-weight: 600;
            letter-spacing: -0.022em;
            line-height: 1.14;
            color: #1d1d1f;
            margin-bottom: 1rem;
            text-align: center;
            font-family: fangsong;
        }
        .mb-2 {
            margin-bottom: 0.5rem !important;
            text-align: center;
        }

        .course-description {
            font-size: 17px;
            font-weight: 400;
            letter-spacing: -0.022em;
            line-height: 1.6;
            color: #000000;
            margin-bottom: 0px;
            height: 150px !important;
            text-align: center;
        }
        .course-price {
            font-size: 28px;
            font-weight: 600;
            letter-spacing: -0.003em;
            color: #dc3545;
            margin-bottom: 1rem;
            text-align: center;
        }

        .section-title {
            font-size: 30px;
            font-weight: 600;
            letter-spacing: -0.003em;
            line-height: 1.07;
            color: #000000;
            margin-bottom: 1rem;
            font-family: math;
        }

        .section-subtitle {
            font-size: 17px;
            font-weight: 400;
            letter-spacing: 0.011em;
            line-height: 1.38;
            color: #000000;
            margin-bottom: 3rem;
            font-family: math;
        }
        .display-1,
        .display-2,
        .display-3,
        .display-4,
        .display-5,
        .display-6 {
            font-weight: 600;
            letter-spacing: -0.003em;
            line-height: 1.07;
            color: #1d1d1f;
            font-size: 30px;
            font-family: math;
        }
        .lead {
            font-size: 17px;
            font-weight: 400;
            letter-spacing: 0.011em;
            line-height: 1.38;
        }
        .section-padding {
            padding: 87px 0 40px !important;
        }
        .post-title a {
            color: #1d1d1f;
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 15px;
        }
        .gap-3 {
            gap: 1rem !important;
            justify-content: center;
            padding-bottom: 8px;
        }
        .text-muted {
            --bs-text-opacity: 1;
            color: #e1002d !important;
        }
        .carousel-slide {
            width: 200px;
            margin: 0 46px;
        }
    }
    /* Recent blog cards on small devices */
    .blog-image {
        height: 150px;
    }
    .blog-title {
        font-size: 15px;
        -webkit-line-clamp: 2;
    }
    .blog-excerpt {
        font-size: 15px;
        -webkit-line-clamp: 2;
    }
}

