/* Base Styles */
.hero-image {
    margin-top: 1rem;
}

.packages-section {
    padding: 40px 0;
}

.appointment-form,
.package-card {
    padding: 20px;
}

.test-cards-row>[class*="col-"] {
    flex: 0 0 calc((100% - 1rem) / 2);
    margin-right: .5rem;
}

.card-value {
    white-space: nowrap;
}

.test-card .btn-small {
    white-space: nowrap;
    flex-shrink: 0;
}

.information-section .row {
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ----------------------------------------------------------
   Small phones — very small screens (≤360px)
   ---------------------------------------------------------- */
@media (max-width: 320px) {
    .time-period-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stack-wrapper {
        height: 220px;
    }

    .time-period-tabs .btn {
        flex: 1 1 100%;
        justify-content: center;
        padding: 0.5rem 0.75rem;
    }

    .progress-steps {
        gap: 0.5rem;
    }

}

@media (min-width: 321px) {
    .grid-buttons {
        grid-template-columns: repeat(2, 1fr);

    }
}

@media (max-width: 360px) {
    .hero-overlay {
        width: clamp(260px, 90vw, 371px);
    }

    .stack-wrapper {
        height: 180px;
    }

    .info-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 0.625rem 0;
    }

    .fit-top-sticky-bar {
        position: fixed;
        top: 46px;
    }

    .chatbot-trigger-center {
        bottom: 3.5rem;

    }

}

