/* ==========================================================================
   RƯỢU CỬU LONG - TRANG QUY TRÌNH SẢN PHẨM (EXACT PDF REPLICATION)
   Khớp 100% mẫu thiết kế "2. Trang quy trình sản phẩm.pdf"
   ========================================================================== */

/* --- 1. Global Page Background & Typography --- */
body.page-quy-trinh {
    background-color: #f0ece9;
    background-image: url('../images/pattern-bg-soft.svg');
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 1920px auto;
    color: #163d3d;
    font-family: 'BT Danta', 'BT Danta VF', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. Symmetrical Light Navigation Header is standardized in assets/css/style.css --- */

/* --- 3. Hero Section (Title + Banner Image) --- */
.process-hero-section {
    position: relative;
    padding-top: 110px;
    padding-bottom: 0;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: visible;
}

.process-hero-banner-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    line-height: 0;
    position: relative;
}

.process-hero-banner-container img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.process-hero-title-wrap {
    position: absolute;
    top: clamp(20px, 3.17vw, 61px);
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
    z-index: 10;
}

.process-title-lockup {
    display: inline-grid;
    grid-template-columns: max-content auto;
    row-gap: clamp(10px, 1.2vw, 16px);
    margin: 0 auto;
    text-align: left;
    pointer-events: auto;
}

.process-hero-title-l1 {
    display: contents;
    font-family: 'BT Danta', 'BT Danta VF', sans-serif;
    font-size: clamp(1.85rem, 2.7vw, 2.85rem);
    font-weight: 700;
    color: #163d3d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.25;
}

.proc-word-prefix {
    grid-column: 1;
    grid-row: 1;
    font-family: 'BT Danta', 'BT Danta VF', sans-serif;
    font-size: clamp(1.85rem, 2.7vw, 2.85rem);
    font-weight: 700;
    color: #163d3d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.25;
    white-space: pre;
    margin: 0;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

.proc-word-nine {
    grid-column: 2;
    grid-row: 1;
    font-family: 'BT Danta', 'BT Danta VF', sans-serif;
    font-size: clamp(1.85rem, 2.7vw, 2.85rem);
    font-weight: 700;
    color: #163d3d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.25;
    white-space: nowrap;
    margin: 0;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

.process-hero-title-l2 {
    grid-column: 2;
    grid-row: 2;
    font-family: 'BT Danta', 'BT Danta VF', sans-serif;
    font-size: clamp(1.85rem, 2.7vw, 2.85rem);
    font-weight: 700;
    color: #163d3d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.25;
    white-space: nowrap;
    margin: 0;
    padding-left: 0;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

/* --- 4. Main 9 Steps Section --- */
.process-main-section {
    position: relative;
    margin-top: clamp(-50px, -4.4vw, -84px);
    padding: 0 0 60px 0;
    z-index: 5;
}

.process-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.process-step-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(30px, 3.1vw, 60px);
    margin-bottom: 60px;
    position: relative;
}

.process-step-row.row-even {
    flex-direction: row-reverse;
    margin-bottom: 60px;
}

.process-step-row.row-step-8 {
    margin-bottom: 60px;
}

.process-step-row.row-step-9 {
    margin-bottom: 60px;
}

/* Text Column */
.step-text-col {
    flex: 0 0 710px;
    max-width: 710px;
    min-width: 0;
    position: relative;
}

.step-watermark-number {
    font-family: 'BT Danta', 'BT Danta VF', sans-serif;
    font-size: clamp(85px, 8.33vw, 160px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    white-space: nowrap;
    display: block;
    padding-top: 0.16em;
    background: linear-gradient(180deg, rgba(22, 61, 61, 0.14) 0%, rgba(22, 61, 61, 0.03) 75%, rgba(240, 236, 233, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
    pointer-events: none;
    margin-top: -0.35em;
    margin-bottom: -0.42em;
    position: relative;
    z-index: 1;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

.step-heading-title {
    font-family: 'BT Danta', 'BT Danta VF', sans-serif;
    font-size: clamp(22px, 1.67vw, 32px);
    font-weight: 700;
    color: #163d3d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.35;
    white-space: nowrap;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

.step-desc-para {
    font-family: 'BT Danta', 'BT Danta VF', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #163d3d;
    line-height: 1.7;
    max-width: 710px;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Media Column */
.step-media-col {
    flex: 0 0 610px;
    max-width: 610px;
}

/* Single Image Card (Steps 1, 2, 3, 4, 5, 6, 7, 9) */
.step-card-image {
    width: 100%;
    height: 485px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(22, 61, 61, 0.08);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.25, 1), box-shadow 0.4s ease;
}

.step-card-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(22, 61, 61, 0.16);
}

.step-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.step-card-image:hover img {
    transform: scale(1.03);
}

/* Step 8 Multi-image Grid */
.step-8-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step-8-top-card {
    width: 100%;
    height: 337px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(22, 61, 61, 0.08);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.25, 1), box-shadow 0.4s ease;
}

.step-8-top-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(22, 61, 61, 0.16);
}

.step-8-top-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.step-8-top-card:hover img {
    transform: scale(1.03);
}

.step-8-sub-row {
    display: flex;
    gap: 14px;
    width: 100%;
}

.step-8-sub-card {
    flex: 1;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(22, 61, 61, 0.08);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.25, 1), box-shadow 0.4s ease;
}

.step-8-sub-card:last-child {
    flex: 1.07;
}

.step-8-sub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(22, 61, 61, 0.14);
}

.step-8-sub-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.step-8-sub-card:hover img {
    transform: scale(1.04);
}

/* Subtle Metallic Sweep on Image Hover */
.step-card-image::after,
.step-8-top-card::after,
.step-8-sub-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -130%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.08) 25%,
        rgba(255, 248, 220, 0.4) 45%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 248, 220, 0.4) 55%,
        rgba(255, 255, 255, 0.08) 75%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 8;
    opacity: 0;
    transition: none;
    filter: drop-shadow(0 0 10px rgba(255, 240, 180, 0.85));
}

