/* ===========================
   TBS Offering Package Page
   =========================== */

/* ===========================
   Entrance Animation (bottom → top, staggered)
   =========================== */
@keyframes packagesSlideUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.packages-page--animate .packages-hero {
    animation: packagesSlideUp 0.8s ease-out both;
}

.packages-page--animate .packages-slider {
    opacity: 0;
    animation: packagesSlideUp 0.8s 0.15s ease-out both;
}

.packages-page--animate .packages-factors {
    opacity: 0;
    animation: packagesSlideUp 0.8s 0.3s ease-out both;
}

.packages-page--animate .packages-cta { 
    opacity: 0; animation: packagesSlideUp 0.8s 0.4s ease-out both; 
}

.packages-page--animate .packages-faq {
    opacity: 0;
    animation: packagesSlideUp 0.8s 0.5s ease-out both;
}

.packages-page--animate ~ .site-footer {
    opacity: 0;
    animation: packagesSlideUp 0.8s 0.65s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .packages-page--animate .packages-hero,
    .packages-page--animate .packages-slider,
    .packages-page--animate .packages-factors,
    .packages-page--animate .packages-cta,
    .packages-page--animate .packages-faq,
    .packages-page--animate ~ .site-footer {
        animation: none;
        opacity: 1;
    }

    .packages-slide,
    .packages-faq-answer,
    .packages-faq-item {
        transition-duration: 0.01ms !important;
    }
}

/* ===========================
   Background Glow Effects
   =========================== */
.packages-bg-glows {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.packages-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
}

.packages-bg-glow--1 {
    width: 868px;
    height: 626px;
    background: radial-gradient(circle, rgba(var(--color-secondary-rgb), 0.25) 0%, transparent 70%);
    top: -50px;
    left: -150px;
    transform: rotate(90deg);
}

.packages-bg-glow--2 {
    width: 514px;
    height: 371px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.2) 0%, transparent 70%);
    top: 310px;
    right: -50px;
    transform: rotate(100deg);
}

.packages-bg-glow--3 {
    width: 1367px;
    height: 706px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 70%);
    top: 1200px;
    left: 37px;
}

.packages-bg-glow--4 {
    width: 1367px;
    height: 706px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 70%);
    top: 2200px;
    right: -200px;
}

/* ===========================
   Shared Gradient Border
   =========================== */
.packages-factor-card::before,
.packages-faq-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(184deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.packages-factor-card > *,
.packages-faq-item > * {
    position: relative;
    z-index: 1;
}

/* ===========================
   1. Hero Section
   =========================== */
.packages-hero {
    position: relative;
    z-index: 1;
    padding-top: 200px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.packages-hero-title {
    font-weight: 900;
    font-size: 66px;
    line-height: 86px;
    letter-spacing: -0.33px;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(184deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.packages-hero-desc {
    font-weight: 300;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0.024px;
    color: #fff;
    max-width: 800px;
    text-transform: capitalize;
}

.packages-hero-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

    .packages-hero-tags .products-tag {
        position: relative;
        border: none;
    }

        .packages-hero-tags .products-tag::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 40px;
            padding: 1px;
            background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
        }

/* ===========================
   2. Card Slider
   =========================== */
.packages-slider {
    position: relative;
    z-index: 1;
    padding-top: 40px;
    padding-bottom: 40px;
}

.packages-slider-viewport {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.2);
}

/* Slides stack */
.packages-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Each slide */
.packages-slide {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

    .packages-slide.active {
        opacity: 1;
        pointer-events: auto;
        z-index: 2;
    }

/* Background image */
.packages-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Blue tint overlay */
.packages-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 97, 255, 0.08);
    border-radius: 16px;
    z-index: 1;
}

/* Primary gradient border */
.packages-slider-viewport::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(184deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
}

/* Content overlay at bottom */
.packages-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0px 60px 60px 60px;
    background: linear-gradient(180deg, rgba(0, 0, 40, 0) 0%, rgba(0, 0, 80, 0.6) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 0 0 16px 16px;
}

/* Animated icon */
.packages-slide-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Bottom row: info left + arrows right */
.packages-slide-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.packages-slide-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 650px;
}

.packages-slide-title {
    font-weight: 900;
    font-size: 32px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.packages-slide-desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0.024px;
    color: #fff;
    text-transform: capitalize;
    margin: 0;
    margin-top: 0;
}

