/* =========================================================
   FAMS RESPONSIVE RULES
========================================================= */
/* All breakpoint and reduced-motion rules collected from the original stylesheet. */

@media (max-width: 991.98px) {
    .category-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .category-right {
        grid-template-rows: auto auto;
    }

    .category-right-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-card-large {
        min-height: 390px;
    }

    .category-right-top .category-card,
    .category-card-wide {
        min-height: 260px;
    }
}

@media (max-width: 767.98px) {
    .category-layout,
    .category-right,
    .category-right-top {
        gap: 14px;
    }

    .category-card-large {
        min-height: 330px;
    }

    .category-right-top .category-card,
    .category-card-wide {
        min-height: 240px;
    }

    .category-content {
        padding: 24px;
    }

    .category-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 575.98px) {
    .course-categories {
        overflow-x: hidden;
    }

    .category-layout,
    .category-right,
    .category-right-top {
        display: block;
        width: 100%;
        min-width: 0;
        min-height: auto;
    }

    .category-right {
        margin-top: 12px;
    }

    .category-card,
    .category-card-large,
    .category-card-wide,
    .category-right-top .category-card {
        display: block;
        width: 100%;
        min-width: 0;
        min-height: 235px;
        margin: 0 0 12px;
    }

    .category-content {
        padding: 22px;
    }

    .category-content span {
        margin-bottom: 7px;
        font-size: 10px;
    }

    .category-content h3 {
        max-width: calc(100% - 58px);
        font-size: 21px;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    .category-arrow {
        right: 20px;
        bottom: 20px;
        width: 39px;
        height: 39px;
    }
}

@media (max-width: 390px) {
    .category-card,
    .category-card-large,
    .category-card-wide,
    .category-right-top .category-card {
        min-height: 215px;
    }

    .category-content {
        padding: 19px;
    }

    .category-content h3 {
        max-width: calc(100% - 52px);
        font-size: 19px;
    }

    .category-arrow {
        right: 17px;
        bottom: 17px;
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}


/* =========================================================
   FEEDBACK RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {

    .parent-feedback-card {
        padding: 29px 24px;
    }

    .testimonial-card {
        padding: 31px 25px 27px;
    }

}


@media (max-width: 767.98px) {

    .parent-feedback-card {
        min-height: 320px;
    }

    .testimonial-card {
        min-height: 290px;
    }

}


@media (max-width: 575.98px) {

    .parent-feedback-carousel,
    .testimonial-carousel {
        margin-top: 34px !important;
    }


    .parent-feedback-carousel .owl-nav,
    .testimonial-carousel .owl-nav {
        left: 6px;
        right: 6px;
    }


    .parent-feedback-carousel .owl-nav button.owl-prev,
    .parent-feedback-carousel .owl-nav button.owl-next,
    .testimonial-carousel .owl-nav button.owl-prev,
    .testimonial-carousel .owl-nav button.owl-next {
        width: 40px;
        height: 40px;
    }


    .parent-feedback-card {
        min-height: auto;

        padding: 27px 22px;
    }


    .parent-feedback-text {
        font-size: 13px;

        line-height: 1.75;
    }


    .testimonial-card {
        min-height: auto;

        padding: 28px 22px 25px;
    }


    .testimonial-card > p {
        font-size: 13px;

        line-height: 1.75;
    }

}



/* =========================================================
   FOOTER RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {

    .fams-footer {
        padding-top: 65px;
    }

    .footer-divider {
        margin-top: 42px;
    }

}


@media (max-width: 767.98px) {

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .footer-bottom-links {
        order: 1;
    }

    .footer-bottom p {
        order: 2;
    }

}


@media (max-width: 575.98px) {

    .fams-footer {
        padding: 55px 0 22px;
    }

    .footer-logo {
        width: 165px;
    }

    .footer-column h4 {
        margin-bottom: 18px;
    }

    .footer-divider {
        margin: 35px 0 20px;
    }

    .footer-bottom-links {
        flex-wrap: wrap;

        gap: 12px 18px;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;

        width: 41px;
        height: 41px;
    }

}


@media (max-width: 390px) {

    .footer-brand p {
        font-size: 12px;
    }

    .footer-social a {
        width: 37px;
        height: 37px;
    }
}

/* =========================================================
   13. RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {

    .hero-content h1 {
        font-size: 56px;
    }

    .hero-brand-visual {
        max-width: 430px;
    }

    .hero-floating-one {
        left: 42px;
    }

    .hero-floating-two {
        right: 32px;
    }
}


@media (max-width: 991.98px) {

    .fams-navbar .nav-link {
        margin: 0;
        padding: 10px 0 !important;
    }

    .fams-navbar .nav-link::after {
        display: none;
    }

    .fams-nav-cta {
        margin-top: 12px;
        margin-bottom: 15px;
    }

    .fams-hero,
    .hero-carousel,
    .hero-carousel .owl-stage-outer,
    .hero-carousel .owl-stage,
    .hero-carousel .owl-item,
    .hero-slide,
    .hero-row {
        min-height: auto;
    }

    .hero-slide {
        align-items: flex-start;
    }

    .hero-container {
        width: 100%;
    }

    .hero-row {
        padding: 45px 0 55px;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 0;
        padding-right: 20px;
    }

    .hero-content h1 {
        max-width: 100%;
        font-size: 46px;
        line-height: 1.08;
    }

    .hero-content p {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.65;
    }

    .hero-brand-visual {
        max-width: 470px;
        margin: 0 auto;
    }

    .hero-floating-card {
        width: 150px;
        max-width: 150px;
        padding: 9px 10px;
    }
    
    .hero-floating-one {
        top: 42px;
        left: 38px;
    }
    .hero-floating-two {
        top: 42px;
        right: 30px;
    }
    
    
    .learning-features {
        padding: 60px 0;
    }

    .about-education-visual {
        margin: 0 auto 25px;
        padding: 0 25px 35px;
    }

    .about-small-card-one {
        top: 52px;
        right: 32px;
    }

    .about-small-card-two {
        left: 32px;
        bottom: 165px;
    }

    .about-education-content {
        max-width: 720px;
        margin: 0 auto;
    }

        .instructor-image-wrap {
        width: 220px;
        height: 220px;
    }

    .enquiry-content {
        min-height: auto;
        padding: 50px 40px;
    }

    .enquiry-form-wrap {
        min-height: auto;
        padding: 50px 40px;
    }
}


@media (max-width: 575.98px) {

    .fams-logo {
        height: 42px;
    }

    .hero-row {
        padding: 45px 0 55px;
    }

    .hero-content {
        margin-bottom: 55px;
        padding-right: 0;
    }

    .hero-content h1 {
        font-size: 41px;
        letter-spacing: -1px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        width: 100%;
    }

    .hero-mini-stats {
        gap: 20px;
    }

    .hero-mini-stats div:not(:last-child)::after {
        right: -10px;
    }

    .hero-brand-visual {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 8px;
        row-gap: 14px;
    }

    .hero-study-card {
        grid-column: 1 / -1;

        width: 100%;
        height: 620px;
        min-height: 620px;
        padding: 22px;

        display: flex;
        flex-direction: column;

        box-sizing: border-box;
    }

    .study-card-top h3 {
        font-size: 20px;
    }

    .study-card-bottom {
        margin-top: auto;
    }

    .hero-floating-card {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        width: 100%;
        min-width: 0;
        max-width: none;
        height: 70px;

        margin: 0;
        padding: 9px 10px;

        display: flex;
        align-items: center;

        box-sizing: border-box;
    }

    .hero-floating-one,
    .hero-floating-two {
        margin: 0;
    }

    .hero-carousel .owl-nav {
        right: 18px;
        bottom: 14px;
    }

    .learning-features {
        padding: 50px 0;
    }

    .learning-feature-card {
        padding: 30px 22px;
    }

    .section-padding {
        padding: 75px 0;
    }

    .about-main-box {
        min-height: 445px;
        padding: 25px;
    }

    .about-logo-ring {
        width: 185px;
        height: 185px;
        padding: 36px;
    }

    .about-learning-stats {
        left: 25px;
        right: 25px;
        bottom: 24px;
    }

    .about-small-card {
        min-width: 145px;
        max-width: 160px;
        gap: 7px;
        padding: 9px 10px;
    }

    .about-small-card i {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

    .about-small-card small {
        font-size: 7.5px;
        line-height: 1.2;
    }

    .about-small-card strong {
        font-size: 9.5px;
        line-height: 1.25;
    }

    .about-small-card-one {
        top: 34px;
        right: 24px;
    }

    .about-small-card-two {
        left: 24px;
        bottom: 135px;
    }

    .about-education-content h2 {
        font-size: 34px;
    }

    .about-check-grid {
        grid-template-columns: 1fr;
    }
.instructor-image-wrap {
        width: 210px;
        height: 210px;
    }

    .instructor-image {
        font-size: 65px;
    }

    .enquiry-content {
        padding: 42px 24px;
    }

    .enquiry-content h2 {
        font-size: 34px;
    }

    .enquiry-form-wrap {
        padding: 42px 24px;
    }

    .enquiry-form-wrap h3 {
        font-size: 28px;
    }

    .enquiry-submit-btn {
        width: 100%;
    }

        .testimonial-card {
        min-height: auto;
        padding: 30px 24px 26px;
    }

    .testimonial-card > p {
        min-height: auto;
    }

    .blog-image {
        height: 220px;
    }

    .blog-content {
        padding: 24px 21px 26px;
    }

    .blog-content h3 {
        font-size: 20px;
    }
}


@media (max-width: 390px) {

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-mini-stats {
        flex-wrap: wrap;
    }

    .hero-mini-stats div::after {
        display: none;
    }

    .focus-grid {
        grid-template-columns: 1fr;
    }

    .study-course-meta {
        flex-direction: column;
    }

    .hero-floating-card {
        width: 100%;
        margin: 0;
    }
}



@media (max-width: 1199.98px) {
    .courses-final-hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
        gap: 45px;
    }

    .courses-final-hero-content h1 {
        font-size: 53px;
    }
}

@media (max-width: 991.98px) {
    .courses-final-hero-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        min-height: auto;
    }

    .courses-final-hero-content {
        padding: 60px 0 25px;
    }

    .courses-final-hero-visual {
        padding-bottom: 60px;
    }

    .courses-final-hero-card {
        max-width: 100%;
    }

    .courses-final-filter-shell,
    .courses-final-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .courses-final-filters {
        justify-content: flex-start;
        width: 100%;
    }

    .courses-final-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .courses-final-hero-content h1 {
        font-size: 43px;
        letter-spacing: -.7px;
    }

    .courses-final-grid {
        grid-template-columns: 1fr;
    }

    .courses-final-body h3 {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .courses-final-hero-grid {
        display: block;
    }

    .courses-final-hero-content {
        padding: 48px 0 50px;
    }

    .courses-final-hero-content h1 {
        font-size: 36px;
        line-height: 1.1;
    }

    .courses-final-hero-content p {
        font-size: 13px;
        line-height: 1.7;
    }

    .courses-final-hero-visual {
        display: none;
    }

    .courses-final-filter-shell {
        gap: 18px;
        padding: 22px 0;
    }

    .courses-final-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .courses-final-filter {
        flex: 0 0 auto;
    }

    .courses-final-grid {
        gap: 18px;
        margin-top: 35px;
    }

    .courses-final-image {
        height: 225px;
    }

    .courses-final-body {
        padding: 23px 20px;
    }

    .courses-final-card-footer {
        grid-template-columns: 1fr;
    }

    .courses-final-card-footer span:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid var(--fams-border);
    }

    .courses-final-image-actions {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .courses-final-cta {
        padding-bottom: 55px;
    }

    .courses-final-cta-box {
        padding: 32px 24px;
    }

    .courses-final-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .courses-final-cta-primary,
    .courses-final-cta-secondary {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .courses-final-hero-content h1 {
        font-size: 32px;
    }

    .courses-final-image {
        height: 215px;
    }

    .courses-final-image-actions a {
        padding: 8px 10px;
        font-size: 9px;
    }
}


/* =========================================================
   ABOUT PAGE RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {
    .about-page-visual {
        min-height: 470px;
    }

    .about-page-visual-main {
        right: 35px;
    }

    .about-floating-card {
        min-width: 185px;
    }
}

@media (max-width: 991.98px) {
    .about-page-visual {
        min-height: 500px;
        max-width: 650px;
        margin: 0 auto;
    }

    .about-page-visual-main {
        inset: 20px 45px;
    }

    .about-floating-one {
        top: 50px;
        right: 60px;
    }

    .about-floating-two {
        left: 60px;
        right: auto;
        bottom: 50px;
    }

    .about-highlight-grid {
        margin-top: 20px;
    }

    .about-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .about-page-visual {
        min-height: 430px;
    }

    .about-page-visual-main {
        inset: 15px 25px;
    }

    .about-logo-circle {
        width: 185px;
        height: 185px;
    }

    .about-logo-circle img {
        width: 150px;
    }

    .about-floating-card {
        min-width: 160px;
        max-width: 175px;
        padding: 9px 11px;
    }

    .about-floating-one {
        top: 36px;
        right: 40px;
    }

    .about-floating-two {
        left: 40px;
        right: auto;
        bottom: 36px;
    }

    .about-check-grid {
        grid-template-columns: 1fr;
    }

    .about-highlight-grid {
        grid-template-columns: 1fr;
    }

    .about-cta {
        padding-bottom: 70px;
    }

    .about-cta-box {
        padding: 38px 32px;
    }
}

@media (max-width: 575.98px) {
    .about-page-visual {
        min-height: 390px;
    }

    .about-page-visual-main {
        inset: 10px 15px 55px;
    }

    .about-logo-circle {
        width: 155px;
        height: 155px;
    }

    .about-logo-circle img {
        width: 125px;
    }

    .about-floating-card {
        min-width: 150px;
        max-width: 165px;
        gap: 8px;
        padding: 9px 10px;
    }

    .about-floating-one {
        top: 28px;
        right: 28px;
    }

    .about-floating-two {
        left: 28px;
        right: auto;
        bottom: 68px;
    }

    .about-floating-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .about-floating-card small {
        font-size: 8px;
    }

    .about-floating-card strong {
        font-size: 10px;
    }

    .about-page-content h2 {
        font-size: 35px;
    }

    .about-value-card {
        min-height: auto;
        padding: 29px 24px;
    }

    .about-highlight-item {
        min-height: auto;
        padding: 22px 19px;
    }

    .about-cta {
        padding-bottom: 55px;
    }

    .about-cta-box {
        padding: 32px 24px;
    }

    .about-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .about-cta-primary,
    .about-cta-secondary {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .about-page-visual {
        min-height: 360px;
    }

    .about-floating-card {
        min-width: 138px;
        max-width: 150px;
    }

    .about-floating-one {
        top: 22px;
        right: 20px;
    }

    .about-floating-two {
        left: 20px;
        right: auto;
        bottom: 65px;
    }

    .about-page-content h2 {
        font-size: 31px;
    }
}


/* =========================================================
   ABOUT INNER HERO RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {

    .about-hero-grid {
        grid-template-columns:
            minmax(0, 1.15fr)
            minmax(320px, .85fr);
    }

    .about-inner-hero h1 {
        font-size: 49px;
    }

    .about-hero-message {
        left: 0;
        width: 200px;

        font-size: 20px;
    }

    .about-hero-message strong {
        font-size: 23px;
    }

    .about-building-brand {
        right: 5%;
    }

}


@media (max-width: 991.98px) {

    .about-inner-hero {
        min-height: 345px;
    }

    .about-hero-grid {
        grid-template-columns:
            minmax(0, 1.2fr)
            minmax(260px, .8fr);

        min-height: 345px;
    }

    .about-inner-hero-content {
        padding:
            48px
            25px
            50px
            0;
    }

    .about-inner-hero h1 {
        font-size: 43px;
    }

    .about-inner-hero p {
        font-size: 14px;
    }

    .about-hero-visual {
        min-height: 345px;
    }

    .about-hero-message {
        display: none;
    }

    .about-building-brand {
        top: 39%;

        width: 150px;
    }

    .about-building-brand img {
        width: 115px;
    }

}


@media (max-width: 767.98px) {

    .about-inner-hero {
        min-height: auto;
    }

    .about-hero-grid {
        display: block;

        min-height: auto;
    }

    .about-inner-hero-content {
        min-height: 315px;

        padding: 48px 0 50px;
    }

    .about-inner-hero h1 {
        font-size: 40px;

        line-height: 1.1;
    }

    .about-inner-hero p {
        max-width: 580px;
    }

    .about-hero-visual {
        position: absolute;

        inset: 0;

        min-height: 100%;

        opacity: .24;
    }

    .about-hero-visual::before {
        background:
            linear-gradient(
                90deg,
                rgba(0, 22, 61, .96),
                rgba(1, 33, 90, .80),
                rgba(1, 33, 90, .55)
            );
    }

    .about-hero-building {
        width: 70%;

        opacity: .75;
    }

    .about-building-brand {
        display: none;
    }

}


@media (max-width: 575.98px) {

    .about-inner-hero-content {
        min-height: 290px;

        padding: 42px 0 44px;
    }

    .about-inner-label {
        margin-bottom: 13px;

        font-size: 10px;
    }

    .about-inner-label::before {
        width: 27px;
    }

    .about-inner-hero h1 {
        margin-bottom: 15px;

        font-size: 35px;

        letter-spacing: -.4px;
    }

    .about-inner-hero p {
        margin-bottom: 19px;

        font-size: 13px;

        line-height: 1.65;
    }

    .about-hero-building {
        right: -60px;

        width: 82%;
    }

}


@media (max-width: 390px) {

    .about-inner-hero-content {
        min-height: 275px;
    }

    .about-inner-hero h1 {
        font-size: 31px;
    }

    .about-breadcrumb a,
    .about-breadcrumb span {
        font-size: 11px;
    }

}


/* =========================================================
   FAMS BRANDING RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {

    :root {
        --fams-navbar-height: 76px;
    }

    .fams-logo {
        width: 108px;
    }

}


@media (max-width: 575.98px) {

    :root {
        --fams-navbar-height: 72px;
    }

    .fams-logo {
        width: 94px;
    }

}



@media (max-width: 767.98px) {

    .contact-final-details {
        padding-bottom: 45px;
    }

}


@media (max-width: 575.98px) {

    .contact-detail-card {
        padding: 20px;
    }

    .contact-detail-icon {
        width: 46px;
        height: 46px;

        flex-basis: 46px;
    }

}

@media (max-width: 1199.98px) {
    .contact-final-hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr);
        gap: 45px;
    }

    .contact-final-hero-content h1 {
        font-size: 52px;
    }

    .contact-final-form-wrap {
        padding: 50px 40px;
    }
}

@media (max-width: 991.98px) {
    .contact-final-hero-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: auto;
    }

    .contact-final-hero-content {
        padding: 58px 0 25px;
    }

    .contact-final-hero-visual {
        padding-bottom: 60px;
    }

    .contact-final-hero-card {
        max-width: 100%;
    }

    .contact-final-options-grid,
    .contact-final-shell {
        grid-template-columns: 1fr;
    }

    .contact-final-info {
        min-height: auto;
    }

    .contact-final-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .contact-final-hero-content h1 {
        font-size: 43px;
        letter-spacing: -.7px;
    }

    .contact-final-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-final-field-full {
        grid-column: auto;
    }
}

@media (max-width: 575.98px) {
    .contact-final-hero-content {
        padding: 48px 0 50px;
    }

    .contact-final-hero-content h1 {
        font-size: 36px;
        line-height: 1.1;
    }

    .contact-final-hero-content p {
        font-size: 13px;
        line-height: 1.7;
    }

    .contact-final-hero-visual {
        display: none;
    }

    .contact-final-options {
        padding: 25px 0;
    }

    .contact-final-option {
        padding: 21px 18px;
    }

    .contact-final-info,
    .contact-final-form-wrap {
        padding: 40px 24px;
    }

    .contact-final-form-wrap h2 {
        font-size: 29px;
    }

    .contact-final-submit,
    .contact-final-cta-btn {
        width: 100%;
    }

    .contact-final-faq-item summary {
        font-size: 14px;
        line-height: 1.4;
    }

    .contact-final-cta {
        padding-bottom: 55px;
    }

    .contact-final-cta-box {
        padding: 32px 24px;
    }
}

@media (max-width: 390px) {
    .contact-final-hero-content h1 {
        font-size: 32px;
    }

    .contact-final-info,
    .contact-final-form-wrap {
        padding: 35px 20px;
    }

    .contact-final-info-item {
        padding: 13px;
    }
}

/* Homepage About visual: keep learning badges fully inside on very small screens */
@media (max-width: 390px) {
    .about-small-card {
        min-width: 132px;
        max-width: 145px;
        padding: 8px 9px;
    }

    .about-small-card-one {
        top: 28px;
        right: 20px;
    }

    .about-small-card-two {
        left: 20px;
        bottom: 128px;
    }
}

/* =========================================================
   14. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 767.98px) {

    .simple-page-hero {
        padding: 65px 0 60px;
    }

    .simple-content-card {
        padding: 35px 28px;
    }

}


@media (max-width: 575.98px) {

    .simple-page-hero h1 {
        font-size: 34px;
    }

    .simple-content-card {
        padding: 30px 21px;
    }

    .simple-content-card h2 {
        font-size: 21px;
    }

}

/* =========================================================
   DYNAMIC SUBJECT RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {

    .subject-auto-card,
    .subject-extra-card {
        flex: 1 1 calc(50% - 9px);
        min-height: 260px;
    }
}

@media (max-width: 575.98px) {

    .subject-auto-grid,
    .subject-extra-grid {
        gap: 12px;
    }

    .subject-auto-card,
    .subject-extra-card {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        min-height: 235px;
    }
}
