/* =========================================================
   GOOGLE FONT
   ใช้ฟอนต์ Kanit สำหรับข้อความภาษาไทย
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&display=swap');


/* =========================================================
   ROOT
   กำหนดตัวแปรสีหลักของเว็บไซต์
   สามารถเปลี่ยนสีทั้งเว็บไซต์ได้จากส่วนนี้
========================================================= */

:root {
    --green-dark: #032d20;
    --green: #08734d;
    --green-light: #0da66b;
    --gold: #ffd84d;

    --white: #ffffff;
    --bg: #f4f7f5;

    --text: #17221d;
    --muted: #718078;
}


/* =========================================================
   RESET
   รีเซ็ตค่าเริ่มต้นของ Browser
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kanit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

button,
input {
    font-family: 'Kanit', sans-serif;
}


/* =========================================================
   CONTAINER
   กำหนดความกว้างของเนื้อหาหลัก
========================================================= */

.container {
    width: min(1150px, 90%);
    margin: auto;
}


/* =========================================================
   NAVBAR
   เมนูด้านบนของเว็บไซต์
   ติดอยู่ด้านบนเมื่อเลื่อนหน้าเว็บ
========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 1001;

    padding: 15px 0;

    background: rgba(3, 45, 32, 0.85);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 50px;
}

/* =========================================================
   LOGO
   โลโก้และชื่อเว็บไซต์ใน Navbar
========================================================= */

.logo {
    display: flex;
    align-items: center;

    gap: 10px;

    color: white;

    font-size: 20px;
    font-weight: 700;

    white-space: nowrap;
}

.logo-img {
    width: 48px;
    height: 48px;

    padding: 5px;

    background: #ffffff;

    border-radius: 50%;

    object-fit: contain;

    box-sizing: border-box;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   NAV MENU
   เมนูนำทางด้านบน
========================================================= */

.nav-menu {
    display: flex;
    align-items: center;

    gap: 25px;
}

.nav-menu a {
    color: white;

    font-size: 18px;
    font-weight: 500;

    opacity: 0.85;

    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--gold);
    opacity: 1;
}


/* =========================================================
   HAMBURGER MENU
   ปุ่มเมนูสำหรับมือถือ
========================================================= */

.menu-toggle {
    display: none;

    color: white;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    user-select: none;
}


/* =========================================================
   HERO
   ส่วนหัวใหญ่ของเว็บไซต์
========================================================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    position: relative;

    overflow: hidden;

    color: white;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 216, 77, 0.25),
            transparent 28%
        ),

        radial-gradient(
            circle at 85% 75%,
            rgba(0, 255, 170, 0.18),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            #032d20,
            #08734d,
            #0da66b
        );
}


/* =========================================================
   HERO DECORATION
   วงกลมตกแต่งพื้นหลัง Hero
========================================================= */

.hero::before {
    content: "";

    position: absolute;

    width: 550px;
    height: 550px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.12);

    top: -250px;
    right: -150px;

    pointer-events: none;
}

.hero::after {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.1);

    bottom: -220px;
    left: -120px;

    pointer-events: none;
}


/* =========================================================
   HERO CONTENT
   ข้อความและเนื้อหาหลักของ Hero
========================================================= */

.hero-content {
    position: relative;

    z-index: 2;

    width: 100%;

    padding: 230px 0 80px;

    text-align: center;
}

.hero-badge {
    display: inline-block;

    padding: 8px 20px;

    border-radius: 50px;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.2);

    margin-bottom: 25px;

    font-size: 14px;
}

.hero-title {
    font-size: clamp(55px, 9vw, 110px);

    line-height: 0.95;

    font-weight: 800;

    letter-spacing: 2px;

    text-shadow:
        0 12px 35px rgba(0, 0, 0, 0.3);

    margin-bottom: 20px;
}

.hero-title span {
    color: var(--gold);
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 28px);

    margin-bottom: 15px;
}

.hero-description {
    max-width: 700px;

    margin: auto;

    opacity: 0.85;

    font-size: 17px;
}


/* =========================================================
   TOP LOGO
   โลโก้กลมที่อยู่เหนือเนื้อหา Hero
========================================================= */

.top-logo {
    position: absolute;

    top: 85px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 1000;

    width: 130px;
    height: 130px;

    background: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);

    border:
        5px solid rgba(255, 255, 255, 0.8);
}

.top-logo img {
    width: 95px;
    height: 95px;

    object-fit: contain;
}


/* =========================================================
   HERO INFO
   กล่องข้อมูลกิจกรรม เช่น วันที่ สถานที่ ระยะทาง
========================================================= */

.hero-info {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;

    margin: 35px 0;
}

.info-card {
    min-width: 180px;

    padding: 16px 22px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.1);

    border: 1px solid rgba(255, 255, 255, 0.15);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.15);
}

.info-card strong {
    display: block;

    margin-top: 3px;

    font-size: 18px;
}


/* =========================================================
   BUTTON
   ปุ่มต่าง ๆ ของเว็บไซต์
========================================================= */

.buttons {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 15px 30px;

    min-height: 52px;

    border-radius: 50px;

    font-size: 17px;

    font-weight: 600;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform:
        translateY(-5px)
        scale(1.03);
}

.btn-normal {
    background: white;

    color: var(--green);
}

.btn-vip {
    background:
        linear-gradient(
            135deg,
            #ffe66d,
            #ffc928
        );

    color: #3c3000;
}


/* =========================================================
   SECTION
   รูปแบบพื้นฐานของแต่ละ Section
========================================================= */

.section {
    padding: 100px 0;
}

.section-light {
    background: var(--bg);
}

.section-white {
    background: white;
}

.section-title {
    text-align: center;

    font-size: 42px;

    color: var(--green);

    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;

    color: var(--muted);

    margin-bottom: 50px;
}


/* =========================================================
   CARDS
   การ์ดแสดงข้อมูล
========================================================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(240px, 1fr)
        );

    gap: 25px;
}

.card {
    position: relative;

    background: white;

    padding: 40px 30px;

    border-radius: 25px;

    text-align: center;

    border: 1px solid #e4ebe7;

    overflow: hidden;

    box-shadow:
        0 15px 45px rgba(10, 50, 30, 0.08);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 25px 65px rgba(10, 50, 30, 0.15);
}

.card-icon {
    font-size: 48px;

    margin-bottom: 12px;
}

.card h3 {
    font-size: 32px;

    color: var(--green);

    margin-bottom: 5px;
}

.card p {
    color: var(--muted);

    line-height: 1.7;
}


/* =========================================================
   PRICE TABLE
   ตารางราคา / รายละเอียดการสมัคร
========================================================= */

.price-table {
    max-width: 850px;

    margin: auto;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    border-radius: 22px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08);
}

table {
    width: 100%;

    border-collapse: collapse;

    background: white;
}

th {
    background: var(--green);

    color: white;

    padding: 20px;

    font-size: 18px;

    white-space: nowrap;
}

td {
    padding: 18px;

    text-align: center;

    border-bottom:
        1px solid #edf1ef;
}

tr:hover td {
    background: #f3faf6;
}

.price {
    color: var(--green);

    font-weight: 700;
}


