/* mobile + tablet */
@media (max-width: 1023px) {

    .sec-l {
        padding-bottom: 1.5rem !important;
    }

    .sec-r {
        padding-top: 1.5rem !important;
    }

    .navbar, .topbar {
        display: none !important;
    }

    /* .mob-nav {} */

    .mob-nav-con {
        top: 0;
        position: relative !important;
        width: 100%;
        height: var(--mobile-nav);
        background: var(--sand-light);
        transition: 0.5s ease;
        display: flex;
        justify-content: center !important;
        z-index: 999 !important;
    }

    .mob-nav-con.scrolled {
        position: fixed !important;
    }

    .mob-nav-overlay {
        position: fixed;
        width: 100vw;
        height: 87vh;
        transform: translate(-100%, 0);
        display: none;
        transition: 0.8s ease;
        background: rgba(245, 244, 241, 0.8);
        backdrop-filter: blur(12px);
        z-index: 998;
        padding-top: 3rem;
        padding-bottom: var(--mobile-nav);
        overflow-y: scroll;
    }

    .mob-nav-overlay.scrolled {
        top: var(--mobile-nav);
        height: 92vh;
    }

    .mob-nav-overlay .container {
        height: 100% !important;
    }

    .mob-nav button.nav-toggle {
        width: 40px !important;
        height: 40px !important;
        background: transparent;
        border: 3px solid var(--bamboo);
        border-radius: 100px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mob-nav button.nav-toggle i {
        font-size: 25px;
        color: var(--bamboo);
    }

    .mob-nav .mob-nav-inner {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
        height: 100% !important;
    }

    .mob-nav-overlay .user-login {
        display: flex;
        gap: 15px;
        align-items: center;
        text-decoration: none;
        align-self: start;
    }

    .mob-nav-overlay .user-login .icon {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50px;
        flex-shrink: 0;
        background-color: var(--spring-bud-dark);
    }

    .mob-nav-overlay .user-login .icon i {
        color: var(--mist);
        font-size: 22px;
    }

    .mob-nav-overlay .user-login .det {
        color: var(--bamboo);
        font-size: 20px;
        font-weight: 500;
    }

    .mob-nav .nav-links {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        gap: 0px;
        height: fit-content;
        width: 100% !important;
    }

    ul.sub-menu {
        grid-template-columns: repeat(1, 1fr);
    }

    .mob-nav a.nav-link {
        padding: 15px 2px;
        border: none;
        border-bottom: 2px solid var(--sand);
        width: 100% !important;
        border-radius: 0;
    }

    .mob-nav a.nav-link:hover,
    .mob-nav a.active,
    .mob-dropdown.open > a.nav-link {
        background-color: transparent;
        border-color: var(--bamboo);
        color: var(--bamboo);
    }

    .mob-nav a.nav-link:last-child {
        border-bottom: none;
    }

    .mob-dropdown {
        width: 100%;
    }

    .dropdown-btn {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }

    .mob-dropdown.open > a.nav-link {
        border-color: #ffffff00;
    }

    .mob-dropdown .dropdown-btn i {
        transform: rotate(0deg);
        transition: 0.3s ease;
    }

    .mob-dropdown.open .dropdown-btn i {
        transform: rotate(180deg);
    }

    .sub-menu {
        max-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background-color: var(--mist);
        padding: 0 18px;
        margin-bottom: 0;
        border-radius: 10px;
        transition: max-height 0.35s ease;
    }

    .sub-menu a.nav-link {
        border-color: var(--leaf);
    }
    
    .grid-2-sec {
        display: flex;
        flex-direction: column;
        align-items: start;
    }

    .sec-img {
        height: auto;
        aspect-ratio: 4 / 3;
        max-height: 480px;
    }

    .video-img {
        height: auto;
        aspect-ratio: 4 / 3;
        max-height: 480px;
        margin-top: 50px;
        border-radius: 5px;
        overflow: hidden;
    }

    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-side {
        position: static;
    }

}

/* mobile */
@media (max-width: 767px) {

    :root {
        --section-y-pd: 55px;
        --section-x-pd: 0;
    }

    .max-50 {
        width: 100%;
    }

    .grid-5, .grid-4, .grid-3, .grid-2 {
        grid-template-columns: repeat(1, 1fr);
    }

    .brands-track {
        gap: 15px;
        animation-duration: 20s;
    }

    .brands-strip .brand {
        width: 120px;
        height: 80px;
        padding: 8px 12px;
    }

    .brands-group {
        gap: 15px;
    }

    .blog-content h2 {
        font-size: 1.5rem;
    }

    .blog-content p,
    .blog-content li {
        font-size: 17px;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav-item.next {
        text-align: left;
    }

    .post-nav-item.next .dir {
        justify-content: flex-start;
    }
    
    .video-play {
        --size: 64px;
    }

    .video-play i {
        font-size: 22px;
    }

    .event-info {
        grid-template-columns: 1fr;
    }

    .event-info-item {
        padding: 18px 20px;
    }

    .event-slider-prev,
    .event-slider-next {
        --size: 36px;
    }

    .event-slider-prev { left: 10px !important; }
    .event-slider-next { right: 10px !important; }

    .event-slider-prev i,
    .event-slider-next i {
        font-size: 16px;
    }

    .nf-item {
        --size: 40px !important;
    }

    .nf-item.i2,
    .nf-item.i6,
    .nf-item.i8,
    .nf-item.i4 {
        display: none;
    }

    .nf-item.i1 { top: 5%;  left: 5%; }
    .nf-item.i5 { top: 6%;  right: 5%; }
    .nf-item.i3 { top: 86%; left: 5%; }
    .nf-item.i7 { top: 88%; right: 5%; }

    .nf-actions {
        flex-direction: column;
        width: 100%;
    }

    .nf-actions .btn {
        width: 100%;
    }
}

/* tablet only */
@media (min-width: 768px) and (max-width: 1023px) {
    
}

/* tablet + desktop */
@media (min-width: 768px) {

    :root {
        --section-y-pd: 70px;
        --section-x-pd: 0;
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .ft-col {
        max-width: fit-content;
    }

    .sec-head h2 {
        font-size: 2.2em;
    }

    .sec-head h3, .title {
        font-size: 1.8em;
    }

    .bn-con {
        max-width: 75vw
    }

    .page-title {
        font-size: 4.5em;
    }

    .post-title {
        font-size: 2.6em;
    }

}

/* desktop */
@media (min-width: 1024px) {

    :root {
        --section-x-pd: 5vw;
    }

    .mob-nav {
        display: none !important;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-5 {
        grid-template-columns: repeat(5, 1fr);
    }

    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100%;
    }

    .sec-l {
        padding-right: 3rem !important;
    }

    .sec-r {
        padding-left: 3rem !important;
    }

    .ft-col:not(:first-child) {
        padding-left: 0 !important;
    }

    .ft-col:not(:last-child) {
        padding-right: 0 !important;
    }

    .bn-con {
        max-width: 50vw
    }

    .page-title {
        font-size: 5.5em;
    }

    .sec-head h2 {
        font-size: 2.6em;
    }

    .sec-head h3, .title {
        font-size: 2em;
    }

    .post-title {
        font-size: 3em;
    }

}

/* xxl desktop */
@media (min-width: 2200px) {

    .container, .container-lg, .container-xl, .container-xxl {
        max-width: 2400px !important;
    }

}