/* ============================================
       MODERN LMS STYLING - Professional & Rich
       WITH FIXES FOR PARTNER SLIDER & BANNER
    ============================================ */

:root {
    --primary: #503a98;
    --primary-rgb: 80, 58, 152;
    --primary-dark: #3b2a73;
    --primary-light: #7c5fcf;
    --secondary: #21a37a;
    --secondary-rgb: 33, 163, 122;
    --secondary-dark: #1a7d5e;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --white: #ffffff;
    --shadow-sm:
        0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-md:
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg:
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --radius: 1rem;
    --radius-lg: 1.5rem;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-header p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 2.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--primary-light);
    background: transparent;
    color: var(--primary-light);
    padding: 0.7rem 2rem;
    border-radius: 2.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
}

.btn-outline-custom:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    color: white;
    transform: translateY(-2px);
}

/* ========== BANNER SECTION - FIXED (dark + white text) ========== */
.banner-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
}

.banner-section::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -10%;
    width: 120%;
    height: 160%;
    background: radial-gradient(
        circle,
        rgba(80, 58, 152, 0.3) 0%,
        transparent 70%
    );
    animation: slowRotate 20s infinite linear;
    pointer-events: none;
    z-index: 0;
}

.banner-section::after {
    content: "";
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 80%;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(33, 163, 122, 0.2) 0%,
        transparent 70%
    );
    animation: slowRotateReverse 25s infinite linear;
    pointer-events: none;
    z-index: 0;
}

@keyframes slowRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes slowRotateReverse {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}
.hero-badge:hover {
    transform: rotate(2deg) scale(1.02);
    background: rgba(255, 255, 255, 0.25);
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.gradient-text {
    background: linear-gradient(135deg, #ffd89b, #ffb347);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 4s ease infinite;
}
@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.banner-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.banner-content .btn-outline-custom {
    border-color: white;
    color: white;
}
.banner-content .btn-outline-custom:hover {
    background: white;
    color: var(--primary);
}
.banner-content .btn-primary-custom {
    background: white;
    color: var(--primary);
}
.banner-content .btn-primary-custom:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

/* Side by side media - unchanged */
.media-side-by-side {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.media-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    flex: 1;
    cursor: pointer;
}

.media-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.media-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.media-card:hover .media-thumbnail img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.play-btn i {
    color: var(--primary);
    font-size: 1.4rem;
    margin-left: 3px;
}

.play-btn:hover {
    transform: scale(1.1);
    background: var(--primary);
}

.play-btn:hover i {
    color: white;
}

/* Top Courses Carousel */
.top-courses-carousel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-md);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.courses-swiper {
    overflow: visible !important;
    padding: 15px 8px 15px 8px;
}

.courses-swiper .swiper-slide {
    width: 270px;
    transition: transform 0.3s;
    margin-right: 20px;
}

.mini-course-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.mini-course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.mini-course-img {
    height: 150px;
    overflow: hidden;
}

.mini-course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.mini-course-card:hover .mini-course-img img {
    transform: scale(1.08);
}

.mini-course-content {
    padding: 1rem;
}

.mini-course-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mini-course-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
}

.btn-sm-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.3rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-sm-custom:hover {
    transform: scale(1.02);
    background: var(--primary-dark);
    color: white;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9ff 100%);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.about-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.about-list li i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Why BAFAI */
.why-bafai-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: white;
    padding: 1.75rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(
        135deg,
        rgba(80, 58, 152, 0.1),
        rgba(33, 163, 122, 0.1)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Courses Grid */
.courses-grid-section {
    padding: 80px 0;
    background: var(--white);
}

.course-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.course-img {
    height: 180px;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.course-card:hover .course-img img {
    transform: scale(1.05);
}

.course-content {
    padding: 1.25rem;
}

.course-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.course-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1rem;
}

.btn-outline-primary-custom {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 2rem;
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: white;
}

/* Get Started */
.get-started-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f0ff 100%);
}
.get-started-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
}
.get-started-content h2 {
    color: white;
    font-size: 2.5rem;
}
.get-started-content .gradient-text {
    background: linear-gradient(135deg, #ffd89b, #ffb347);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.get-started-content .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}
.get-started-content .btn-primary-custom {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}
.get-started-content .btn-primary-custom:hover {
    background: var(--gray-light);
    transform: translateY(-2px);
}
.get-started-content .btn-outline-custom {
    border-color: white;
    color: white;
}
.get-started-content .btn-outline-custom:hover {
    background: white;
    color: var(--primary);
}
.get-started-media {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}
.get-started-media img {
    transition: transform 0.4s ease;
}
.get-started-media:hover img {
    transform: scale(1.02);
}
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.video-play-btn a {
    color: var(--primary);
    font-size: 1.6rem;
    padding-left: 4px;
    transition: all 0.3s;
    display: block;
    line-height: 1;
}
.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary);
}
.video-play-btn:hover a {
    color: white;
}