/* =========================================================
   SHIRT IMAGE
   แกลเลอรีรูปเสื้อ
========================================================= */

.image-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(250px, 1fr)
        );

    gap: 25px;
}

.image-card {
    position: relative;

    overflow: hidden;

    border-radius: 25px;

    background: white;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.image-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.15);
}

.image-card img {
    width: 100%;

    height: 350px;

    object-fit: contain;

    padding: 20px;

    background: white;

    transition:
        transform 0.5s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-caption {
    text-align: center;

    padding:
        18px 15px 22px;

    border-top:
        1px solid #edf1ef;
}

.image-caption h3 {
    color: var(--green);

    font-size: 23px;

    margin-bottom: 3px;
}

.image-caption p {
    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   VIP SECTION
   ส่วนประชาสัมพันธ์ VIP
========================================================= */

.vip-section {
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 215, 0, 0.25),
            transparent 35%
        ),

        linear-gradient(
            135deg,
            #fff9db,
            #ffeaa0
        );
}

.vip-box {
    max-width: 750px;

    margin: auto;

    text-align: center;

    padding: 60px 35px;

    border-radius: 30px;

    background:
        rgba(255, 255, 255, 0.65);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border:
        1px solid rgba(255, 255, 255, 0.7);

    box-shadow:
        0 25px 70px rgba(130, 100, 0, 0.15);
}

.vip-icon {
    font-size: 65px;

    margin-bottom: 10px;
}

.vip-box h2 {
    font-size: 45px;

    color: #8b6900;

    margin-bottom: 15px;
}

.vip-box p {
    color: #665a2d;

    line-height: 1.9;

    margin-bottom: 30px;
}


/* =========================================================
   STEPS
   ขั้นตอนการสมัคร
========================================================= */

.steps {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(210px, 1fr)
        );

    gap: 25px;
}

.step {
    background: white;

    padding: 30px 20px;

    border-radius: 22px;

    text-align: center;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.07);
}

.step-number {
    width: 55px;
    height: 55px;

    margin:
        0 auto 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--green);

    color: white;

    font-size: 22px;

    font-weight: bold;

    box-shadow:
        0 8px 20px rgba(0, 90, 60, 0.25);
}

.step h3 {
    color: var(--green);

    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
}


/* =========================================================
   FAQ
   คำถามที่พบบ่อย
========================================================= */

.faq {
    max-width: 850px;

    margin: auto;
}

details {
    background: white;

    padding: 20px 25px;

    margin-bottom: 15px;

    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.06);
}

summary {
    cursor: pointer;

    font-weight: 600;

    color: var(--green);
}

details p {
    margin-top: 15px;

    color: var(--muted);
}


/* =========================================================
   FINAL / CONTACT SECTION
   ส่วนติดต่อผู้จัดงาน
========================================================= */

.final-section {
    padding: 80px 20px;

    text-align: center;

    background: #dcefe8;

    color: #23483d;
}

.final-section h2 {
    font-size: 45px;

    margin-bottom: 10px;
}

.final-section p {
    opacity: 0.85;

    margin-bottom: 30px;
}

.contact-box {
    max-width: 750px;

    margin: 0 auto;

    padding: 55px 40px;

    text-align: center;

    background: #f7fcf9;

    border: 1px solid #c9e3d7;

    border-radius: 25px;

    box-shadow:
        0 10px 35px rgba(31, 78, 64, 0.12);

    color: #23483d;
}

.contact-icon {
    font-size: 60px;

    margin-bottom: 15px;
}

.contact-box h2 {
    font-size: 38px;

    margin-bottom: 15px;

    color: #1f5f4d;
}

.contact-subtitle {
    font-size: 19px;

    line-height: 1.8;

    margin-bottom: 35px;

    color: #527267;
}


/* =========================================================
   CONTACT INFO
   รายละเอียดช่องทางติดต่อ
========================================================= */

.contact-info {
    display: flex;

    flex-direction: column;

    gap: 18px;

    text-align: left;
}

.contact-item {
    padding: 22px 25px;

    border-radius: 15px;

    background: #dcefe5;

    border: 1px solid #cce6da;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    transition: 0.3s ease;

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(47, 128, 104, 0.10);
}

.contact-label {
    font-size: 17px;

    font-weight: bold;

    color: #356b5b;
}

.contact-value {
    font-size: 18px;

    font-weight: 600;

    color: #1f5f4d;
}

.contact-phone {
    color: #14513e;

    text-decoration: underline;

    transition: 0.3s ease;
}

.contact-footer {
    margin-top: 35px;

    font-size: 17px;

    color: #527267;
}


/* =========================================================
   FOOTER
   ส่วนท้ายเว็บไซต์
========================================================= */

.footer {
    background: var(--green-dark);

    color: white;

    text-align: center;

    padding: 45px 20px;
}

.footer p {
    opacity: 0.65;

    font-size: 14px;

    margin-top: 5px;
}


/* =========================================================
   ROUTE MAP MODAL
   Popup แสดงแผนที่เส้นทาง
========================================================= */

.modal {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 9999;

    width: 100%;
    height: 100%;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.85);

    justify-content: center;
    align-items: center;
}

.modal-content {
    display: block;

    max-width: 92vw;
    max-height: 82vh;

    width: auto;
    height: auto;

    border-radius: 12px;

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.5);

    animation:
        zoomIn 0.3s ease;
}

.close-btn {
    position: absolute;

    top: 15px;
    right: 25px;

    color: white;

    font-size: 42px;

    font-weight: bold;

    cursor: pointer;

    z-index: 10;
}

.close-btn:hover {
    color: var(--gold);
}


/* =========================================================
   REGISTRATION POPUP
   Popup แสดงข้อมูลหลังสมัคร
========================================================= */

.registration-popup {
    display: none;

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background:
        rgba(0, 0, 0, 0.65);

    z-index: 9999;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.registration-popup-box {
    background: white;

    width: 100%;

    max-width: 550px;

    border-radius: 25px;

    padding: 40px 25px;

    text-align: center;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3);

    animation:
        popupShow 0.3s ease;
}

.popup-icon {
    font-size: 55px;

    margin-bottom: 10px;
}

.popup-title {
    font-size: 28px;

    font-weight: bold;

    color: #333;

    margin-bottom: 15px;
}

.popup-subtitle {
    font-size: 18px;

    color: #666;

    margin-bottom: 8px;
}

.popup-reg-id {
    font-size: 52px;

    font-weight: 900;

    color: #16834b;

    letter-spacing: 2px;

    margin: 15px 0;

    overflow-wrap: anywhere;
}

.popup-distance {
    font-size: 20px;

    color: #555;

    margin-bottom: 25px;
}