.packages-slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 10px 32px;
    border-radius: 32px;
    border: none;
    background: transparent;
    font-weight: 400;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    text-transform: capitalize;
    white-space: nowrap;
    margin-top: 20px;
    transition: background 0.2s;
    width: fit-content;
    position: relative;
}

    .packages-slide-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 32px;
        padding: 2px;
        background: linear-gradient(184deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
    }

    .packages-slide-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
    }

/* Navigation arrows */
.packages-slide-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-shrink: 0;
}

.packages-slide-arrow {
    width: 47px;
    height: 47px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    position: relative;
}

    .packages-slide-arrow::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        padding: 1px;
        background: linear-gradient(184deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
    }

.packages-slide-arrow--next {
    color: var(--color-primary-light);
}

.packages-slide-arrow:hover {
    color: var(--color-primary-light);
}

.packages-slide-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* ===========================
   3. Empowerment Factors
   =========================== */
.packages-factors {
    position: relative;
    z-index: 1;
    padding: 60px var(--content-padding);
}

.packages-factors-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

.packages-factors-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    object-fit: contain;
}

.packages-factors-header-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.packages-factors-title {
    font-weight: 700;
    font-size: 40px;
    line-height: 1.4;
    margin: 0;
    background: linear-gradient(186deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.packages-factors-subtitle {
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    color: var(--color-white);
    opacity: 0.5;
    margin: 0;
    max-width: 555px;
}

.packages-factors-viewport {
    width: 100%;
}

.packages-factors-grid {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.packages-factor-card {
    width: 300px;
    min-height: 289px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    padding: 29px 51px;
    display: flex;
    flex-direction: column;
    gap: 56px;
    box-shadow: -9px 11px 38.1px rgba(0, 0, 0, 0.05);
}

.packages-factor-icon-box {
    width: 43px;
    height: 43px;
    border-radius: 6px;
    background: linear-gradient(227deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .packages-factor-icon-box img {
        width: 29px;
        height: 29px;
    }

.packages-factor-desc {
    font-weight: 300;
    font-size: 22px;
    line-height: 1.4;
    color: #fff;
    text-transform: capitalize;
    margin: 0;
    max-width: 199px;
}

.packages-factors-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.packages-factors-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s;
}

    .packages-factors-dot.active {
        background: var(--color-primary-light);
    }

/* ===========================
 CTA Section
   =========================== */
.packages-cta {
    position: relative;
    z-index: 1;
    padding-top: 20px;
    padding-bottom: 80px;
}

.packages-cta-card {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 70px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.packages-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(184deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.packages-cta-card > * {
    position: relative;
    z-index: 1;
}

.packages-cta-card h2 {
    font-weight: 600;
    font-size: 60px;
    line-height: 1.248;
    letter-spacing: -2px;
    color: #fff;
    margin: 0;
}

.packages-cta-card p {
    font-weight: 500;
    font-size: 15px;
    line-height: 1.9;
    color: #fbfbfb;
    max-width: 527px;
    margin: 0;
}

.packages-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 14px 32px;
    border-radius: 32px;
    background: linear-gradient(204deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.packages-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #000;
}

/* ===========================
   4. FAQ Section
   =========================== */
.packages-faq {
    position: relative;
    z-index: 1;
    padding: 60px var(--content-padding);
}

.packages-faq-header {
    display: flex;
    align-items: center;
    gap: 30px;
}

.packages-faq-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    object-fit: contain;
}

.packages-faq-header-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.packages-faq-title {
    font-weight: 700;
    font-size: 40px;
    line-height: 1.4;
    margin: 0;
    background: linear-gradient(186deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.packages-faq-subtitle {
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    color: var(--color-white);
    opacity: 0.5;
    margin: 0;
    max-width: 555px;
}

.packages-faq-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 60px;
}

.packages-faq-item {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    padding: 16px 32px;
    cursor: pointer;
    transition: padding 0.3s ease;
    position: relative;
}

    .packages-faq-item.active {
        padding: 26px 32px;
    }

.packages-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.packages-faq-question-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0;
    white-space: nowrap;
}

.packages-faq-arrow {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.packages-faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}

.packages-faq-item.active .packages-faq-answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 8px;
}

.packages-faq-answer p {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    text-transform: capitalize;
    color: var(--color-white);
    margin: 0;
}

/* ===========================
   Responsive — 1200px
   =========================== */
@media (max-width: 1200px) {
    .packages-hero-title {
        font-size: 48px;
        line-height: 62px;
    }

    .packages-slider-viewport {
        height: 500px;
    }

    .packages-slide-title {
        font-size: 26px;
    }

    .packages-slide-icon {
        width: 70px;
        height: 70px;
    }

    .packages-factors-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .packages-factor-card {
        width: calc(50% - 8px);
    }
}

/* ===========================
   Responsive — 991px
   =========================== */
@media (max-width: 991px) {
    .packages-hero {
        padding-top: 150px;
    }

    .packages-hero-title {
        font-size: 40px;
        line-height: 52px;
    }

    .packages-slider-viewport {
        height: 450px;
    }

    .packages-slide-content {
        padding: 40px;
    }

    .packages-slide-desc {
        font-size: 14px;
        line-height: 22px;
    }

    .packages-factors-title {
        font-size: 30px;
    }

    .packages-factors-subtitle {
        font-size: 16px;
    }

    .packages-faq-title {
        font-size: 30px;
        white-space: normal;
    }

    .packages-faq-subtitle {
        font-size: 16px;
    }

    .packages-faq-question-title {
        white-space: normal;
    }
}

/* ===========================
   Responsive — 768px
   =========================== */
@media (max-width: 768px) {
    .packages-hero {
        padding-top: 130px;
    }

    .packages-hero-title {
        font-size: 36px;
        line-height: 46px;
    }

    .packages-hero-desc {
        font-size: 14px;
    }

    .packages-hero-tags {
        gap: 16px;
    }

    .packages-slider-viewport {
        height: 400px;
    }

    .packages-slide-content {
        padding: 30px;
    }

    .packages-slide-title {
        font-size: 22px;
    }

    .packages-slide-icon {
        width: 60px;
        height: 60px;
    }

    .packages-slide-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .packages-slide-nav {
        align-self: flex-end;
    }

    .packages-factors-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .packages-factors-header-text {
        align-items: center;
    }

    .packages-factors-icon {
        width: 70px;
        height: 70px;
    }

    .packages-faq-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .packages-faq-header-text {
        align-items: center;
    }

    .packages-faq-icon {
        width: 70px;
        height: 70px;
    }

    .packages-faq-question-title {
        font-size: 15px;
    }

    .packages-faq-arrow {
        width: 36px;
        height: 36px;
    }
}

/* ===========================
   Responsive — 576px
   =========================== */
@media (max-width: 576px) {
    .packages-cta {
        padding-bottom: 40px;
    }

    .packages-cta-card {
        padding: 40px 24px;
    }

    .packages-cta-card h2 {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .packages-cta-card p {
        font-size: 13px;
    }
    
    .packages-hero {
        padding-top: 110px;
    }

    .packages-hero-title {
        font-size: 28px;
        line-height: 38px;
    }

    .packages-hero-tags {
        gap: 10px;
    }

    .packages-slider-viewport {
        height: 360px;
    }

    .packages-slide-content {
        padding: 24px;
        gap: 12px;
    }

    .packages-slide-title {
        font-size: 20px;
    }

    .packages-slide-icon {
        width: 50px;
        height: 50px;
    }

    .packages-slide-btn {
        font-size: 12px;
        padding: 8px 20px;
        height: 34px;
    }

    .packages-slide-arrow {
        width: 38px;
        height: 38px;
    }

    .packages-factors-viewport {
        overflow: hidden;
        width: 100%;
    }

    .packages-factors-grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 16px;
        transition: margin 0.6s ease;
    }

    .packages-factor-card {
        flex-shrink: 0;
        width: auto;
    }

    .packages-factor-desc {
        font-size: 18px;
        max-width: none;
    }

    .packages-factors-dots {
        display: flex;
    }

    .packages-faq-items {
        margin-top: 30px;
        gap: 16px;
    }

    .packages-faq-item {
        padding: 12px 16px;
    }

        .packages-faq-item.active {
            padding: 16px;
        }

    .packages-faq-question-title {
        font-size: 14px;
    }

    .packages-faq-arrow {
        width: 32px;
        height: 32px;
    }
}

/* ===========================
   Responsive — 400px
   =========================== */
@media (max-width: 400px) {
    .packages-slider-viewport {
        height: 320px;
    }

    .packages-slide-content {
        padding: 20px;
    }

    .packages-slide-title {
        font-size: 18px;
    }

    .packages-slide-desc {
        font-size: 13px;
        line-height: 20px;
    }
}

/* ===========================
   RTL Support
   =========================== */
[dir="rtl"] .packages-bg-glow--2 {
    right: auto;
    left: -50px;
}

[dir="rtl"] .packages-bg-glow--4 {
    right: auto;
    left: -200px;
}

[dir="rtl"] .packages-slide-arrow svg {
    transform: scaleX(-1);
}
