@media only screen and (min-width: 0) and (max-width: 1400px) {
    .lang-grid {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1400px) {
    /* header */
    .header-section .menu-dropdown .mega-menu {
        padding: 20px 5% !important;
    }

    .about-section .icon h6 {
        font-size: 14px;
        line-height: 24px;
    }

    /* footer */
    .footer-section p,
    .footer-section li,
    .footer-section li a {
        font-size: 14px;
    }
    .footer-section li {
        margin-bottom: 5px;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1400px) {
    .home-banner-section .banner-content h1 {
        font-size: 39px;
        line-height: 47px;
    }
    body h2 {
        font-size: 30px;
        line-height: 40px;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1200px) {
    /* header */
    .header-section a,
    .header-section .nav-link {
        padding: 15px 11px !important;
    }
    .header-section .menu-dropdown .mega-menu {
        padding: 20px 3% !important;
    }
    .header-section .menu-dropdown .mega-menu li {
        width: 30% !important;
    }
    /* Slick */
    .slick-slider-section .slick-prev {
        left: 5px !important;
        top: -15px !important;
    }
    .slick-slider-section .slick-next {
        right: 5px !important;
        top: -15px !important;
    }

    .about-section .view-more {
        text-align: center;
        margin-bottom: 50px;
    }

    /* footer */
    .footer-section p,
    .footer-section li,
    .footer-section li a {
        font-size: 11px;
    }
    .footer-section li {
        margin-bottom: 0px;
    }
    .footer-section br {
        display: none;
    }

    .slick-slider-section img {
        width: 100% !important;
        height: 620px !important;
    }
}
@media only screen and (min-width: 0px) and (max-width: 1400px) {
    .shape-one,
    .shape-two,
    .shape-three,
    .shape-four,
    .shape-bg-three {
        display: none !important;
    }
}
@media only screen and (min-width: 0px) and (max-width: 992px) {
    .section-title {
        margin-bottom: 20px !important;
    }
    .home-banner-section {
        top: 0 !important;
    }
    .home-banner-section .banner-content h1 {
        font-size: 44px;
        line-height: 54px;
    }
    /* header */
    .home-header {
        background-color: #0d0d16;
    }
    .header-section .header-logo {
        margin: 15px 0px !important;
    }
    .header-section .nav-link img {
        width: auto !important;
    }

    /* Slick */
    .slick-slider-section .slick-prev {
        left: 5px !important;
        top: -15px !important;
    }
    .slick-slider-section .slick-next {
        right: 5px !important;
        top: -15px !important;
    }

    .about-section .view-more {
        text-align: center;
        margin-bottom: 50px;
    }

    .faqs-section .custom-accordion {
        width: 100%;
    }
    .contact-section .contact-image img {
        height: 400px;
    }
    .max-992-d-none {
        display: none !important;
    }
}
@media only screen and (min-width: 768px) and (max-width: 992px) {
    .slick-slider-section img {
        width: 100% !important;
        height: 707px !important;
    }
}
@media only screen and (min-width: 0px) and (max-width: 768px) {
    /* faq */
    .faqs-section .accordion-button {
        font-size: 17px;
        line-height: 22px;
        padding: 0px !important;
    }
    .faqs-section .accordion-body {
        padding: 10px 25px 0px 0px !important;
    }
    .faqs-section .accordion-body p {
        font-size: 14px;
        line-height: 22px;
        margin-bottom: 0;
    }
    .package-section .section-title {
        display: flex;
        flex-wrap: wrap;
    }
    .slick-slider-section img {
        width: auto !important;
        height: 80vh !important;
    }
}
@media only screen and (min-width: 550px) and (max-width: 992px) {
    body .h6-line-clamp {
        -webkit-line-clamp: 1;
        height: auto;
    }
}
@media only screen and (min-width: 0px) and (max-width: 550px) {
    section {
        padding: 30px 0px;
    }
    body h2 {
        font-size: 25px;
        line-height: 32px;
    }
    body h5 {
        font-size: 20px;
        line-height: 25px;
    }
    /* home banner */

    .home-banner-section .banner-content h1 {
        font-size: 32px;
        line-height: 42px;
    }

    /* Slick */
    .slick-slider-section .slick-prev,
    .slick-slider-section .slick-next {
        display: none !important;
    }

    .time-event-section h2 {
        max-width: 355px;
        margin-bottom: 20px;
    }
}
@media only screen and (min-width: 0px) and (max-width: 400px) {
    .demo-btn-group a:last-child span:last-child {
        /* display: none; */
    }
    .home-banner-section .banner-content h1 {
        font-size: 28px;
        line-height: 38px;
    }
    body .modal-custom-design .modal-title {
        max-width: 300px;
    }
    body .modal-custom-design .btn-close {
        padding: 7px 12px !important;
    }
    body .modal-custom-design iframe {
        height: 280px !important;
    }
}
@media (min-width: 992px) {
    .header-section .mobile-menu {
        display: none;
    }
    .min-992-d-none {
        display: none !important;
    }
}
@media (min-width: 1400px) {
    .home-service-section {
        width: 100%;
        background-image: url("../images/service/service-bg.png");
        background-size: cover;
        background-repeat: no-repeat;
        background-position-y: -50px;
    }
}
@media (max-width: 1400px) {
    .home-service-section {
        background: linear-gradient(
            to right,
            rgba(255, 137, 0, 0.12),
            rgba(13, 154, 255, 0.12)
        );
    }
}

@media only screen and (min-width: 0px) and (max-width: 992px) {
    .home-header .header-logo img,
    .header-logo img,
    .footer-section .footer-logo {
        height: 42px;
        width: auto;
    }

    .service-section .image {
        height: 50px;
        width: 50px;
    }
    .service-section .image img {
        height: 42px;
        width: 42px;
    }
    .service-section .service-content h6 {
        font-size: 16px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

    .about-section .about-img {
        height: auto;
        width: 100%;
        object-fit: cover;
    }

    .blogs-section .blog-details-content .details-img {
        height: auto;
        width: 100%;
        object-fit: cover;
    }
    .header-section .accordion-button {
        background-color: transparent !important;
    }
    /* .header-section .accordion-flush .accordion-item {
        padding-bottom: 0 !important;
        padding-right: 16px !important;
    } */
    .header-section .accordion-flush .accordion-collapse.show {
        padding-bottom: 8px !important;
    }
    .header-section .accordion-body {
        margin-bottom: 0 !important;
    }
}

@media only screen and (min-width: 0px) and (max-width: 550px) {
    .play-button,
    .play-btn {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
    }

    /* Home Vido play button */
    .play-btn:before {
        top: -10px;
        left: -10px;
    }

    .play-button:before {
        width: 150%;
        height: 150%;
        top: -10px;
        left: -10px;
    }

    .play-button::after {
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 12px solid #fff;
    }

    .custom-btn {
        font-size: 16px;
        line-height: 16px;
        padding: 8px 16px;
        margin-top: 10px;
    }

    .custom-btn i {
        width: 24px;
        height: 24px;
        line-height: 24px;
    }

    .banner-scan img {
        height: 60px;
        width: 60px;
    }

    .home-banner-section .banner-content .play-store img,
    .footer-play-store img {
        height: 35px;
        width: auto;
    }

    .banner-scan p {
        font-size: 14px;
    }

    .subscribe-plan {
        padding: 10px 22px !important;
        font-size: 16px !important;
    }
    .card-header h4 {
        font-size: 25px;
    }
}
/* ===== Header / Nav ===== */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 76px;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 180px;
    flex-shrink: 1;
}

.header-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
}

.mobile-menu-toggle {
    font-size: 32px;
    line-height: 1;
    color: #ffffff;
    background: transparent;
}

.inner-page-header .mobile-menu-toggle {
    color: #111827;
}

.mobile-login-btn {
    padding: 10px 16px !important;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 12px;
}

.mobile-menu {
    width: min(86vw, 340px) !important;
    max-width: 340px;
    background: #0b0b0b;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu .offcanvas-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    align-items: center;
}

.mobile-menu .offcanvas-body {
    padding: 18px 20px 24px;
}

.mobile-menu .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.9;
}

.mobile-menu .accordion-item,
.mobile-menu .accordion-button {
    background: transparent;
    color: #fff;
    border: 0;
    box-shadow: none !important;
}

.mobile-menu .accordion-button {
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
}

.mobile-menu .accordion-button:not(.collapsed) {
    color: #f59e0b;
    background: transparent;
}

.mobile-menu .accordion-body a,
.mobile-menu .offcanvas-body ul li a {
    display: block;
    padding: 10px 0;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-size: 15px;
}

.mobile-menu .offcanvas-body a.active {
    color: #f59e0b;
}

.mobile-menu-footer {
    padding-top: 10px;
}

/* ===== Hero section ===== */
.home-banner-section {
    overflow: hidden;
}

.banner-content h1 {
    line-height: 1.12;
    word-break: break-word;
}

.banner-content p {
    line-height: 1.7;
}

.demo-btn-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.try-demo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 14px 24px;
    border-radius: 14px;
    text-decoration: none;
}