/* Partners Section - Fixed Slider */
.partners-section {
    padding: 70px 0;
    background: var(--white);
}
.partners-swiper-container {
    width: 100%;
    overflow: visible !important;
    padding: 20px 0 30px 0;
}
.partnersSwiper {
    width: 100%;
    overflow: visible !important;
}
.partnersSwiper .swiper-slide {
    width: auto !important;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.partner-item {
    min-width: 150px;
    width: auto;
    background: white;
    border-radius: 1.5rem;
    padding: 1rem 1.8rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(80, 58, 152, 0.08);
}
.partner-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(80, 58, 152, 0.2);
}
.partner-item img {
    max-height: 55px;
    width: auto;
    filter: grayscale(0%);
    opacity: 0.85;
    transition: all 0.3s;
}
.partner-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    height: 100%;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.quote-icon {
    font-size: 3rem;
    color: rgba(80, 58, 152, 0.1);
    font-family: serif;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.testimonial-text {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.stars {
    color: #fbbf24;
    font-size: 0.75rem;
}

/* FAQ */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9ff 100%);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    background: var(--white);
    font-weight: 600;
    padding: 1.2rem;
    font-size: 0.95rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.accordion-body {
    padding: 1.2rem;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive (unchanged but keep) */
@media (max-width: 991px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .banner-content h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    .banner-content p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .banner-content .d-flex {
        justify-content: center;
    }
    .hero-badge {
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    .media-side-by-side {
        flex-direction: column;
    }
    .top-courses-carousel {
        padding: 1.5rem;
        margin-top: 1.2rem;
    }
    .courses-swiper .swiper-slide {
        width: 250px;
        margin-right: 15px;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .faq-section .row {
        flex-direction: column;
    }
    .faq-img {
        margin-bottom: 2rem;
    }
    .get-started-wrapper {
        padding: 2rem;
        text-align: center;
    }
    .get-started-content .d-flex {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .banner-section {
        padding: 60px 0;
    }
    .banner-content h1 {
        font-size: 2rem;
    }
    .banner-content p {
        font-size: 0.9rem;
    }
    .hero-badge {
        font-size: 0.7rem;
    }
    .btn-primary-custom,
    .btn-outline-custom {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
    .media-side-by-side {
        gap: 1rem;
    }
    .play-btn {
        width: 45px;
        height: 45px;
    }
    .play-btn i {
        font-size: 1.1rem;
    }
    .top-courses-carousel {
        padding: 1.25rem;
        margin-top: 1rem;
    }
    .courses-swiper .swiper-slide {
        width: 230px;
        margin-right: 12px;
    }
    .mini-course-img {
        height: 130px;
    }
    .section-header {
        margin-bottom: 2rem;
    }
    .section-header h2 {
        font-size: 1.6rem;
    }
    .section-header p {
        font-size: 0.9rem;
    }
    .about-section,
    .why-bafai-section,
    .courses-grid-section,
    .get-started-section,
    .testimonials-section,
    .faq-section {
        padding: 60px 0;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .feature-item {
        padding: 1.25rem;
    }
    .feature-icon {
        width: 55px;
        height: 55px;
    }
    .feature-icon i {
        font-size: 1.4rem;
    }
    .feature-item h4 {
        font-size: 0.9rem;
    }
    .course-card .course-content {
        padding: 1rem;
    }
    .course-title {
        font-size: 0.95rem;
    }
    .course-price {
        font-size: 0.95rem;
    }
    .testimonial-card {
        padding: 1.25rem;
    }
    .quote-icon {
        font-size: 2rem;
        top: 0.75rem;
        right: 1rem;
    }
    .testimonial-text {
        font-size: 0.85rem;
    }
    .testimonial-author {
        gap: 0.75rem;
    }
    .testimonial-avatar {
        width: 45px;
        height: 45px;
        font-size: 0.85rem;
    }
    .author-info h5 {
        font-size: 0.85rem;
    }
    .accordion-button {
        padding: 1rem;
        font-size: 0.85rem;
    }
    .partner-item {
        min-width: 130px;
        padding: 0.8rem 1.2rem;
    }
    .partner-item img {
        max-height: 45px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .banner-content h1 {
        font-size: 1.6rem;
    }
    .banner-content .d-flex {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        text-align: center;
    }
    .media-card .p-3 h6 {
        font-size: 0.75rem;
    }
    .top-courses-carousel {
        padding: 1rem;
    }
    .courses-swiper .swiper-slide {
        width: 210px;
        margin-right: 10px;
    }
    .mini-course-title {
        font-size: 0.75rem;
    }
    .section-header h2 {
        font-size: 1.4rem;
    }
    .about-list li {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .course-img {
        height: 150px;
    }
    .partner-item {
        min-width: 110px;
        padding: 0.6rem 0.9rem;
    }
    .partner-item img {
        max-height: 38px;
    }
    .view-more-wrapper .btn-outline-custom,
    .view-more-wrapper .btn-primary-custom {
        width: auto;
        display: inline-block;
        padding: 0.6rem 1.5rem;
    }
    .faq-img img {
        max-height: 250px;
        object-fit: cover;
    }
    .get-started-wrapper {
        padding: 1.5rem;
    }
    .get-started-content h2 {
        font-size: 1.8rem;
    }
    .video-play-btn {
        width: 50px;
        height: 50px;
    }
    .video-play-btn a {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .courses-swiper .swiper-button-next,
    .courses-swiper .swiper-button-prev {
        display: none;
    }
    .courses-swiper {
        padding-bottom: 20px;
    }
}

/* ============================================
   FIXES FOR MOBILE ONLY (Desktop unaffected)
   ============================================ */
@media (max-width: 991px) { /* Adjust breakpoint to match your header's mobile menu */
    /* 1. Prevent horizontal overflow on all containers */
    body {
        overflow-x: hidden !important;
        width: 100%;
    }
    .container, .container-fluid, .row, [class*="col-"] {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* 2. Make all images responsive by default */
    img {
        max-width: 100%;
        height: auto;
    }

    /* 3. Fix partner slider overflow */
    .partners-section {
        overflow: hidden;
    }
    .partners-swiper-container {
        overflow: hidden !important;
    }
    .partnersSwiper {
        overflow: visible !important;
    }
    .partnersSwiper .swiper-wrapper {
        display: flex;
        flex-wrap: nowrap;
    }
    .partner-item {
        min-width: 120px;
        width: auto;
        flex-shrink: 0;
        margin: 0 8px;
    }
    @media (max-width: 576px) {
        .partner-item {
            min-width: 100px;
            padding: 0.5rem 1rem;
        }
        .partner-item img {
            max-height: 40px;
        }
    }

    /* 4. Force swiper slides to not cause horizontal scroll */
    .swiper-slide {
        width: auto !important;
        flex-shrink: 0;
    }

    /* 5. Fix top courses carousel slide width on mobile */
    .courses-swiper .swiper-slide {
        width: 240px !important;
        margin-right: 12px;
    }
    @media (max-width: 576px) {
        .courses-swiper .swiper-slide {
            width: 200px !important;
            margin-right: 10px;
        }
    }

    /* 6. Ensure images in media cards and course cards don't overflow */
    .media-thumbnail img,
    .course-img img,
    .mini-course-img img,
    .get-started-media img,
    .about-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .media-thumbnail {
        aspect-ratio: 16 / 9;
    }
    .course-img {
        aspect-ratio: 16 / 9;
    }
    .mini-course-img {
        aspect-ratio: 16 / 9;
    }

    /* 7. Fix banner section background & content on very small devices */
    .banner-section {
        padding: 50px 0;
    }
    .banner-content h1 {
        font-size: 1.8rem;
    }
    .banner-content .btn-primary-custom,
    .banner-content .btn-outline-custom {
        width: auto;
        display: inline-block;
        padding: 0.5rem 1.2rem;
    }
    .banner-content .d-flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    /* 8. Ensure feature grid doesn't overflow on tablet */
    .feature-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    /* 9. Make accordion text readable */
    .accordion-button {
        word-break: break-word;
    }
}