@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&family=Noto+Serif+Thai:wght@400;500;600;700&display=swap');

:root {
    --navy: #0d1b2a;
    --navy-light: #172a3f;
    --gold: #c99a3d;
    --gold-light: #e0bd72;
    --ivory: #f8f5ee;
    --white: #ffffff;
    --text: #252525;
    --muted: #737373;
    --border: #e5dfd2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans Thai", sans-serif;
    background: var(--ivory);
    color: var(--text);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   NAVIGATION
========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 27, 42, 0.97);
    border-bottom: 1px solid rgba(201, 154, 61, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    min-height: 78px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 13px;
    color: white;
}

.logo-symbol {
    color: var(--gold);
    font-size: 25px;
}

.logo strong {
    display: block;
    font-family: "Noto Serif Thai", serif;
    font-size: 18px;
    font-weight: 600;
}

.logo small {
    display: block;
    color: #b9c0c8;
    font-size: 11px;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: #e6e6e6;
    font-size: 14px;
    transition: 0.25s;
}

nav a:hover {
    color: var(--gold-light);
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 620px;
    position: relative;

    display: flex;
    align-items: center;

    background-color: #07121e;
    background-image: url('../images/hero-museum.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    overflow: hidden;
}

/* ลายตกแต่งด้านขวา */
.hero::after {
    content: "๛";
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);

    font-family: serif;
    font-size: 320px;
    line-height: 1;

    color: rgba(201, 154, 61, 0.08);
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 90px 24px;
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.hero h1 {
    max-width: 760px;
    color: white;

    font-family: "Noto Serif Thai", serif;
    font-size: clamp(45px, 6vw, 78px);
    font-weight: 500;
    line-height: 1.18;

    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--gold-light);
}

.hero-description {
    max-width: 590px;
    color: #c5ccd3;
    font-size: 17px;
    font-weight: 300;
    margin-bottom: 38px;
}

.primary-btn {
    display: inline-block;

    padding: 14px 30px;

    background: var(--gold);
    color: #111;

    font-weight: 600;
    font-size: 14px;

    border: 1px solid var(--gold);

    transition: 0.3s;
}

.primary-btn:hover {
    background: transparent;
    color: var(--gold-light);
}

/* =========================
   INTRODUCTION
========================= */

.intro {
    max-width: 850px;
    margin: auto;
    padding: 110px 24px;
    text-align: center;
}

.section-label {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 14px;
}

.intro h2 {
    font-family: "Noto Serif Thai", serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.35;
    color: var(--navy);
    margin-bottom: 25px;
}

.intro h2 span {
    color: #9b7127;
}

.intro > p:last-child {
    max-width: 680px;
    margin: auto;
    color: var(--muted);
    font-size: 16px;
}

/* =========================
   GENERAL SECTION HEADING
========================= */

.section-heading {
    max-width: 1200px;
    margin: 0 auto 45px;
    padding: 0 24px;
}

.section-heading > p {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.section-heading h2 {
    font-family: "Noto Serif Thai", serif;
    font-size: 40px;
    font-weight: 500;
    color: var(--navy);
}

.show-all {
    display: inline-block;
    margin-top: 10px;
    color: #997126;
    font-size: 14px;
    border-bottom: 1px solid #997126;
}

/* =========================
   CATEGORIES
========================= */

.categories {
    padding: 90px 0 110px;
    background: white;
}

.category-grid {
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;

    background: var(--border);
    border: 1px solid var(--border);
}

.category-card {
    position: relative;
    min-height: 280px;
    padding: 40px;

    display: flex;
    align-items: flex-start;
    gap: 30px;

    background: var(--navy);
    overflow: hidden;

    transition: 0.35s;
}

.category-card:hover {
    transform: translateY(-4px);
}

/* รูปภาพพื้นหลังของแต่ละหมวดหมู่ */
.card-khon {
    background-image:
        linear-gradient(rgba(7, 18, 30, 0.55), rgba(7, 18, 30, 0.75)),
        url('../images/khon.jpg');
    background-size: cover;
    background-position: center;
}

.card-tea {
    background-image:
        linear-gradient(rgba(7, 18, 30, 0.55), rgba(7, 18, 30, 0.75)),
        url('../images/tea-set.jpg');
    background-size: cover;
    background-position: center;
}

.card-funeral {
    background-image:
        linear-gradient(rgba(7, 18, 30, 0.55), rgba(7, 18, 30, 0.75)),
        url('../images/funeral-honor.jpg');
    background-size: cover;
    background-position: center;
}

.card-folk {
    background-image:
        linear-gradient(rgba(7, 18, 30, 0.55), rgba(7, 18, 30, 0.75)),
        url('../images/folk-play.jpg');
    background-size: cover;
    background-position: center;
}

.category-number {
    font-family: Georgia, serif;
    font-size: 18px;
    color: var(--gold);
    padding-top: 5px;
}

.category-content h3 {
    font-family: "Noto Serif Thai", serif;
    font-size: 27px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;

    transition: 0.35s;
}

.category-content p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 30px;

    transition: 0.35s;
}