.popup-close-btn {
    width: 100%;

    max-width: 300px;

    padding: 15px 25px;

    border: none;

    border-radius: 12px;

    background: #16834b;

    color: white;

    font-size: 18px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.popup-close-btn:hover {
    transform:
        translateY(-2px);

    opacity: 0.9;
}


/* =========================================================
   SHIRT GALLERY
   Popup สำหรับดูรูปเสื้อแบบเต็มหน้าจอ
========================================================= */

.shirt-gallery {
    display: none;

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background:
        rgba(0, 0, 0, 0.88);

    z-index: 99999;

    align-items: center;
    justify-content: center;

    padding: 20px;

    overflow: hidden;
}

.shirt-gallery-content {
    position: relative;

    width: 100%;

    max-width: 800px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}

.shirt-gallery-content img {
    display: block;

    width: auto;

    max-width: 90vw;

    height: auto;

    max-height: 75vh;

    object-fit: contain;

    margin: auto;

    border-radius: 15px;

    background: white;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.4);
}

.shirt-gallery-title {
    width: 100%;

    color: white;

    font-size: 22px;

    font-weight: bold;

    margin-top: 15px;

    text-align: center;
}

.shirt-close {
    position: absolute;

    top: 20px;
    right: 30px;

    width: 50px;
    height: 50px;

    border: none;

    border-radius: 50%;

    background: white;

    color: #333;

    font-size: 35px;

    cursor: pointer;

    z-index: 100001;
}

.shirt-prev,
.shirt-next {
    position: absolute;

    top: 50%;

    transform:
        translateY(-50%);

    width: 55px;
    height: 55px;

    border: none;

    border-radius: 50%;

    background: white;

    color: #16834b;

    font-size: 28px;

    cursor: pointer;

    z-index: 100001;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.3);
}

.shirt-prev {
    left: 30px;
}

.shirt-next {
    right: 30px;
}


/* =========================================================
   SHIRT INFO
   ข้อมูลเพิ่มเติมเกี่ยวกับเสื้อ
========================================================= */

.shirt-info {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 12px;
}

.shirt-info img {
    width: 130px;
    height: 130px;

    object-fit: contain;

    border-radius: 16px;

    background: #fff;

    padding: 8px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);

    transition: 0.3s ease;
}

.shirt-info img:hover {
    transform: scale(1.05);
}

.shirt-info p {
    margin: 0;

    color: var(--muted);
}


/* =========================================================
   AWARDS
   ส่วนแสดงรางวัล
========================================================= */

.awards-section {
    background: #f7f9fb;
}

.all-runner-box {
    max-width: 700px;

    margin:
        0 auto 50px;

    padding: 30px;

    text-align: center;

    background: white;

    border-radius: 20px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);
}

.all-runner-icon {
    font-size: 55px;

    margin-bottom: 10px;
}

.all-runner-box h3 {
    font-size: 26px;

    margin-bottom: 10px;
}

.all-runner-box p {
    margin: 0;

    line-height: 1.8;
}


/* =========================================================
   AWARD CATEGORY
   หัวข้อแต่ละประเภทของรางวัล
========================================================= */

.award-category {
    margin-top: 50px;
}

.award-category-title {
    text-align: center;

    font-size: 30px;

    margin-bottom: 30px;
}


/* =========================================================
   AWARD GRID
   ตารางแสดงการ์ดรางวัล
========================================================= */

.award-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

    max-width: 1000px;

    margin: 0 auto;
}

.award-card {
    position: relative;

    background: white;

    border-radius: 20px;

    padding: 20px;

    text-align: center;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);
}

.award-card:hover {
    transform:
        translateY(-8px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.15);
}

.award-card img {
    width: 100%;

    height: 260px;

    object-fit: contain;

    border-radius: 15px;

    margin-bottom: 15px;
}

.award-rank {
    font-size: 45px;

    margin-bottom: 5px;
}

.award-card h4 {
    font-size: 24px;

    margin: 5px 0;
}

.award-card p {
    margin: 0;

    font-size: 16px;
}


/* =========================================================
   AWARD NOTE
   หมายเหตุใต้ส่วนรางวัล
========================================================= */

.award-note {
    max-width: 850px;

    margin:
        50px auto 0;

    padding: 20px;

    text-align: center;

    background: white;

    border-radius: 15px;

    font-size: 17px;
}


/* =========================================================
   AWARD GALLERY
   Popup สำหรับดูรูปถ้วย/รางวัล
========================================================= */

.award-gallery {
    display: none;

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background:
        rgba(0, 0, 0, 0.90);

    z-index: 99999;

    align-items: center;
    justify-content: center;

    padding: 20px;

    overflow: hidden;
}

.award-gallery-content {
    width: 100%;

    max-width: 800px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}

.award-gallery-content img {
    display: block;

    max-width: 90vw;
    max-height: 75vh;

    width: auto;
    height: auto;

    object-fit: contain;

    background: white;

    border-radius: 15px;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5);
}

.award-gallery-title {
    color: white;

    font-size: 24px;

    font-weight: bold;

    margin-top: 18px;

    text-align: center;
}


/* =========================================================
   AWARD BUTTONS
   ปุ่มปิด / ก่อนหน้า / ถัดไป ของ Gallery รางวัล
========================================================= */

.award-close {
    position: absolute;

    top: 20px;
    right: 30px;

    width: 50px;
    height: 50px;

    border: none;

    border-radius: 50%;

    background: white;

    color: #333;

    font-size: 35px;

    cursor: pointer;

    z-index: 100001;
}

.award-prev,
.award-next {
    position: absolute;

    top: 50%;

    transform:
        translateY(-50%);

    width: 55px;
    height: 55px;

    border: none;

    border-radius: 50%;

    background: white;

    color: #16834b;

    font-size: 28px;

    cursor: pointer;

    z-index: 100001;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.3);
}

.award-prev {
    left: 30px;
}

.award-next {
    right: 30px;
}


/* =========================================================
   ANIMATION
   Animation สำหรับ Modal และ Popup
========================================================= */

@keyframes zoomIn {

    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }

}

@keyframes popupShow {

    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


/* =========================================================
   CONTACT SCROLL OFFSET
   ป้องกัน Navbar บังหัวข้อ Contact
========================================================= */

#contact {
    scroll-margin-top: 90px;
}


/* =========================================================
   MOBILE
   หน้าจอ 700px ลงมา
========================================================= */