/* Device: Mobile — Small phones (361px to 575.98px) */
@media (min-width: 361px) and (max-width: 575.98px) {
    .chatbot-trigger-center {
        bottom: 4rem;
    }

    .fit-top-sticky-bar {
        position: fixed;
        top: 46px;
    }

    .stack-wrapper {
        height: 180px;
    }

    .result-row {
        grid-template-columns: 1fr;
    }

    .comparison-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .fit-top-cta {
        justify-content: space-between;
    }

    .info-box {
        width: 100%;
    }

    .info-grid {
        gap: 20px 10px;
    }

    .director-sidebar {
        width: 90%;
    }

    .director-nav-item {
        padding: 10px;
    }


    .director-submenu-item {
        padding: 6px 10px;
    }

    .sidebar-toggle-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .director-sidebar {
        width: 85%;
    }

    .director-content {
        padding: 14px;
    }

    .benefits-section {
        height: 1575px;
    }

    .wch-img {
        max-height: 180px;

    }

    .card-item {
        height: auto !important;
    }

    .card-overlay {
        position: relative;
        height: auto !important;
        overflow: visible !important;
        padding: 16px;
    }

    .card-content {
        position: relative;
        height: auto !important;
        overflow: visible !important;
    }

    .card-title-vertical {
        position: relative;
        writing-mode: horizontal-tb;
        transform: none;
        margin-bottom: 12px;
        opacity: 0.7;
    }

    .info-green-box {
        padding: 14px;
        margin-top: 16px;
    }

    .info-green-box .d-flex {

        gap: 6px;
    }

    .info-green-box .contact-icon {
        min-width: 28px;
    }

    .info-green-box div {
        word-break: break-word;
        line-height: 1.4;
    }

    .result-row {
        grid-template-columns: 1fr;
    }

    .fit-top-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .fit-top-info {
        flex: 1;
        min-width: 0;
    }

    .fit-test-name {
        font-size: 14px;
        /* reduce title size */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        /* prevent wrapping */
    }

    .fit-top-cta {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .fit-top-cta .fs-5 {
        font-size: 14px !important;
    }

    .fit-top-cta .text-muted {
        font-size: 12px;
    }

    .btn-custom {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
}


/* Device: Mobile — Large phones (up to 650px) */
@media (max-width: 650px) {
    .btn-custom {
        padding: 0.6rem 0.7rem;
    }

    .timeline-content {
        padding-left: 1rem;
    }

    .button-container .filters {
        justify-content: flex-start;
    }

    .button-container .btn {
        padding: 0.3rem 0.2rem;
    }

    .about-hero-section {
        min-height: 15.625rem;
    }

    .hero-overlay {
        margin: clamp(-30.9375rem, -5vw, -10rem) auto 1rem;
        width: clamp(15.625rem, 25vw, 22.8125rem);
    }

    .member-progress-steps .arrow {
        display: block;
    }

    main.site-main,
    .blog-layout {
        padding-top: calc(1.125rem + 3.125rem) !important;
    }

    .metbuddy-wrapper {
        width: 4.375rem;
        height: 4.375rem;
    }

    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .scroll-arrow {
        width: 1.5625rem !important;
        height: 1.5625rem !important;
    }

    .offcanvas-logo img {
        max-height: 4.375rem;
        margin-left: 7rem;
        width: 70%;
    }

    .header .navbar-brand {
        margin: clamp(-4rem, -2vw, -2.8rem);
    }

    .cart-dropdown {
        right: -0.75rem;
        width: 16.25rem;
    }

    .card-grid {
        grid-template-columns: 1fr !important;
    }

    .doctor-circle {
        width: 17.5rem;
        height: 17.5rem;
    }

    .test-item {
        flex-direction: column;
    }

    .test-action {
        border-top: 1px solid #f0f0f0;
        padding-top: 0.5rem;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .test-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .hero-carousel {
        padding: 2.5rem 1.25rem 6.25rem;
    }

    .cta-banner-img {
        max-width: 100%;
    }

    .info-box {
        padding: 0.375rem 0.5rem;
        gap: 0.5rem;
    }

    .info-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .info-icon img {
        width: 1.5rem;
        height: 1.5rem;
    }

    #section-included .container {
        padding: 1rem !important;
    }

    #section-included {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .test-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .bottom-section {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px;
        margin-top: 0;
        padding: 25px;
    }

    .bottom-section img,
    .test-container img {
        width: 35%;
        height: auto;
    }

    .hero-responsive-img {
        max-height: 180px;
    }

    .story-frame {
        width: 90vw;
        height: 85vh;
    }

    .progress-wrapper {
        left: 5%;
        width: 90%;
    }

    .nav-left {
        left: 10px;
    }

    .nav-right {
        right: 10px;
    }

    .custom-breadcrumb {
        gap: .3rem;
    }
}

/* Device: Mobile — Landscape orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-text {
        margin-top: clamp(100px, 15vh, 160px);
    }

    .hero-section {
        padding: 20px 0;
    }

    .help-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .help-image {
        margin-top: 1.5rem;
    }

    .popular-cities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .health-conditions-grid {
        grid-template-columns: 1fr;
    }
}

/* Device: Mobile — Small tablets / phones (up to 767.98px) */
@media (max-width: 767.98px) {
    .packages-header {
        align-items: flex-start;
    }

    .fixed-cta-bar {
        display: none !important;
    }

    .filters {
        gap: .5rem;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    .filters .btn {
        flex: 0 0 auto;
    }

    .pathology-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }

    .video-main-card {
        height: 200px;
    }

    .section-spacing {
        padding: 15px 0;
    }

    .btn.btn-add-to-cart {
        margin-bottom: .5rem;
        display: inline-block;
        width: auto;
    }

    .col-lg-6+.col-lg-6 {
        margin-top: 1rem;
    }

    .video-swiper .swiper-wrapper,
    .awards-swiper .swiper-wrapper {
        flex-wrap: nowrap !important;
    }

    .video-swiper .swiper-slide,
    .awards-swiper .swiper-slide {
        flex-shrink: 0;
        width: 220px;
        margin-right: 16px;
    }

    .videos-section .container,
    .awards-section .container {
        padding: 0 .5rem;
    }

    .test-cards-row>[class*="col-"] {
        width: 280px;
    }

    .newsletter-section form {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-section input {
        width: 100%;
        margin-bottom: .5rem;
    }

    .newsletter-section button {
        width: 100%;
    }

    .footer-bottom {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .footer-bottom .legal-links {
        text-align: left !important;
    }

    .main.site-main,
    .main.blog-layout {
        padding-top: calc(20px + 50px);
    }

    #metbuddy-floating {
        bottom: 7rem !important;
        right: 1rem;
    }

    .accreditation-section .col-12.col-md {
        justify-content: flex-start !important;
    }

    .accreditation-section .d-flex.flex-nowrap {
        justify-content: flex-start !important;
    }

    .accreditation-logo {
        max-width: 70px;
    }

    .custom-dropdown .dropdown-menu {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .custom-dropdown .dropdown-menu li:nth-child(n+9):not(.dropdown-footer) {
        display: none;
    }

    .phlebo-details-card {
        flex-direction: column;
        align-items: stretch;
    }

    .phlebo-actions {
        justify-content: space-between;
        width: 100%;
    }



    .address-cards {
        margin-top: clamp(-9rem, 100vw, 0rem);
    }

    .progress-steps {
        align-items: flex-start;
        gap: 1.5rem;
    }

    .progress-step:not(:last-child)::after {
        top: 50%;
        left: 100%;
        width: 50px;
        right: auto;
        border-top: none;
    }

    .progress-step {
        justify-content: flex-start;
    }

    .cart-dropdown {
        width: 90vw;
        right: 5%;
        top: calc(100% + 8px);
    }

    .about-hero-section {
        min-height: 300px;
    }

    .arrow-bg {
        background: transparent;
    }

    .custom-accordion .accordion-button {
        padding: clamp(.5rem, 1.5vw, 1rem) clamp(.6rem, 2vw, .7rem);
        white-space: normal;
        padding-right: 2.5rem;
    }

    .scroll-arrows-header {
        display: flex !important;
        gap: .5rem !important;
    }

    .scroll-arrow {
        width: 30px;
        height: 30px;
    }

    .scroll-arrow::before {
        content: '';
        position: absolute;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .button-container {
        padding: .5rem 0;
        align-self: flex-start;
        justify-content: flex-start;
        margin-left: 0;
    }

    .row.align-items-center.g-2 {
        text-align: center;
    }

    .row.align-items-center.g-2 .col-12 {
        margin-bottom: .5rem;
    }

    .d-flex.flex-wrap.justify-content-md-end.gap-2 {
        flex-direction: column;
        align-items: stretch;
        gap: .5rem;
    }

    .d-flex.flex-wrap select,
    .d-flex.flex-wrap .position-relative {
        width: 100% !important;
    }

    .test-action {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .test-action .extra-text {
        width: 100%;
        margin-bottom: .4rem;
        text-align: center;
    }

    .test-action .price-btn-row {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
    }

    .test-action .btn-custom {
        margin-top: 0;
    }

    .app-btns {
        flex-wrap: nowrap !important;
        justify-content: space-between;
        gap: .6rem;
    }

    .app-btns .btn-custom-sm {
        flex: 1 1 auto;
        min-width: 48%;
        padding: .5rem .6rem;
        justify-content: center;
    }

    .app-btns .icon-svg {
        width: 18px;
        height: 18px;
    }

}

/* Device: Mobile — Up to 768px */
@media (max-width: 768px) {
    .member-progress-steps {
        width: 100%;
        padding: clamp(7px, 2vw, 10px);
    }

    .pdf-toolbar {
        gap: 0px;
    }

    .toolbar-left,
    .toolbar-center,
    .toolbar-right {
        gap: 0px;
    }

    .pdf-page {
        padding: 20px;
    }

    .toolbar-center {
        position: static;
        transform: none;
        justify-content: flex-start;
    }

    .dark-gradient-background .col-md-5 img {
        width: 200px !important;
        object-fit: cover;
    }

    .fellowship-cards {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }

    .card-item {
        /*       min-height: 120px; */
        flex: none !important;
    }

    /* 
    .card-item.active {
        min-height: 700px;
    } */

    .card-title-vertical {
        writing-mode: horizontal-tb;
        transform: none;
    }

    button.sidebar-toggle-btn {
        display: flex !important;
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 100 !important;
    }

    .requirements-grid {
        grid-template-columns: 1fr !important;
    }

    .requirement-step {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .requirement-step:last-child {
        border-bottom: none !important;
    }

    .container-card {
        padding: 20px;
    }

    .test-bar-container {
        gap: 6px;
        flex-wrap: wrap;
    }

    .test-step,
    .test-step:first-child,
    .test-step:last-child {
        clip-path: none;
        border-radius: 6px;
        height: 42px;
        padding: 5px;
    }

    .gauge-img-wrapper {
        width: 100%;
        max-width: 320px;
    }

    .container-card {
        padding: 20px;
    }

    .test-bar-container {
        gap: 6px;
        flex-wrap: wrap;
    }

    .bmi-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .bmi-btn {
        margin-left: 0;
        width: 100%;
    }

    .bmi-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-wrapper {
        gap: 10px;
    }

    .pagination-numbers {
        justify-content: flex-start;
    }

    form .row.g-3>.col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .time-slots-grid {

        grid-template-columns: repeat(auto-fill, minmax(150px, 2fr));

    }

    .progress-step::after {
        display: none;
    }


    .progress-steps {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .progress-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .cta-banner-img {

        max-width: 350px;
    }

    .fit-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Small laptops: 1024px to 1366px */
@media (min-width: 1024px) and (max-width: 1366px) {
    .hero-text {
        margin-top: 0px;

    }
}

/* Device: Tablet — Tablets and small laptops (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .test-container {
        grid-template-columns: 320px 1fr;
    }

    .logo-brand img {
        max-height: 6rem;
    }

    .bottom-section {
        grid-template-columns: 1fr 320px;
    }

    .bottom-section img,
    .test-container img {
        width: 80%;
        height: auto;
    }

    .info-box {
        width: 100%;
    }

    .info-grid {
        gap: 20px 10px;
    }

    .stories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dark-gradient-background .col-md-5 img {
        width: 250px !important;
        height: 250px !important;
        object-fit: cover;
    }

    .card-item {
        flex: 0 0 120px;

        transition: flex-basis 0.3s ease;
    }

    .card-item.active {
        flex: 0 0 400px;
    }

    .hero-text {
        margin-top: 0px;

    }

    .progress-steps {
        gap: 35px;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    .hero-overlay {
        width: clamp(280px, 30vw, 350px);
    }

    .chatbot-trigger-center {
        bottom: 5rem;
    }

    .timeline-wrapper {
        padding: 1rem 2rem;
    }

    main.site-main,
    main.blog-layout {
        padding-top: calc(30px + 40px);
    }

    .offcanvas-logo img {
        max-height: 6rem;
        margin-left: 8.3125rem;
    }

    .address-cards {
        margin-top: clamp(-9rem, 100vw, 0rem);
    }

    .city-modal .popular-cities div {
        flex: 1 1 calc(27% - 1rem);
    }

    .fixed-cta-bar {
        display: none !important;
    }

    .fixed-cta-bar .container {
        flex-direction: row;
        gap: 1rem;
    }

    .fixed-cta-bar .cta-text {
        margin-bottom: 0;
    }

    .banner-background .row {
        flex-wrap: nowrap;
    }

    .banner-background .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .offcanvas-logo img {
        margin-left: 20px;
        max-width: 180px;
    }

    .header .navbar-brand {
        margin: clamp(-1rem, -5vw, -4rem);
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .banner-img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: cover;
    }

    .custom-dropdown .dropdown-menu {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }

    .custom-dropdown .dropdown-menu li:nth-child(n+9):not(.dropdown-footer) {
        display: none;
    }

    .price-btn-row .test-price {
        margin-right: 8px;
    }
}

@media (min-width: 901px) and (max-width: 1024px) {
    .address-cards {
        margin-top: clamp(-9rem, 100vw, 0rem);
    }

    .progress-steps {
        gap: 56px;
    }

    .member-sidebar-sticky {
        bottom: 0px;
    }

    .progress-step:not(:last-child)::after {
        right: -57px;
        top: 50%;
        width: 56px;
    }

    .offcanvas-logo img {
        max-height: 7rem;
        margin-left: 8rem;
    }

    .cards-row .card-wrapper {
        flex: 0 0 30%;
    }

    .banner-img {
        width: 100%;
        max-width: 900px;
    }

    .breadcrumb-container {
        padding: 0.7rem 0em;
    }
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    main.site-main,
    .main.blog-layout {
        padding-top: calc(20px + 50px);
    }

    .doctor-circle {
        width: 350px;
        height: 350px;
    }

    .search-card {
        max-width: 100%;
        margin: -54px auto 40px;
    }

    .tabs-wrapper {
        margin: -23px auto 20px;
    }

    #cartIconMobile {
        background-color: #ffffff;
    }

    #cartIconMobile img {
        width: 24px;
    }

    .search-btn {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .member-progress-steps {
        position: relative;
        display: flex;
        align-items: center;
    }

    .fit-page-grid {
        grid-template-columns: 1fr;
    }

    .fit-left,
    .fit-right {
        width: 100%;
    }

    .fit-tabs-sticky {
        position: sticky;
        top: 0;
        z-index: 100;
        background-color: #fff;
        width: 100%;
        left: 0;
    }

    .fit-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-radius: 0px !important;
        width: 100%;
        padding: 8px 14px;
    }

    .fit-tabs a {
        flex-shrink: 0;
        padding: 8px 14px;
        white-space: nowrap;
    }

    .progress-steps-wrapper {
        overflow: hidden;
        flex: 1;
    }

    .progress-steps {
        transition: transform 0.3s ease;
    }

    .progress-step {
        text-align: center;
    }

    .arrow {
        background: none;
        border: none;
        cursor: pointer;
    }

    .side-scroll {
        max-height: none !important;
        overflow: visible !important;
    }

    .position-sticky {
        position: relative !important;
    }

    .overlap-section {
        margin-top: 0;

    }

    .offer-section {
        padding: 1rem;
    }

    .benefits-section {
        height: 1510px;
    }
}

@media (max-width: 991.98px) {
    .sub-nav {
        display: none !important;
    }

    .member-progress-steps {
        width: 100%;
    }

    #metbuddy-floating {
        bottom: 2rem;
    }

    .member-sidebar-sticky {
        top: 10px;
    }

    .preactption-modal {
        max-width: 95% !important;
        margin: 0 10px;
    }

    .cta-vector {
        display: none !important;
    }
}

@media (max-width: 992px) {
    body {
        padding-bottom: 30px;
    }

    .fit-tabs-sticky {
        width: 100%;

    }

    .service-card-stack.active {
        transform: translateX(-50%) translateY(0) scale(1);
        z-index: 100;
    }

    .leader-img {
        width: 150px;
    }

    .timeline-year.right {
        right: 0;
    }

    .timeline-year.left {
        left: 0;
    }

    .values-triangle {
        width: 300px;
        height: 280px;
    }

    .vt-center {
        width: 180px;
        height: 180px;
        border-width: 6px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -55%);
    }

    .vt-left {
        top: 45px;
        left: -8px;
        flex-direction: row;
        gap: 6px;
    }

    .vt-right {
        top: 45px;
        right: -8px;
        flex-direction: row;
        gap: 6px;
    }

    .vt-bottom {
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        gap: 4px;
    }

    .vt-icon-wrap {
        width: 70px;
        height: 70px;
    }

    .vt-icon-inner {
        width: 50px;
        height: 50px;
        top: 8px;
        left: 8px;
    }

    .vt-icon-inner img {
        width: 30px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metbuddy-wrapper {
        width: 90px;
        height: 90px;
    }

    .hero-responsive-img {
        max-height: 300px;
    }

    .details-card,
    .overview-card {
        padding: 20px;
    }

    .director-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .director-sidebar-toggle {
        display: inline-block;
        margin-bottom: 6px;
    }

    .director-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-110%);
        width: 320px;
        z-index: 9999;
        max-height: 100vh;
    }

    .director-sidebar.open {
        transform: translateX(0);
    }

    .director-sidebar .close-btn {
        display: block;
    }

    .director-content {
        padding: 18px;
        max-height: none;
        width: 100%;
    }

    /* backdrop */
    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        display: none;
        z-index: 9998;
    }

    .sidebar-backdrop.show {
        display: block;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .left-section,
    .right-section {
        flex: 1 1 100%;
    }

}


@media (min-width: 992px) {
    .custom-col {
        width: 50%;
        flex: 0 0 50%;
    }

    /* .custom-accordion {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 24px;
    }
 */
    .test-accordion {
        grid-template-columns: repeat(1, 1fr);
    }

    .custom-accordion .accordion-item {
        width: 100%;
    }

    .pdf-sidebar.active~.pdf-wrapper .pdf-container {
        margin-left: 260px;
    }

    .readmore-text {
        display: block !important;
    }

    #cartIconDesktop {
        display: block !important;
    }

    .blog-detail-section .row {
        align-items: flex-start;
    }

    .col-lg-5.order-1.order-lg-2,
    .col-lg-4.order-1.order-lg-2 {
        position: sticky;
        top: 60px;
        align-self: flex-start;
        z-index: 100;
    }

    .position-sticky {
        position: relative !important;
    }

    .side-scroll {
        max-height: none !important;
        overflow: visible !important;
    }

    .most-viewed-news {
        margin-top: 1.5rem;
    }

    .col-lg-8.order-2.order-lg-1,
    .col-lg-7 {
        z-index: 1;
    }

    .grid-buttons {
        grid-template-columns: repeat(3, 1fr);

    }
}

@media (min-width: 992px) and (max-width: 1100px) {
    .sub-nav .btn-custom {
        padding: .3rem !important;
    }

    .progress-steps {
        display: flex !important;
        transform: none !important;
    }

    .arrow {
        display: none;
    }

    #cartIconMobile img,
    #cartIconDesktop img {
        width: 22px;
    }

    .cart-badge {
        bottom: 0.9rem;
    }

    .sub-nav .container-fluid {
        gap: .3rem !important;
    }

    .sub-nav .nav {
        gap: .2rem !important;
    }

    .custom-dropdown .dropdown-menu {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }

    .custom-dropdown .dropdown-menu li:nth-child(n+9):not(.dropdown-footer) {
        display: none;
    }
}

@media (min-width: 1024px) {
    .view-all-item {
        grid-column: -2;
        margin-top: 1rem;
    }

    .view-all-item a {
        width: 100%;
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    /*   .hero-overlay {
        width: clamp(220px, 5vw, 300px);
    } */

    .icon-circle {
        width: 30px;
        height: 30px;
    }

    .sub-nav img.icon-svg {
        width: 15px;
        height: 15px;
    }

    .sub-nav ul.nav {
        gap: .25rem;
    }

    .fellowship-cards {
        height: 500px;
    }

    .sub-nav .nav-link {

        padding: 0.4rem 0.3rem !important;
    }


    .sub-nav .gap-2 {
        gap: 0.25rem !important;
    }

    .sub-nav .nav-link span {
        display: inline;
    }

    .custom-padding {
        padding: 0.2rem !important;
    }

    .nav-icon {
        width: 15px;
        height: 15px;
    }
}

@media (min-width: 1100px) and (max-width: 1199px) {
    .sub-nav .nav-link {
        padding: .25rem .4rem !important;
    }

    .sub-nav .container-fluid {
        gap: .4rem !important;
    }

    .sub-nav .nav {
        gap: .3rem !important;
    }

    .sub-nav .btn-custom {
        padding: .4rem .5rem !important;
    }

    #cartIconMobile img,
    #cartIconDesktop img {
        width: 23px;
    }

    .sub-nav {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .sub-nav .nav-link {
        padding: 0.5rem 0.4rem !important;
        white-space: nowrap;
    }

    .sub-nav .gap-2 {
        gap: 0.3rem !important;
    }


    .sub-nav .nav-link img {
        width: 16px !important;
        height: 16px !important;
    }


    .sub-nav .fa-chevron-down {
        margin-left: 0.25rem !important;
    }


    .sub-nav .btn-custom-md {
        padding: 0.4rem 0.6rem !important;
    }



    .cart-badge {
        position: absolute;
        bottom: 1.5rem;
    }

    .sub-nav #cartIconDesktop img {
        width: 28px !important;
        height: 28px !important;
    }


    .sub-nav .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

}

@media (max-width: 1199.98px) {
    .test-cards-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .5rem;
    }

    .top-nav .contact-info {
        flex-direction: row;
    }

    .test-cards-row .col-lg-3,
    .test-cards-row .col-md-6 {
        flex: 0 0 auto;
        width: 300px;
    }

    .test-cards-row::-webkit-scrollbar {
        height: 6px;
    }

    .test-cards-row::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, .2);
        border-radius: 3px;
    }

    .test-card .btn-small {
        min-width: 120px;
    }

    .custom-dropdown .dropdown-menu {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }

    .progress-step-icon {
        width: 2rem;
        height: 2rem;
    }

    .progress-step:not(:last-child)::after {
        top: 50%;
        right: -38px;
        top: 50%;
        width: 44px;
    }
}

@media (min-width: 1200px) {

    .logo-brand img,
    .offcanvas-logo img {
        max-height: 7rem;
        height: auto;
    }

    .timeline-wrapper {
        padding: 1rem 4rem;
    }

    .custom-dropdown .dropdown-menu {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1300px !important;
    }

    #map {
        height: 1100px;
    }
}

@media (min-width: 1281px) and (max-width: 1399px) {
    /* .hero-overlay {
        width: clamp(240px, 5vw, 305px);
    } */

    .hero-text {
        margin-top: clamp(140px, 20vh, 11rem);
        padding: 1rem;
    }

    .progress-steps {
        gap: 48px;
    }
}

@media (min-width: 1400px) {
    .hero-overlay {
        margin: clamp(-480px, -5vw, -170px) auto 2rem;
        width: clamp(280px, 38vw, 300px);
    }

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1480px !important;
    }
}

@media (min-width: 1920px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1800px !important;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .hero-overlay,
    .logo-brand img,
    .navbar-brand img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .hero-overlay {
        margin: 0 auto 1rem;
        page-break-inside: avoid;
    }

    .sub-nav,
    .offcanvas,
    .btn-custom {
        display: none !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Utility classes */
.filter-scroll {
    overflow-x: auto;
    white-space: nowrap;
}

.filter-scroll .btn {
    white-space: nowrap;
}