/* Navigation */
.navbar.transparent {
    background-color: var(--color-bg-primary-light);
    color: var(--color-text-white);
    box-shadow: none;
}

/* 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;
}

.hero-btn {
    display: flex;
    flex-wrap: wrap;
    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);
}

.video-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 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-primary-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 {
    display: flex;
    padding: 40px 0;
    gap: 40px;
}

.how-it-works-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    line-height: 1.5;
    position: relative;
    min-height: 100%;
}

.how-it-works-left-img {
    align-self: flex-start;
    width: 100%;
    max-width: 300px;
    position: absolute;
    top: 280px;
    left: 0;
    z-index: 1;
}

.how-it-works-right-img {
    display: none;
}

.how-it-works-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex: 2;
}

.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number::before,
.step-number::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background-color: var(--color-bg-primary);
}

.step-item:nth-child(1) .step-number::after {
    bottom: -71px;
    height: 68px;
}

.step-item:nth-child(2) .step-number::before {
    bottom: -112px;
    height: 109px;
}

.step-item:nth-child(3) .step-number::after {
    bottom: -112px;
    height: 109px;
}

.step-number {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 1;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-bg-primary);
    color: var(--color-text-white);
}

.step-content {
    display: flex;
    width: 100%;
    gap: 40px;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.5;
    background-color: var(--color-bg-white);
}

.step-content h3 {
    width: 150px;
    flex-shrink: 0;
    color: var(--color-brand-secondary);
}

.how-it-works-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Subscription Section */
.subscription {
    background-color: var(--color-bg-white);
}

.subscription-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    gap: 40px;
}

.promo-bar {
    display: flex;
    width: 100%;
    padding: 10px;
    gap: 10px;
    text-align: center;
    justify-content: center;
    background-color: var(--color-info);
    color: var(--color-text-white);
}

.promo-bar i {
    font-size: 22px;
    line-height: 1.5;
}

.subscription-content-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.subscription-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 20px 0;
}

.ribbon-wrapper {
    position: relative;
}

.ribbon-img {
    position: absolute;
    top: -32px;
    right: -51px;
    width: 60px;
    height: auto;
    z-index: 2;
}

.subscription-table th,
.subscription-table td {
    padding: 20px;
    text-align: center;
}
  
.subscription-table th:first-child,
.subscription-table td:first-child {
    text-align: left;
}
  
.subscription-table thead th:not(:first-child),
.subscription-table tbody td:not(:first-child) {
    border: 1px solid var(--color-border-default);
}
  
.subscription-table thead th:nth-child(n+2) {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
  
.subscription-table tbody tr:last-child td:nth-child(n+2) {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.subscription-table tbody tr:not(:first-child) td:nth-child(n+2):nth-child(-n+6),
.subscription-table tbody tr:first-child td:nth-child(n+2):nth-child(-n+6) {
    border-top: none;
}

.subscription-table tbody tr:not(:last-child) td:nth-child(n+2):nth-child(-n+6) {
    border-bottom: none;
}

.subscription-table thead th:nth-child(n+2):nth-child(-n+6) {
    border-bottom: none;
}

.subscription-table tbody tr:has(td:empty):nth-child(odd) td {
    padding: 0;
    height: 10px;
    background: transparent;
}
  
.subscription-table tbody tr:nth-child(2) td {
    background-color: #ededed;       /* light gray */
}
.subscription-table tbody tr:nth-child(4) td {
    background-color: #dff9ec;       /* pale green */
}
.subscription-table tbody tr:nth-child(6) td {
    background-color: #458a67;       /* dark green */
    color: var(--color-text-white);
}

.fa-check-circle {
    color: #458a67;
    font-size: 24px;
}

.subscription-early-bird-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subscription-early-bird-label .fa-circle-info {
    margin-left: 4px;
    flex-shrink: 0;
}

.subscription-discount-tag {
    display: inline-block;
    color: #ffd9ac;
    margin-bottom: 4px;
    padding: 5px;
    border-radius: 5px;
    background-color: var(--color-brand-secondary);
}

.subscription-discount-price {
    display: block;
}

.features-list {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 20px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.features-list li i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 12px;
}

.subscribe-footer {
    border-top: 1px solid var(--color-border-default) !important;
}

.mobile-subscription-grid {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.mobile-subscription-card {
    background-color: var(--color-bg-white);
    border-radius: 20px;
    border: 1px solid var(--color-border-default);
}

.mobile-subscription-card-header {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-white);
    text-align: center;
    padding: 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.mobile-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.long-term-discount {
    background-color: #dff9ec;
}

.early-bird-discount {
    background-color: #458a67;
    color: var(--color-text-white);
}

.mobile-subscription-card-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
}

.mobile-subscription-btn {
    width: 100%;
}

/* 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;
    transition: transform 0.4s ease-in-out;
    gap: 26px;
    overflow-x: auto;
    scroll-behavior: smooth;
    color: var(--color-text-default);
}

.testimonial-card {
    min-width: 250px;
    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;
}

.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);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.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;
    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 {
    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);
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    background-color: var(--color-bg-white);
    max-width: 800px;
    border-radius: 10px;
    z-index: 1;
    overflow-y: auto;
    max-height: 90vh;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-white);
    z-index: 1;
}

/* 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;
}

.cta-btn {
    display: flex;
    gap: 10px;
}

/* 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);
    }

    .hero-btn, .video-btn, .how-it-works-btn, .cta-btn {
        flex-direction: column;
        width: 100%;
    }

    .benefits-background {
        display: none;
    }

    .benefits-intro {
        gap: 20px;
    }

    .benefits-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .step-item:nth-child(1) .step-number::after {
        bottom: -132px;
        height: 130px;
    }

    .step-item:nth-child(2) .step-number::before {
        bottom: -195px;
        height: 193px;
    }

    .step-item:nth-child(3) .step-number::after {
        bottom: -237px;
        height: 235px;
    }

    .mobile-subscription-grid {
        display: flex;
    }

    .testimonial-card {
        flex: 0 0 100%;
    }

    .modal {
        align-items: flex-start;
        padding: 20px 0;
        overflow-y: auto;
    }

    .modal-content {
        width: calc(100% - 40px);
        max-width: none;
        max-height: none;
        margin: auto;
    }

    .partners-logo {
        flex-direction: column;
    }
}

/* Tablet-only: 768px – 1365px */
@media (min-width: 768px) and (max-width: 1365px) {
    .how-it-works-right-img {
        width: 240px;
        height: auto;
    }

    .step-item:nth-child(1) .step-number::after {
        bottom: -89px;
        height: 88px;
    }

    .step-item:nth-child(2) .step-number::before {
        bottom: -111px;
        height: 109px;
    }

    .step-item:nth-child(3) .step-number::after {
        bottom: -132px;
        height: 131px;
    }

    .mobile-subscription-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-subscription-grid > *:nth-last-child(1):nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

/* Mobile and Tablet: 1365px below */
@media (max-width: 1365px) {
    .how-it-works-content {
        flex-direction: column;
    }

    .how-it-works-left-img {
        display: none;
    }

    .how-it-works-right-img {
        display: flex;
    }

    .step-number {
        width: 30px;
        height: 30px;
    }

    .step-content {
        flex-direction: column;
        gap: 20px;
    }

    .promo-bar .heading-md-bold {
        font-size: 11px;
        font-weight: 700;
    }

    .promo-bar i {
        display: none;
    }

    .subscription-table {
        display: none;
    }

    .ribbon-wrapper {
        overflow: visible;
    }

    .ribbon-img {
        top: -15px;
        right: -25px;
        width: 50px;
    }
}