/* ==========================================================================
   About Page Styles
   ========================================================================== */

.no-scrollbar::-webkit-scrollbar {
    display: none;
  }
  .no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

/* Chặn kéo ngang: hiệu ứng reveal (translateX trái/phải) đẩy nội dung ra ngoài viewport trên mobile.
   Dùng clip thay vì hidden để không tạo scroll container. */
.about-page {
    overflow-x: hidden; /* fallback cho trình duyệt cũ (iOS Safari < 16) chưa hỗ trợ clip */
    overflow-x: clip;
    max-width: 100%;
}

/* ==========================================================================
   Mobile (<= 767px): khối Hero "Tinh Hoa Chế Tác"
   - Có ảnh mobile (admin: Ảnh Hero Mobile 3:4) => khung đổi sang 3:4 dọc.
   - Không có ảnh mobile => giữ ảnh 21:9 như PC (fallback).
   - Lớp phủ tối giảm nhẹ để ảnh nền kem sáng, sạch như demo; thẻ thương hiệu
     rộng ~82% khung, căn giữa.
   ========================================================================== */
@media (max-width: 767px) {
    .about-hero-header {
        margin-bottom: 2rem !important;
    }
    .about-hero-media {
        margin-bottom: 3.5rem !important;
    }
    .about-hero-media.has-mobile {
        aspect-ratio: 3 / 4 !important;
    }
    .about-hero-media.has-mobile .about-hero-shade {
        background-color: rgba(0, 0, 0, 0.04);
    }
    .dark .about-hero-media.has-mobile .about-hero-shade {
        background-color: rgba(0, 0, 0, 0.32);
    }
    .about-hero-media.has-mobile .about-hero-card {
        width: 82%;
        max-width: 22rem;
        padding: 1.5rem 1rem 1.35rem;
        box-shadow: 0 18px 40px -18px rgba(60, 35, 25, 0.35);
    }
    .about-hero-media.has-mobile .about-hero-card h2 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
}

/* ==========================================================================
   Mobile (<= 767px): khối "Dòng sản phẩm"
   - Mỗi chất liệu: ảnh phía trên, tiêu đề + mô tả phía dưới (không dùng thẻ).
   - Thứ tự luôn là ảnh -> chữ (Row 2 đảo lại cho đồng nhất với Row 1 và Row 3).
   - Ảnh căn thẳng lề với chữ; khoảng cách ảnh -> chữ nhỏ hơn khoảng cách giữa 2 khối.
   PC / tablet giữ nguyên.
   ========================================================================== */
