:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-color: #1e293b;
    --light-bg: #f8fafc;
    --success: #198754;
    --warning: #ffc107;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

.section-padding {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.intro-text {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
}

.intro-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Card Styling */
.card, .hover-card {
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card:hover, .hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.venue-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-left: 5px solid var(--primary-color);
}

.participants-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    color: white;
}

.objectives-card {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
}

.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1rem;
}

.custom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.venue-card .custom-list li::before {
    background: var(--primary-color);
    color: white;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}
.scroll-to-top.visible {
    opacity: 1;
}
.scroll-to-top:hover {
    color: white;
    background: #1d4ed8;
}

/* =========================================
   Navigation Bar Styling (อิงตามรูปภาพ)
   ========================================= */
.custom-navbar {
    background-color: #0b2239; /* สีน้ำเงินเข้ม */
    padding: 15px 0;
}

.brand-logo {
    color: #00d2ff !important; /* สีฟ้าสว่างโลโก้ */
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.nav-links .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    margin-left: 20px;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.nav-links .nav-link:hover {
    color: #00d2ff !important;
}

/* =========================================
   Modern Interactive Hero Section (Original Colors)
   ========================================= */
.hero-section {
    /* พื้นหลังรูปภาพ CU1.jpg พร้อมเปิดโหมด Parallax (fixed) */
    background-image: url('../images/CU1.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Parallax Effect */
    background-repeat: no-repeat;
    
    position: relative;
    /* ปรับลด Padding และ Min-height ลงเพื่อให้ความสูงพอดีขึ้น */
    padding: 100px 0 80px 0; 
    min-height: 90vh; /* ลดจาก 100vh เหลือ 65vh */

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* สร้างเลเยอร์สีทับรูปภาพ (Dark Navy/Blue Radial Overlay แบบสีเดิม) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* ไล่โทนสีน้ำเงินกรมท่าแบบดั้งเดิม ให้ตัวหนังสืออ่านง่ายและดูเป็นทางการ */
    background: radial-gradient(circle at center, rgba(17, 78, 139, 0.85) 0%, rgba(13, 54, 98, 0.9) 60%, rgba(9, 32, 63, 0.95) 100%);
    z-index: 1;
}

/* ให้เนื้อหาอยู่เหนือ Overlay */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Typography */
.hero-title {
    font-size: 3.3rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.highlight-text {
    color: #ff9f1c; /* สีส้มเดิมที่ตัดกับสีน้ำเงิน */
    text-shadow: 0 0 10px rgba(255, 159, 28, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: #e2e8f0;
}

/* Interactive Buttons */
.btn-interactive {
    padding: 14px 35px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
}

.btn-primary-custom {
    background-color: #f59e0b; /* สีปุ่มส้มแบบเดิม */
    color: #ffffff !important;
}

.btn-primary-custom:hover {
    background-color: #d97706;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.4) !important;
}

.btn-outline-custom {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border-color: #ffffff;
    backdrop-filter: blur(5px);
}

.btn-outline-custom:hover {
    background-color: #ffffff;
    color: #0b2239 !important; /* ตัวหนังสือสีน้ำเงินตอน hover */
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3) !important;
}

/* Glassmorphism Organizers Box */
.organizers-glass-box {
    background: rgba(255, 255, 255, 0.05); /* กล่องใส */
    backdrop-filter: blur(12px); /* เบลอพื้นหลัง (Glass Effect) */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px 30px;
    max-width: 900px;
    transition: transform 0.3s ease;
}

.organizers-glass-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.organizers-title {
    color: #00d2ff; /* สีฟ้า Cyan แบบเดิม */
    letter-spacing: 2px;
}

.organizer-badge {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: default;
}

.organizer-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* Bouncing Scroll Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    z-index: 2;
    animation: bounce 2s infinite;
    transition: color 0.3s;
}

.scroll-down-indicator:hover {
    color: #00d2ff; /* ชี้แล้วเปลี่ยนเป็นสีฟ้า */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* Entrance Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards ease-out;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .btn-interactive { width: 100%; margin-bottom: 15px; display: block; }
    .organizers-glass-box { padding: 20px 15px; border-radius: 15px; }
}

/* =========================================
   Bank Information Card Styling
   ========================================= */
.bank-card {
    border-radius: 6px;
    overflow: hidden;
    border-color: #dee2e6 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.bank-card .card-header {
    background-color: #0d6efd !important; /* สีน้ำเงินสว่างแบบ Bootstrap */
    border-bottom: none;
}

.bank-detail {
    font-size: 1.1rem;
    color: #333;
}

/* =========================================
   Navbar & Logo Styling
   ========================================= */
/* ควบคุมขนาดโลโก้ให้เด่นขึ้นโดยยึดจากความสูง */
.nav-logo {
    height: 30px; /* ปรับตัวเลขนี้เพิ่ม/ลดได้ตามต้องการ (เช่น 60px จะใหญ่ขึ้นอีก) */
    width: auto;  /* ปล่อยให้ความกว้างขยายตามสัดส่วนที่ถูกต้อง */
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* เพิ่มลูกเล่นเวลานำเมาส์ไปชี้โลโก้ (Hover Effect) */
.nav-logo:hover {
    transform: scale(1.08);
}

/* ปรับระยะห่างของเมนูให้สวยงามขึ้น */
.navbar-nav .nav-link {
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
    color: #f59e0b !important; /* เปลี่ยนเป็นสีส้มเมื่อเอาเมาส์ชี้ */
}

/* สำหรับหน้าจอมือถือ (ลดขนาดโลโก้ลงเล็กน้อย เพื่อไม่ให้ล้นจอ) */
@media (max-width: 991px) {
    .navbar-brand.gap-3 {
        gap: 0.75rem !important; /* ลดช่องว่างระหว่างโลโก้ลง */
    }
    .nav-logo {
        height: 40px; /* ลดขนาดโลโก้ลงสำหรับมือถือ */
    }
}

/* =========================================
   About Section (Colorful & Equal Width)
   ========================================= */
.about-section {
    background-color: #f8fafc;
}

.text-navy { color: #0b2239; }
.text-orange { color: #f59e0b; }

.section-heading {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: #f59e0b;
    margin: 15px auto 0;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.about-section:hover .title-underline {
    width: 100px;
}

/* Base Interactive Card */
.interactive-card {
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

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

/* 🎨 Color Themes สำหรับแต่ละกล่อง */

/* 1. สีส้ม (Intro) */
.card-orange {
    background: linear-gradient(145deg, #fffbeb 0%, #fff7ed 100%);
    border-bottom: 4px solid #f59e0b;
}
.card-orange .card-icon-wrapper { background: #fef3c7; color: #f59e0b; }
.card-orange:hover { box-shadow: 0 15px 35px rgba(245, 158, 11, 0.15); }
.card-orange:hover .card-icon-wrapper { background: #f59e0b; color: #fff; }

/* 2. สีฟ้า (Venue) */
.card-blue {
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
    border-bottom: 4px solid #0ea5e9;
}
.card-blue .card-icon-wrapper { background: #e0f2fe; color: #0ea5e9; }
.card-blue:hover { box-shadow: 0 15px 35px rgba(14, 165, 233, 0.15); }
.card-blue:hover .card-icon-wrapper { background: #0ea5e9; color: #fff; }

/* 3. สีเขียว (Participants) */
.card-green {
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
    border-bottom: 4px solid #10b981;
}
.card-green .card-icon-wrapper { background: #dcfce7; color: #10b981; }
.card-green:hover { box-shadow: 0 15px 35px rgba(16, 185, 129, 0.15); }
.card-green:hover .card-icon-wrapper { background: #10b981; color: #fff; }

/* 4. สีม่วง (Objectives) */
.card-purple {
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 100%);
    border-bottom: 4px solid #8b5cf6;
}
.card-purple .card-icon-wrapper { background: #f3e8ff; color: #8b5cf6; }
.card-purple:hover { box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15); }
.card-purple:hover .card-icon-wrapper { background: #8b5cf6; color: #fff; }


/* Card Icons Animation */
.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.interactive-card:hover .card-icon-wrapper {
    transform: rotate(10deg) scale(1.1);
    border-radius: 50%;
}

/* Alert Box สำหรับ Venue */
.alert-light-blue {
    background-color: #bae6fd;
    color: #0c4a6e;
}

.highlight-word {
    background-color: rgba(245, 158, 11, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Interactive List สำหรับ Participants */
.custom-interactive-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.custom-interactive-list li {
    position: relative;
    padding: 10px 10px 10px 30px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.custom-interactive-list li::before {
    content: '\F26A'; /* Bootstrap Icon check-circle-fill */
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 10px;
    top: 12px;
    color: #10b981;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.custom-interactive-list li:hover {
    background: #ffffff;
    transform: translateX(5px);
    color: #064e3b !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Objective Items */
.objective-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    height: 100%;
    transition: all 0.3s ease;
}

.obj-icon {
    min-width: 28px;
    height: 28px;
    background: #ddd6fe;
    color: #7c3aed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.objective-item:hover {
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.1);
    transform: translateY(-3px);
}

.objective-item:hover .obj-icon {
    background: #8b5cf6;
    color: #ffffff;
}


/* =========================================
   Welcome Message Section (Colorful & Modern)
   ========================================= */
.welcome-section {
    background-color: #ffffff; /* พื้นหลังสีขาวสะอาดตาให้การ์ดดูเด่น */
    position: relative;
    overflow: hidden;
}

/* Base Card Styling */
.welcome-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 20px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
    height: 100%;
    overflow: hidden;
}

/* เอฟเฟกต์ยกการ์ดและเพิ่มเงา */
.welcome-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* รูปทรงโค้งมนตกแต่งด้านหลังของการ์ด (Background Shape) */
.card-bg-shape {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
    transition: all 0.5s ease;
}

.welcome-card:hover .card-bg-shape {
    transform: scale(1.5);
    opacity: 0.15;
}

/* สีเฉพาะสำหรับแต่ละการ์ด (อิงตาม Theme มหาวิทยาลัย/คณะ) */

/* 1. CPHS (สีส้ม/ชมพู) */
.card-cphs { border-top: 5px solid #3b82f6; }
.card-cphs .card-bg-shape { background: #3b82f6; }
.card-cphs:hover { border-color: #3b82f6; }

/* 2. IPSR (สีเขียว) */
.card-ipsr { border-top: 5px solid #10b981; }
.card-ipsr .card-bg-shape { background: #10b981; }
.card-ipsr:hover { border-color: #10b981; }

/* 3. AIHD (สีน้ำเงิน/ฟ้า) */
.card-aihd { border-top: 5px solid #f59e0b; }
.card-aihd .card-bg-shape { background: #f59e0b; }
.card-aihd:hover { border-color: #f59e0b; }


/* Profile Image Wrapper */
.profile-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 5px;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.welcome-card:hover .profile-wrapper {
    transform: scale(1.05);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f8fafc;
}

/* ไอคอนหนังสือตรงมุมรูปภาพ */
.read-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    background: #0b2239;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 3px solid #ffffff;
    transition: all 0.3s ease;
}

.welcome-card:hover .read-icon {
    background: #f59e0b;
    transform: rotate(-15deg);
}

/* Button "Read Message" */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

/* สีปุ่มแตกต่างกัน */
.btn-read-orange { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.btn-read-green { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.btn-read-blue { color: #3b82f6; background: rgba(59, 130, 246, 0.1); }

.welcome-card:hover .btn-read-more {
    color: #ffffff;
}

.welcome-card:hover .btn-read-orange { background: #f59e0b; }
.welcome-card:hover .btn-read-green { background: #10b981; }
.welcome-card:hover .btn-read-blue { background: #3b82f6; }

.welcome-card:hover .btn-read-more i {
    transform: translateX(5px);
}

/* =========================================
   Colorful Google Maps Button Styling
   ========================================= */
.btn-map-colorful {
    /* พื้นหลังไล่สีโทนฟ้า-น้ำเงินสดใส */
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 22px;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ไอคอนแผนที่ */
.btn-map-colorful i {
    font-size: 1.1rem;
    margin-right: 8px;
    color: #ffde21; /* แต่งแต้มสีเหลืองที่ไอคอนให้ดูมีลูกเล่น */
    transition: all 0.4s ease;
}

/* เอฟเฟกต์แสงสะท้อนวิ่งผ่าน (Shine Effect) */
.btn-map-colorful::before {
    content: '';
    position: absolute;
    top: 0; 
    left: -100%;
    width: 50%; 
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: -1;
}

/* สิ่งที่จะเกิดขึ้นเมื่อนำเมาส์ไปชี้ (Hover) */
.btn-map-colorful:hover {
    transform: translateY(-4px) scale(1.02); /* ปุ่มเด้งขึ้นและขยายขนาดนิดนึง */
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.5); /* เงาเข้มและกว้างขึ้น */
    color: #ffffff;
}

/* สั่งให้แสงวิ่งผ่านเมื่อ Hover */
.btn-map-colorful:hover::before {
    animation: shine-sweep 0.7s forwards;
}

/* ไอคอนขยับและเปลี่ยนสีเมื่อ Hover */
.btn-map-colorful:hover i {
    transform: translateY(-2px) rotate(10deg) scale(1.2);
    color: #ffffff;
}

/* Keyframes สำหรับแสงสะท้อน */
@keyframes shine-sweep {
    100% { left: 200%; }
}

/* =========================================
   Conference Topics (Interactive Tags)
   ========================================= */
.topic-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.topic-tag {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

/* เอฟเฟกต์สีต่างๆ สำหรับแต่ละ Tag */
.tag-blue { color: #3b82f6; border-color: #dbeafe; }
.tag-blue:hover { background-color: #3b82f6; color: #fff; transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3); }

.tag-orange { color: #f59e0b; border-color: #fef3c7; }
.tag-orange:hover { background-color: #f59e0b; color: #fff; transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3); }

.tag-green { color: #10b981; border-color: #d1fae5; }
.tag-green:hover { background-color: #10b981; color: #fff; transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); }

.tag-purple { color: #8b5cf6; border-color: #ede9fe; }
.tag-purple:hover { background-color: #8b5cf6; color: #fff; transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3); }

.tag-red { color: #ef4444; border-color: #fee2e2; }
.tag-red:hover { background-color: #ef4444; color: #fff; transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3); }

.tag-pink { color: #ec4899; border-color: #fce7f3; }
.tag-pink:hover { background-color: #ec4899; color: #fff; transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3); }

.tag-teal { color: #14b8a6; border-color: #ccfbf1; }
.tag-teal:hover { background-color: #14b8a6; color: #fff; transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3); }

.tag-indigo { color: #6366f1; border-color: #e0e7ff; }
.tag-indigo:hover { background-color: #6366f1; color: #fff; transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3); }

.tag-yellow { color: #eab308; border-color: #fef9c3; }
.tag-yellow:hover { background-color: #eab308; color: #fff; transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 20px rgba(234, 179, 8, 0.3); }

.tag-cyan { color: #06b6d4; border-color: #cffafe; }
.tag-cyan:hover { background-color: #06b6d4; color: #fff; transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3); }

.tag-dark { color: #475569; border-color: #f1f5f9; }
.tag-dark:hover { background-color: #475569; color: #fff; transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 20px rgba(71, 85, 105, 0.3); }


/* =========================================
   Submission & Criteria Section (High Interactive)
   ========================================= */

/* Detail Badges (Language & Type) */
.detail-badge {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.detail-badge:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

.detail-badge:hover .icon-bounce {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.2); }
}

/* Email Contact Boxes */
.email-box {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* สร้างสีพื้นหลังวิ่งจากซ้ายไปขวา (Sweep Background) */
.email-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #f8fafc 0%, #eff6ff 100%);
    transition: width 0.4s ease;
    z-index: -1;
}

.email-box-green::before {
    background: linear-gradient(90deg, #f8fafc 0%, #ecfdf5 100%);
}

.email-box:hover {
    border-color: #93c5fd;
    transform: translateX(10px); /* เลื่อนกล่องไปทางขวาเบาๆ */
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.1);
}

.email-box-green:hover {
    border-color: #6ee7b7;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.1);
}

.email-box:hover::before {
    width: 100%; /* สีวิ่งจนเต็มกล่อง */
}

.email-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #eff6ff;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: all 0.4s ease;
}

/* เอฟเฟกต์หมุนไอคอนอีเมล */
.email-box:hover .email-icon {
    transform: rotate(-15deg) scale(1.1);
    background: #3b82f6 !important;
    color: #ffffff !important;
}

.email-box-green:hover .email-icon {
    background: #10b981 !important;
}

/* แอนิเมชันลูกศรขวา */
.arrow-slide {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.email-box:hover .arrow-slide {
    opacity: 1;
    transform: translateX(0);
}

/* Please Specify Box */
.specify-box {
    background: linear-gradient(135deg, #0b2239 0%, #1e40af 100%);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.specify-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(30, 64, 175, 0.3) !important;
}

.specify-box::after {
    content: '\F3E0'; /* bi-envelope icon */
    font-family: 'bootstrap-icons';
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 9rem;
    color: rgba(255,255,255,0.05);
    transform: rotate(-15deg);
    transition: all 0.5s ease;
}

/* เอฟเฟกต์ซองจดหมายลายน้ำขยับ */
.specify-box:hover::after {
    transform: rotate(0deg) scale(1.1);
    color: rgba(255,255,255,0.1);
}

/* Judging Criteria List */
.criteria-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.criteria-list li {
    font-size: 0.95rem;
    color: #475569;
    padding: 12px 15px;
    margin-bottom: 4px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    background: transparent;
}

.criteria-list li i {
    color: #cbd5e1; /* สีเริ่มต้นเป็นสีเทา */
    margin-right: 12px;
    margin-top: 2px;
    transition: all 0.4s ease;
}

/* Hover Effect สำหรับแต่ละข้อ */
.criteria-list li:hover {
    background: #f8fafc;
    color: #0b2239;
    transform: translateX(8px); /* ขยับข้อความไปทางขวา */
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.criteria-list li:hover i {
    color: #f59e0b; /* ดาวเปลี่ยนเป็นสีส้มสว่าง */
    transform: scale(1.3) rotate(180deg); /* ดาวหมุนตีลังกา */
}

/* =========================================
   Process & Awards Section (Interactive)
   ========================================= */

/* Notification Banner */
.notify-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 5px solid #0ea5e9;
    border-radius: 16px;
    padding: 20px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notify-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.15) !important;
}

/* เอฟเฟกต์วงแหวนกระเพื่อม (Pulse Ring) ที่ไอคอนจดหมาย */
.notify-icon-pulse {
    min-width: 50px;
    height: 50px;
    background: #0ea5e9;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.notify-icon-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #0ea5e9;
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Presentation List */
.presentation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.presentation-list li {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.presentation-list li:hover {
    transform: translateX(8px);
    color: #0b2239;
}

.presentation-list li i {
    margin-right: 10px;
    font-size: 1.1rem;
    margin-top: 2px;
}

/* Awards Card (Golden Theme) */
.award-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.award-card:hover {
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.2);
    border-color: #fcd34d;
}

/* เอฟเฟกต์แสงเรืองรองหมุนๆ ด้านหลังถ้วยรางวัล */
.award-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    transition: all 0.6s ease;
}

.award-card:hover .award-glow {
    transform: scale(1.5) translate(-20px, 20px);
}

/* ถ้วยรางวัล */
.trophy-icon-wrapper {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.award-card:hover .trophy-icon-wrapper {
    transform: scale(1.15) translateY(-10px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.4);
}

/* แอนิเมชันถ้วยรางวัลส่ายไปมาเมื่อ Hover */
.award-card:hover .trophy-icon-wrapper i {
    animation: trophy-wiggle 1s ease-in-out infinite alternate;
}

@keyframes trophy-wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-12deg); }
    50% { transform: rotate(12deg); }
    75% { transform: rotate(-6deg); }
    100% { transform: rotate(0deg); }
}

/* กล่องเงื่อนไขรางวัล (Award Condition) */
.award-condition {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    text-align: left;
    line-height: 1.4;
    transition: all 0.3s ease;
    border: 1px dashed transparent;
}

.award-card:hover .award-condition {
    background: rgba(245, 158, 11, 0.25);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.4);
}

/* =========================================
   Proceeding Files Cards (Interactive)
   ========================================= */

.file-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

/* เอฟเฟกต์เมื่อเอาเมาส์ชี้การ์ดไฟล์ */
.file-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(11, 34, 57, 0.08);
    border-color: #cbd5e1;
}

/* เน้นกรอบให้ไฟล์ล่าสุดเด่นขึ้นมา (Featured File) */
.featured-file {
    border-color: #fca5a5;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.05);
}
.featured-file:hover {
    border-color: #ef4444;
    box-shadow: 0 15px 30px rgba(239, 68, 68, 0.15);
}

/* ป้าย Tag "NEW" สำหรับไฟล์ใหม่ */
.badge-new {
    position: absolute;
    top: 15px;
    right: -25px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 30px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
}

/* ไอคอนไฟล์ */
.file-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 10px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.file-card:hover .file-icon {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.15));
}

/* ปุ่ม Download (ดันให้อยู่ล่างสุดเสมอ) */
.file-action {
    margin-top: auto;
}

.btn-download-hover {
    font-weight: 600;
    transition: all 0.3s ease;
    /* แอบซ่อนปุ่มไว้ต่ำๆ นิดนึงและทำให้อ่อนลง */
    transform: translateY(10px);
    opacity: 0.8;
}

.file-card:hover .btn-download-hover {
    /* ปุ่มเด้งขึ้นมาและสีเข้ม 100% เมื่อชี้การ์ด */
    transform: translateY(0);
    opacity: 1;
}

/* ลิงก์ด้านล่าง (Archive link) */
.link-hover-line {
    position: relative;
    padding-bottom: 3px;
}

.link-hover-line::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0b2239;
    transition: width 0.3s ease;
}

.link-hover-line:hover::after {
    width: 100%;
}

.link-hover-line:hover i {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

/* =========================================
   Publications Section (Interactive & Academic)
   ========================================= */

.publication-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

/* เอฟเฟกต์ยกการ์ดและให้มีเงากว้างขึ้น */
.publication-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 34, 57, 0.08);
}

/* ตัวเลขตัวใหญ่ด้านหลัง (Watermark Number) */
.pub-number {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(59, 130, 246, 0.05); /* สีน้ำเงินจางๆ */
    z-index: -1;
    transition: all 0.5s ease;
}
.pub-number-orange {
    color: rgba(245, 158, 11, 0.05); /* สีส้มจางๆ */
}

/* เวลา Hover ให้ตัวเลขขยับและชัดขึ้นนิดนึง */
.publication-card:hover .pub-number {
    transform: scale(1.1) rotate(5deg);
    color: rgba(59, 130, 246, 0.08);
}
.card-journal:hover .pub-number-orange {
    color: rgba(245, 158, 11, 0.08);
}

/* ขีดตกแต่งขอบบน */
.card-proceeding { border-top: 5px solid #3b82f6; }
.card-journal { border-top: 5px solid #f59e0b; }

/* ไอคอนวงกลมด้านซ้ายบน */
.pub-icon {
    width: 65px;
    height: 65px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.15);
    transition: all 0.4s ease;
}

.icon-orange {
    background: #fffbeb;
    color: #f59e0b;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.15);
}

.publication-card:hover .pub-icon {
    transform: scale(1.1) translateY(-5px);
}
.card-proceeding:hover .pub-icon { background: #3b82f6; color: #ffffff; }
.card-journal:hover .icon-orange { background: #f59e0b; color: #ffffff; }


/* Alert เงื่อนไข Proceedings */
.pub-alert {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid #f59e0b;
    display: flex;
    align-items: flex-start;
    color: #475569;
}

.pub-contact-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}
.pub-contact-link:hover {
    transform: translateX(5px);
    text-decoration: underline;
}

/* =========================================
   Interactive Journal List (เอฟเฟกต์รายชื่อวารสาร)
   ========================================= */
.journal-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.journal-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #0b2239;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* เอฟเฟกต์ชี้เมาส์ที่ป้ายวารสาร */
.journal-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.j-icon {
    min-width: 40px;
    height: 40px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.journal-item:hover .j-icon {
    background: #0b2239;
    color: #ffffff;
    transform: rotate(-10deg);
}

.j-content h6 {
    transition: color 0.3s ease;
}
.journal-item:hover .j-content h6 {
    color: #f59e0b; /* ตัวอักษรเปลี่ยนเป็นสีส้ม */
}

/* ลูกศรเปิดหน้าต่างใหม่ด้านขวาสุด */
.j-arrow {
    margin-left: auto;
    font-size: 1.2rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
    opacity: 0; /* ซ่อนไว้ก่อน */
    transform: translateX(-10px) translateY(10px);
}

.journal-item:hover .j-arrow {
    opacity: 1; /* แสดงขึ้นมา */
    color: #0b2239;
    transform: translateX(0) translateY(0); /* วิ่งพุ่งเข้ามุมขวาบน */
}


/* =========================================
   Key Dates (Vertical Timeline)
   ========================================= */

/* เปลี่ยนฟอนต์ทั้ง Section ให้เป็น 'Inter' */
#dates {
    font-family: 'Inter', sans-serif;
}

/* หัวข้อ Section เปลี่ยนเป็น 'Montserrat' ให้ดูโมเดิร์น */
#dates .section-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.timeline-container {
    position: relative;
    padding-left: 30px;
}

/* เส้นตรงแกนกลางของ Timeline */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 11px; /* ให้อยู่กึ่งกลางวงกลม */
    height: 100%;
    width: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    z-index: 1;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

/* จุดวงกลมบนเส้น Timeline */
.timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border: 4px solid #3b82f6;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px rgba(255,255,255,1); /* ตัดเส้นหลังให้ขาดตอน */
}

/* กล่องเนื้อหาด้านข้าง */
.timeline-content {
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: default;
}

/* สามเหลี่ยมชี้ไปหาจุด */
.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #f8fafc;
    transition: border-right-color 0.3s ease;
}

.timeline-date {
    font-weight: 800;
    color: #3b82f6;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

/* 🌟 Interactive Effect บน Timeline */
.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background: #3b82f6;
    border-color: #bfdbfe;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.timeline-item:hover .timeline-content::before {
    border-right-color: #ffffff;
}

/* =========================================
   กล่องวันงานจริง (Event Day) - โทนสีม่วง/ชมพู (อ่านง่ายเสมอ)
   ========================================= */

.timeline-event-day .event-dot {
    width: 38px; 
    height: 38px; 
    left: -37px; 
    top: 10px;
    background: #8b5cf6; /* สีม่วง (Violet) */
    border: none; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: white; 
    font-size: 1.2rem; 
    box-shadow: 0 0 0 6px #ede9fe; /* วงแหวนสีม่วงอ่อน */
    transition: all 0.4s ease;
}

.timeline-event-day .event-content {
    /* พื้นหลังไล่สีจากม่วงไปชมพู */
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%) !important; 
    border: none !important; 
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3) !important;
    color: white !important; /* บังคับให้ตัวหนังสือสีขาว */
}

/* สามเหลี่ยมที่ชี้ไปหาจุด */
.timeline-event-day .event-content::before { 
    border-right-color: #8b5cf6 !important; 
}

/* บังคับให้ข้อความภายในกล่องเป็นสีขาวเสมอ (ป้องกันบั๊กจากคลาสอื่น) */
.timeline-event-day .event-content .timeline-date,
.timeline-event-day .event-content h4,
.timeline-event-day .event-content h6,
.timeline-event-day .event-content p {
    color: white !important; 
}

/* 🌟 เอฟเฟกต์เวลาเอาเมาส์ชี้ (Hover) 🌟 */
/* สำหรับตัวกล่อง (ไม่ต้องเปลี่ยนสีพื้นหลัง แค่ขยับและเพิ่มเงา) */
.timeline-item.timeline-event-day:hover .timeline-content {
    transform: translateX(10px);
    background: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%) !important; /* ไล่สีให้เข้มขึ้นนิดนึง */
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.4) !important;
}

/* รักษาสีสามเหลี่ยมไว้ */
.timeline-item.timeline-event-day:hover .timeline-content::before {
    border-right-color: #7c3aed !important; 
}

/* สำหรับจุดวงกลม */
.timeline-item.timeline-event-day:hover .event-dot { 
    transform: scale(1.2) rotate(180deg); 
    background: #c026d3; /* เปลี่ยนจุดเป็นสีชมพู */
    box-shadow: 0 0 0 8px #fae8ff; 
}

/* =========================================
   Colorful & Interactive Registration Button
   ========================================= */
.btn-register-colorful {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 16px 45px;
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    /* พื้นหลังไล่สีโทนร้อน (ส้ม-ชมพู-แดง) ที่ดึงดูดสายตาขั้นสุด */
    background: linear-gradient(90deg, #ff416c, #ff4b2b, #f59e0b, #ff416c);
    background-size: 300% 100%;
    animation: btn-gradient-shift 4s ease-in-out infinite; /* สีวิ่งตลอดเวลา */
    box-shadow: 0 8px 20px rgba(255, 65, 108, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    letter-spacing: 0.5px;
}

/* แอนิเมชันให้สีพื้นหลังวิ่งไปมา */
@keyframes btn-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 🌟 เอฟเฟกต์แสงเรืองรอง (Glow) ทะลุออกมาด้านหลังปุ่ม */
.btn-register-colorful::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50px;
    background: inherit;
    filter: blur(15px); /* เบลอสีให้กลายเป็นแสงฟุ้งๆ */
    opacity: 0.5;
    z-index: -1;
    transition: opacity 0.3s ease, filter 0.3s ease;
    animation: btn-gradient-shift 4s ease-in-out infinite;
}

/* จัดเลเยอร์เนื้อหาปุ่มให้อยู่เหนือแสง Glow */
.btn-register-colorful .btn-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* 🌟 เอฟเฟกต์เวลาเอาเมาส์ชี้ (Hover) */
.btn-register-colorful:hover {
    transform: translateY(-6px) scale(1.05); /* ปุ่มเด้งขึ้นและขยายตัว */
    box-shadow: 0 15px 30px rgba(255, 65, 108, 0.4);
}

.btn-register-colorful:hover::before {
    opacity: 0.85; /* แสงด้านหลังสว่างขึ้น */
    filter: blur(20px); /* แสงฟุ้งกระจายกว้างขึ้น */
}

/* แอนิเมชันไอคอนด้านซ้าย (ดินสอ) */
.btn-register-colorful .icon-left {
    transition: transform 0.3s ease;
}
.btn-register-colorful:hover .icon-left {
    transform: rotate(-15deg) scale(1.2); /* ดินสอเอียงและใหญ่ขึ้นเหมือนเตรียมเขียน */
}

/* แอนิเมชันไอคอนด้านขวา (ลูกศร) */
.btn-register-colorful .icon-right {
    transition: transform 0.3s ease;
}
.btn-register-colorful:hover .icon-right {
    transform: translateX(8px); /* ลูกศรเลื่อนพุ่งไปทางขวา */
}

/* =========================================
   Registration CTA Card
   ========================================= */
.registration-cta-card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 40px 20px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

.registration-cta-card:hover {
    box-shadow: 0 20px 40px rgba(11, 34, 57, 0.08);
}

/* ลายเส้นโค้งประดับพื้นหลัง */
.cta-bg-pattern {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}

/* ไอคอนบัตรประจำตัว */
.cta-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #ffffff;
    color: #3b82f6;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.registration-cta-card:hover .cta-icon-wrapper {
    transform: scale(1.1) translateY(-10px);
    background: #3b82f6;
    color: #ffffff;
}

/* เอฟเฟกต์กระพริบสำหรับวันที่ Deadline */
.animate-pulse {
    animation: danger-pulse 2s infinite;
}
@keyframes danger-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ปุ่ม Register Now */
.btn-register-main {
    background: linear-gradient(135deg, #0b2239 0%, #1e40af 100%);
    color: white !important;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 12px 35px;
    border: none;
    box-shadow: 0 8px 20px rgba(11, 34, 57, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

/* เอฟเฟกต์แสงวิ่งผ่านปุ่ม */
.btn-register-main::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.5s ease;
}

.btn-register-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(11, 34, 57, 0.4);
}

.btn-register-main:hover::after {
    left: 200%;
}

.btn-register-main:hover i {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

/* Preview ราคาด้านล่างปุ่ม */
.fees-preview {
    cursor: pointer;
    transition: all 0.3s ease;
}

.fees-preview:hover {
    border-color: #cbd5e1 !important;
}

.fees-preview-hover {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(11, 34, 57, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.fees-preview:hover .fees-preview-hover {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   QR Code Interactive Effects
   ========================================= */
.qr-code-wrapper {
    position: relative;
    max-width: 280px; /* ขยายขนาดจาก 170px เป็น 240px ใหญ่เต็มตา! */
    width: 100%;      /* ให้ responsive ตามหน้าจอ */
    transition: transform 0.4s ease;
}

/* เอฟเฟกต์กล่อง QR code เด้งตอนชี้เมาส์ */
.qr-code-wrapper:hover {
    transform: translateY(-5px);
}

.qr-link {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    background: #ffffff;
}

.qr-link:hover {
    box-shadow: 0 15px 35px rgba(11, 34, 57, 0.2);
}

.qr-img {
    width: 100%;
    display: block;
    transition: all 0.4s ease;
}

/* ทำให้รูปเบลอเล็กน้อยเมื่อ Hover เพื่อให้ตัวหนังสืออ่านง่ายขึ้น */
.qr-link:hover .qr-img {
    transform: scale(1.05);
    filter: blur(2px); 
}

/* เส้นเลเซอร์สแกน (Scanning Line Animation) */
.qr-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #3b82f6; /* สีน้ำเงินสว่าง */
    box-shadow: 0 0 8px #3b82f6, 0 0 15px #3b82f6;
    animation: scan-laser 2.5s infinite linear;
    opacity: 0.8;
    z-index: 2;
}

@keyframes scan-laser {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* เลเยอร์ดำทับตอนเอาเมาส์ชี้ (Hover Overlay) */
.qr-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 34, 57, 0.85); /* สีกรมท่าโปร่งแสง */
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.qr-link:hover .qr-hover-overlay {
    opacity: 1;
}

/* แอนิเมชันของข้อความและไอคอนใน Overlay */
.qr-hover-overlay span {
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 5px;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qr-link:hover .qr-hover-overlay span {
    transform: translateY(0);
}

.qr-hover-overlay i {
    transform: translateY(-15px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qr-link:hover .qr-hover-overlay i {
    transform: translateY(0);
}

/* =========================================
   Classic Gold Registration Button (Smaller Size)
   ========================================= */
.btn-gold-register {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem; /* ลดขนาดฟอนต์จาก 1.15rem -> 1.05rem */
    padding: 12px 30px; /* ลด Padding (ความอ้วนของปุ่ม) */
    
    /* โทนสี: ไล่สีจากส้มไปเหลืองทอง */
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
    
    /* เงาสีส้มจางๆ */
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* เอฟเฟกต์แสงสะท้อนวิ่งผ่าน (Shine Effect) */
.btn-gold-register::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 0;
}

/* ให้เนื้อหาอยู่บนสุดเสมอ */
.btn-gold-register .btn-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

/* 🌟 สิ่งที่จะเกิดขึ้นเมื่อนำเมาส์ไปชี้ (Hover Effect) 🌟 */
.btn-gold-register:hover {
    transform: translateY(-4px); /* ยกตัวขึ้นน้อยกว่าเดิมนิดนึง */
    
    /* เปลี่ยนสีสลับด้านให้เข้มขึ้นนิดๆ */
    background: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
    
    /* เงาเข้มขึ้นและขยายออก */
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.4);
}

/* แสงวิ่งเมื่อ Hover */
.btn-gold-register:hover::before {
    animation: shine-gold 0.6s forwards;
}

@keyframes shine-gold {
    100% { left: 200%; }
}

/* ไอคอนดินสอ */
.btn-gold-register .icon-pen {
    transition: transform 0.3s ease;
}
.btn-gold-register:hover .icon-pen {
    transform: scale(1.1) rotate(-10deg);
}

/* ไอคอนลูกศรวิ่ง */
.btn-gold-register .icon-arrow {
    transition: transform 0.3s ease;
}
.btn-gold-register:hover .icon-arrow {
    transform: translateX(6px);
}

/* =========================================
   Registration & Payment Section
   ========================================= */

/* โครงสร้างการ์ดหลัก */
.payment-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

/* 🌟 เอฟเฟกต์ยกการ์ดเมื่อชี้เมาส์ */
.payment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 34, 57, 0.08);
    border-color: #cbd5e1;
}

/* ไอคอนหัวข้อ */
.payment-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.4s ease;
}

.bg-orange-light { background: #fffbeb; }
.text-orange { color: #f59e0b; }
.bg-blue-light { background: #eff6ff; }

/* 🌟 ไอคอนหมุนเด้งเวลาชี้การ์ด */
.payment-card:hover .payment-icon-wrapper {
    transform: scale(1.1) rotate(10deg);
}


/* =========================================
   Custom Fees Table (ตารางฝั่งซ้าย)
   ========================================= */
.custom-fees-table th {
         font-size: 1.1rem; /* ขยายขนาดฟอนต์หัวตาราง */
         color: #0b2239;    /* เปลี่ยนเป็นสีน้ำเงินกรมท่าเข้ม */
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0 !important;
}

.custom-fees-table td {
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.custom-fees-table tbody tr:last-child td {
    border-bottom: none;
}

/* 🌟 เอฟเฟกต์บรรทัดตารางเมื่อ Hover */
.custom-fees-table tbody tr:hover td {
    background-color: #f0f9ff; /* ไฮไลต์สีฟ้าอ่อนเวลากวาดตามอง */
    color: #0ea5e9 !important; /* เปลี่ยนตัวหนังสือเป็นสีฟ้า */
}

/* =========================================
   Bank Information Card (ฝั่งขวา)
   ========================================= */
.bank-info-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

/* ลายน้ำประดับพื้นหลัง */
.bank-bg-pattern {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-family: 'bootstrap-icons';
    content: '\F18D'; /* bi-bank2 icon code */
    font-size: 12rem;
    color: rgba(59, 130, 246, 0.03);
    z-index: 0;
    transition: transform 0.5s ease;
}

/* 🌟 แอนิเมชันลายน้ำขยายตัว */
.bank-info-card:hover .bank-bg-pattern::before {
    content: '\F18D'; /* ต้องใส่ content เพื่อให้แสดงผล */
    transform: scale(1.1) rotate(-5deg);
    color: rgba(59, 130, 246, 0.05);
}

.tracking-wide {
    letter-spacing: 1px;
}

/* ข้อมูลแต่ละบรรทัด */
.bank-detail-item {
    transition: transform 0.3s ease;
}

/* 🌟 เลื่อนข้อมูลไปทางขวานิดนึงเวลาชี้ */
.bank-detail-item:hover {
    transform: translateX(8px);
}

/* 🌟 ปุ่ม Copy เลขที่บัญชี */
.btn-copy {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background-color: #3b82f6;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.btn-copy:active {
    transform: scale(0.95);
    background-color: #1d4ed8;
}

/* =========================================
   Classic Footer Section (Based on Image)
   ========================================= */
.footer-classic {
    background-color: #17365d; /* สีน้ำเงินเข้มตามรูปภาพ */
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #ffffff;
}

/* หัวข้อพร้อมเส้นใต้บางๆ */
.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 0;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4); /* เส้นใต้สีขาวโปร่งแสง */
}

/* ข้อความทั่วไป (ชื่อตึก, ที่อยู่) */
.footer-text {
    color: #e2e8f0; /* สีขาวหม่นเพื่อให้อ่านสบายตา */
    font-size: 0.95rem;
    line-height: 1.6;
}

/* จัดเรียงบรรทัดที่มีไอคอน */
.footer-contact-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

/* 🌟 สีฟ้าสว่างสำหรับอีเมลและเว็บไซต์ */
.footer-link {
    color: #38bdf8; /* สีฟ้า Cyan สว่าง */
    text-decoration: none;
    transition: color 0.3s ease;
}

/* เอฟเฟกต์เวลา Hover (Interactive) */
.footer-contact-item:hover {
    transform: translateX(5px); /* เลื่อนไปทางขวาเล็กน้อยเมื่อเอาเมาส์ชี้ */
}

.footer-link:hover {
    color: #bae6fd; /* สีฟ้าจะสว่างขึ้นเมื่อชี้ */
    text-decoration: underline;
}

/* สีขาวสำหรับเบอร์โทร แต่เปลี่ยนสีได้เมื่อชี้ */
.hover-link {
    transition: color 0.3s ease;
}

.footer-contact-item:hover .hover-link {
    color: #38bdf8 !important; /* เปลี่ยนเบอร์โทรเป็นสีฟ้าเมื่อชี้ */
}

.footer-contact-item:hover i {
    color: #38bdf8 !important; /* เปลี่ยนไอคอนเป็นสีฟ้าเมื่อชี้ */
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* เส้นคั่นก่อนข้อความลิขสิทธิ์ */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* เส้นคั่นจางๆ */
    padding-top: 25px;
}

/* =========================================
   Archive Page Styling
   ========================================= */

/* Hero Section ของหน้า Archive */
.archive-hero {
    background: linear-gradient(135deg, #0b2239 0%, #1e40af 100%);
    position: relative;
    padding-top: 80px;
    padding-bottom: 60px;
    overflow: hidden;
}

/* แสงคาดผ่าน Background */
.archive-hero::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,210,255,0.1) 0%, transparent 60%);
    z-index: 0;
}

/* Search Box Interactive */
.search-box-wrapper {
    position: relative;
    z-index: 1;
}

.archive-search-input {
    padding: 18px 25px 18px 55px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.archive-search-input:focus {
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.3);
    outline: none;
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: #64748b;
    transition: color 0.3s ease;
}

.archive-search-input:focus + .search-icon,
.archive-search-input:focus ~ .search-icon {
    color: #3b82f6; /* ไอคอนเปลี่ยนสีเมื่อพิมพ์ */
}

/* การ์ดเอกสาร Archive */
.archive-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 25px 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 🌟 เอฟเฟกต์ยกการ์ด */
.archive-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 34, 57, 0.08);
    border-color: #cbd5e1;
}

/* ป้ายปี ปีที่จัดงาน (มุมบนซ้าย) */
.archive-year {
    position: absolute;
    top: -15px; left: -25px;
    background: #f59e0b;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 25px 30px 10px;
    transform: rotate(-45deg);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    z-index: 2;
}

/* ไอคอนสมุด */
.archive-icon {
    width: 70px;
    height: 70px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.archive-card:hover .archive-icon {
    background: #3b82f6;
    color: #ffffff;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* ปุ่ม Download */
.btn-download-archive {
    background: #f8fafc;
    color: #3b82f6;
    border: 1px solid #dbeafe;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.archive-card:hover .btn-download-archive {
    background: #0b2239;
    color: #ffffff;
    border-color: #0b2239;
    box-shadow: 0 8px 15px rgba(11, 34, 57, 0.2);
}

.btn-download-archive i {
    transition: transform 0.3s ease;
}

.archive-card:hover .btn-download-archive i {
    transform: translateY(3px); /* ไอคอนลูกศรวิ่งลงเหมือนกำลังโหลด */
}
