/**
 * Bố cục bài bộ sưu tập — tham chiếu typography & spacing từ bocucbaibosuutap.html
 * Load khi bài dc_collection có block linh hoạt (c_* hoặc dodc_*).
 */

:root {
    --dodc-primary: #1a1a1a;
    --dodc-gold: #b89c6a;
    --dodc-bg: #f9f8f6;
    --dodc-white: #fff;
    --dodc-gray-light: #e5e5e5;
    --dodc-gray-text: #666;
    --dodc-gray-dark: #333;
    --dodc-font-serif: "Cormorant Garamond", ui-serif, Georgia, "Times New Roman", serif;
    --dodc-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --dodc-transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dodc-section {
    padding: 0 0 30px 0;
    /* border-top: 1px solid var(--dodc-gray-light); */
    color: var(--dodc-primary);
    font-family: var(--dodc-font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

.dodc-container {
    max-width: 1280px;
    margin: 0 auto;
    /* padding: 0 24px; */
}

.dodc-container-sm {
    max-width: 900px;
    margin: 0 auto;
    /* padding: 0 24px; */
}

/* Tương đương: block text-[#B89C6A] text-xs uppercase tracking-[0.2em] font-sans mb-4 */
.dodc-tagline {
    display: block;
    font-family: var(--dodc-font-sans);
    color: #b89c6a;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

/* Tương đương: font-serif text-4xl mb-6 text-[#1A1A1A] */
.dodc-title {
    font-family: var(--dodc-font-serif);
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
}

.dodc-desc {
    font-size: 1.125rem;
    color: var(--dodc-gray-text);
    font-weight: 300;
    margin: 0 0 32px;
    line-height: 1.65;
}

.dodc-desc > *:last-child {
    margin-bottom: 0;
}

.dodc-section .dodc-container-sm > .dodc-desc:last-child {
    margin-bottom: 0;
}

.dodc-desc p {
    margin: 0 0 1.25em;
}

.dodc-desc h2,
.dodc-desc h3,
.dodc-desc h4 {
    font-family: var(--dodc-font-serif);
    font-weight: 400;
    color: var(--dodc-primary);
    line-height: 1.25;
    margin: 0 0 20px 0;
}

.dodc-desc h2 {
    font-size: 2rem;
}

.dodc-desc h3 {
    font-size: 1.5rem;
}

.dodc-desc h4 {
    font-size: 1.25rem;
}

.dodc-desc ul,
.dodc-desc ol {
    margin: 0 0 1.25em 1.25em;
    padding: 0;
}

.dodc-desc li {
    margin: 0.35em 0;
}

.dodc-desc a {
    color: var(--dodc-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.dodc-desc a:hover {
    color: var(--dodc-gold);
}

.dodc-desc blockquote {
    margin: 1.5em 0;
    padding-left: 1.25rem;
    border-left: 2px solid var(--dodc-gold);
    color: var(--dodc-primary);
    font-family: var(--dodc-font-serif);
    font-size: 1.25rem;
    font-style: italic;
}

.dodc-desc img,
.dodc-desc video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.25em 0;
}

.dodc-desc figure {
    margin: 1.5em 0;
}

.dodc-desc figcaption {
    font-size: 0.8125rem;
    color: var(--dodc-gray-text);
    margin-top: 0.5em;
}

.dodc-desc table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25em 0;
    font-size: 0.9375rem;
}

.dodc-desc th,
.dodc-desc td {
    border: 1px solid var(--dodc-gray-light);
    padding: 0.6em 0.75em;
    text-align: left;
}

.dodc-desc hr {
    border: 0;
    border-top: 1px solid var(--dodc-gray-light);
    margin: 2em 0;
}

.dodc-drop-cap::first-letter {
    font-family: var(--dodc-font-serif);
    font-size: 5rem;
    color: var(--dodc-gold);
    float: left;
    line-height: 0.8;
    padding-right: 12px;
    padding-top: 8px;
}

.dodc-quote {
    border-left: 2px solid var(--dodc-gold);
    padding-left: 24px;
    margin: 40px 0;
}

.dodc-quote p {
    font-family: var(--dodc-font-serif);
    font-size: 1.75rem;
    font-style: italic;
    color: var(--dodc-primary);
    margin: 0;
}

/* Khối nền tối (ví dụ Đầu tư) */
.dodc-section.dodc-section--invert {
    background: var(--dodc-primary);
    color: var(--dodc-white);
    border-top-color: #2a2a2a;
}

.dodc-section--invert .dodc-tagline {
    color: var(--dodc-gold);
}

.dodc-section--invert .dodc-title {
    color: var(--dodc-white);
}

.dodc-section--invert .dodc-desc {
    color: #c4c4c4;
}

.dodc-section--invert .dodc-desc a {
    color: #e8e8e8;
}

.dodc-section--invert .dodc-desc a:hover {
    color: var(--dodc-gold);
}

.dodc-section--invert .dodc-desc h2,
.dodc-section--invert .dodc-desc h3,
.dodc-section--invert .dodc-desc h4 {
    color: var(--dodc-white);
}

/* Tổng quan — dòng thông số (tương thích class cũ .muctongquan) */
.dodc-overview-specs {
    margin-top: 2rem;
}

.dodc-section .muctongquan {
    border-bottom: 1px solid var(--dodc-gray-light);
    padding: 14px 0;
    font-family: var(--dodc-font-sans);
    font-size: 1rem;
    color: var(--dodc-primary);
}

.dodc-section .muctongquan:last-child {
    border-bottom: none;
}

.dodc-section .muctongquan .ttt {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--dodc-gray-text);
    margin-bottom: 6px;
}

/* Nhúng bản đồ / video (block cổ điển) */
.dodc-embed-wide {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--dodc-gray-light);
    overflow: hidden;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .dodc-embed-wide {
        aspect-ratio: 21 / 9;
    }
}

.dodc-embed-wide iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.dodc-embed-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    margin-top: 0.5rem;
}

.dodc-embed-video__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    display: block;
    transition: opacity 0.5s ease, transform 0.8s ease;
}

