/* ============ Demo Videos Page ============ */

/* ---- Hero Section (reused from product page) ---- */
.demo-videos-page .hero-section {
    display: flex;
    min-height: 950px;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-image: url(../../../img/redesign-v4/demo-video/hero.jpg);
}

.demo-videos-page .hero-section .hero-content {
    max-width: 56rem;
}

.demo-videos-page .hero-section .hero-pre-title {
    font-size: 3.125rem;
    margin-bottom: 1.6rem;
    max-width: 36rem;
    font-weight: 600;
}

.demo-videos-page .hero-section h1.hero-title {
    line-height: 70px;
}

.demo-videos-page .hero-section .hero-description {
    max-width: 36rem;
    margin-bottom: 3.7rem;
    font-size: 1.25rem;
}

.demo-videos-page .hero-section .cta-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

@media only screen and (max-width: 1600px) {
    .demo-videos-page .hero-section .hero-content {
        padding-top: 6rem;
    }

    .demo-videos-page .hero-section {
        min-height: 620px;
    }
}

@media only screen and (max-width: 1000px) {
    .demo-videos-page .hero-section {
        padding: 8rem 0;
        min-height: auto;
    }

    .demo-videos-page .hero-section .hero-content {
        max-width: 100%;
        padding-top: 4rem;
    }
}

@media only screen and (max-width: 992px) {
    .demo-videos-page .hero-section {
        padding: 5rem 0;
    }

    .demo-videos-page .hero-section h1.hero-title {
        line-height: initial;
    }
}

