/**
 * Thịnh Theme — Banner Type 2 Frontend CSS
 * Luxury Hero Section & Visual Slideshow
 * Note: Tuân theo font-family mặc định của website setup
 */

/* ============================================================
   1. HERO CONTAINER & THEME PRESETS
   ============================================================ */
.tt-b2-hero {
    position: relative;
    color: #ffffff;
    overflow: hidden;
    padding: 60px 0 80px;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    font-family: inherit;
}

/* Background Presets */
.tt-b2-preset-wine {
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(201, 162, 75, 0.28), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(154, 22, 32, 0.6), transparent 55%),
        linear-gradient(135deg, #5A070C 0%, #7A0C12 55%, #9A1620 100%);
}

.tt-b2-preset-navy {
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(201, 162, 75, 0.28), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(15, 44, 89, 0.6), transparent 55%),
        linear-gradient(135deg, #09192f 0%, #0d2847 55%, #163e6e 100%);
}

.tt-b2-preset-emerald {
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(201, 162, 75, 0.28), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(12, 68, 44, 0.6), transparent 55%),
        linear-gradient(135deg, #062316 0%, #0c442c 55%, #13603e 100%);
}

.tt-b2-preset-dark {
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(201, 162, 75, 0.28), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(45, 45, 45, 0.6), transparent 55%),
        linear-gradient(135deg, #111111 0%, #1c1c1c 55%, #2a2a2a 100%);
}

.tt-b2-preset-custom {
    background-color: #5A070C;
}

.tt-b2-bg-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
}

.tt-b2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.tt-b2-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

/* ============================================================
   2. INTRO / FOUNDER 3D GOLD BADGE
   ============================================================ */
.tt-b2-founder-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(155deg, #FFF6D8 0%, #F6DD8E 20%, #E4C979 40%, #C9A24B 62%, #A9812F 84%, #8A6A24 100%);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    padding: 10px 22px 10px 12px;
    margin-bottom: 24px;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.75),
        inset 0 -6px 14px rgba(0, 0, 0, 0.28),
        0 20px 45px -12px rgba(0, 0, 0, 0.55),
        0 6px 16px -4px rgba(201, 162, 75, 0.6);
    overflow: hidden;
    user-select: none;
}

.tt-b2-founder-badge::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 45%);
    pointer-events: none;
}

.tt-b2-has-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.68), transparent);
    animation: ttB2FounderShine 3.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ttB2FounderShine {
    0% { left: -70%; }
    45%, 100% { left: 135%; }
}

.tt-b2-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.tt-b2-avatar-img,
.tt-b2-avatar-fallback {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.4), inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.tt-b2-avatar-fallback {
    background: #FBF6EC;
    color: #7A0C12;
    font-size: 24px;
    font-weight: 800;
}