.dodc-embed-video:hover .dodc-embed-video__thumb {
    opacity: 0.5;
    transform: scale(1.05);
}

.dodc-embed-video__open {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

.dodc-embed-video__play {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--dodc-transition);
}

.dodc-embed-video:hover .dodc-embed-video__play {
    background: var(--dodc-gold);
    border-color: var(--dodc-gold);
    transform: scale(1.08);
}

.dodc-embed-video__play svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    margin-left: 4px;
}

/* Thẻ tiện ích / mặt bằng dạng lưới */
.dodc-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .dodc-card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.dodc-card {
    border: 1px solid var(--dodc-gray-light);
    padding: 1.5rem;
    background: var(--dodc-white);
}

.dodc-card__title {
    font-family: var(--dodc-font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--dodc-primary);
    margin: 0 0 0.5rem;
}

.dodc-card__meta {
    font-family: var(--dodc-font-sans);
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--dodc-gray-text);
    margin: 0;
}

.dodc-card__meta strong,
.dodc-card__accent {
    color: var(--dodc-gold);
    font-weight: 500;
}

.dodc-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
}

.dodc-card .dodc-card__icon {
    width: 2rem;
    height: 2rem;
    color: var(--dodc-gold);
    margin-bottom: 1rem;
}

.dodc-actions {
    margin-top: 2rem;
}

/* Gallery cổ điển */
.dodc-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .dodc-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.dodc-gallery-grid button {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: var(--dodc-gray-light);
}

.dodc-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.75s ease;
}

.dodc-gallery-grid button:hover img {
    transform: scale(1.05);
}

/* Album hình ảnh (bố cục linh hoạt) — số cột PC từ --dodc-album-cols-pc (2–6) */
.dodc-album-grid {
    display: grid;
    gap: 1rem;
    margin-top: 0.5rem;
    grid-template-columns: repeat(var(--dodc-album-cols-pc, 4), minmax(0, 1fr));
}

@media (max-width: 1023px) {
    .dodc-album-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dodc-album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 479px) {
    .dodc-album-grid {
        grid-template-columns: 1fr;
    }
}

.dodc-album-grid button {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: var(--dodc-gray-light);
}