@media (max-width: 700px) {

    /* -----------------------------------------
       CONTAINER
    ----------------------------------------- */

    .container {
        width: min(92%, 1150px);
    }


    /* -----------------------------------------
       NAVBAR
    ----------------------------------------- */

    .navbar {
        padding: 10px 0;
    }

    .navbar-inner {
        min-height: 42px;
    }

    .logo {
        font-size: 16px;

        gap: 7px;
    }

    .logo-img {
        width: 34px;
        height: 34px;
    }

    .menu-toggle {
        display: block;

        padding: 5px 8px;
    }

    .nav-menu {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        flex-direction: column;

        gap: 0;

        padding: 8px 0 15px;

        background:
            rgba(3, 45, 32, 0.98);

        backdrop-filter:
            blur(18px);

        -webkit-backdrop-filter:
            blur(18px);

        border-bottom:
            1px solid rgba(255, 255, 255, 0.1);

        box-shadow:
            0 10px 25px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        width: 100%;

        padding: 11px 20px;

        font-size: 17px !important;

        text-align: center;

        opacity: 1;
    }

    .nav-menu a:hover {
        background:
            rgba(255, 255, 255, 0.08);
    }


    /* -----------------------------------------
       TOP LOGO
    ----------------------------------------- */

    .top-logo {
        top: 70px;

        width: 95px;
        height: 95px;

        border-width: 4px;
    }

    .top-logo img {
        width: 68px;
        height: 68px;
    }


    /* -----------------------------------------
       HERO
    ----------------------------------------- */

    .hero {
        min-height: auto;

        padding-bottom: 0;
    }

    .hero-content {
        padding:
            175px 0 60px;
    }

    .hero-badge {
        padding:
            7px 14px;

        margin-bottom: 18px;

        font-size: 12px;

        max-width: 100%;
    }

    .hero-title {
        font-size:
            clamp(42px, 14vw, 62px);

        letter-spacing:
            1px;

        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 20px;

        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 14px;

        line-height: 1.8;

        max-width: 360px;

        padding: 0 5px;
    }


    /* -----------------------------------------
       HERO INFO
    ----------------------------------------- */

    .hero-info {
        flex-direction: column;

        align-items: center;

        gap: 10px;

        margin:
            25px 0;
    }

    .info-card {
        width: 100%;

        max-width: 330px;

        min-width: 0;

        padding:
            13px 15px;

        border-radius: 15px;

        font-size: 14px;
    }

    .info-card strong {
        font-size: 16px;
    }


    /* -----------------------------------------
       BUTTON
    ----------------------------------------- */

    .buttons {
        flex-direction: column;

        align-items: center;

        gap: 10px;

        width: 100%;
    }

    .btn {
        width: 100%;

        max-width: 340px;

        min-height: 50px;

        padding:
            13px 20px;

        font-size: 16px;
    }

    .btn:hover {
        transform: none;
    }


    /* -----------------------------------------
       SECTION
    ----------------------------------------- */

    .section {
        padding:
            65px 0;
    }

    .section-title {
        font-size: 30px;

        line-height: 1.3;

        margin-bottom: 8px;
    }

    .section-subtitle {
        font-size: 14px;

        line-height: 1.7;

        margin-bottom: 30px;
    }


    /* -----------------------------------------
       CARDS
    ----------------------------------------- */

    .cards {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .card {
        padding:
            28px 20px;

        border-radius: 20px;
    }

    .card:hover {
        transform: none;
    }

    .card-icon {
        font-size: 42px;

        margin-bottom: 8px;
    }

    .card h3 {
        font-size: 27px;
    }

    .card p {
        font-size: 14px;
    }


    /* -----------------------------------------
       PRICE TABLE
    ----------------------------------------- */

    .price-table {
        width: 100%;

        border-radius: 15px;

        overflow-x: auto;
    }

    .price-table table {
        min-width: 480px;
    }

    th {
        padding:
            14px 12px;

        font-size: 15px;
    }

    td {
        padding:
            13px 12px;

        font-size: 14px;
    }


    /* -----------------------------------------
       SHIRT
    ----------------------------------------- */

    .image-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .image-card {
        border-radius: 20px;
    }

    .image-card:hover {
        transform: none;
    }

    .image-card img {
        height: 280px;

        padding: 15px;
    }

    .image-card:hover img {
        transform: none;
    }

    .image-caption {
        padding:
            14px 10px 18px;
    }

    .image-caption h3 {
        font-size: 20px;
    }


    /* -----------------------------------------
       VIP
    ----------------------------------------- */

    .vip-box {
        padding:
            35px 18px;

        border-radius: 22px;
    }

    .vip-box h2 {
        font-size: 30px;

        line-height: 1.3;
    }

    .vip-box p {
        font-size: 14px;

        line-height: 1.8;
    }


    /* -----------------------------------------
       STEPS
    ----------------------------------------- */

    .steps {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .step {
        padding:
            25px 18px;

        border-radius: 18px;
    }


    /* -----------------------------------------
       FAQ
    ----------------------------------------- */

    details {
        padding:
            16px 18px;

        border-radius: 14px;
    }

    summary {
        font-size: 15px;

        line-height: 1.6;
    }

    details p {
        font-size: 14px;

        line-height: 1.8;
    }


    /* -----------------------------------------
       FINAL / CONTACT
    ----------------------------------------- */

    .final-section {
        padding: 60px 15px;
    }

    .final-section h2 {
        font-size: 34px;
    }

    .final-section p {
        font-size: 14px;

        line-height: 1.8;
    }

    .contact-box {
        padding: 40px 20px;
    }

    .contact-box h2 {
        font-size: 30px;
    }

    .contact-item {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }

    .contact-value {
        font-size: 16px;

        word-break: break-word;
    }


    /* -----------------------------------------
       FOOTER
    ----------------------------------------- */

    .footer {
        padding:
            35px 15px;
    }

    .footer h2 {
        font-size: 22px;
    }


    /* -----------------------------------------
       MAP MODAL
    ----------------------------------------- */

    .modal {
        padding: 12px;
    }

    .modal-content {
        max-width: 94vw;

        max-height: 78vh;

        border-radius: 8px;
    }

    .close-btn {
        top: 8px;

        right: 15px;

        font-size: 38px;
    }


    /* -----------------------------------------
       REGISTRATION POPUP
    ----------------------------------------- */

    .registration-popup {
        padding: 15px;
    }

    .registration-popup-box {
        padding:
            30px 18px;

        border-radius: 20px;
    }

    .popup-icon {
        font-size: 45px;
    }

    .popup-title {
        font-size: 24px;
    }

    .popup-subtitle {
        font-size: 15px;
    }

    .popup-reg-id {
        font-size:
            clamp(32px, 10vw, 48px);

        letter-spacing: 1px;

        line-height: 1.2;
    }

    .popup-distance {
        font-size: 16px;
    }

    .popup-close-btn {
        font-size: 16px;

        padding:
            13px 20px;
    }


    /* -----------------------------------------
       SHIRT GALLERY
    ----------------------------------------- */

    .shirt-gallery {
        padding: 12px;
    }

    .shirt-gallery-content img {
        max-width: 84vw;

        max-height: 68vh;

        border-radius: 12px;
    }

    .shirt-gallery-title {
        font-size: 18px;

        margin-top: 12px;
    }

    .shirt-close {
        top: 10px;

        right: 10px;

        width: 44px;
        height: 44px;

        font-size: 30px;
    }

    .shirt-prev,
    .shirt-next {
        width: 44px;
        height: 44px;

        font-size: 20px;
    }

    .shirt-prev {
        left: 8px;
    }

    .shirt-next {
        right: 8px;
    }


    /* -----------------------------------------
       AWARDS
    ----------------------------------------- */

    .all-runner-box {
        margin-bottom: 35px;

        padding:
            25px 18px;

        border-radius: 18px;
    }

    .all-runner-icon {
        font-size: 48px;
    }

    .all-runner-box h3 {
        font-size: 22px;
    }

    .all-runner-box p {
        font-size: 14px;

        line-height: 1.8;
    }

    .award-category {
        margin-top: 35px;
    }

    .award-category-title {
        font-size: 25px;

        margin-bottom: 20px;
    }

    .award-grid {
        grid-template-columns: 1fr;

        max-width: 400px;

        gap: 15px;
    }

    .award-card {
        padding: 15px;

        border-radius: 18px;
    }

    .award-card:hover {
        transform: none;
    }

    .award-card img {
        height: 230px;

        margin-bottom: 10px;
    }

    .award-rank {
        font-size: 38px;
    }

    .award-card h4 {
        font-size: 21px;
    }

    .award-card p {
        font-size: 14px;
    }

    .award-note {
        margin-top: 35px;

        padding:
            16px 14px;

        font-size: 14px;

        line-height: 1.8;
    }


    /* -----------------------------------------
       AWARD GALLERY
    ----------------------------------------- */

    .award-gallery {
        padding: 12px;
    }

    .award-gallery-content img {
        max-width: 84vw;

        max-height: 68vh;

        border-radius: 12px;
    }

    .award-gallery-title {
        font-size: 18px;

        margin-top: 12px;
    }

    .award-close {
        top: 10px;

        right: 10px;

        width: 44px;
        height: 44px;

        font-size: 30px;
    }

    .award-prev,
    .award-next {
        width: 44px;
        height: 44px;

        font-size: 20px;
    }

    .award-prev {
        left: 8px;
    }

    .award-next {
        right: 8px;
    }

}


/* =========================================================
   SMALL MOBILE
   หน้าจอ 480px ลงมา
========================================================= */

@media (max-width: 480px) {

    /* -----------------------------------------
       CONTAINER
    ----------------------------------------- */

    .container {
        width: 92%;
    }


    /* -----------------------------------------
       NAVBAR
    ----------------------------------------- */

    .logo {
        font-size: 18px;
    }

    .logo-img {
        width: 50px;
        height: 50px;
    }


    /* -----------------------------------------
       TOP LOGO
    ----------------------------------------- */

    .top-logo {
        top: 89px;

        width: 99px;
        height: 99px;

        border-width: 4px;
    }

    .top-logo img {
        width: 89px;
        height: 89px;
    }


    /* -----------------------------------------
       HERO
    ----------------------------------------- */

    .hero-content {
        padding:
            205px 0 50px;
    }

    .hero-badge {
        font-size: 11px;

        padding:
            6px 11px;
    }

    .hero-title {
        font-size:
            clamp(38px, 13vw, 54px);
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 13px;
    }


    /* -----------------------------------------
       SECTION
    ----------------------------------------- */

    .section {
        padding:
            55px 0;
    }

    .section-title {
        font-size: 27px;
    }

    .section-subtitle {
        font-size: 13px;
    }


    /* -----------------------------------------
       BUTTON
    ----------------------------------------- */

    .btn {
        max-width: 100%;

        font-size: 15px;

        min-height: 48px;
    }


    /* -----------------------------------------
       INFO
    ----------------------------------------- */

    .info-card {
        max-width: 100%;
    }


    /* -----------------------------------------
       SHIRT
    ----------------------------------------- */

    .image-card img {
        height: 250px;
    }


    /* -----------------------------------------
       AWARDS
    ----------------------------------------- */

    .award-card img {
        height: 210px;
    }


    /* -----------------------------------------
       POPUPS / GALLERY
    ----------------------------------------- */

    .shirt-gallery-content img,
    .award-gallery-content img {
        max-width: 80vw;

        max-height: 64vh;
    }

}


/* =========================================================
   MOBILE UI
   ปรับหน้าจอมือถือให้ดูเป็นเว็บงานวิ่งสมัยใหม่
   เน้น:
   - อ่านง่าย
   - ปุ่มกดง่าย
   - Card สวย
   - ระยะห่างพอดี
   - ดู Premium / Sport Event
   - ไม่เปลี่ยน HTML และ JavaScript เดิม
========================================================= */

@media (max-width: 700px) {

    /* =====================================================
       GLOBAL MOBILE
       พื้นฐานสำหรับมือถือ
    ===================================================== */

    html {
        scroll-behavior: smooth;
    }

    body {
        font-size: 15px;
        line-height: 1.65;
    }

    .container {
        width: calc(100% - 30px);
        max-width: 520px;
        margin: 0 auto;
    }


    /* =====================================================
       NAVBAR
       Navbar แบบกระชับ ใช้งานง่าย
    ===================================================== */

    .navbar {
        padding: 8px 0;
        background: rgba(3, 45, 32, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    }

    .navbar-inner {
        min-height: 44px;
    }

    .logo {
        font-size: 16px;
        gap: 8px;
    }

    .logo-img {
        width: 38px;
        height: 38px;
        padding: 4px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 42px;
        height: 42px;

        padding: 0;

        border-radius: 12px;

        background: rgba(255, 255, 255, 0.08);

        font-size: 25px;

        transition: 0.25s ease;
    }

    .menu-toggle:active {
        transform: scale(0.94);
        background: rgba(255, 255, 255, 0.15);
    }

    .nav-menu {
        display: none;

        position: absolute;

        top: calc(100% + 8px);
        left: 15px;

        width: calc(100% - 30px);

        flex-direction: column;

        gap: 5px;

        padding: 10px;

        background: rgba(3, 45, 32, 0.98);

        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        border: 1px solid rgba(255, 255, 255, 0.10);

        border-radius: 18px;

        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.25);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        width: 100%;

        padding: 13px 15px;

        border-radius: 12px;

        font-size: 16px !important;

        text-align: left;

        opacity: 1;
    }

    .nav-menu a:hover,
    .nav-menu a:active {
        background: rgba(255, 255, 255, 0.10);
        color: white;
    }


    /* =====================================================
       TOP LOGO
       โลโก้กลาง Hero
    ===================================================== */

    .top-logo {
        top: 70px;

        width: 92px;
        height: 92px;

        border-width: 4px;

        box-shadow:
            0 8px 28px rgba(0, 0, 0, 0.25);
    }

    .top-logo img {
        width: 68px;
        height: 68px;
    }


    /* =====================================================
       HERO
       ลดความสูงให้เหมาะกับมือถือ
    ===================================================== */

    .hero {
        min-height: auto;

        padding: 0;

        background:
            radial-gradient(
                circle at 20% 15%,
                rgba(255, 216, 77, 0.20),
                transparent 30%
            ),
            radial-gradient(
                circle at 85% 80%,
                rgba(0, 255, 170, 0.15),
                transparent 35%
            ),
            linear-gradient(
                145deg,
                #032d20,
                #08734d 55%,
                #0da66b
            );
    }

    .hero-content {
        padding: 170px 0 55px;
    }

    .hero-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding: 7px 14px;

        margin-bottom: 16px;

        border-radius: 50px;

        font-size: 11px;

        background: rgba(255, 255, 255, 0.11);

        border: 1px solid rgba(255, 255, 255, 0.18);

        box-shadow:
            0 5px 20px rgba(0, 0, 0, 0.08);
    }

    .hero-title {
        font-size: clamp(42px, 14vw, 62px);

        line-height: 0.98;

        letter-spacing: 0.5px;

        margin-bottom: 13px;

        text-shadow:
            0 8px 25px rgba(0, 0, 0, 0.25);
    }

    .hero-subtitle {
        font-size: 19px;

        line-height: 1.4;

        margin-bottom: 9px;
    }

    .hero-description {
        max-width: 390px;

        padding: 0 10px;

        font-size: 13.5px;

        line-height: 1.8;

        opacity: 0.88;
    }


    /* =====================================================
       HERO INFO
       เปลี่ยนเป็น Card แบบงานวิ่ง
    ===================================================== */

    .hero-info {
        display: grid;

        grid-template-columns: repeat(2, 1fr);

        gap: 9px;

        width: 100%;

        margin: 23px auto;
    }

    .info-card {
        min-width: 0;

        width: 100%;

        padding: 13px 10px;

        border-radius: 16px;

        background: rgba(255, 255, 255, 0.10);

        border: 1px solid rgba(255, 255, 255, 0.14);

        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);

        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.10);

        font-size: 12px;
    }

    .info-card strong {
        margin-top: 2px;

        font-size: 15px;

        line-height: 1.35;
    }


    /* =====================================================
       BUTTONS
       ปุ่มสมัครขนาดใหญ่ กดง่าย
    ===================================================== */

    .buttons {
        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 9px;

        width: 100%;
    }

    .btn {
        width: 100%;

        max-width: 390px;

        min-height: 52px;

        padding: 13px 20px;

        border-radius: 15px;

        font-size: 16px;

        font-weight: 600;

        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.18);

        transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
    }

    .btn:active {
        transform: scale(0.97);
    }

    .btn:hover {
        transform: none;
    }

    .btn-normal {
        background: white;

        color: var(--green);

        border: 1px solid rgba(255, 255, 255, 0.8);
    }

    .btn-vip {
        background:
            linear-gradient(
                135deg,
                #ffe66d,
                #ffc928
            );

        color: #3c3000;

        box-shadow:
            0 8px 25px rgba(160, 120, 0, 0.22);
    }


    /* =====================================================
       SECTION
       ลด Padding ให้เหมาะกับจอมือถือ
    ===================================================== */

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 29px;

        line-height: 1.3;

        margin-bottom: 7px;
    }

    .section-subtitle {
        max-width: 400px;

        margin-left: auto;
        margin-right: auto;

        margin-bottom: 28px;

        font-size: 13.5px;

        line-height: 1.75;
    }


    /* =====================================================
       CARDS
       Card แบบ Modern Sport
    ===================================================== */

    .cards {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .card {
        padding: 25px 20px;

        border-radius: 20px;

        border: 1px solid #e4ebe7;

        box-shadow:
            0 8px 28px rgba(10, 50, 30, 0.07);

        transition: none;
    }

    .card:hover {
        transform: none;

        box-shadow:
            0 8px 28px rgba(10, 50, 30, 0.07);
    }

    .card-icon {
        font-size: 40px;

        margin-bottom: 7px;
    }

    .card h3 {
        font-size: 26px;

        margin-bottom: 4px;
    }

    .card p {
        font-size: 14px;

        line-height: 1.75;
    }


    /* =====================================================
       PRICE TABLE
       ตารางราคาสมัคร
    ===================================================== */

    .price-table {
        width: 100%;

        max-width: 100%;

        border-radius: 16px;

        overflow-x: auto;

        overflow-y: hidden;

        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.07);
    }

    .price-table table {
        min-width: 520px;
    }

    th {
        padding: 13px 12px;

        font-size: 14px;
    }

    td {
        padding: 13px 12px;

        font-size: 13px;
    }

    .price {
        font-size: 14px;
    }


    /* =====================================================
       SHIRT
       แสดงเสื้อ
    ===================================================== */

    .image-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .image-card {
        border-radius: 20px;

        box-shadow:
            0 8px 28px rgba(0, 0, 0, 0.08);
    }

    .image-card:hover {
        transform: none;
    }

    .image-card img {
        height: 270px;

        padding: 15px;
    }

    .image-card:hover img {
        transform: none;
    }

    .image-caption {
        padding: 13px 12px 17px;
    }

    .image-caption h3 {
        font-size: 20px;
    }

    .image-caption p {
        font-size: 13px;
    }


    /* =====================================================
       SHIRT INFO
    ===================================================== */

    .shirt-info {
        gap: 9px;
    }

    .shirt-info img {
        width: 115px;
        height: 115px;

        border-radius: 15px;

        padding: 7px;

        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.07);
    }

    .shirt-info img:hover {
        transform: none;
    }

    .shirt-info p {
        font-size: 13px;
    }


    /* =====================================================
       VIP
       Card VIP แบบ Premium
    ===================================================== */

    .vip-section {
        background:
            radial-gradient(
                circle at top right,
                rgba(255, 215, 0, 0.25),
                transparent 40%
            ),
            linear-gradient(
                145deg,
                #fff9db,
                #ffeaa0
            );
    }

    .vip-box {
        width: 100%;

        padding: 32px 18px;

        border-radius: 22px;

        box-shadow:
            0 15px 45px rgba(130, 100, 0, 0.12);
    }

    .vip-icon {
        font-size: 55px;

        margin-bottom: 6px;
    }

    .vip-box h2 {
        font-size: 30px;

        line-height: 1.3;

        margin-bottom: 10px;
    }

    .vip-box p {
        font-size: 14px;

        line-height: 1.8;

        margin-bottom: 22px;
    }


    /* =====================================================
       STEPS
       ขั้นตอนสมัคร
    ===================================================== */

    .steps {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .step {
        padding: 23px 18px;

        border-radius: 18px;

        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.06);
    }

    .step-number {
        width: 50px;
        height: 50px;

        margin-bottom: 11px;

        font-size: 20px;
    }

    .step h3 {
        font-size: 18px;

        margin-bottom: 5px;
    }

    .step p {
        font-size: 14px;

        line-height: 1.75;
    }


    /* =====================================================
       FAQ
       คำถามที่พบบ่อย
    ===================================================== */

    .faq {
        width: 100%;
    }

    details {
        padding: 16px 17px;

        margin-bottom: 10px;

        border-radius: 15px;

        box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.05);
    }

    summary {
        font-size: 15px;

        line-height: 1.55;
    }

    details p {
        margin-top: 12px;

        font-size: 13.5px;

        line-height: 1.8;
    }


    /* =====================================================
       AWARDS
       ส่วนรางวัล
    ===================================================== */

    .awards-section {
        background: #f7f9fb;
    }

    .all-runner-box {
        width: 100%;

        margin-bottom: 30px;

        padding: 23px 17px;

        border-radius: 18px;

        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.06);
    }

    .all-runner-icon {
        font-size: 45px;

        margin-bottom: 6px;
    }

    .all-runner-box h3 {
        font-size: 21px;

        margin-bottom: 7px;
    }

    .all-runner-box p {
        font-size: 13.5px;

        line-height: 1.8;
    }

    .award-category {
        margin-top: 32px;
    }

    .award-category-title {
        font-size: 24px;

        margin-bottom: 17px;
    }

    .award-grid {
        grid-template-columns: 1fr;

        max-width: 420px;

        gap: 12px;
    }

    .award-card {
        padding: 14px;

        border-radius: 18px;

        box-shadow:
            0 7px 22px rgba(0, 0, 0, 0.06);
    }

    .award-card:hover {
        transform: none;

        box-shadow:
            0 7px 22px rgba(0, 0, 0, 0.06);
    }

    .award-card img {
        height: 220px;

        margin-bottom: 8px;

        border-radius: 13px;
    }

    .award-rank {
        font-size: 36px;

        margin-bottom: 2px;
    }

    .award-card h4 {
        font-size: 20px;

        margin: 4px 0;
    }

    .award-card p {
        font-size: 13.5px;
    }

    .award-note {
        margin-top: 30px;

        padding: 15px 14px;

        border-radius: 14px;

        font-size: 13.5px;

        line-height: 1.8;
    }


    /* =====================================================
       CONTACT
       ช่องทางติดต่อ
    ===================================================== */

    .final-section {
        padding: 55px 15px;
    }

    .final-section h2 {
        font-size: 31px;

        line-height: 1.3;

        margin-bottom: 8px;
    }

    .final-section p {
        font-size: 13.5px;

        line-height: 1.8;

        margin-bottom: 24px;
    }

    .contact-box {
        width: 100%;

        padding: 32px 17px;

        border-radius: 20px;

        box-shadow:
            0 10px 30px rgba(31, 78, 64, 0.10);
    }

    .contact-icon {
        font-size: 52px;

        margin-bottom: 8px;
    }

    .contact-box h2 {
        font-size: 27px;

        margin-bottom: 9px;
    }

    .contact-subtitle {
        font-size: 14px;

        line-height: 1.75;

        margin-bottom: 25px;
    }

    .contact-info {
        gap: 10px;
    }

    .contact-item {
        flex-direction: column;

        align-items: flex-start;

        gap: 4px;

        padding: 16px 17px;

        border-radius: 14px;

        transform: none;

        box-shadow:
            0 5px 16px rgba(47, 128, 104, 0.08);
    }

    .contact-label {
        font-size: 14px;
    }

    .contact-value {
        font-size: 15px;

        word-break: break-word;

        line-height: 1.5;
    }

    .contact-phone {
        font-size: 15px;
    }

    .contact-footer {
        margin-top: 24px;

        font-size: 14px;

        line-height: 1.7;
    }


    /* =====================================================
       FOOTER
    ===================================================== */

    .footer {
        padding: 30px 15px;
    }

    .footer h2 {
        font-size: 21px;
    }

    .footer p {
        font-size: 12px;

        line-height: 1.7;
    }


    /* =====================================================
       MAP MODAL
    ===================================================== */

    .modal {
        padding: 10px;
    }

    .modal-content {
        max-width: 94vw;

        max-height: 78vh;

        border-radius: 10px;
    }

    .close-btn {
        top: 8px;

        right: 12px;

        font-size: 36px;
    }


    /* =====================================================
       REGISTRATION POPUP
       Popup หลังสมัคร
    ===================================================== */

    .registration-popup {
        padding: 15px;
    }

    .registration-popup-box {
        max-width: 430px;

        padding: 30px 18px;

        border-radius: 22px;
    }

    .popup-icon {
        font-size: 46px;

        margin-bottom: 6px;
    }

    .popup-title {
        font-size: 23px;

        line-height: 1.4;

        margin-bottom: 10px;
    }

    .popup-subtitle {
        font-size: 14px;

        line-height: 1.6;
    }

    .popup-reg-id {
        font-size: clamp(30px, 10vw, 46px);

        letter-spacing: 1px;

        line-height: 1.2;

        margin: 12px 0;
    }

    .popup-distance {
        font-size: 15px;

        margin-bottom: 20px;
    }

    .popup-close-btn {
        width: 100%;

        max-width: 100%;

        min-height: 50px;

        padding: 13px 18px;

        border-radius: 12px;

        font-size: 16px;
    }


    /* =====================================================
       SHIRT GALLERY
       Popup ดูเสื้อ
    ===================================================== */

    .shirt-gallery {
        padding: 10px;
    }

    .shirt-gallery-content img {
        max-width: 84vw;

        max-height: 68vh;

        border-radius: 12px;
    }

    .shirt-gallery-title {
        font-size: 17px;

        margin-top: 10px;
    }

    .shirt-close {
        top: 10px;

        right: 10px;

        width: 44px;
        height: 44px;

        font-size: 29px;
    }

    .shirt-prev,
    .shirt-next {
        width: 43px;
        height: 43px;

        font-size: 20px;
    }

    .shirt-prev {
        left: 7px;
    }

    .shirt-next {
        right: 7px;
    }


    /* =====================================================
       AWARD GALLERY
    ===================================================== */

    .award-gallery {
        padding: 10px;
    }

    .award-gallery-content img {
        max-width: 84vw;

        max-height: 68vh;

        border-radius: 12px;
    }

    .award-gallery-title {
        font-size: 18px;

        margin-top: 10px;
    }

    .award-close {
        top: 10px;

        right: 10px;

        width: 44px;
        height: 44px;

        font-size: 29px;
    }

    .award-prev,
    .award-next {
        width: 43px;
        height: 43px;

        font-size: 20px;
    }

    .award-prev {
        left: 7px;
    }

    .award-next {
        right: 7px;
    }
}