.category-content span {
    color: #997126;
    font-size: 13px;

    transition: 0.35s;
}

.category-card:hover h3 {
    color: white;
}

/* ปรับข้อความบนการ์ดที่มีรูปพื้นหลัง */
.category-card .category-content h3 {
    color: white;
}

.category-card .category-content p {
    color: rgba(255, 255, 255, 0.78);
}

.category-card .category-content span {
    color: var(--gold);
}

.category-card:hover .category-content h3 {
    color: var(--gold-light);
}

.category-card:hover p {
    color: #bdc5cc;
}

.category-card:hover span {
    color: var(--gold-light);
}

/* =========================
   COLLECTION
========================= */

.collection {
    padding: 100px 0 120px;
    background: var(--ivory);
}

.artifact-grid {
    max-width: 1400px;
    margin: auto;
    padding: 0 24px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.artifact-card {
    background: white;
    border: 1px solid #e8e2d7;
    transition: 0.3s;
}

.artifact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(18, 27, 36, 0.09);
}

.artifact-image {
    height: 320px;
    display: block;
    overflow: hidden;
    background: #eeeae1;
}

.artifact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.artifact-card:hover .artifact-image img {
    transform: scale(1.04);
}

.artifact-info {
    padding: 25px;
}

.artifact-category {
    color: #a2782e;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
}

.artifact-info h3 {
    font-family: "Noto Serif Thai", serif;
    font-size: 23px;
    color: var(--navy);
    margin-bottom: 10px;
}

.artifact-description {
    color: var(--muted);
    font-size: 13px;
    min-height: 48px;
    margin-bottom: 20px;
}

.read-more {
    color: #8c6828;
    font-size: 13px;
    font-weight: 600;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;

    background: white;
    border: 1px solid var(--border);
}

.empty-state h3 {
    font-family: "Noto Serif Thai", serif;
    color: var(--navy);
    font-size: 25px;
    margin-bottom: 5px;
}

.empty-state p {
    color: var(--muted);
}

/* =========================
   FOOTER
========================= */

footer {
    background: #08131f;
    color: #d7dce0;

    padding: 65px max(24px, calc((100% - 1152px) / 2));

    display: flex;
    justify-content: space-between;
    gap: 50px;
}

footer h3 {
    font-family: "Noto Serif Thai", serif;
    color: var(--gold-light);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

footer p {
    max-width: 520px;
    color: #8f9aa4;
    font-size: 12px;
}

.copyright {
    text-align: right;
    align-self: flex-end;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 850px) {

    nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.nav-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px;
}

    .hero {
        min-height: 560px;
    }

    .hero::after {
        font-size: 220px;
        right: -30px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .artifact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        flex-direction: column;
    }

    .copyright {
        text-align: left;
    }
}

@media (max-width: 560px) {

    .hero h1 {
        font-size: 40px;
    }

    .category-card {
        padding: 30px 25px;
        min-height: 220px;
    }

    .artifact-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .intro {
        padding: 80px 24px;
    }
}

/* ========================================
   ARTIFACT DETAIL PAGE
======================================== */

.detail-page {
    background: var(--ivory);
    min-height: 75vh;
    padding: 80px 24px 120px;
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.detail-back {
    display: inline-block;
    margin-bottom: 35px;

    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition: 0.3s;
}

.detail-back:hover {
    transform: translateX(-5px);
}


/* ---------- Layout ---------- */

.detail-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
}


/* ---------- Image ---------- */

.detail-image {
    background: white;
    padding: 35px;
    border: 1px solid var(--border);
}

.detail-image img {
    display: block;
    width: 100%;
    max-height: 620px;

    object-fit: contain;
}


/* ---------- Content ---------- */

.detail-content {
    padding: 20px 0;
}

.detail-category {
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;

    letter-spacing: 3px;
    text-transform: uppercase;

    margin-bottom: 15px;
}

