/* ================================
   reward.css
   ================================ */

.reward-main {
    background: #0b1929;
    min-height: 100vh;
    padding: 80px 24px 100px;
}

/* ================================
   PAGE TITLE
   ================================ */
.reward-page-title {
    text-align: center;
    margin-bottom: 64px;
}

.reward-page-badge {
    display: inline-block;
    background: rgba(247, 183, 49, 0.1);
    border: 1px solid rgba(247, 183, 49, 0.4);
    color: #f7b731;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.88rem;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.reward-page-title h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 8px;
    background: linear-gradient(135deg, #f7b731, #ffffff 50%, #00c9a7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.reward-page-sub {
    color: #6b8fa8;
    font-size: 0.97rem;
}

/* ================================
   REWARD SECTION
   ================================ */
.reward-section {
    max-width: 1080px;
    margin: 0 auto 64px;
}

/* Section Title */
.reward-section-title {
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 18px;
    position: relative;
}

.reward-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    border-radius: 3px;
    margin: 12px auto 0;
}

.reward-section-title.gold h2   { color: #f7b731; }
.reward-section-title.gold::after { background: linear-gradient(90deg, transparent, #f7b731, transparent); }

.reward-section-title.silver h2   { color: #c8c8c8; }
.reward-section-title.silver::after { background: linear-gradient(90deg, transparent, #c8c8c8, transparent); }

.reward-section-title.teal h2   { color: #00c9a7; }
.reward-section-title.teal::after { background: linear-gradient(90deg, transparent, #00c9a7, transparent); }

.section-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 8px;
}

.reward-section-title h2 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 2px;
}

/* ================================
   BEST PAPER - รูปเดียว
   ================================ */
.best-paper-img-wrap {
    display: flex;
    justify-content: center;
}

.best-paper-img-wrap img {
    width: 100%;
    max-width: 720px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5);
    border: 1px solid rgba(247,183,49,0.2);
    display: block;
}

/* ================================
   BEST PRESENTATION - Grid 2 col
   ================================ */
.presentation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.presentation-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    background: #111f2e;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
    border: 1px solid rgba(200,200,200,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* กำหนดสัดส่วนตายตัว */
    aspect-ratio: 16 / 8;
}

.presentation-img-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}

.presentation-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* ครอบรูปให้เต็มกรอบเสมอ */
    object-position: center top; /* โฟกัสที่ด้านบนของรูป */
    display: block;
    transition: transform 0.4s ease;
}

.presentation-img-wrap:hover img {
    transform: scale(1.03);
}

/* ================================
   DIVIDER
   ================================ */
.reward-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1080px;
    margin: 0 auto 64px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.divider-dot {
    color: rgba(255,255,255,0.2);
    font-size: 1rem;
    letter-spacing: 6px;
}

/* ================================
   PHOTO GRID - รวมรูปงาน
   ================================ */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 36px;
}

.photo-item {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #111f2e;
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.photo-item:hover img {
    transform: scale(1.06);
}

/* ================================
   DRIVE BUTTON
   ================================ */
.drive-btn-wrap {
    display: flex;
    justify-content: center;
}

.drive-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1a73e8, #00c9a7);
    color: #fff;
    font-size: 0.97rem;
    font-weight: 700;
    padding: 15px 42px;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(0,201,167,0.25);
}

.drive-btn i {
    font-size: 1.1rem;
}

.drive-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,201,167,0.4);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {

    .reward-main {
        padding: 60px 16px 80px;
    }

    .reward-page-title h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .best-paper-img-wrap img {
        max-width: 100%;
    }

    /* Presentation → 1 col บน mobile */
    .presentation-grid {
        grid-template-columns: 1fr;
    }

    /* Photo → 2 col */
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .reward-page-title h1 {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .reward-section-title h2 {
        font-size: 1.4rem;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .drive-btn {
        font-size: 0.88rem;
        padding: 13px 24px;
    }
}