@media (max-width: 767px) {
    .about-row {
        row-gap: 1rem !important;
    }
    .about-rows > .about-row + .about-row {
        margin-top: 1.75rem !important;
    }
    /* Chữ gọn: phụ đề -> tiêu đề -> mô tả sát nhau hơn */
    .about-row > .space-y-5 > * + * {
        margin-top: 0.5rem !important;
    }
    .about-row > .space-y-5 > h3 {
        line-height: 1.25;
    }
    .about-row > .space-y-5 > p {
        line-height: 1.65;
    }
    .about-rows > .about-row:nth-child(2) > :first-child { order: 2; }
    .about-rows > .about-row:nth-child(2) > :last-child  { order: 1; }

    /* Khối chưa có ảnh nào trong admin: ẩn vùng ảnh trống */
    .about-row > .about-media-empty {
        display: none !important;
    }

    /* Ảnh thẳng lề với chữ (bỏ px-2 của wrapper) */
    .about-row > .group {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Nền botanica cho khối "Dòng sản phẩm" - chỉ MOBILE (<= 767px).
   Khắc phục triệt để hiện tượng đè 2 lớp sóng và dải trắng ở giữa:
   - ::before: neo ở đỉnh (cao 480px), chỉ lấy phần hoa văn đỉnh và fade mờ dần xuống dưới.
   - ::after: neo ở đáy (cao 480px), chỉ lấy phần hoa văn đáy và fade mờ dần lên trên.
   - Vùng giữa section: thoáng đãng, giúp chữ đọc sắc nét, không bị đường sóng hay gân lá cắt ngang.
   - Light mode: mix-blend-mode multiply + opacity 0.55 hòa tan vào nền kem.
   - Dark mode: mix-blend-mode screen + opacity 0.42 làm ánh vàng đồng sang trọng, không chói, không rối mắt. */
@media (max-width: 767px) {
    .about-products {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        border-top-width: 0;    /* bỏ viền trên/dưới: tránh tạo đường chia cắt đè lớp */
        border-bottom-width: 0;
    }
    .about-products::before,
    .about-products::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        z-index: -1;
        pointer-events: none;
        background-size: 100% auto;
        background-repeat: no-repeat;
    }
    .about-products::before {
        top: 0;
        height: 480px;
        background-image: var(--about-bg-img-light);
        background-position: center top;
        mix-blend-mode: multiply;
        opacity: 0.55;
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
    }
    .about-products::after {
        bottom: 0;
        height: 480px;
        background-image: var(--about-bg-img-light);
        background-position: center bottom;
        mix-blend-mode: multiply;
        opacity: 0.55;
        -webkit-mask-image: linear-gradient(to top, #000 0%, #000 50%, transparent 100%);
        mask-image: linear-gradient(to top, #000 0%, #000 50%, transparent 100%);
    }
    .dark .about-products::before,
    .dark .about-products::after {
        background-image: var(--about-bg-img-dark);
        mix-blend-mode: screen;
        opacity: 0.42;
    }
}

/* ==========================================================================
   Section 3: Xuất Thân Làng Nghề Châu Khê
   - Khớp 100% cột container (max-w-7xl)
   - Tỷ lệ Panorama 3:1 trên PC (khớp kích thước gốc 2172x724 không bị crop)
   - Mobile: Mặt nạ cọ vẽ vector (mask1.eps / mask1.svg)
   ========================================================================== */
.about-origin-mobile-wrapper {
    display: block;
}
.about-origin-media {
    display: none;
    aspect-ratio: 16 / 9;
    width: 100%;
}

@media (min-width: 768px) {
    .about-origin-mobile-wrapper {
        display: none !important;
    }
    .about-origin-media {
        display: block !important;
        aspect-ratio: 3 / 1;
    }
}

.about-origin-brush-mask {
    position: relative;
    width: 100%;
    aspect-ratio: 25.99 / 12.8472;
    -webkit-mask-image: url("../../images/about/mask1.11a682edd482.svg");
    mask-image: url("../../images/about/mask1.11a682edd482.svg");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    mask-mode: alpha;
}

/* ==========================================================================
   Section 4: Quy Trình Chế Tác Thủ Công (Mobile Luxury Process Cards)
   - Chỉ áp dụng giao diện thẻ hình vòm nghệ thuật trên Mobile (<= 767px)
   - Hình vòm góc trên-trái (rounded-tl arch) chuẩn phong cách trang sức cao cấp
   ========================================================================== */
.about-process-section {
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    .about-process-section {
        background-color: #faf6f0;
    }
    .dark .about-process-section {
        background-color: #141416;
    }
    .about-process-card {
        border-radius: 1.25rem;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    }
    .about-process-card:active {
        transform: scale(0.985);
    }
    .about-process-thumb {
        border-radius: 54px 16px 16px 16px;
    }
}

/* ==========================================================================
   Desktop (>= 768px): Hiển thị Slogan Box (Khắc phục thiếu trên PC)
   ========================================================================== */
.about-desktop-slogan {
    display: none;
}
@media (min-width: 768px) {
    .about-desktop-slogan {
        display: block !important;
    }
}

/* ==========================================================================
   Mobile (<= 767px): Section 1 - Maison Brand Highlight & Story
   Thứ tự:
   1. Huy hiệu Logo Sam Jewelry
   2. Triết lý sáng lập (Thẻ nhung đen)
   3. Tầm nhìn của Sam Jewelry (Gộp chung 3 phần)
   4. Dưới cùng là khối Soulmate And Memories (Slogan)
   ========================================================================== */
.sam-mobile-story-wrap {
    position: relative;
}

/* 1. Brand Seal Emblem */
.sam-mobile-seal {
    width: 66px;
    height: 66px;
    border-radius: 9999px;
    padding: 2.5px;
    background: linear-gradient(135deg, #d4a373 0%, #faedcd 45%, #b07d50 100%);
    box-shadow: 0 6px 20px -4px rgba(176, 125, 80, 0.35);
    margin: 0 auto 12px;
    position: relative;
}
.sam-mobile-seal-inner {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.dark .sam-mobile-seal-inner {
    background: #181310;
}
.sam-mobile-seal-sparkle {
    position: absolute;
    top: -2px;
    right: -2px;
    color: #b07d50;
    font-size: 14px;
    filter: drop-shadow(0 0 4px rgba(212, 163, 115, 0.6));
    animation: pulse 2s infinite;
}

/* 2. Founder's Manifesto Card (Triết Lý Sáng Lập) */
.sam-mobile-velvet-manifesto {
    position: relative;
    border-radius: 20px;
    /* Light Mode: Ngọc trai ánh vàng Champagne trang nhã, ấm áp, đồng điệu với thương hiệu */
    background: linear-gradient(145deg, #FFFFFF 0%, #FAF5EE 55%, #F4ECE0 100%) !important;
    border: 1px solid rgba(212, 163, 115, 0.45) !important;
    box-shadow: 0 10px 28px -6px rgba(176, 125, 80, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    padding: 26px 20px 22px;
    margin-bottom: 20px;
    overflow: hidden;
    color: #2D231B !important;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.sam-mobile-velvet-manifesto::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.18) 0%, transparent 70%);
    pointer-events: none;
}
.sam-mobile-velvet-corner {
    position: absolute;
    color: rgba(176, 125, 80, 0.35);
    font-size: 9px;
    line-height: 1;
}
.sam-mobile-velvet-corner.tl { top: 10px; left: 10px; }
.sam-mobile-velvet-corner.tr { top: 10px; right: 10px; }
.sam-mobile-velvet-corner.bl { bottom: 10px; left: 10px; }
.sam-mobile-velvet-corner.br { bottom: 10px; right: 10px; }

.sam-mobile-velvet-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}
.sam-mobile-velvet-badge span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #A36F3D;
}
.sam-mobile-velvet-badge .line {
    height: 1px;
    width: 24px;
    background: linear-gradient(90deg, transparent, #d4a373);
}
.sam-mobile-velvet-badge .line.r {
    background: linear-gradient(90deg, #d4a373, transparent);
}
.sam-mobile-velvet-quote-icon {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    line-height: 1;
    color: #b07d50;
    opacity: 0.7;
    margin-bottom: 4px;
    text-align: center;
    user-select: none;
}
.sam-mobile-velvet-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 15px;
    line-height: 1.8;
    color: #2D231B !important;
    text-align: center;
    margin-bottom: 18px;
    letter-spacing: 0.015em;
    position: relative;
    z-index: 1;
}
.sam-mobile-velvet-author {
    border-top: 1px solid rgba(212, 163, 115, 0.3);
    padding-top: 14px;
    text-align: center;
}
.sam-mobile-velvet-author .name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    color: #A36F3D;
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* Dark Mode: Thẻ nhung đen Obsidian Hoàng Gia */
.dark .sam-mobile-velvet-manifesto {
    background: linear-gradient(145deg, #241A14 0%, #1A120D 45%, #100B07 100%) !important;
    border-color: rgba(212, 163, 115, 0.45) !important;
    box-shadow: 0 16px 36px -10px rgba(18, 11, 7, 0.5), inset 0 1px 0 rgba(255, 235, 205, 0.15) !important;
    color: #FAF4ED !important;
}
.dark .sam-mobile-velvet-badge span {
    color: #e5b98b;
}
.dark .sam-mobile-velvet-quote-icon {
    color: #e5b98b;
    opacity: 0.8;
}
.dark .sam-mobile-velvet-quote {
    color: #FAF4ED !important;
}
.dark .sam-mobile-velvet-author {
    border-color: rgba(212, 163, 115, 0.25);
}
.dark .sam-mobile-velvet-author .name {
    color: #e5b98b;
}

/* 3. Tầm nhìn của Sam Jewelry: Thẻ có đoạn dẫn + 2 khối nhỏ icon */
.sam-mobile-vision-card {
    background: #ffffff;
    border: 1px solid rgba(212, 163, 115, 0.25);
    border-radius: 20px;
    padding: 22px 18px;
    box-shadow: 0 4px 18px -2px rgba(60, 35, 25, 0.04);
}
.dark .sam-mobile-vision-card {
    background: #1b1613;
    border-color: rgba(212, 163, 115, 0.2);
    box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.25);
}
.sam-mobile-vision-lead {
    font-size: 13px;
    line-height: 1.8;
    color: #5c554e;
    font-weight: 300;
    margin-bottom: 16px;
}
.dark .sam-mobile-vision-lead {
    color: #b5aba1;
}
.sam-mobile-vision-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sam-mobile-vision-item:not(:last-child) {
    margin-bottom: 14px;
}
.sam-mobile-vision-icon {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: rgba(212, 163, 115, 0.12);
    border: 1px solid rgba(212, 163, 115, 0.2);
    color: #b07d50;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.dark .sam-mobile-vision-icon {
    background: rgba(212, 163, 115, 0.18);
    border-color: rgba(212, 163, 115, 0.25);
    color: #e5b98b;
}
.sam-mobile-vision-text {
    font-size: 12.5px;
    line-height: 1.75;
    color: #5c554e;
    font-weight: 300;
    flex: 1;
}
.dark .sam-mobile-vision-text {
    color: #b5aba1;
}

/* 4. Brand Slogan Ribbon (Dưới cùng) */
.sam-mobile-slogan-wrap {
    border-radius: 18px;
    padding: 20px 18px;
    text-align: center;
    background: linear-gradient(180deg, rgba(212, 163, 115, 0.08) 0%, rgba(212, 163, 115, 0.02) 100%);
    border: 1px solid rgba(212, 163, 115, 0.28);
    position: relative;
}
.sam-mobile-slogan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}
.sam-mobile-slogan-badge .title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #b07d50;
    font-weight: 600;
}
.sam-mobile-slogan-text {
    font-size: 12.5px;
    line-height: 1.75;
    font-style: italic;
    color: #5c554e;
    font-weight: 300;
    max-width: 290px;
    margin: 0 auto 10px;
}
.dark .sam-mobile-slogan-text {
    color: #b5aba1;
}
.sam-mobile-slogan-sign {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13.5px;
    letter-spacing: 0.25em;
    color: #b07d50;
    font-weight: 600;
}