/* General */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Navigation */
.navbar.transparent {
    background-color: var(--color-bg-primary-light);
    color: var(--color-text-white);
    box-shadow: none;
}

.navbar-link-dropdown-menu.transparent {
    background-color: var(--color-bg-primary-light);
    color: var(--color-text-white);
}

/* Hero Section */
.hero {
    color: var(--color-text-white);
    background-image: linear-gradient(to bottom, var(--color-bg-primary-light), var(--color-bg-primary));
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 40px;
    gap: 20px;
}

.hero-logo img {
    max-height: 300px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

/* Video Section */
.video-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
    gap: 40px;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e0e0e0;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Benefits Section */
.benefits-background {
    position: absolute;
    top: -300px;
    left: -250px;
    width: 100%;
    height: auto;
    z-index: 0;
    pointer-events: none;
}

.benefits-background img {
    width: 1400px;
    height: auto;
    opacity: 0.025;
}

.benefits {
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
}

.benefits-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.5;
    padding: 40px 0;
    gap: 40px;
}

.benefits-intro {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    color: var(--color-text-default);
}

.benefits-grid > :last-child:nth-child(3n + 1) {
    grid-column: 2 / 3;
}

.benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 30px;
    border-radius: 10px;
    background-color: var(--color-bg-white);
}

.benefit-card img {
    width: 150px;
    height: 150px;
}

.benefit-card-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
}

/* How It Works Section */
.how-it-works-content {
    padding: 40px 0;
}
/* the rest are in a dedicated css file */

/* Subscription Section */
.subscription {
    background-color: var(--color-bg-white);
}

.subscription-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    gap: 40px;
}

.subscription-content-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.promo-bar {
    display: flex;
    width: 100%;
    padding: 10px;
    gap: 10px;
    text-align: center;
    justify-content: center;
    align-items: center;
    background-color: var(--color-info);
    color: var(--color-text-white);
}

/* Testimonials Section */
.testimonials-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    gap: 40px;
}

.testimonials-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.testimonials-slider {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 26px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    max-width: 100%;
    flex: 0 0 calc((100% - 52px) / 3); /* For 3 cards at a time with 26px gaps */
    box-sizing: border-box;
    background-color: var(--color-bg-white);
    border-radius: 10px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    scroll-snap-align: start;
}

.testimonial-quotes {
    position: absolute;
    top: 2px;
    right: 38px;
    font-size: 24px;
    opacity: 0.1;
}

.testimonial-quotes i.fa-quote-right {
    position: absolute;
    top: 20px;
    margin-left: 5px;
}

.testimonial-header {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
    padding: 20px;
    gap: 5px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: var(--color-bg-secondary);
    color: var(--color-text-white);
}

.testimonial-header.collapsed p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-header.expanded p {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.testimonial-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-grow: 1;
    gap: 30px;
}

.testimonial-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    height: auto;
}

.testimonial-text.collapsed {
    -webkit-line-clamp: 10;
}

.testimonial-text.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
}

.testimonial-btn {
    margin-top: auto;
    text-align: right;
}

.testimonial-control-btn {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.testimonial-control-btn i {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 1;
    width: 40px;
    height: 40px;
    font-size: 14px;
    border-radius: 50%;
    background-color: var(--color-brand-secondary);
    color: var(--color-text-white);
    cursor: pointer;
}

.modal-content.testimonial-modal-content {
    padding: 0;
}

.modal-close.testimonial-modal-close {
    top: 5px;
    right: 10px;
    color: var(--color-text-white);
    z-index: 1;
}

.modal-close.testimonial-modal-close:hover {
    color: var(--color-border-default);
}

/* Partners Section */
.partners {
    position: relative;
    background-color: var(--color-bg-white);
}

.partners-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    gap: 40px;
}

.partners-logo {
    display: flex;
    gap: 80px;
}

.partners-logo img {
    width: 200px;
    height: auto;
}

/* Bridge image wrapper */
.section-bridge-wrapper {
    position: relative;
    width: 100%;
    z-index: 2;
    margin-top: -15px;
    margin-bottom: -15px;
    display: flex;
    justify-content: center;
    background: linear-gradient(to bottom, var(--color-bg-white) 50%, var(--color-bg-primary) 50%);
}

.bridge-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    z-index: 2;
    pointer-events: none;
}

/* CTA Section */
.cta {
    position: relative;
    background-color: var(--color-bg-primary);
    color: var(--color-text-white);
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
    gap: 40px;
}

.cta-content img {
    width: 300px;
    height: auto;
}

/* Responsive Styles */
/* Mobile-only: 320px – 767px */
@media (max-width: 767px) {
    .navbar.transparent {
        background-color: var(--color-bg-white);
        color: var(--color-text-gray);
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.07);
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .benefits-background {
        display: none;
    }

    .benefits-intro {
        gap: 20px;
    }

    .benefits-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .testimonials-slider {
        justify-content: flex-start; /* Align cards to the left */
    }
    
    .testimonial-card {
        flex: 0 0 100%;
    }

    .partners-logo {
        flex-direction: column;
    }
}

/* Mobile and Tablet: 1365px below */
@media (max-width: 1365px) {
    .promo-bar .heading-md-bold {
        font-size: 11px;
        font-weight: 700;
    }

    .promo-bar i {
        display: none;
    }
}