@media only screen and (max-width: 768px) {
    .demo-videos-page .hero-section {
        background: linear-gradient(#0b0b2c, #423188) !important;
    }
}

@media only screen and (max-width: 480px) {
    .demo-videos-page .hero-section .cta-container {
        flex-direction: column;
        gap: 1rem;
    }
}


/* ---- Category Navigation ---- */
.demo-category-nav {
    background: #fff;
    position: sticky;
    top: 110px;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.demo-category-nav.is-stuck {
    box-shadow: 0 4px 20px rgba(10, 26, 102, 0.08);
}

.demo-category-nav .container {
    padding-top: 0;
    padding-bottom: 0;
}

/* Level 1 categories */
.demo-category-nav__level1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2.5rem;
    list-style: none;
    margin: 0;
    padding: 1.5rem 0;
}

.demo-category-nav__level1 {
    cursor: grab;
}

.demo-category-nav__level1.is-grabbing {
    cursor: grabbing;
    user-select: none;
}

.demo-category-nav__level2 {
    cursor: grab;
}

.demo-category-nav__level2.is-grabbing {
    cursor: grabbing;
    user-select: none;
}

.demo-category-nav__level1 li {
    position: relative;
    cursor: pointer;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.demo-category-nav__level1 li a {
    font-family: Inter;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: color 0.3s ease;
    color: #0A1A65;
    text-decoration: none;
}

.demo-category-nav__level1 li::before {
    content: none;
}

.demo-category-nav__level1 li:hover a,
.demo-category-nav__level1 li.active a {
    color: #FF2F70;
}



/* Level 2 subcategories */
.demo-category-nav__level2-panels {
    border-top: 1px solid #0A1A65;
    border-bottom: 1px solid #0A1A65;
}

.demo-category-nav__level2-wrap {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
}

.demo-category-nav__level2-wrap.open {
    max-height: 200px;
    padding: 1rem 0;
}

.demo-category-nav__level2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.demo-category-nav__level2 li {
    cursor: pointer;
    padding: 0.3rem 0;
    white-space: nowrap;
}

.demo-category-nav__level2 li a {
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #0065FE;
    transition: color 0.3s ease;
    text-decoration: none;
}

.demo-category-nav__level2 li::before {
    content: none;
}

.demo-category-nav__level2 li:hover a,
.demo-category-nav__level2 li.active a {
    color: #FF2F70;
}


/* ---- Video Sections (Demos / Tutorials / Testimonials) ---- */
.demo-video-section {
    padding: 5rem 0;
}

.demo-video-section+.demo-video-section {
    padding-top: 0;
}

.demo-video-section.is-first-visible {
    padding-top: 5rem;
}

.demo-video-section__pre-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.demo-video-section__pre-title img.check_icon {
    width: 25px;
    margin-top: -7px;
}

.demo-video-section__pre-title span {
    font-family: "Inter", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #0A1A66;
}

.demo-video-section__pre-title .check-icon {
    width: 20px;
    height: 20px;
}

.demo-video-section__title {
    font-family: Inter;
    font-size: 3.125rem;
    font-weight: 600;
    color: #0A1A66;
    text-align: center;
    margin-bottom: 1.8rem;
}

.demo-video-section__subtitle {
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0A1A66;
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 3rem;
    line-height: 1.6;
}


/* ---- Video Cards Grid ---- */
.demo-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.demo-video-card {
    overflow: hidden;
    border: 1px solid #BCC5EF;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(10, 26, 102, 0.1);
}

.demo-video-card__thumbnail {
    position: relative;
    overflow: hidden;
    background: #C5CAE2;
    aspect-ratio: 16 / 10;
    cursor: pointer;
}

.demo-video-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
}

.demo-video-card__body {
    padding: 2rem 2.5rem;
    flex: 1;
    gap: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.demo-video-card__tags {
    letter-spacing: 2.25px;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 13px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #0A1A66;
}

.demo-video-card__title {
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A1A66;
    /* margin-bottom: 1rem; */
    line-height: 1.4;
}

.demo-video-card__desc {
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #0A1A66;
    line-height: 1.6;
    flex: 1;
}

.demo-video-card__link {
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0A1A66;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.demo-video-card__link svg {
    margin-left: 15px;
    transition: margin-left 0.3s ease;
}

.demo-video-card__link:hover svg {
    margin-left: 25px;
}

.demo-video-card__link:hover {
    color: #0065FE;
}


/* ---- Show More Button ---- */
.demo-show-more-container {
    text-align: center;
    margin-top: 3rem;
}

.demo-show-more-btn {
    padding: 14px 40px;
    border: 1px solid #0A1A65;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    outline: none;
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0A1A66;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.demo-show-more-btn:hover {
    background: #0b1a65;
    color: #fff;
}

/* Initially hide cards beyond the first 6 */
.demo-video-card.is-hidden {
    display: none;
}


/* ---- FAQ Section ---- */
.demo-faq-section {
    padding: 6.25rem 0 0;
}

.demo-faq-pre-title {
    color: #0A1A66;
    font-family: "Inter", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
}

.demo-faq-title {
    color: #0A1A66;
    font-family: "Inter", sans-serif;
    font-size: 3.125rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
}

.demo-faq-items {
    border-top: 1px solid #c7cff2;
    margin-bottom: 3.25rem;
    margin-left: auto;
    margin-right: auto;
}

.demo-faq-item {
    border-bottom: 1px solid #c7cff2;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 3.125em;
}

.demo-faq-question-title {
    color: #0A1A66;
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.demo-faq-question {
    align-items: center;
    background: none;
    border: 0;
    color: #0b1a65;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-weight: 700;
    justify-content: space-between;
    padding: 0;
    text-align: left;
    width: 100%;
}

.demo-faq-answer {
    color: #0b1a65;
    display: none;
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.35rem;
    overflow: hidden;
    padding: 20px 0 0 0;
}

.demo-faq-item.is-expanded .demo-faq-answer {
    animation: fadeIn 0.3s ease-in-out;
    display: block;
}

.demo-faq-item svg {
    flex-shrink: 0;
    height: 19px;
    transition: transform 0.3s ease;
    width: 25px;
}

.demo-faq-item.is-expanded svg {
    transform: rotate(180deg);
}


/* ---- Bottom CTA Section ---- */
.demo-bottom-cta {
    padding: 5rem 0;
}

.demo-bottom-cta__card {
    display: flex;
    align-items: center;
    border: 1px solid #BCC5EF;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    min-height: 430px;
    padding: 0;
    position: relative;
}

.demo-bottom-cta__content {
    flex: 0 0 49%;
    padding: 6.5rem 3rem 6.5rem 5rem;
    position: relative;
    z-index: 1;
}

.demo-bottom-cta__title {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #0A1A66;
}

.demo-bottom-cta__desc {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #0A1A66;
    margin-bottom: 2.5rem;
}

.demo-bottom-cta__image {
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: absolute;
    right: 0;
    width: 54%;
}

.demo-bottom-cta__image::before {
    /* content: ''; */
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
    z-index: 1;
    pointer-events: none;
}

.demo-bottom-cta__image img {
    display: block;
    height: auto;
    max-width: 680px;
    width: 100%;
}

.demo-bottom-cta .cta-v3:after {
    content: none;
}

.demo-bottom-cta .cta-v3 {
    padding: 0.9em 2em;
}


@media only screen and (max-width: 1600px) {
    .demo-bottom-cta__content {
        flex: 0 0 51%;
    }

    .demo-bottom-cta__image {
        width: 48%;
    }
}

@media only screen and (max-width: 1400px) {
    .demo-bottom-cta__content {
        flex: 0 0 48%;
        padding: 4rem 2rem 4rem 3.5rem;
    }

    .demo-bottom-cta__image {
        width: 50%;
    }

    .demo-bottom-cta__card {
        min-height: 380px;
    }

    .demo-bottom-cta__title {
        font-size: 2.25rem;
    }

    .demo-bottom-cta__desc br {
        display: none;
    }

    .demo-bottom-cta {
        padding: 3.5rem 0;
    }
}

@media only screen and (max-width: 1200px) {
    .demo-bottom-cta__content {
        flex: 0 0 52%;
        padding: 3rem 2rem 3rem 3rem;
    }

    .demo-bottom-cta__image {
        width: 46%;
    }

    .demo-bottom-cta__card {
        min-height: 340px;
    }

    .demo-bottom-cta__title {
        font-size: 2rem;
    }

    .demo-bottom-cta__desc {
        font-size: 1.1rem;
    }
}

@media only screen and (max-width: 991px) {
    .demo-bottom-cta__card {
        flex-direction: column;
        min-height: 0;
        padding: 2.5rem 0 0;
    }

    .demo-bottom-cta__content {
        flex: 0 0 auto;
        padding: 2rem 3rem;
        text-align: center;
        width: 100%;
    }

    .demo-bottom-cta__image::before {
        display: none;
    }

    .demo-bottom-cta__title {
        font-size: 2rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .demo-bottom-cta__desc {
        margin-bottom: 2rem;
    }

    .demo-bottom-cta__image {
        position: static;
        width: 100%;
        padding: 0;
    }

    .demo-bottom-cta__image img {
        max-width: 83%;
    }
}

@media only screen and (max-width: 768px) {
    .demo-bottom-cta__image img {
        max-width: 90%;
    }

    .demo-bottom-cta__card {
        padding-top: 2rem;
        border-radius: 20px;
    }

    .demo-bottom-cta__content {
        padding: 1.5rem 2rem 3rem;
    }

    .demo-bottom-cta__title {
        font-size: 1.75rem;
    }

    .demo-bottom-cta__desc {
        font-size: 1rem;
    }

    .demo-bottom-cta {
        padding: 2.5rem 0;
    }
}

@media only screen and (max-width: 480px) {
    .demo-bottom-cta__card {
        padding-top: 1.5rem;
        border-radius: 16px;
    }

    .demo-bottom-cta__content {
        padding: 1rem 1.5rem;
    }

    .demo-bottom-cta__image {
        padding: 0 1rem;
    }

    .demo-bottom-cta__title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .demo-bottom-cta__desc {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .demo-bottom-cta {
        padding: 2rem 0;
    }
}


/* ---- Video Popup (reused from webinars) ---- */
.demo-video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.demo-video-popup.is-open {
    display: flex;
}

.demo-video-popup__content {
    position: relative;
    width: 80%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.demo-video-popup__close {
    position: absolute;
    top: -44px;
    right: 0;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.demo-video-popup__content iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* ---- Animations ---- */
@keyframes demoFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes demoSectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 100px;
    }
}

.demo-video-section.is-filter-animating {
    animation: demoSectionFadeIn 0.35s ease-out both;
}

.demo-video-card--animate {
    animation: demoFadeInUp 0.5s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    .demo-video-section.is-filter-animating {
        animation: none;
    }
}


/* ---- Responsive ---- */

@media only screen and (max-width: 1300px) {
    .demo-faq-answer {
        font-size: 1.2rem;
    }

    .demo-faq-item {
        padding: 1em;
    }
}

/* Large desktop down */
@media only screen and (max-width: 1400px) {
    .demo-videos-page .hero-section .hero-pre-title {
        font-size: 2.5rem;
    }
}

/* Small desktop / large tablet landscape */
@media only screen and (max-width: 1200px) {
    .demo-faq-title {
        font-size: 2.5rem;
    }

    .demo-video-card__body {
        padding: 1.5rem 1.75rem;
        gap: 1.25rem;
    }

    .demo-category-nav__level1 {
        gap: 0.5rem 1.5rem;
    }

    .demo-category-nav__level1 li a {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .demo-category-nav__level2 li a {
        font-size: 1rem;
    }

    .demo-video-section__title {
        font-size: 2.5rem;
    }

    .demo-video-section__subtitle {
        font-size: 1.25rem;
    }
}

/* Tablet landscape / small laptop */
@media only screen and (max-width: 1100px) {
    .demo-videos-page .hero-section {
        min-height: 600px;
    }

    .demo-videos-page .hero-section .hero-pre-title {
        font-size: 2rem;
    }

    .demo-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .demo-category-nav__level1 li a {
        /* font-size: 0.875rem; */
        letter-spacing: 1.5px;
    }

    .demo-category-nav__level2 li a {
        /* font-size: 0.875rem; */
    }

    .demo-video-card__title {
        font-size: 1.25rem;
    }

    .demo-video-card__desc {
        font-size: 1.1rem;
    }
}

/* Tablet portrait */
@media only screen and (max-width: 991px) {
    .demo-faq-items {
        margin-bottom: 4.25rem;
    }

    .demo-faq-section {
        padding-top: 2rem;
    }

    .demo-faq-item {
        gap: 1rem;
    }

    .demo-faq-answer {
        padding: 0;
    }

    .demo-videos-page .hero-section {
        min-height: auto;
        padding: 6rem 0 5rem;
    }

    .demo-videos-page .hero-section .hero-pre-title {
        font-size: 1.75rem;
        margin-bottom: 1.2rem;
    }

    .demo-videos-page .hero-section .hero-description {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }

    .demo-videos-page .hero-section h1.hero-title {
        line-height: initial;
    }

    .demo-category-nav {
        top: 80px;
    }

    .demo-category-nav__level1 {
        gap: 0.4rem 1.25rem;
        padding: 1.25rem 0;
    }

    .demo-category-nav__level1 li a {
        /* font-size: 0.8rem; */
        letter-spacing: 1.5px;
    }

    .demo-category-nav__level2 {
        gap: 0.4rem 1.5rem;
    }

    .demo-category-nav__level2 li a {
        /* font-size: 0.8rem; */
    }

    .demo-video-section__title {
        font-size: 2.5rem !important;
        margin-bottom: 1rem;
    }

    .demo-video-section__subtitle {
        font-size: 1.2rem;
    }

    .demo-video-section {
        padding: 3.5rem 0;
    }

    .demo-video-section+.demo-video-section {
        padding-top: 0;
    }

    .demo-video-section.is-first-visible {
        padding-top: 3.5rem;
    }

    .demo-video-grid {
        margin-top: 2.5rem;
    }

    .demo-video-card__body {
        gap: 1rem;
    }

    .demo-show-more-btn {
        font-size: 1.1rem;
        padding: 12px 32px;
    }
}

/* Large mobile / small tablet */
@media only screen and (max-width: 768px) {
    .demo-faq-pre-title {
        font-size: 1.1rem !important;
    }

    .demo-faq-question-title {
        font-size: 1.2rem;
    }

    .demo-faq-answer {
        font-size: 1.15rem;
    }

    .demo-faq-title {
        font-size: 1.9rem !important;
        line-height: 2.5rem;
    }

    .demo-faq-section {
        padding: 4rem 0 0;
    }

    .demo-faq-question {
        gap: 1.2rem;
    }

    .demo-videos-page .hero-section {
        padding: 5rem 0 4rem;
        background: linear-gradient(#0b0b2c, #423188) !important;
    }

    .demo-videos-page .hero-section .hero-content {
        max-width: 100%;
        padding-top: 3rem;
    }

    .demo-videos-page .hero-section .hero-pre-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .demo-videos-page .hero-section .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    /* Category nav: horizontal scroll on small screens */
    .demo-category-nav {
        top: 70px;
    }

    /* Scroll wrapper for level 1 */
    .demo-category-nav__level1-scroll {
        position: relative;
    }

    .demo-category-nav__level1-scroll::before,
    .demo-category-nav__level1-scroll::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40px;
        z-index: 2;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .demo-category-nav__level1-scroll::before {
        left: 0;
        background: linear-gradient(to right, #fff 20%, transparent);
    }

    .demo-category-nav__level1-scroll::after {
        right: 0;
        background: linear-gradient(to left, #fff 20%, transparent);
    }

    .demo-category-nav__level1-scroll.can-scroll-left::before {
        opacity: 1;
    }

    .demo-category-nav__level1-scroll.can-scroll-right::after {
        opacity: 1;
    }

    .demo-category-nav__level1 {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0 1.5rem;
        padding: 1rem 0;
    }

    .demo-category-nav__level1::-webkit-scrollbar {
        display: none;
    }

    .demo-category-nav__level1 li a {
        /* font-size: 0.75rem; */
        letter-spacing: 1px;
    }

    .demo-category-nav__level1 li {
        flex-shrink: 0;
    }

    /* Scroll wrapper for level 2 */
    .demo-category-nav__level2-scroll {
        position: relative;
    }

    .demo-category-nav__level2-scroll::before,
    .demo-category-nav__level2-scroll::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 30px;
        z-index: 2;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .demo-category-nav__level2-scroll::before {
        left: 0;
        background: linear-gradient(to right, #fff 20%, transparent);
    }

    .demo-category-nav__level2-scroll::after {
        right: 0;
        background: linear-gradient(to left, #fff 20%, transparent);
    }

    .demo-category-nav__level2-scroll.can-scroll-left::before {
        opacity: 1;
    }

    .demo-category-nav__level2-scroll.can-scroll-right::after {
        opacity: 1;
    }

    .demo-category-nav__level2 {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0 1.25rem;
    }

    .demo-category-nav__level2::-webkit-scrollbar {
        display: none;
    }

    .demo-category-nav__level2 li {
        /* font-size: 0.8rem; */
        flex-shrink: 0;
    }

    .demo-video-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto 0;
        gap: 2rem;
    }

    .demo-video-card {
        margin: 0 auto;
    }

    .demo-video-card__title {
        font-size: 1.2rem;
    }

    .demo-video-card__desc {
        font-size: 1rem;
    }

    .demo-video-card__link {
        font-size: 1rem;
    }

    .demo-video-section__title {
        font-size: 2.3rem !important;
    }

    .demo-video-section__subtitle {
        max-width: 100%;
        padding: 0 1rem;
        font-size: 1rem;
    }

    .demo-video-section__pre-title span {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .demo-video-section__pre-title img.check_icon {
        width: 20px;
        margin-top: 0px;
    }

    .demo-video-section__pre-title {

        margin-bottom: 0.5rem;
    }

    .demo-video-section {
        padding: 2.5rem 0;
    }

    .demo-video-section.is-first-visible {
        padding-top: 2.5rem;
    }

    .demo-video-popup__content {
        width: 95%;
        border-radius: 8px;
    }

    .demo-video-popup__close {
        top: -36px;
        font-size: 28px;
    }

    .demo-show-more-btn {
        font-size: 1rem;
        padding: 12px 28px;
    }

    .demo-show-more-container {
        margin-top: 2rem;
    }
}

/* Mobile */
@media only screen and (max-width: 480px) {
    .demo-videos-page .hero-section {
        padding: 4rem 0 3rem;
    }

    .demo-videos-page .hero-section .hero-pre-title {
        font-size: 1.25rem;
        letter-spacing: 1px;
        margin-bottom: 1rem;
    }

    .demo-videos-page .hero-section .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }

    .demo-videos-page .hero-section .cta-container {
        flex-direction: column;
        gap: 1rem;
    }

    .demo-category-nav {
        top: 60px;
    }

    .demo-category-nav__level1 {
        gap: 0 1rem;
        padding: 0.75rem 0;
    }

    .demo-category-nav__level1 li a {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    .demo-category-nav__level1 li {
        padding: 0.4rem 0;
    }

    .demo-category-nav__level2-wrap.open {
        padding: 0.75rem 0;
    }

    .demo-category-nav__level2 {
        gap: 0 0.75rem;
    }

    .demo-category-nav__level2 li a {
        font-size: 0.7rem;
    }

    .demo-video-grid {
        max-width: 100%;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .demo-video-card {
        border-radius: 16px;
    }

    .demo-video-card__body {
        padding: 1.25rem 1rem;
        gap: 0.75rem;
    }

    .demo-video-card__title {
        font-size: 1.1rem;
    }

    .demo-video-card__desc {
        font-size: 0.9rem;
    }

    .demo-video-card__link {
        font-size: 0.95rem;
    }

    .demo-video-card__link svg {
        width: 18px;
        margin-left: 10px;
    }

    .demo-video-section__title {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .demo-video-section__subtitle {
        font-size: 0.9rem;
    }

    .demo-video-section__pre-title span {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }

    .demo-video-section__pre-title img.check_icon {
        width: 18px;
    }

    .demo-video-section {
        padding: 2rem 0;
    }

    .demo-video-section.is-first-visible {
        padding-top: 2rem;
    }

    .demo-show-more-btn {
        font-size: 0.9rem;
        padding: 10px 24px;
    }

    .demo-video-popup__content {
        width: 98%;
        border-radius: 6px;
    }

    .demo-video-popup__close {
        top: -32px;
        font-size: 24px;
    }
}