.detail-content h1 {
    font-family: "Noto Serif Thai", serif;
    font-size: 52px;
    line-height: 1.2;

    color: var(--navy);

    margin: 0 0 25px;
}

.detail-line {
    width: 70px;
    height: 2px;

    background: var(--gold);

    margin-bottom: 35px;
}

.detail-content h3 {
    font-family: "Noto Serif Thai", serif;
    font-size: 20px;

    color: var(--navy);

    margin-bottom: 15px;
}

.detail-description {
    color: var(--muted);

    font-size: 16px;
    line-height: 2;

    max-width: 550px;
}


/* ========================================
   DETAIL RESPONSIVE
======================================== */

@media (max-width: 900px) {

    .detail-page {
        padding: 60px 24px 80px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-image {
        padding: 25px;
    }

    .detail-content h1 {
        font-size: 42px;
    }
}


@media (max-width: 560px) {

    .detail-page {
        padding: 40px 18px 60px;
    }

    .detail-back {
        margin-bottom: 25px;
    }

    .detail-layout {
        gap: 25px;
    }

    .detail-image {
        padding: 15px;
    }

    .detail-content h1 {
        font-size: 34px;
    }

    .detail-description {
        font-size: 15px;
        line-height: 1.8;
    }
}


/* =====================================
   HONOR PROFILE - ประกาศเกียรติคุณ
===================================== */
/* พื้นหลังส่วนประกาศเกียรติคุณ */
.honor-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #071727, #142d45, #071727);
    padding: 90px 8%;
    color: #ffffff;
}

/* หัวข้อประกาศเกียรติคุณ */
.honor-heading {
    text-align: center;
    margin-bottom: 55px;
}

.honor-heading p {
    color: #d8aa54;
    letter-spacing: 4px;
    font-size: 12px;
    margin-bottom: 12px;
}

.honor-heading h2 {
    font-size: 42px;
    color: #e9bd65;
    margin: 12px 0;
}

.honor-heading span {
    color: #d7dce2;
    font-size: 16px;
}
/* จัดวางภาพและข้อความประกาศเกียรติคุณ */
.honor-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

/* กรอบภาพหลวงพ่อ */
.honor-photo {
    border: 3px solid #d8aa54;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.honor-photo img {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: ccover;
}

/* รายละเอียดประกาศเกียรติคุณ */
.honor-content {
    min-width: 0;
    padding-right: 40px;
}

.honor-label {
    color: #d8aa54;
    letter-spacing: 2px;
    font-size: 14px;
}

.honor-content h3 {
    color: #f0c46f;
    font-size: 34px;
    margin: 15px 0;
}

.honor-position {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.8;
}

.honor-description {
    color: #d7dce2;
    font-size: 16px;
    line-height: 2;
    margin: 25px 0;
}

/* ปุ่มอ่านประวัติ */
.honor-button {
    display: inline-block;
    padding: 14px 25px;
    color: #f0c46f;
    border: 1px solid #d8aa54;
    text-decoration: none;
    transition: 0.3s;
}

.honor-button:hover {
    background: #d8aa54;
    color: #071727;
}

/* ปรับการแสดงผลบนมือถือ */
@media (max-width: 768px) {
    .honor-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .honor-photo {
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
    }

    .honor-content {
        padding-right: 0;
        text-align: center;
    }
}

/* กรอบทองประดับส่วนประกาศเกียรติคุณ */
.honor-section::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 2px solid rgba(218, 169, 75, 0.8);
    pointer-events: none;
    z-index: 0;
}

.honor-section::after {
    content: "";
    position: absolute;
    inset: 26px;
    border: 1px solid rgba(218, 169, 75, 0.35);
    pointer-events: none;
    z-index: 0;
}

/* ให้ภาพและข้อความอยู่เหนือเส้นกรอบ */
.honor-heading,
.honor-container {
    position: relative;
    z-index: 1;
}

/* ลวดลายทองประดับมุมทั้งสี่ */
.honor-section {
    background-image:
        radial-gradient(
            ellipse at center,
            #18334e 0%,
            #071727 100%
        );
}

/* ลวดลายมุมซ้ายบนและขวาล่าง */
.honor-section .honor-heading::before,
.honor-section .honor-heading::after {
    content: "❧";
    position: absolute;
    font-family: Georgia, serif;
    font-size: 85px;
    line-height: 1;
    color: #d8aa54;
    opacity: 0.75;
    pointer-events: none;
}

