@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================
   2. พื้นหลังหลักของเว็บไซต์ (Body & Background)
   ========================================== */
body {
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333333;
    line-height: 1.6;
    
    /* -----------------------------------------------------------
       เพิ่มภาพพื้นหลังตรงนี้ (เปลี่ยน path รูปภาพตามต้องการ)
       ----------------------------------------------------------- */
    background-image: url('../images/bg1.jpg'); /* โฟลเดอร์ images/bg.jpg */
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed; /* ล็อกพื้นหลังไม่ให้เลื่อนตาม Scroll */
    background-color: #0f172a; /* สีสำรองกรณีรูป加載ไม่ขึ้น */
    
    padding: 20px 10px;
}

/* ==========================================
   3. เลย์เอาต์และกล่องเนื้อหา (Wrapper & Section)
   ========================================== */
.wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.section1 {
    background-color: rgba(255, 245, 248, 0.92); /* พื้นหลังขาวโปร่งแสงเล็กน้อย อ่านง่าย */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(5px); /* เอฟเฟกต์กระจกฝ้า */
}

/* แบนเนอร์หัวหน้าเว็บ */
.pic-top img {
    width: 100%;
    height: auto;
    display: block;
}

.content {
    padding: 30px 25px;
}

/* ==========================================
   4. หัวข้อและองค์ประกอบเนื้อหา
   ========================================== */
.main-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.block {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 18px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.block h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 10px;
}

.event-time {
    font-size: 1.1rem;
    font-weight: 500;
    color: #d97706;
}

/* ==========================================
   5. ปุ่มกด (Modern Button Style)
   ========================================== */
.action-btn {
    text-align: center;
    margin: 30px 0;
}

.button {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.button:active {
    transform: translateY(-1px);
}

/* ==========================================
   6. รายการลิสต์ (Lists Style)
   ========================================== */
ul, ol {
    padding-left: 20px;
}

.reward-list, .score-list, .detail-list {
    list-style: none;
    padding-left: 0;
}

.reward-list li, .score-list li, .detail-list li {
    padding: 8px 12px;
    margin-bottom: 6px;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.reward-list li span {
    color: #059669;
    font-weight: 600;
    float: right;
}

.score-list li {
    color: #d97706;
    font-weight: 500;
}

.sub-text {
    margin-bottom: 10px;
    color: #64748b;
}

.highlight-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ef4444;
    font-weight: 500;
    text-align: center;
}

/* ==========================================
   7. หมายเหตุและส่วนท้าย (Note & Footer)
   ========================================== */
.note {
    background-color: #fffbebfb;
    border: 1px solid #fef08a;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.note h3 {
    font-size: 1.1rem;
    color: #b45309;
    margin-bottom: 12px;
}

.note ul {
    list-style-type: none;
    padding-left: 0;
}

.note ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #4b5563;
}

.note ul li::before {
    content: "➤";
    position: absolute;
    left: 0;
    color: #d97706;
}

.sponsor {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #fde047;
    font-size: 0.95rem;
}

.sponsor a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.sponsor a:hover {
    text-decoration: underline;
}

.foot {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 18px 20px;
    font-size: 0.85rem;
}

/* ==========================================
   8. Responsive สำหรับมือถือ
   ========================================== */
@media (max-width: 600px) {
    body {
        padding: 0;
    }

    .section1 {
        border-radius: 0;
    }

    .content {
        padding: 20px 15px;
    }

    .main-title {
        font-size: 1.6rem;
    }

    .reward-list li span {
        float: none;
        display: block;
        margin-top: 2px;
    }

    .button {
        width: 100%;
        padding: 12px 20px;
    }
}