
/* =====================================
   THIEN MON THU PHAP
   Giao dien trang chu moi
   ===================================== */

/* 1. CAU HINH CHUNG */

* {
    box-sizing: border-box;
}

body {
    background-color: #f5edda;
    color: #30251d;
    font-family: "Times New Roman", serif;
    width: 95%;
    max-width: 1800px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
    border: 2px solid #a88755;
}

/* 2. PHAN DAU TRANG */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 20px;
    background-color: #f8f0df;
    border: 1px solid #c9ad7c;
    border-radius: 10px;
}

.hero-art {
    width: 100%;
    min-width: 0;
}

.hero-art img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: contain;
    margin: 0;
    padding: 5px;
    background-color: #fffaf0;
    border: 3px solid #b99a69;
    border-radius: 6px;
}

.hero-center {
    min-width: 0;
    text-align: center;
    padding: 10px;
}

.hero-center h1 {
    color: #653d20;
    font-size: clamp(28px, 3.2vw, 52px);
    line-height: 1.2;
    margin: 10px 0 15px;
}

.hero-center h2 {
    color: #8b5e32;
    font-size: clamp(23px, 2.4vw, 36px);
    margin: 10px 0;
}

.brand-line {
    color: #654321;
    font-size: clamp(15px, 1.7vw, 24px);
    font-weight: bold;
    line-height: 1.5;
}

.english-intro {
    color: #695b4b;
    font-size: clamp(13px, 1.2vw, 17px);
    line-height: 1.5;
}

.english-intro p {
    margin: 4px 0;
}

.slogan-title {
    color: #8b4513;
    font-size: clamp(25px, 2.5vw, 38px);
    font-weight: bold;
    line-height: 1.4;
    margin: 15px 0;
}

.slogan {
    color: #654321;
    font-size: clamp(17px, 1.6vw, 23px);
    font-style: italic;
    line-height: 1.6;
}

.contact-info {
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.contact-info p {
    margin: 5px 0;
}

a {
    color: #704214;
}

a:hover {
    color: #b22222;
}

/* 3. THANH MENU */

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 18px;
    width: 100%;
    margin: 25px 0;
    padding: 16px 12px;
    background-color: #654321;
    border-radius: 8px;
}

.main-nav a {
    display: inline-block;
    color: #fff8e7;
    text-decoration: none;
    font-size: 16px;
    padding: 7px 5px;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* 4. NOI DUNG CHINH */

main {
    width: 100%;
}

section {
    width: 100%;
    margin: 25px auto;
    padding: 30px 20px;
    background-color: #fffaf0;
    border: 1px solid #d4bd95;
    border-radius: 8px;
    line-height: 1.8;
}

section h2 {
    color: #704214;
    font-size: clamp(23px, 2.2vw, 32px);
    margin: 0 0 18px;
}

section p {
    font-size: 18px;
    max-width: 1100px;
    margin: 12px auto;
}

.section-link {
    display: inline-block;
    margin: 12px;
    padding: 10px 20px;
    background-color: #654321;
    color: #fff8e7;
    text-decoration: none;
    border-radius: 5px;
}

.section-link:hover {
    background-color: #8b5e32;
}

/* 5. LIEN HE */

.contact-section {
    background-color: #f3e5ca;
}

/* 6. CHAN TRANG */

footer {
    margin-top: 30px;
    padding: 25px 15px;
    background-color: #654321;
    color: #fff8e7;
    line-height: 1.8;
}

footer p {
    margin: 5px;
}

/* 7. MAN HINH MAY TINH NHO */

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 10px;
        padding: 12px;
    }

    .hero-art img {
        height: 230px;
    }
}

/* 8. DIEN THOAI */

@media (max-width: 700px) {
    body {
        width: 100%;
        margin: 0;
        padding: 10px;
        border: none;
    }

    .hero {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .hero-center {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .hero-art-left {
        grid-column: 1;
        grid-row: 2;
    }

    .hero-art-right {
        grid-column: 2;
        grid-row: 2;
    }

    .hero-art img {
        height: 160px;
    }

    .main-nav {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav a {
        width: 100%;
        padding: 8px;
    }

    section {
        padding: 20px 12px;
    }
}

/* =====================================
   LIGHTBOX - PHONG TO ANH
   THIEN MON THU PHAP
   ===================================== */

img:not([data-no-lightbox]):not(a img) {
    cursor: zoom-in;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 55px 70px;
    background: rgba(0, 0, 0, 0.92);
}

.lightbox-overlay.is-visible {
    display: flex;
}

.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 115px);
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
    border: 2px solid #d4bd95;
    border-radius: 3px;
    cursor: default;
}

.lightbox-counter {
    margin-top: 10px;
    color: #fff8e7;
    font: 16px "Times New Roman", serif;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: 0;
    color: #fff8e7;
    background: rgba(80, 55, 30, 0.8);
    cursor: pointer;
    line-height: 1;
    border-radius: 5px;
}

.lightbox-close {
    top: 15px;
    right: 22px;
    padding: 7px 14px;
    font-size: 38px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    padding: 15px 12px;
    font-size: 25px;
}

.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: #a88755;
}

@media (max-width: 700px) {
    .lightbox-overlay { padding: 55px 12px; }
    .lightbox-image {
        max-height: calc(100vh - 110px);
    }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
    .lightbox-prev,
    .lightbox-next {
        padding: 12px 8px;
        font-size: 20px;
    }
    .lightbox-close {
        top: 8px;
        right: 10px;
    }
}
