@media(max-width: 1700px) {

    html,
    body {
        font-size: 17px;
    }
}

@media(max-width: 1839.98px) {

    .circuit-lines,
    .circuit-dots {
        display: none;
    }
}

@media(max-width: 1400px) {

    html,
    body {
        font-size: 16px;
    }

    .adv-row {
        gap: 5rem;
    }
}

@media(max-width: 1199.98px) {

    html,
    body {
        font-size: 15px;
    }

    .siteBanner>.container-fluid {
        min-height: 28rem;
    }

    .info-section {
        padding-bottom: 4rem;
    }

    .info-box-wrap {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 1.5rem;
        width: 100%;
        padding-bottom: 0;
    }

    .form-wrap {
        width: 100%;
        margin-top: 3rem;
    }

    .learning-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .learning-item:nth-child(2),
    .learning-item:nth-child(3) {
        padding-left: 2.5rem;
    }

    .how-steps {
        grid-template-columns: repeat(4, 1fr);
        column-gap: 1rem;
    }

    .how-step {
        padding-right: 2.5rem;
    }

    .how-step-arrow {
        right: 0.75rem;
    }

    .brochure-section-image {
        width: 55%;
    }

    .alumni-slide-img {
        width: 22rem;
        height: 22rem;
    }

    .apply-section::before {
        left: calc(50% + 15rem);
    }

    .apply-section-image {
        width: 50%;
    }
}

@media(max-width: 991px) {

    .brochure-modal .form-wrap {
        padding: 3.5rem 3rem 3.5rem;
    }

    .brochure-modal-close {
        top: 2rem;
        right: 2rem;
    }

    .thank-banner {
        padding-block: 4rem;
    }

    .thank-banner-content {
        width: 100%;
        padding-right: 0;
        padding-bottom: 3rem;
    }

    .thank-banner-image {
        width: 100%;
    }

    #videoModal .btn-close {
        right: 0;
        top: -2.5rem;
    }

    .siteBanner h1 {
        font-size: 2.8rem;
    }

    .siteBanner h3 {
        font-size: 1.5rem;
    }

    .footer-logos-1,
    .footer-logos-2 {
        height: 1.9rem;
    }

    .about-section-image {
        width: 45%;
    }

    .why-box .why-content-box h3 {
        font-size: 0.9rem;
    }

    .learning-grid {
        grid-template-columns: 1fr;
        row-gap: 2.5rem;
    }

    .learning-item,
    .learning-item:nth-child(2),
    .learning-item:nth-child(3) {
        padding: 0;
    }

    .learning-item:nth-child(n+2)::before {
        display: none;
    }

    .how-steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2.5rem;
    }

    .how-step:nth-child(2) .how-step-arrow {
        display: none;
    }

    .adv-row {
        gap: 2.5rem;
    }

    .alumni-slide-content {
        flex-direction: column;
    }

    .alumni-slide-img {
        width: 20rem;
        height: 20rem;
    }

    .alumni-slide-body {
        width: 100%;
        padding-top: 2.5rem;
    }

    .alumni-quote-mark {
        left: auto;
        right: 0;
        top: -7rem;
        font-size: 12rem;
    }

    .alumni-quote-text {
        padding-left: 0;
    }

    .alumni-slider .splide__arrows {
        margin-top: 2.5rem;
    }

    .fee-row {
        flex-direction: column;
    }

    .fee-content,
    .scholarship-content {
        width: 100%;
        padding-right: 0;
    }

    .scholarship-content {
        padding-top: 2.5rem;
    }
}