.tt-b2-founder-info {
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.tt-b2-founder-name {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #7A0C12;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    letter-spacing: -0.01em;
}

.tt-b2-founder-sub {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #5A070C;
    margin-top: 3px;
    letter-spacing: -0.005em;
}

/* ============================================================
   3. HEADING & CONTENT
   ============================================================ */
.tt-b2-heading {
    font-size: clamp(2.2rem, 4.5vw, 3.3rem);
    font-weight: 800;
    line-height: 1.16;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0 0 18px 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.tt-b2-heading span,
.tt-b2-gold-gradient {
    background: linear-gradient(90deg, #FFF1BC 0%, #E4C979 45%, #A9812F 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tt-b2-description {
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 26px;
    max-width: 560px;
}

.tt-b2-description b,
.tt-b2-description strong {
    color: #E4C979;
    font-weight: 700;
}

/* ============================================================
   4. CTA BUTTONS
   ============================================================ */
.tt-b2-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.tt-b2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 9999px;
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
    box-sizing: border-box;
}

.tt-b2-btn-gold {
    background: linear-gradient(180deg, #E4C979, #C9A24B 55%, #A9812F);
    color: #5A070C !important;
    box-shadow: 0 10px 25px -8px rgba(169, 129, 47, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.tt-b2-btn-gold:hover {
    transform: translateY(-2.5px);
    filter: brightness(1.06);
    box-shadow: 0 16px 32px -10px rgba(169, 129, 47, 0.9);
}

.tt-b2-btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(228, 201, 121, 0.55);
    color: #E4C979 !important;
    backdrop-filter: blur(4px);
}

.tt-b2-btn-outline:hover {
    transform: translateY(-2.5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: #E4C979;
    color: #ffffff !important;
}

/* ============================================================
   5. STATS / SCROLL-TRIGGERED COUNTER (ĐƯỢC TRÌNH BÀY LẠI CÂN ĐỐI & ĐẸP MẮT)
   ============================================================ */
.tt-b2-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 540px;
    margin-top: 10px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(228, 201, 121, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 30px -12px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.tt-b2-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2px 8px;
}

.tt-b2-stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(228, 201, 121, 0.35), transparent);
}

.tt-b2-stat-number {
    font-size: clamp(2rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    color: #E4C979;
    background: linear-gradient(180deg, #FFF3C4 0%, #E4C979 50%, #C9A24B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: -0.01em;
    display: inline-block;
}

.tt-b2-stat-label {
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 6px 0 0 0;
    line-height: 1.3;
}

/* ============================================================
   6. RIGHT COLUMN VISUAL SLIDER (KÉO CHUYỂN TRANG + BULLETS TINH TẾ)
   ============================================================ */
.tt-b2-visual-wrap {
    position: relative;
    width: 100%;
}

.tt-b2-glow-aura {
    position: absolute;
    inset: -14px;
    background: rgba(201, 162, 75, 0.2);
    border-radius: 2.2rem;
    filter: blur(28px);
    pointer-events: none;
    z-index: 1;
}

/* Top Ribbon Badge */
.tt-b2-ribbon {
    position: absolute;
    top: -12px;
    right: 18px;
    z-index: 25;
    background: linear-gradient(180deg, #E4C979 0%, #C9A24B 60%, #A9812F 100%);
    color: #5A070C;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    padding: 10px 16px 20px;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.45);
    clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
    pointer-events: none;
}

/* Slider Box */
.tt-b2-slider-box {
    position: relative;
    z-index: 2;
    aspect-ratio: 4 / 5;
    min-height: 440px;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 4px solid rgba(201, 162, 75, 0.45);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65);
    background: #110507;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.tt-b2-slider-box.tt-b2-dragging {
    cursor: grabbing;
}

.tt-b2-slides {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tt-b2-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.85s;
    z-index: 1;
}

.tt-b2-slide.tt-b2-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.tt-b2-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.08);
    transition: transform 6.5s ease-out;
    pointer-events: none;
    -webkit-user-drag: none;
}

.tt-b2-slide.tt-b2-active img {
    transform: scale(1);
}

/* Caption bottom overlay */
.tt-b2-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.2rem 1.4rem 1.4rem;
    background: linear-gradient(to top, rgba(35, 4, 7, 0.95), rgba(35, 4, 7, 0.4) 60%, transparent);
    z-index: 3;
    pointer-events: none;
}

.tt-b2-capline {
    display: block;
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.65s ease 0.2s, opacity 0.65s ease 0.2s;
}

.tt-b2-slide.tt-b2-active .tt-b2-capline {
    transform: none;
    opacity: 1;
}

/* Navigation Arrows */
.tt-b2-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 22;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #E4C979;
    border: 1px solid rgba(228, 201, 121, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tt-b2-slider-box:hover .tt-b2-arrow {
    opacity: 1;
}

.tt-b2-prev {
    left: 12px;
}

.tt-b2-next {
    right: 12px;
}

.tt-b2-arrow:hover {
    background: rgba(228, 201, 121, 0.95);
    color: #5A070C;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Dots Navigation (Exact match to reference: sleek, clean horizontal bars with no background box) */
.tt-b2-dots {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 22;
    display: flex;
    gap: 6px;
    align-items: center;
    pointer-events: auto;
}

.tt-b2-dot {
    all: unset !important;
    display: block !important;
    width: 22px !important;
    height: 3px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: 3px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.4) !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background 0.3s ease, width 0.3s ease !important;
    box-sizing: border-box !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}

.tt-b2-dot:hover {
    background: rgba(255, 255, 255, 0.75) !important;
}

.tt-b2-dot.tt-b2-active {
    background: #E4C979 !important;
    width: 30px !important;
    box-shadow: 0 0 6px rgba(228, 201, 121, 0.5) !important;
}

/* ============================================================
   7. MINI PORTRAIT CARD UNDER SLIDER
   ============================================================ */
.tt-b2-mini-card {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FBF6EC;
    border-radius: 1.1rem;
    padding: 12px 18px;
    border: 1px solid rgba(201, 162, 75, 0.45);
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.4);
    max-width: 420px;
}

.tt-b2-mini-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(201, 162, 75, 0.7);
    background: #7A0C12;
}

.tt-b2-mini-avatar img,
.tt-b2-mini-avatar .tt-b2-avatar-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    font-size: 18px;
}

.tt-b2-mini-info {
    line-height: 1.3;
}

.tt-b2-mini-name {
    display: block;
    font-size: 16.5px;
    font-weight: 700;
    color: #7A0C12;
}

.tt-b2-mini-desc {
    display: block;
    font-size: 13px;
    color: #8A6A24;
    margin-top: 2px;
    font-weight: 500;
}

/* Golden bottom separator */
.tt-b2-divider-gold {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C9A24B, transparent);
}

/* ============================================================
   8. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 992px) {
    .tt-b2-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .tt-b2-slider-box {
        max-width: 520px;
        margin: 0 auto;
    }
    .tt-b2-mini-card {
        margin: 18px auto 0;
    }
    .tt-b2-arrow {
        opacity: 0.85;
    }
}

@media (max-width: 600px) {
    .tt-b2-hero {
        padding: 40px 0 60px;
    }
    .tt-b2-founder-badge {
        padding: 8px 16px 8px 10px;
    }
    .tt-b2-avatar-img,
    .tt-b2-avatar-fallback {
        width: 62px;
        height: 62px;
    }
    .tt-b2-founder-name {
        font-size: 22px;
    }
    .tt-b2-founder-sub {
        font-size: 13px;
    }
    .tt-b2-buttons {
        flex-direction: column;
    }
    .tt-b2-btn {
        width: 100%;
        text-align: center;
    }
    .tt-b2-stats-grid {
        padding: 12px 10px;
        gap: 8px;
    }
    .tt-b2-stat-number {
        font-size: 1.8rem;
    }
    .tt-b2-stat-label {
        font-size: 12px;
    }
}