.honor-section .honor-heading::before {
    position: absolute;
    top: -55px;
    left: -5%;
    transform: rotate(135deg);
}

.honor-section .honor-heading::after {
    position: absolute;
    bottom: -550px;
    right: -5%;
    transform: rotate(-45deg);
}

/* ซ่อนลายใบไม้เดิม */
.honor-section .honor-heading::before,
.honor-section .honor-heading::after {
    content: none;
}

/* ลวดลายประดับสี่มุม */
.honor-corner {
    position: absolute;
    width: 180px;
    height: 180px;
    z-index: 1;
    pointer-events: none;
}

/* ใช้ภาพลายกนกสีทองแทนสัญลักษณ์เดิม */
.honor-corner::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/kanok-corner.png");
    background-repeat: no-repeat;
    background-position: top left;
    background-size: contain;
    opacity: 1;
}

.honor-corner-tl {
    top: 35px;
    left: 35px;
}

.honor-corner-tr {
    top: 35px;
    right: 35px;
    transform: scaleX(-1);
}

.honor-corner-bl {
    bottom: 35px;
    left: 35px;
    transform: scaleY(-1);
}

.honor-corner-br {
    bottom: 35px;
    right: 35px;
    transform: scale(-1);
}

/* ปุ่มกลับหน้าพิพิธภัณฑ์ */

.honor-back-home {
    text-align: center;
    margin: 45px auto 70px;
}

.honor-back-home a {
    display: inline-block;
    padding: 15px 35px;
    background: #10243a;
    color: #d9aa41;
    border: 1px solid #d9aa41;
    text-decoration: none;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.honor-back-home a:hover {
    background: #d9aa41;
    color: #10243a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===================================
   CONTACT PAGE
   =================================== */

   .contact-page {
    min-height: 100vh;
    background: #f8f5ef;
    padding-bottom: 80px;
}

.contact-heading {
    background: linear-gradient(135deg, #091a2b, #19334d);
    color: #ffffff;
    text-align: center;
    padding: 85px 20px;
    border-bottom: 3px solid #d9aa41;
}

.contact-heading p {
    color: #d9aa41;
    font-size: 13px;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.contact-heading h1 {
    color: #e9b854;
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 18px;
}

.contact-heading span {
    color: #ffffff;
    font-size: 16px;
}

.contact-container {
    max-width: 850px;
    margin: 60px auto 0;
    padding: 55px;
    background: #ffffff;
    border: 1px solid #d9aa41;
    border-radius: 8px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact-container h2 {
    color: #b38224;
    font-size: 28px;
    margin-bottom: 25px;
}

.contact-container p {
    color: #243b53;
    font-size: 17px;
    line-height: 2;
    margin-bottom: 35px;
}

.contact-back {
    display: inline-block;
    background: #10243a;
    color: #d9aa41;
    border: 1px solid #d9aa41;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-back:hover {
    background: #d9aa41;
    color: #10243a;
    transform: translateY(-3px);
}

@media (max-width: 600px) {
    .contact-heading {
        padding: 60px 20px;
    }

    .contact-container {
        margin: 30px 16px 0;
        padding: 30px 20px;
    }
}

/* ===================================
   FACEBOOK & PHONE CONTACT CARDS
   =================================== */

   .contact-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 30px 0 40px;
    text-align: left;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 20px;
    background: #f8f5ef;
    border: 1px solid #d9aa41;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(16, 36, 58, 0.12);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #10243a;
    color: #e9b854;
    font-size: 26px;
    font-weight: bold;
}

.contact-method > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.contact-method strong {
    color: #a97820;
    font-size: 18px;
}

.contact-method div span {
    color: #243b53;
    font-size: 15px;
    overflow-wrap: anywhere;
}

/* จัดการ์ดเรียงลงมาในมือถือ */
@media (max-width: 600px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }

    .contact-method {
        padding: 20px 16px;
    }
}

.contact-facebook {
    text-decoration: none;
    cursor: pointer;
}

/* ===================================
   ARTIFACT IMAGE GALLERY
=================================== */

.gallery-main {
    width: 100%;
    overflow: hidden;
    border: 1px solid #e6ded0;
    background: #fff;
    padding: 12px;
}

.gallery-main img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    cursor: zoom-in;
}

/* ภาพตัวอย่างใต้รูปหลัก */

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.gallery-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border: 2px solid #e6ded0;
    padding: 4px;
    background: #fff;
    cursor: pointer;
    transition: 0.3s ease;
}

.gallery-thumb:hover {
    border-color: #c88b20;
    transform: translateY(-3px);
}

.gallery-thumb.active {
    border-color: #c88b20;
    box-shadow: 0 0 0 1px #c88b20;
}

/* หน้าต่างขยายรูปภาพ */

.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 45px 20px;
    cursor: zoom-out;
}