.video-button {
    flex-shrink: 0;
}

.hero-watch {
    white-space: nowrap;
}

/* ===== General image safety ===== */
img {
    max-width: 100%;
    height: auto;
}

/* Hide stray desktop floating controls on mobile if any */
@media (max-width: 991.98px) {
    .swiper-button-prev,
    .swiper-button-next,
    .custom-nav {
        display: none !important;
    }
}

/* ===== Tablet ===== */
@media (max-width: 991.98px) {
    .site-header {
        padding: 8px 0;
    }

    .header-container {
        min-height: 68px;
    }

    .header-logo {
        max-width: 150px;
    }

    .header-logo img {
        max-height: 44px;
    }

    .home-banner-section {
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .hero-content {
        text-align: center;
        margin-top: 24px;
    }

    .banner-content h1 {
        font-size: 46px;
        margin-bottom: 16px;
    }

    .banner-content p {
        font-size: 18px;
        max-width: 100%;
        margin: 0 auto 22px;
    }

    .demo-btn-group {
        justify-content: center;
    }

    .banner-img {
        margin-bottom: 18px;
    }

    .banner-img img {
        max-height: 460px;
        object-fit: contain;
    }
}

/* ===== Mobile ===== */
@media (max-width: 767.98px) {
    .site-header {
        padding: 6px 0;
    }

    .header-container {
        min-height: 62px;
        gap: 10px;
    }

    .header-logo {
        max-width: 130px;
    }

    .header-logo img {
        max-height: 38px;
    }

    .mobile-menu-toggle {
        font-size: 28px;
    }

    .mobile-login-btn {
        padding: 8px 12px !important;
        font-size: 13px;
    }

    .home-banner-section {
        padding-top: 18px;
        padding-bottom: 28px;
    }

    .hero-content {
        text-align: left;
        margin-top: 18px;
    }

    .banner-content h1 {
        font-size: 34px;
        line-height: 1.15;
    }

    .banner-content p {
        font-size: 16px;
        line-height: 1.75;
        margin-bottom: 20px;
    }

    .demo-btn-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .try-demo-button {
        width: 100%;
        justify-content: center;
    }

    .demo-btn-group > a:last-child {
        width: 100%;
        justify-content: flex-start !important;
    }

    .hero-watch {
        font-size: 16px;
    }

    .banner-img {
        text-align: center;
        margin-bottom: 10px;
    }

    .banner-img img {
        max-height: 320px;
    }

    .section-title h2 {
        font-size: 32px;
        line-height: 1.2;
    }
}

/* ===== Small phones ===== */
@media (max-width: 480px) {
    .header-logo {
        max-width: 110px;
    }

    .header-logo img {
        max-height: 34px;
    }

    .banner-content h1 {
        font-size: 28px;
    }

    .banner-content p {
        font-size: 15px;
    }

    .try-demo-button {
        min-height: 52px;
        padding: 12px 18px;
    }

    .video-button {
        width: 56px;
        height: 56px;
    }

    .section-title h2 {
        font-size: 28px;
    }
}

/* Mobile offcanvas menu fix */
.mobile-menu {
    width: min(86vw, 340px) !important;
    max-width: 340px;
    height: 100dvh !important;
    background: #0b0b0b;
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu .offcanvas-header {
    flex-shrink: 0;
    padding: 16px 18px;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu .offcanvas-body {
    flex: 1 1 auto;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 14px 18px 28px;
}

.mobile-menu .accordion {
    padding-bottom: 20px;
}

.mobile-menu .accordion-item {
    background: transparent;
    border: 0;
}

.mobile-menu .accordion-button {
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
}

.mobile-menu .accordion-button::after {
    filter: invert(1);
}

.mobile-menu .accordion-button.without-sub-menu::after {
    display: none !important;
}

.mobile-menu .accordion-button:not(.collapsed) {
    color: #f59e0b !important;
}

.mobile-menu .accordion-body {
    padding: 0 0 10px 0 !important;
}

.mobile-menu .accordion-body li a,
.mobile-menu .offcanvas-body ul li a {
    display: block;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.mobile-menu .offcanvas-body a.active {
    color: #f59e0b !important;
}

.mobile-menu .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 1;
}

/* smaller logo area inside menu */
.mobile-menu .header-logo {
    display: inline-flex;
    align-items: center;
    max-width: 140px;
}

.mobile-menu .header-logo img {
    max-width: 100%;
    max-height: 42px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .mobile-menu {
        width: min(88vw, 320px) !important;
    }

    .mobile-menu .offcanvas-header {
        min-height: 64px;
        padding: 14px 16px;
    }

    .mobile-menu .offcanvas-body {
        padding: 12px 16px 24px;
    }

    .mobile-menu .header-logo {
        max-width: 120px;
    }

    .mobile-menu .header-logo img {
        max-height: 36px;
    }
}