.dodc-album-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.75s ease;
}

.dodc-album-grid button:hover img {
    transform: scale(1.05);
}

.dodc-btn-text {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dodc-primary);
    border-bottom: 1px solid var(--dodc-primary);
    padding-bottom: 4px;
    background: none;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    cursor: pointer;
    font-family: inherit;
    transition: var(--dodc-transition);
}

.dodc-btn-text:hover {
    color: var(--dodc-gold);
    border-color: var(--dodc-gold);
}

.dodc-btn-outline {
    display: inline-block;
    border: 1px solid var(--dodc-primary);
    color: var(--dodc-primary);
    padding: 14px 32px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: var(--dodc-transition);
}

.dodc-btn-outline:hover {
    background-color: var(--dodc-primary);
    color: var(--dodc-white);
}

.dodc-media-box {
    position: relative;
    overflow: hidden;
    background-color: var(--dodc-gray-light);
    cursor: pointer;
}

.dodc-media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    display: block;
}

.dodc-media-box:hover img {
    transform: scale(1.05);
}

.dodc-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s;
}

.dodc-media-box:hover .dodc-play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.dodc-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 0;
    margin: 0;
    transition: var(--dodc-transition);
}

.dodc-media-box:hover .dodc-play-btn {
    background: var(--dodc-gold);
    border-color: var(--dodc-gold);
    transform: scale(1.1);
}

.dodc-play-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    margin-left: 4px;
}

.dodc-layout-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.dodc-layout-split .dodc-media-box {
    aspect-ratio: 4 / 3;
}

@media (min-width: 992px) {
    .dodc-layout-split {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.dodc-album-asymmetric {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.dodc-album-asymmetric .dodc-media-box {
    aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
    .dodc-album-asymmetric {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: repeat(2, minmax(200px, 280px));
    }

    .dodc-album-asymmetric .dodc-main-img {
        grid-row: span 2;
        height: 100%;
    }

    .dodc-album-asymmetric .dodc-media-box {
        aspect-ratio: auto;
    }
}

.dodc-map-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--dodc-gray-light);
    overflow: hidden;
}

@media (min-width: 768px) {
    .dodc-map-container {
        aspect-ratio: 21 / 9;
    }
}

.dodc-map-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) contrast(1.1);
    opacity: 0.85;
    transition: filter 0.4s, opacity 0.4s;
}

.dodc-map-container:hover .dodc-map-iframe {
    filter: none;
    opacity: 1;
}

.dodc-map-label {
    position: absolute;
    bottom: 32px;
    left: 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    max-width: min(320px, 90%);
    transition: var(--dodc-transition);
}

.dodc-map-container:hover .dodc-map-label {
    opacity: 0;
}

.dodc-map-label h3 {
    font-family: var(--dodc-font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 4px;
    color: var(--dodc-primary);
}

.dodc-map-label p {
    margin: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--dodc-gray-text);
    letter-spacing: 0.1em;
}

.dodc-cinematic {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}

@media (min-width: 992px) {
    .dodc-cinematic {
        aspect-ratio: 21 / 9;
    }
}

.dodc-cinematic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.5s ease;
}

.dodc-cinematic:hover img {
    transform: scale(1.05);
}

.dodc-cinematic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 24px;
}

@media (min-width: 768px) {
    .dodc-cinematic-overlay {
        padding: 80px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

.dodc-cinematic .dodc-title {
    color: #fff;
    margin-bottom: 0;
}

.dodc-cinematic .dodc-tagline {
    color: rgba(255, 255, 255, 0.85);
}

.dodc-album-mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.dodc-album-mosaic .dodc-media-box {
    aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
    .dodc-album-mosaic {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, minmax(180px, 240px));
    }

    .dodc-album-mosaic .dodc-media-box {
        aspect-ratio: auto;
    }

    .dodc-mosaic-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .dodc-mosaic-2 {
        grid-column: 3 / 5;
        grid-row: 1 / 2;
    }

    .dodc-mosaic-3 {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }

    .dodc-mosaic-4 {
        grid-column: 4 / 5;
        grid-row: 2 / 3;
    }
}

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
