:root {
    --bg-dark: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: #A3A3A3;
    --text-muted: #6B6B6B;
    
    --font-heading: 'Afacad', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background-color: var(--bg-dark) !important; /* Force black for platform */
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: normal;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Container chính 1360px */
.container {
    width: 1360px;
    margin: 0 auto;
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--bg-dark); /* Ensure it's not transparent */
}

/* Override platform-specific container backgrounds which default to white */
#kbwcs-container, 
.sp-detail,
.magazine-container,
.kbw-content,
.body-wrapper,
.detail-content,
.body-container,
.wrapper,
#wrapper,
[id^='kbwcs-'] {
    background-color: var(--bg-dark) !important;
    color: var(--text-primary) !important;
}

/* HERO Section - Fixed Layout from Screenshot */
.hero {
    position: relative;
    width: 100%;
    margin-top: 44px; /* Requested margin */
    height: auto; /* Width decides height now */
    background-color: #F3F3F3;
    overflow: hidden;
}

.hero-bg,
.hero-bg img {
    position: relative;
    width: 100%;
    height: auto;
    left: 0;
    transform: none;
    display: block;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1360px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 30px; /* Offset from top - Moved up 70px from 100px */
    z-index: 2;
}

/* Center Cluster Design */
.hero-center-cluster {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.hero-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-name {
    font-family: 'Afacad', sans-serif;
    font-weight: 600;
    font-size: 110px; /* Precise size from screenshot */
    letter-spacing: -2px;
    line-height: 0.9;
    color: #000;
    margin-bottom: 20px;
}

.hero-statement {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: #000;
}

/* 2-Column Grid Layout */
.row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* CRITICAL for position: sticky to work */
    margin-bottom: 150px;
    width: 1360px;
    position: relative; /* Base for absolute alignment */
}

/* Row Stretch Utility for Bottom Alignment */
.row-stretch {
    align-items: stretch !important;
}

.row-stretch .col-left {
    display: flex;
    flex-direction: column;
}

.col-left {
    width: 670px; /* Fixed pixels */
}

.col-right {
    width: 560px; /* Fixed pixels */
}

/* Typography Utility */
.title-large {
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -3.2px;
    margin-bottom: 40px;
}

.text-content {
    font-family: var(--font-body);
    font-size: 22px;
    line-height: normal;
    text-align: justify;
    color: var(--text-secondary);
}

.text-content p {
    margin-bottom: 30px;
}

.text-white { color: #FFFFFF; }
.text-muted { color: #6B6B6B; }

/* Image Assets */
.img-box {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.img-box img {
    width: 100%;
    display: block;
}

.caption-fixed {
    font-family: var(--font-heading);
    font-size: 50px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -2px;
    color: #EDEDED;
}

/* Decorative Masks */
.mask-18 {
    position: absolute;
    width: 426px;
    height: 279px;
    mask-image: url('assets/mask_rect_18.jpg');
    mask-size: 310px 178px;
    mask-position: 58px 50px;
    mask-repeat: no-repeat;
    background: #FFFFFF;
    pointer-events: none;
}

.mask-19 {
    position: absolute;
    width: 613px;
    height: 361px;
    mask-image: url('assets/mask_rect_19.jpg');
    mask-size: 292px 32px;
    mask-position: 160px 164px;
    mask-repeat: no-repeat;
    background: #FFFFFF;
    pointer-events: none;
}

/* Intro Section with Black Background */
.section-intro-black {
    background-color: #000;
    width: 100%;
    padding: 100px 0;
}

.intro-3-cols {
    display: flex;
    width: 1360px;
    margin: 0 auto;
    justify-content: space-between;
}

.intro-col-sidebar {
    width: 186px;
    height: 177px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #FFF;
}

.intro-col-content {
    width: 555px; /* Fixed width from Figma */
    font-family: var(--font-body);
    font-size: 22px;
    line-height: normal;
    text-align: justify;
    color: #A1A1A1;
}

.intro-col-content p {
    margin-bottom: 0px;
}

.intro-col-content strong {
    color: #FFF;
    font-weight: 700;
}

/* Alignment Utilities */
.col-right-dynamic {
    position: relative; /* Essential for relative logo/content offsets */
}

/* Logo aligned with Title baseline (~132px for 2 lines of 80px title) */
.logo-title-baseline {
    position: absolute;
    right: 0px;
    top: 110px; /* Precise pixel tuning for 80px font baseline */
}

/* Content aligned with Top of Image (~Title + 40px margin = ~144+40 = 184px) */
.content-image-top {
    margin-top: 224px; /* Title (144px height) + Image margin-top (40px) + Title margins (40px) = 224px total */
}

.sticky-top {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* REVEAL ON SCROLL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1360px) {
    .container, .hero-content, .intro-3-cols, .row {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .hero {
        height: 800px;
    }
    .hero-bg {
        width: auto;
        height: 100%;
    }
    .hero-center-cluster {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .hero-brand-col {
        align-items: center;
    }
    .title-large {
        font-size: 60px;
    }
    .caption-fixed {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 60px 20px;
    }

    .hero {
        height: 100vh;
        margin-top: 0px;
    }

    .hero-bg, .hero-bg img {
        width: 100%;
        height: 100%;
        position: absolute;
        object-fit: cover;
    }

    .row {
        flex-direction: column;
        margin-bottom: 60px;
        width: 100%;
    }

    .col-left, .col-right {
        width: 100% !important;
    }

    .title-large {
        font-size: 36px;
        margin-bottom: 24px;
        letter-spacing: -1.4px;
    }

    .text-content {
        font-size: 16px;
    }

    .caption-fixed {
        font-size: 28px;
        letter-spacing: -1px;
        width: 100% !important;
    }

    .intro-3-cols {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }

    .section-intro-black {
        padding: 60px 20px;
    }

    .intro-col-sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 30px;
        margin-bottom: 20px;
    }

    .intro-col-content {
        font-size: 16px;
        width: 100%;
    }

    .hero-name {
        font-size: 48px;
        margin-bottom: 15px;
        letter-spacing: -1px;
    }

    .hero-statement {
        font-size: 14px;
    }

    .hero-content {
        width: 100%;
        padding: 40px 20px 0;
    }

    .hero-center-cluster {
        gap: 24px;
    }

    .hero-brand-col img {
        width: 200px !important;
    }

    .logo-title-baseline {
        position: relative;
        top: 0;
        right: 0;
        text-align: left;
        margin-bottom: 30px;
    }

    .content-image-top {
        margin-top: 0;
    }

    .img-box {
        margin-bottom: 20px;
    }

    .sticky-top {
        position: relative;
        top: 0;
    }

    /* Small adjustments for the last logo block */
    .row-stretch .col-left div[style*="text-align: right"] {
        text-align: left !important;
        padding-top: 10px !important;
    }

    /* Reveal from top to bottom for mobile */
    .reveal {
        transform: translateY(-30px);
    }
    .reveal.active {
        transform: translateY(0);
    }
}