@media(max-width: 767px) {

    .siteBanner {
        background-position: 70% bottom;
    }

    .siteBanner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(4, 12, 60, 0.85) 0%, rgba(4, 12, 60, 0.4) 100%);
    }

    .siteBanner>.container-fluid {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .siteBanner h1 {
        font-size: 2.4rem;
    }

    .siteBanner h3 {
        font-size: 1.35rem;
        margin-bottom: 2.5rem;
    }

    .siteHeader .ampba-logo,
    .siteHeader.header-sticky .ampba-logo {
        width: 7.5rem;
        height: 3rem;
        font-size: 1.75rem;
    }

    .siteHeader img {
        height: 3rem;
    }

    .siteSection {
        padding-block: 4rem;
    }

    .info-section {
        padding-top: 3rem;
    }

    .info-box-wrap {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        padding-bottom: 0;
    }

    .form-wrap {
        padding: 2.5rem 1.5rem;
    }

    .about-section-content,
    .about-section-image,
    .apply-section-content,
    .brochure-section-content {
        width: 100%;
    }

    .about-section-points {
        padding-left: 0;
    }

    .why-box {
        width: 100%;
    }

    .class-profile-charts {
        gap: 3rem;
        align-items: center;
    }

    .apply-section {
        padding-bottom: 0;
    }

    .apply-section::before {
        top: auto;
        left: 30%;
        height: 12rem;
    }

    .apply-section-content {
        padding-right: 0;
        padding-bottom: 3rem;
    }

    .apply-section-image {
        width: 100%;
        margin-top: 0;
    }

    .how-section {
        padding-block: 3rem;
    }

    /* Move APPLY NOW below the steps on small screens */
    .how-section .container-fluid {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .how-section-head {
        display: contents !important;
    }

    .how-section-head .siteHeading {
        margin-bottom: 2.4rem !important;
    }

    .how-steps {
        width: 100%;
    }

    .how-section-head .btn-pill {
        order: 1;
        margin-top: 2.5rem;
    }

    .fee-content,
    .scholarship-content {
        width: 100%;
        padding-right: 0;
    }

    .scholarship-content {
        padding-top: 2.5rem;
    }

    .adv-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .adv-rows {
        gap: 2.5rem;
    }

    .brochure-section-content {
        padding-right: 0;
        padding-bottom: 2.5rem;
    }

    .brochure-section-image {
        width: 100%;
    }

    .siteFooter-top .container-fluid {
        gap: 3rem;
    }

    .footer-logos-1,
    .footer-logos-2 {
        max-height: 1.9rem;
        height: auto;
        max-width: 100%;
    }

    .siteFooter-middle .footer-school-name {
        font-size: 1.5rem;
        text-align: center;
    }

    .footer-red .social-links ul {
        justify-content: center;
    }
}

@media(max-width: 575px) {

    .brochure-modal .modal-dialog {
        width: calc(100% - 1.5rem);
        margin-block: 0.75rem;
    }

    .brochure-modal .form-wrap {
        padding: 2.75rem 1.5rem 2.5rem;
    }

    .brochure-modal .form-wrap .siteHeading {
        font-size: 1.6rem;
        margin-bottom: 2rem !important;
    }

    .brochure-modal .form-wrap .row {
        --bs-gutter-y: 1.4rem;
    }

    .brochure-modal-close {
        top: 1rem;
        right: 1rem;
    }

    .brochure-modal .form-check-input-custom {
        width: 1.4rem;
        height: 1.4rem;
    }

    .brochure-modal .btn-submit {
        width: 100%;
    }

    html,
    body {
        font-size: 14px;
    }

    .container-fluid {
        padding: 0 2rem;
    }

    .siteBanner>.container-fluid {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .siteBanner h1 {
        font-size: 2rem;
    }

    .siteBanner h1 br {
        display: none;
    }

    .siteBanner h3 {
        font-size: 1.15rem;
        margin-top: 1.25rem;
        margin-bottom: 2rem;
    }

    .btn-custom {
        font-size: 0.85rem;
    }

    .siteHeader {
        padding-block: 1rem;
    }

    .siteHeader img {
        height: 2.25rem;
    }

    .siteHeader .ampba-logo,
    .siteHeader.header-sticky .ampba-logo {
        width: 5.6rem;
        height: 2.25rem;
        font-size: 1.3rem;
    }

    .siteHeading {
        font-size: 1.6rem;
    }

    .how-steps {
        grid-template-columns: 1fr;
    }

    .how-step-arrow {
        display: none;
    }

    .alumni-slide-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .alumni-quote-text {
        font-size: 1.15rem;
    }

    .rank-card h3 {
        font-size: 5.5rem;
    }

    .thank-banner-content h1 {
        font-size: 3.4rem;
    }

    .thankyoumsg {
        margin-left: 0;
    }

    .footer-red .social-links ul {
        gap: 3rem;
    }
}
