:root {
    --primary: #c79c5a;
    /* ทองน้ำตาล */
    --primary-text: #5f5243;
    /* น้ำตาลเทา */
    --bg-page: #f9f3e5;
    /* ครีมอ่อน */
}

/* ฟอนต์หลักทั้งหน้า */
html,
body,
* {
    font-family: "Prompt", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif !important;
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #000;
    /* ถ้าจอใหญ่กว่ารูปจะเห็นเป็นขอบดำ */
}

/* ลบเส้นใต้ลิงก์ทั่วไป */
a {
    color: inherit;
    text-decoration: none;
}

/* ============== HERO พื้นหลัง ============== */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ============== ก้อนข้อความใต้รูป ============== */

.hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    /* ทั้งก้อนเลื่อนลงมาใต้รูป */
    transform: translate(-50%, 0);
    width: min(980px, 94%);
    text-align: center;
    color: var(--primary-text);
}

/* เผื่อกรณีพื้นหลังด้านล่างอ่อนมาก ให้อ่านง่ายขึ้น */
.hero-content>* {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

/* =================== หัวข้อใหญ่ =================== */

.hero-heading {
    margin-bottom: 1.2rem;
}

/* บรรทัดหลัก "๕ ธันวาคม" */
.hero-main {
    margin: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;

    /* ปรับให้ห่างขึ้นมากกว่าเดิม */
    gap: 1.2rem;
}

/* เลข ๕ — เพิ่มขนาด, เพิ่ม Gradient, + ขอบขาว */
.hero-main-number {
    font-size: clamp(4.2rem, 5.5vw, 5rem);
    font-weight: 700;
    color: #b37b30;
    position: relative;
    top: 0.25rem;
    /* ⭐ ขยับลงเล็กน้อย ไม่ลอยอีกต่อไป */

    /* ขอบขาว */
    text-shadow:
        -2px 0 #ffffff,
        2px 0 #ffffff,
        0 -2px #ffffff,
        0 2px #ffffff,
        0 0 8px rgba(0, 0, 0, 0.45);
}

/* คำว่า "ธันวาคม" */
.hero-main-text {
    font-size: clamp(3.2rem, 4.5vw, 4rem);
    color: #ffffff;

    /* Glow เบาลง ให้อ่านง่ายแต่ไม่กลบภาพ */
    text-shadow:
        0 0 2px rgba(0, 0, 0, 0.25),
        0 4px 9px rgba(0, 0, 0, 0.35);
}

/* =================== บรรทัดรอง =================== */

/* ลดระยะห่างระหว่างบรรทัดให้แน่นขึ้น */
.hero-head-line {
    margin: 0.15rem 0;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.25;
    /* ลด line-height */
}

.hero-head-line-1 {
    font-size: clamp(1.3rem, 1.8vw, 1.7rem);
    color: #b37b30;
}

.hero-head-line-2 {
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
    color: #6d6357;
}

.hero-head-line-3 {
    font-size: clamp(1.3rem, 1.8vw, 1.7rem);
    color: #b37b30;
    margin-top: 0.25rem;
    /* บรรทัดนี้ก็ให้ใกล้ขึ้น */
}

/* เส้นแต่งใต้ข้อความ */
.hero-head-highlight {
    padding: 0 1.2rem;
}

/* ไฮไลต์ + เส้นใต้แบบรูปแรก */
.hero-head-highlight {
    position: relative;
    display: inline-block;
    padding: 0 1.4rem;
}

.hero-head-highlight::before,
.hero-head-highlight::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(0.7rem);
    /* ให้เส้นอยู่ใต้ตัวหนังสือหน่อย */
    height: 2px;
    background: #b37b30;
    border-radius: 999px;
}

.hero-head-highlight::before {
    right: 100%;
    margin-right: 0.7rem;
    width: 90px;
}

.hero-head-highlight::after {
    left: 100%;
    margin-left: 0.7rem;
    width: 90px;
}

/* จุดกลมเล็ก ๆ ปลายเส้น */
.hero-head-line-3::after {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #b37b30;
    margin-left: 0.4rem;
}

/* ============== ข้อความน้อมสำนึก + ปุ่ม ============== */

.hero-dedicate {
    margin-top: 0.5rem;
}

.hero-line {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.hero-line-main {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ปุ่มเข้าสู่หน้าแรก */
.hero-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2.6rem;
    border-radius: 999px;
    border: none;

    background: linear-gradient(135deg, #f2d39a, #c79c5a);
    color: #ffffff;
    font-weight: 500;
    font-size: 1.02rem;
    letter-spacing: 0.06em;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
    opacity: 0.96;
}

/* ============== Responsive ============== */

@media (max-width: 768px) {
    .hero {
        height: 90vh;
    }

    .hero-content {
        top: 60%;
        width: 94%;
    }

    .hero-line {
        font-size: 0.95rem;
    }

    .hero-line-main {
        font-size: 1.02rem;
    }

    .hero-button {
        padding: 0.75rem 2.1rem;
        font-size: 0.95rem;
    }
}