/* =========================================================
   GLOBAL HERO STRUCTURE
   ========================================================= */

.page-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.video-hero {
    overflow: hidden;
}

/* 🔥 影片淡入控制 */
.video-hero .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;

    opacity: 0;
    transition: opacity 1.2s ease;
}

/* 當影片 ready 時淡入 */
.video-hero.video-ready .hero-video {
    opacity: 1;
}

.video-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15,17,21,0.75) 0%,
        rgba(15,17,21,0.55) 50%,
        rgba(15,17,21,0.30) 100%
    );
    z-index: 1;
}

.video-hero .hero-content {
    position: relative;
    z-index: 2;
}


/* =========================================================
   GLOBAL HERO TYPOGRAPHY – AUTO SCALE
   ========================================================= */

.page-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;

    text-shadow:
        0 2px 6px rgba(0,0,0,0.9),
        0 8px 24px rgba(0,0,0,0.6);
}

/* 主標自動縮放 */
.page-hero h1 {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #ffffff;
}

/* 副標自動縮放 */
.page-hero .intro-text,
.page-hero p {
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.9;
    color: #e2e8f0;
    margin-top: 14px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* =========================================================
   FAQ Styling – FINAL STABLE VERSION
   ========================================================= */

.faq-question {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding: 22px 0;
    text-align: left;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


.faq-icon {
    font-size: 22px;
    color: #e1111a;          /* 🔥 強制紅色 */
    flex-shrink: 0;         /* 🔥 防止被擠壓 */
    margin-left: 16px;      /* 🔥 避免貼太近 */
    transition: transform 0.35s ease;
}


.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: 
        max-height 0.5s cubic-bezier(.4,0,.2,1),
        opacity 0.4s ease;
    color: #cbd5e1;
}


.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
}


.faq-item.active .faq-question {
    color: #e1111a;
}


.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lang-switch {
    margin-left: 32px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-link {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    transition: 0.3s ease;
}

.lang-link:hover {
    color: #e1111a;
    opacity: 1;
}

.pb-logo-bg {
    display: block;
    height: 40px;
    width: 180px;
    background-image: url("/static/images/pb.logo.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 50%;
    margin-bottom: 16px;
}

.hero-brand-center {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.hero-pb-logo{
    width: 200px;
    height: 37px;
    background-image: url("/static/images/pb.logo.w.svg");
    background-repeat: no-repeat;
    background-position: center;

    background-size: 100% 100%;

    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 0;
    box-shadow: none;

    padding: 0;
}

/* ============================
   CLEAN LANG SWITCH (FINAL STABLE)
   ============================ */

.navbar .nav-links .lang-switch {
    display: inline-flex;
    align-items: center;
    margin-left: 24px;
}

/* 預設樣式 */
.navbar .nav-links .lang-switch .lang-link {
    padding: 0 !important;
    margin: 0;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.25s ease;
}

/* 分隔線 */
.navbar .nav-links .lang-switch .lang-sep {
    display: inline-block;
    margin: 0 4px;
    line-height: 1;
    color: rgba(255,255,255,0.7);
}

/* Hover */
.navbar .nav-links .lang-switch .lang-link:hover {
    color: #e1111a;
}

/* Active 語言（強制生效） */
.navbar .nav-links .lang-switch .lang-link.active-lang {
    color: #e1111a !important;
    font-weight: 600;
}