/* About Story — modal đọc kiểu bài viết (bố cục editorial theo mẫu Canva) */

/* Font headline/footer của brand */
@font-face {
    font-family: 'VL Saudagar';
    src: url('../fonts/vl-saudagar.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.story-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 21, 16, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.story-overlay.active {
    opacity: 1;
    visibility: visible;
}

.story-article {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #f5efe4;
    border-radius: 18px;
    max-width: 880px;
    width: 100%;
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(26, 21, 16, 0.35);
    transform: translateY(24px);
    transition: transform 0.35s ease;
}

.story-overlay.active .story-article {
    transform: translateY(0);
}

.story-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

.story-close:hover {
    background: #fff;
    transform: rotate(90deg);
}

.story-close svg {
    width: 20px;
    height: 20px;
    color: #3a2916;
}

/* Ảnh hero trên đầu bài viết */
.story-hero {
    position: relative;
    flex-shrink: 0;
    height: clamp(180px, 30vh, 280px);
    background: #1a1510;
    overflow: hidden;
}

.story-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Vùng nội dung cuộn được */
.story-body {
    flex: 1;
    overflow-y: auto;
    padding: clamp(32px, 5vw, 56px) clamp(28px, 5vw, 60px) clamp(40px, 5vw, 56px);
}

/* Dấu ngoặc góc ┌ dùng chung cho tiêu đề & tagline */
.story-corner {
    position: relative;
    padding-top: 22px;
    padding-left: 22px;
}

.story-corner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border-top: 4px solid #3a2916;
    border-left: 4px solid #3a2916;
}

.story-title {
    font-family: 'VL Saudagar', 'Be Vietnam Pro', serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: #3a2916;
    line-height: 1.1;
    letter-spacing: 0.5px;
    margin: 0 0 30px;
}

/* Thân bài chia 2 cột trên desktop, dồn 1 cột trên mobile */
.story-columns {
    column-count: 2;
    column-gap: 44px;
}

.story-columns p {
    break-inside: avoid;
    color: #4c4238;
    font-size: 15.5px;
    line-height: 1.75;
    margin: 0 0 18px;
    text-align: left;
}

.story-columns p strong {
    color: #3a2916;
    font-weight: 700;
}

/* Tagline slab, canh giữa khối, ngoặc góc top-left */
.story-tagline-wrap {
    text-align: center;
    margin-top: 40px;
}

.story-tagline {
    display: inline-block;
    text-align: left;
    font-family: 'VL Saudagar', 'Be Vietnam Pro', serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    color: #3a2916;
    margin: 0;
}

.story-body::-webkit-scrollbar {
    width: 8px;
}

.story-body::-webkit-scrollbar-thumb {
    background: #d4b896;
    border-radius: 4px;
}

@media (max-width: 640px) {
    .story-columns {
        column-count: 1;
    }
    .story-title {
        margin-bottom: 24px;
    }
}