/* =========================================================
   EXTRA SMALL MOBILE
   สำหรับมือถือจอเล็กมาก เช่น 360px / 375px
========================================================= */

@media (max-width: 480px) {

    .container {
        width: calc(100% - 24px);
    }


    /* -----------------------------------------------------
       NAVBAR
    ----------------------------------------------------- */

    .navbar {
        padding: 7px 0;
    }

    .navbar-inner {
        min-height: 43px;
    }

    .logo {
        font-size: 14px;

        gap: 7px;
    }

    .logo-img {
        width: 36px;
        height: 36px;

        padding: 4px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;

        border-radius: 11px;

        font-size: 23px;
    }


    /* -----------------------------------------------------
       TOP LOGO
    ----------------------------------------------------- */

    .top-logo {
        top: 66px;

        width: 86px;
        height: 86px;

        border-width: 4px;
    }

    .top-logo img {
        width: 63px;
        height: 63px;
    }


    /* -----------------------------------------------------
       HERO
    ----------------------------------------------------- */

    .hero-content {
        padding: 160px 0 48px;
    }

    .hero-badge {
        font-size: 10px;

        padding: 6px 10px;

        margin-bottom: 14px;
    }

    .hero-title {
        font-size: clamp(37px, 13vw, 52px);

        letter-spacing: 0;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .hero-description {
        font-size: 12.5px;

        padding: 0 8px;
    }


    /* -----------------------------------------------------
       HERO INFO
    ----------------------------------------------------- */

    .hero-info {
        gap: 7px;

        margin: 20px 0;
    }

    .info-card {
        padding: 11px 7px;

        border-radius: 13px;

        font-size: 11px;
    }

    .info-card strong {
        font-size: 14px;
    }


    /* -----------------------------------------------------
       BUTTON
    ----------------------------------------------------- */

    .btn {
        min-height: 49px;

        max-width: 100%;

        padding: 12px 15px;

        border-radius: 13px;

        font-size: 14px;
    }


    /* -----------------------------------------------------
       SECTION
    ----------------------------------------------------- */

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 12.5px;

        margin-bottom: 24px;
    }


    /* -----------------------------------------------------
       CARDS
    ----------------------------------------------------- */

    .card {
        padding: 23px 17px;

        border-radius: 18px;
    }

    .card-icon {
        font-size: 37px;
    }

    .card h3 {
        font-size: 24px;
    }

    .card p {
        font-size: 13px;
    }


    /* -----------------------------------------------------
       PRICE
    ----------------------------------------------------- */

    .price-table table {
        min-width: 500px;
    }

    th {
        padding: 12px 10px;

        font-size: 13px;
    }

    td {
        padding: 12px 10px;

        font-size: 12.5px;
    }


    /* -----------------------------------------------------
       SHIRT
    ----------------------------------------------------- */

    .image-card img {
        height: 235px;
    }

    .image-caption h3 {
        font-size: 19px;
    }

    .image-caption p {
        font-size: 12px;
    }

    .shirt-info img {
        width: 105px;
        height: 105px;
    }


    /* -----------------------------------------------------
       VIP
    ----------------------------------------------------- */

    .vip-box {
        padding: 28px 15px;

        border-radius: 19px;
    }

    .vip-icon {
        font-size: 48px;
    }

    .vip-box h2 {
        font-size: 27px;
    }

    .vip-box p {
        font-size: 13px;
    }


    /* -----------------------------------------------------
       STEPS
    ----------------------------------------------------- */

    .step {
        padding: 21px 16px;

        border-radius: 16px;
    }

    .step-number {
        width: 47px;
        height: 47px;

        font-size: 19px;
    }

    .step h3 {
        font-size: 17px;
    }

    .step p {
        font-size: 13px;
    }


    /* -----------------------------------------------------
       FAQ
    ----------------------------------------------------- */

    details {
        padding: 14px 15px;

        border-radius: 13px;
    }

    summary {
        font-size: 14px;
    }

    details p {
        font-size: 13px;
    }


    /* -----------------------------------------------------
       AWARDS
    ----------------------------------------------------- */

    .all-runner-box {
        padding: 21px 15px;

        border-radius: 16px;
    }

    .all-runner-icon {
        font-size: 42px;
    }

    .all-runner-box h3 {
        font-size: 20px;
    }

    .all-runner-box p {
        font-size: 13px;
    }

    .award-category-title {
        font-size: 23px;
    }

    .award-card {
        padding: 12px;

        border-radius: 16px;
    }

    .award-card img {
        height: 205px;
    }

    .award-rank {
        font-size: 34px;
    }

    .award-card h4 {
        font-size: 19px;
    }

    .award-card p {
        font-size: 13px;
    }

    .award-note {
        font-size: 13px;
    }


    /* -----------------------------------------------------
       CONTACT
    ----------------------------------------------------- */

    .final-section {
        padding: 48px 12px;
    }

    .final-section h2 {
        font-size: 28px;
    }

    .final-section p {
        font-size: 13px;
    }

    .contact-box {
        padding: 28px 15px;

        border-radius: 18px;
    }

    .contact-icon {
        font-size: 48px;
    }

    .contact-box h2 {
        font-size: 25px;
    }

    .contact-subtitle {
        font-size: 13px;
    }

    .contact-item {
        padding: 14px 15px;

        border-radius: 13px;
    }

    .contact-label {
        font-size: 13px;
    }

    .contact-value,
    .contact-phone {
        font-size: 14px;
    }


    /* -----------------------------------------------------
       FOOTER
    ----------------------------------------------------- */

    .footer {
        padding: 27px 12px;
    }

    .footer h2 {
        font-size: 20px;
    }

    .footer p {
        font-size: 11.5px;
    }


    /* -----------------------------------------------------
       REGISTRATION POPUP
    ----------------------------------------------------- */

    .registration-popup {
        padding: 12px;
    }

    .registration-popup-box {
        padding: 26px 15px;

        border-radius: 19px;
    }

    .popup-icon {
        font-size: 42px;
    }

    .popup-title {
        font-size: 21px;
    }

    .popup-subtitle {
        font-size: 13px;
    }

    .popup-reg-id {
        font-size: clamp(28px, 9vw, 42px);

        margin: 10px 0;
    }

    .popup-distance {
        font-size: 14px;

        margin-bottom: 17px;
    }

    .popup-close-btn {
        min-height: 48px;

        font-size: 15px;
    }


    /* -----------------------------------------------------
       GALLERY
    ----------------------------------------------------- */

    .shirt-gallery,
    .award-gallery {
        padding: 8px;
    }

    .shirt-gallery-content img,
    .award-gallery-content img {
        max-width: 82vw;

        max-height: 63vh;

        border-radius: 10px;
    }

    .shirt-gallery-title,
    .award-gallery-title {
        font-size: 16px;

        margin-top: 9px;
    }

    .shirt-close,
    .award-close {
        top: 8px;
        right: 8px;

        width: 42px;
        height: 42px;

        font-size: 27px;
    }

    .shirt-prev,
    .shirt-next,
    .award-prev,
    .award-next {
        width: 41px;
        height: 41px;

        font-size: 19px;
    }

    .shirt-prev,
    .award-prev {
        left: 5px;
    }

    .shirt-next,
    .award-next {
        right: 5px;
    }
}