.step-card-image:hover::after,
.step-8-top-card:hover::after,
.step-8-sub-card:hover::after {
    opacity: 1;
    left: 170%;
    transition: left 0.75s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.5s ease-in-out;
}

/* --- 5. Footer Đồng Bộ Toàn Hệ Thống (Tuân thủ Quy chuẩn CLV) --- */


/* --- 6. Responsive Breakpoints --- */
@media (max-width: 1200px) {
    .process-container {
        max-width: 100%;
        padding: 0 30px;
    }
    .process-step-row {
        gap: 40px;
        margin-bottom: 50px;
    }
    .step-text-col {
        flex: 1;
        max-width: none;
    }
    .step-media-col {
        flex: 0 0 480px;
        max-width: 480px;
    }
    .step-card-image {
        height: 390px;
    }
    .step-8-top-card {
        height: 270px;
    }
    .step-8-sub-card {
        height: 150px;
    }
    .step-heading-title {
        white-space: normal;
    }
}

@media (max-width: 991px) {
    .nav-group-left, .nav-group-right {
        display: none !important;
    }
    .mobile-header-btn {
        display: block !important;
    }
    .process-hero-title-wrap {
        position: relative;
        top: 0;
        padding: 20px 20px 0 20px;
    }
    .process-title-lockup {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        row-gap: 8px;
        padding: 0 16px;
    }
    .process-hero-title-l1 {
        display: block;
        text-align: center;
    }
    .proc-word-prefix,
    .proc-word-nine {
        display: inline;
        white-space: normal;
        text-align: center;
    }
    .process-hero-title-l2 {
        display: block;
        white-space: normal;
        text-align: center;
    }
    .process-main-section {
        margin-top: 0;
        padding-top: 20px;
    }
    .process-step-row,
    .process-step-row.row-even {
        flex-direction: column !important;
        gap: 25px;
        margin-bottom: 50px;
    }
    .step-text-col,
    .step-media-col {
        max-width: 100%;
        width: 100%;
        flex: auto;
    }
    .step-card-image {
        height: 380px;
    }
    .step-watermark-number {
        margin-top: 0;
        margin-bottom: -20px;
        padding-top: 0.16em;
        line-height: 1.05;
    }
    .step-heading-title {
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .header-centered-wrap {
        padding: 0 16px;
    }
    .process-container {
        padding: 0 16px;
    }
    .step-card-image {
        height: 250px;
        border-radius: 12px;
    }
    .step-8-top-card {
        height: 200px;
        border-radius: 12px;
    }
    .step-8-sub-card {
        height: 120px;
        border-radius: 10px;
    }
    .step-8-grid {
        gap: 10px;
    }
    .step-8-sub-row {
        gap: 10px;
    }
    .step-watermark-number {
        font-size: 72px;
        margin-bottom: -15px;
        padding-top: 0.16em;
        line-height: 1.05;
    }
    .step-heading-title {
        font-size: 20px;
        margin-bottom: 10px;
        white-space: normal;
    }
    .step-desc-para {
        font-size: 15px;
        line-height: 1.7;
    }
    .proc-word-prefix,
    .proc-word-nine,
    .process-hero-title-l2 {
        font-size: 24px;
    }
}