.gallery-lightbox.show {
    display: flex;
}

.gallery-lightbox img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
}

.gallery-close {
    position: absolute;
    top: 15px;
    right: 25px;
    background: none;
    border: none;
    color: #e9b854;
    font-size: 44px;
    cursor: pointer;
}

/* รองรับมือถือ */

@media (max-width: 600px) {

    .gallery-thumbnails {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .gallery-thumb {
        height: 80px;
    }

    .gallery-main img {
        max-height: 380px;
    }
}

/* ======================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ปรับเฉพาะหน้าจอมือถือ
====================================== */

@media (max-width: 600px) {

    /* ป้องกันองค์ประกอบล้นหน้าจอ */
    body {
        overflow-x: hidden;
    }

    /* แถบชื่อเว็บไซต์ */
    .nav-container {
        padding: 0 16px;
        min-height: 72px;
    }

    .logo strong {
        font-size: 16px;
    }

    .logo small {
        font-size: 11px;
    }

    /* หน้าแรก */
    .hero {
        min-height: 580px;
    }

    .hero-content {
        padding: 70px 20px;
    }

    .hero h1 {
        font-size: clamp(27px, 7vw, 34px);
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.9;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .primary-btn {
        padding: 13px 22px;
        font-size: 14px;
    }

    /* ส่วนแนะนำพิพิธภัณฑ์ */
    .intro {
        padding: 65px 20px;
    }

    .intro h2 {
        font-size: 28px;
    }

    .intro > p:last-child {
        font-size: 14px;
    }

    /* ประกาศเกียรติคุณ */
    .honor-section {
        padding: 65px 30px;
    }

    .honor-heading {
        margin-bottom: 35px;
    }

    .honor-heading h2 {
        font-size: clamp(25px, 7vw, 32px);
        line-height: 1.5;
    }

    .honor-heading span {
        font-size: 13px;
        line-height: 1.8;
    }

    .honor-heading p {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .honor-corner {
        width: 75px;
        height: 75px;
    }

    .honor-corner-tl,
    .honor-corner-tr {
        top: 20px;
    }

    .honor-corner-bl,
    .honor-corner-br {
        bottom: 20px;
    }

    .honor-corner-tl,
    .honor-corner-bl {
        left: 20px;
    }

    .honor-corner-tr,
    .honor-corner-br {
        right: 20px;
    }

    .honor-photo img {
        max-height: none;
        height: auto;
        object-fit: contain;
    }

    .honor-content h3 {
        font-size: 26px;
        line-height: 1.5;
    }

    .honor-position {
        font-size: 15px;
    }

    .honor-description {
        font-size: 14px;
        line-height: 1.85;
        margin: 20px 0;
    }

    .honor-button {
        font-size: 14px;
        padding: 12px 16px;
    }

    /* หมวดหมู่จัดแสดง */
    .categories {
        padding: 65px 0 75px;
    }

    .section-heading {
        padding: 0 20px;
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .category-grid {
        padding: 0 16px;
    }

    .category-card {
        min-height: 200px;
        padding: 25px 20px;
        gap: 15px;
    }

    .category-content {
        min-width: 0;
    }

    .category-content h3 {
        font-size: 22px;
        line-height: 1.5;
    }

    .category-content p {
        font-size: 13px;
        margin-bottom: 18px;
    }

    /* ส่วนท้ายเว็บไซต์ */
    footer {
        padding: 45px 20px;
        gap: 25px;
    }

    footer h3 {
        font-size: 18px;
    }

    footer p {
        font-size: 12px;
    }

    /* หน้ารายละเอียดวัตถุจัดแสดง */
    .detail-content h1 {
        font-size: 30px;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 650px;
        background-size: cover;
        background-position: 65% center;
    }
}

@media (max-width: 600px) {
    .hero {
        background-image:
            linear-gradient(
                90deg,
                rgba(5, 15, 28, 0.78) 0%,
                rgba(5, 15, 28, 0.42) 55%,
                rgba(5, 15, 28, 0.08) 100%
            ),
            url('../images/hero-museum.png');
    }

    .hero h1,
    .hero-description {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    }
}