@media (max-width: 700px) {

    .btn-vip,
    .btn-normal {
        width: fit-content !important;
        max-width: none !important;

        padding: 10px 20px !important;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        border-radius: 999px;

        white-space: nowrap;
    }

}

/* =========================================================
   POPUP กำหนดการ
========================================================= */

.schedule-card {
    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.schedule-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.12);
}

.schedule-card:active {
    transform: scale(0.97);
}


/* พื้นหลัง Popup */

.schedule-modal {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 9999;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.78);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.schedule-modal.active {
    display: flex;
}


/* กล่องรูป */

.schedule-modal-content {
    position: relative;

    width: auto;
    max-width: 92vw;
    max-height: 90vh;

    display: flex;

    align-items: center;
    justify-content: center;

    animation: schedulePopup 0.25s ease;
}

.schedule-modal-content img {
    display: block;

    max-width: 100%;
    max-height: 88vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 12px;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.4);
}


/* ปุ่มปิด */

.schedule-close {
    position: absolute;

    top: -15px;
    right: -15px;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: white;

    color: #174d3c;

    font-size: 30px;

    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.25);

    z-index: 2;

    transition: 0.2s ease;
}

.schedule-close:hover {
    transform: scale(1.08);
}

.schedule-close:active {
    transform: scale(0.92);
}


/* Animation */

@keyframes schedulePopup {

    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .schedule-modal {
        padding: 12px;
    }

    .schedule-modal-content {
        max-width: 94vw;
        max-height: 88vh;
    }

    .schedule-modal-content img {
        max-width: 94vw;
        max-height: 82vh;

        border-radius: 10px;
    }

    .schedule-close {
        top: -8px;
        right: -5px;

        width: 40px;
        height: 40px;

        font-size: 28px;
    }

    .schedule-card {
        cursor: pointer;
    }

}

@media (min-width: 1440px) {

    .nav-menu {
        gap: 16px;
    }

    .nav-menu a {
        font-size: 17px;
    }

}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 700px) {

    .navbar .container {
        width: 100%;
        max-width: none;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .navbar-inner {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

}

