.category-card-large,
.section-title {
    text-align: center;
    position: relative;
}
.category-card-large::before,
.section-title::after {
    content: "";
    height: 4px;
    background: linear-gradient(90deg, #e8364e, #ff6b87);
    position: absolute;
}
.product-main-container,
.section-title,
.subject-card,
.top-selling-section {
    position: relative;
}
body {
    font-family:
        "DM Sans",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
}
.section-title::after {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    border-radius: 2px;
}
.categories-section {
    padding: 3rem 0;
}
.category-card-large {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: 0.3s;
    height: 100%;
    overflow: hidden;
}
.btn-category,
.category-icon {
    background: linear-gradient(135deg, #e8364e, #ff6b87);
}
.category-card-large::before {
    top: 0;
    left: 0;
    width: 100%;
    transform: scaleX(0);
    transition: transform 0.3s;
}
.category-card-large:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(232, 54, 78, 0.15);
}
.category-card-large:hover::before {
    transform: scaleX(1);
}
.category-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 2.5rem;
    box-shadow: 0 8px 20px rgba(232, 54, 78, 0.3);
    transition: transform 0.3s;
}
.educator-card,
.subject-card {
    height: 100%;
    text-align: center;
}
.category-card-large:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}
.category-card-large h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
}
.category-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}
.category-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.category-stats span {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}
.btn-category {
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}
.btn-category:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 54, 78, 0.4);
}
.subjects-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}
.subject-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: 0.3s;
    cursor: pointer;
}
.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #e8364e;
}
.subject-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
}
.subject-course {
    font-size: 0.85rem;
    color: #e8364e;
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.subject-count {
    font-size: 0.8rem;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
}
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}
.educators-section {
    padding: 2rem 0;
}
.educator-card {
    background: 0 0;
    padding: 1rem;
    transition: 0.3s;
}
.educator-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-radius: 5%;
}
.educator-avatar {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}
.educator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8364e, #ff6b87);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
}
.educator-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
}
.educator-card p {
    color: #6c757d;
    margin-bottom: 1rem;
}
.rating {
    color: #ffc107;
    font-weight: 600;
    margin-bottom: 1rem;
}
.features-section {
    padding: 2rem 0;
    background-color: #f8f9fa;
}
.feature-item {
    text-align: center;
    padding: 2rem 1rem;
}
.feature-icon {
    font-size: 3rem;
    color: #e8364e;
    margin-bottom: 1.5rem;
    display: block;
}
.product-name,
.subject-title-outside {
    font-size: 1rem;
    text-overflow: ellipsis;
}
.feature-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}
.feature-item p {
    color: #6c757d;
    line-height: 1.6;
}
.top-selling-section {
    padding: 3rem 0;
}
.top-selling-section .section-title {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 2rem;
}
.top-selling-section .section-title::after {
    left: 0;
    transform: translateX(0);
}
.product-carousel-wrapper {
    display: flex;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    gap: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
}
.product-carousel-wrapper:active {
    cursor: grabbing;
}
.product-carousel-wrapper.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}
.product-carousel-wrapper::-webkit-scrollbar {
    height: 8px;
}
.product-carousel-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.product-carousel-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.product-carousel-wrapper::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
}
.img-card,
.product-card-wrapper {
    background-color: #ededed;
    position: relative;
}
.product-main-container:hover .carousel-nav-btn {
    opacity: 1;
    visibility: visible;
}
.carousel-nav-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}
.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}
.carousel-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}
.carousel-nav-btn.prev {
    left: -25px;
}
.carousel-nav-btn.next {
    right: -25px;
}
.carousel-nav-btn svg {
    width: 24px;
    height: 24px;
    fill: #333;
}
.wptext {
    margin-top: 2.5rem;
}
.testimonial-mobile .card-text {
    font-size: 0.9rem;
}
.product-item-container {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
}
.subject-title-outside {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.35rem;
    overflow: hidden;
    min-height: 2em;
}
.product-card-wrapper {
    overflow: hidden;
    transition: 0.3s ease-in-out;
    flex-direction: column;
    min-height: 400px;
    display: flex;
}
.product-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.product-card-link {
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.img-card {
    padding: 10% 8%;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    display: flex;
}
.img-card img {
    width: 300px;
    object-fit: contain;
    max-height: 250px;
}
.product-info {
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}
.product-name {
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.author-name,
.author-name a {
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
}
.author-name a:hover {
    text-decoration: underline;
}
.price-info {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.price-current {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0;
    color: #000;
}
.price-original {
    text-decoration: line-through;
    margin-left: 0.5rem;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0;
}
.badge-custom {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}
.badge-custom.badge-lectures {
    background-color: #e6e0f1;
    color: #5e4094;
}
.ribbon {
    font-size: 13px;
    padding-right: 2%;
    padding-left: 2%;
    color: #fff;
    --f: 0.5em;
    --r: 0.8em;
    position: absolute;
    top: 5px;
    right: calc(0 * var(--f));
    line-height: 1.8;
    background: #e1535a;
    border-bottom: var(--f) solid #0005;
    border-left: var(--r) solid #0000;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - var(--f)),
        calc(100% - var(--f)) 100%,
        calc(100% - var(--f)) calc(100% - var(--f)),
        0 calc(100% - var(--f)),
        var(--r) calc(50% - var(--f) / 2)
    );
}
.badge-circle-hours {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 55px;
    height: 55px;
    background: #357166;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
    color: #fff;
}
.carousel-dots,
.carousel-nav {
    z-index: 10;
    position: absolute;
}
.badge-circle-hours .hours-number {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}
.badge-circle-hours .hours-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Large Desktop Screens (1400px and above) */
@media (min-width: 1400px) {
    .container-xxl {
        max-width: 1320px;
    }
    .section-title {
        font-size: 2rem;
    }
    .category-card-large {
        padding: 0.5rem;
    }
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 0.8rem;
    }
    .product-item-container {
        flex: 0 0 300px;
    }
    .img-card {
        height: 320px;
        min-height: 320px;
        max-height: 320px;
    }
    .img-card img {
        width: 280px;
        max-height: 260px;
    }
}

/* Desktop Screens (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container-xxl {
        max-width: 1140px;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    .categories-section, .subjects-section {
        padding: 2rem 0;
    }
    .category-card-large {
        padding: 0.35rem;
    }
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    .category-card-large h3 {
        font-size: 1.3rem;
    }
    .product-item-container {
        flex: 0 0 240px;
    }
    .educator-avatar {
        width: 180px;
        height: 180px;
    }
    .img-card {
        height: 240px;
        min-height: 240px;
        max-height: 240px;
    }
    .img-card img {
        width: 260px;
        max-height: 220px;
    }
}

/* Laptop Screens (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container-xxl {
        max-width: 960px;
    }
    .carousel-slide img {
        height: 200px;
    }
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .categories-section, .subjects-section {
        padding: 2rem 0;
    }
    .category-card-large {
        padding: 0.5rem;
    }
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    .category-card-large h3 {
        font-size: 1.2rem;
    }
    .category-description {
        font-size: 0.95rem;
    }
    .btn-category {
        padding: 0.65rem 1.75rem;
        font-size: 0.95rem;
    }
    .product-item-container {
        flex: 0 0 240px;
    }
    .img-card {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }
    .img-card img {
        width: 180px;
        max-height: 200px;
    }
    .product-card-wrapper {
        min-height: 350px;
    }
    .educator-avatar {
        width: 160px;
        height: 160px;
    }
    .educator-card h4 {
        font-size: 1.15rem;
    }
    .feature-icon {
        font-size: 2.5rem;
    }
    .feature-item h4 {
        font-size: 1.15rem;
    }
}

/* Tablet Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.75rem;
    }
    .categories-section, .subjects-section {
        padding: 3rem 0;
    }
    .category-card-large {
        padding: 0.9rem;
    }
    .category-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    .category-card-large h3 {
        font-size: 1.1rem;
    }
    .category-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    .category-stats {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    .category-stats span {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    .btn-category {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    .product-item-container {
        flex: 0 0 240px;
    }
    .img-card {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }
    .img-card img {
        width: 220px;
        max-height: 180px;
    }
    .product-card-wrapper {
        min-height: 320px;
    }
    .product-name {
        font-size: 0.95rem;
    }
    .price-current {
        font-size: 1rem;
    }
    .educator-avatar {
        width: 140px;
        height: 140px;
    }
    .educator-card h4 {
        font-size: 1.1rem;
    }
    .feature-item {
        padding: 1.5rem 0.5rem;
    }
    .feature-icon {
        font-size: 2.25rem;
    }
    .feature-item h4 {
        font-size: 1.1rem;
    }
}

/* Existing mobile styles - keep them as they were working for you */
@media (max-width: 991.98px) {
    .section-title, .top-selling-section .section-title {
        font-size: 1.5rem;
    }
    .category-card-large {
        padding: .9rem;
    }
    .category-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-title, .top-selling-section .section-title {
        font-size: 1.25rem;
    }
    .categories-section, .educators-section, .features-section, .subjects-section, .top-selling-section {
        padding: 1rem 0;
    }
    .category-card-large {
        padding: .6rem;
    }
    .category-card-large h3, .myoc h5 {
        font-size: .9rem;
    }
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .row > * {
        margin-top: .75rem;
    }
    .col-3, .col-4 {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    .educator-avatar {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
    }
    .avatar-placeholder {
        font-size: 1.5rem;
    }
    .subject-title-outside {
        min-height: 2.5em;
        max-height: 2.5em;
        font-size: .8rem;
    }
    .product-card-wrapper {
        min-height: 200px;
    }
    .author-name, .author-name a, .combotext h5, .product-name {
        font-size: .8rem;
    }
    .combotext p, .price-current, .price-original {
        font-size: .7rem;
    }
    .img-card {
        height: 140px;
        min-height: 140px;
        max-height: 140px;
    }
    .img-card img {
        width: 100px;
        max-height: 100px;
    }
    .ribbon {
        font-size: 10px;
    }
    .badge-circle-hours {
        width: 35px;
        height: 35px;
        bottom: 5px;
    }
    .badge-circle-hours .hours-number {
        font-size: 9px;
        margin-bottom: 1px;
    }
    .badge-circle-hours .hours-text {
        font-size: 7px;
    }
    .product-info {
        min-height: 130px;
    }
    .educator-card {
        padding: .5rem;
    }
    .educator-card h4 {
        font-size: .9rem;
        min-height: 3.5em;
    }
    .educator-card .btn-sm {
        font-size: .7rem;
        margin-top: auto;
    }
    .feature-item {
        padding: 0;
    }
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    .feature-item h4 {
        font-size: .8rem;
        min-height: 2.6em;
    }
    .feature-item p, .myoc p {
        font-size: .6rem;
    }
    .badge-custom {
        font-size: .4rem;
        padding: 3px;
    }
}

@media (max-width: 575.98px) {
    .product-item-container {
        flex: 0 0 150px;
    }
    .categories-section, .educators-section, .features-section, .subjects-section {
        padding: 2rem 0;
    }
    .category-stats {
        flex-direction: column;
        gap: .5rem;
    }
    .btn-category {
        padding: .6rem 1.5rem;
        font-size: .9rem;
    }
}

/* Carousel responsive adjustments */
.carousel-container {
    position: relative;
    overflow: hidden;
    background: #f1f3f6;
    margin: 9% auto 0;
    padding: 0;
}

.carousel-wrapper {
    display: flex;
    transition: transform .5s ease-in-out;
}

.carousel-btn, .carousel-nav, .dot {
    transition: background .3s;
    cursor: pointer;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 500px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,.5);
}

.carousel-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.carousel-btn {
    background: #ff6b35;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
}

.carousel-btn:hover {
    background: #e55a2b;
}

.carousel-dots {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
}

.carousel-nav:hover, .dot.active {
    background: #fff;
}

.carousel-nav {
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}
.mobile-image {
    display: none;
}

/* Carousel responsive adjustments */
@media (max-width: 1200px) {
    .carousel-content h1 {
        font-size: 2.25rem;
    }
    .carousel-container {
        margin-top: 11%;
    }
    .carousel-slide img {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .carousel-content h1 {
        font-size: 2rem;
    }
    .carousel-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .carousel-nav-btn {
        display: none;
    }
    .wptext h3 {
        margin-top: 1rem;
        font-size: 1rem;
    }
    .classes h3 {
        font-size: 1.4rem;
    }
    .classes p {
        font-size: .8rem;
    }
    .testimonial h6 {
        font-size: .9rem;
        font-weight: 400;
    }
    .testimonial h2 {
        font-size: 1rem;
        font-weight: 600;
    }
    .testimonial-mobile .card-text {
        font-size: .75rem;
    }
    .carousel-slide img {
        height: 200px;
        width: 98%;
    }
    .carousel-container {
        width: 100%;
        margin-top: 20%;
    }
    .carousel-content {
        left: 5%;
        max-width: 90%;
    }
    .carousel-content h1 {
        font-size: 1.5rem;
    }
    .carousel-btn, .carousel-content p {
        font-size: .9rem;
    }
    .carousel-btn {
        padding: 10px 20px;
    }
    .carousel-nav {
        width: 15px;
        height: 15px;
        font-size: 1rem;
    }
    .carousel-nav.prev {
        left: 10px;
    }
    .carousel-nav.next {
        right: 10px;
    }
    .desktop-image {
        display: none;
    }
    .mobile-image {
        display: block;
    }
}

@media (max-width: 480px) {
    .carousel-slide img {
        height: 160px;
    }
    .carousel-content h1 {
        font-size: 1.2rem;
    }
    .carousel-content p {
        font-size: .8rem;
        margin-bottom: 1rem;
    }
}

/* FAQ Section responsive adjustments */
@media (max-width: 1200px) {
    .faq-header {
        font-size: 1.6rem;
    }
    .faqs-heading {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .faq-header {
        font-size: 1.5rem;
    }
    .faq-img img {
        height: 40vh;
        width: 40vh;
    }
}

@media (max-width: 767px) {
    .faq-section {
        padding: 20px;
    }
    .faq-header {
        font-size: 1.5rem;
    }
    .list-group-item {
        flex-direction: column;
        align-items: flex-start!important;
    }
    .faq-question {
        width: 100%;
        margin-bottom: 10px;
    }
    .faq-answer {
        width: 100%;
    }
    .faq-img {
        display: none;
    }
    .frequently-asked {
        font-size: 1.5rem;
        text-align: center;
    }
}

/* Grid system adjustments for intermediate screens */
@media (min-width: 768px) and (max-width: 991.98px) {
    .row > * {
        margin-top: 1rem;
    }
    .col-md-3, .col-md-4 {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .row > * {
        margin-top: 0.75rem;
    }
    .col-sm-6, .col-sm-4 {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

/* Rest of your existing CSS remains unchanged */
.faq-start {
    margin-top: 4%;
}
.frequently-asked {
    font-weight: 700;
    margin-bottom: 5%;
    font-size: 1.8rem;
}
.accordion {
    --bs-accordion-btn-focus-border-color: #ccc!important;
    --bs-accordion-bg: transparent!important;
}
.accordion-button {
    border-top: 1px solid #ccc;
    border-radius: 0!important;
}
.accordion-item, .list-group-item {
    border: none!important;
}
.accordion-button:focus {
    z-index: 3;
    border-color: #ccc!important;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
    box-shadow: none!important;
}
.list-group-item {
    display: flex!important;
    align-items: center;
    background-color: transparent;
}
.accordion-button:not(.collapsed) {
    color: #000!important;
}
.list-group-item.active {
    background-color: #f5f5f5!important;
    border-color: #dee2e6!important;
    color: #000!important;
}
.list-group-item.active:hover {
    background-color: #e9ecef!important;
    border-color: #dee2e6!important;
}
.faqs-heading {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2%;
}
.faq-img img {
    height: 50vh;
    width: 50vh;
    object-fit: cover;
}
.faq-header {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 500;
}
.card-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header:first-of-type {
    border-top: none!important;
}
.card-body {
    font-size: 1rem;
}
.faq-icon {
    transition: transform .2s;
}
.faq-icon.rotate {
    transform: rotate(180deg);
}
.faq-hr {
    margin-top: .5rem;
    margin-bottom: .5rem;
    border: 0;
    border-top: 1px solid #808285;
}
.testimonial-mobile::-webkit-scrollbar {
    height: 8px;
}
.testimonial-mobile::-webkit-scrollbar-track {
    background-color: #d3d3d3;
    border-radius: 4px;
}
.testimonial-mobile::-webkit-scrollbar-thumb {
    background-color: #000;
    border-radius: 4px;
    border: 2px solid #d3d3d3;
}
.testimonial-mobile::-webkit-scrollbar-thumb:hover {
    background-color: #333;
}