/* --- ปรับแต่งปุ่มในหน้า Hero --- */

/* จัดตำแหน่งปุ่มให้อยู่ตรงกลางและมีระยะห่าง */
#hero .btns {
  display: flex;
  justify-content: center;
  gap: 20px; /* ระยะห่างระหว่างปุ่ม Contact กับ Pre-register */
}

/* สไตล์ปุ่ม Contact (แบบมีขอบ ไม่ทึบ เพื่อไม่ให้แย่งความเด่น) */
.btn-hero-outline {
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 30px;
  border-radius: 50px;
  transition: 0.5s;
  color: #fff;
  border: 2px solid #fff; /* ขอบสีขาว */
}

.btn-hero-outline:hover {
  background: #fff;
  color: #0e1b4d; /* สีน้ำเงินเข้มตามธีม */
}

/* สไตล์ปุ่ม Pre-register (สีแดง ทึบ เด่นที่สุด) */
.btn-hero-red {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 32px; /* ใหญ่กว่าปุ่ม Contact นิดหน่อย */
  border-radius: 50px;
  transition: 0.5s;
  margin: 0; /* ล้างค่า margin เดิม */
  color: #fff;
  background: #f82249; /* สีแดง Evently */
  border: 2px solid #f82249;
  box-shadow: 0 0 15px rgba(248, 34, 73, 0.5); /* เพิ่มแสงฟุ้งๆ ให้ดูเด่น */
}

.btn-hero-red:hover {
  background: #e00a2f;
  border-color: #e00a2f;
  transform: scale(1.05); /* ขยายใหญ่ขึ้นเล็กน้อยเมื่อชี้ */
  color: #fff;
}


/* --- ปรับแต่งปุ่ม Google Form ด้านล่าง --- */
.btn-google-form {
  background: #f82249;
  border: 0;
  padding: 12px 40px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-google-form:hover {
  background: #e00a2f;
  color: #fff;
  transform: translateY(-3px);
}

/* รองรับมือถือ: ให้ปุ่มเรียงแนวตั้งถ้าหน้าจอเล็กมาก */
@media (max-width: 575px) {
  #hero .btns {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .btn-hero-outline, .btn-hero-red {
    width: 80%; /* ปุ่มกว้างเกือบเต็มจอ */
    text-align: center;
  }
}


/* ปรับแต่งปุ่มใน Hero Section */
.cta-buttons .btn-cta {
  border-radius: 50px;
  padding: 12px 35px;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
}

/* ปุ่มสีแดง Pre-register */
.cta-buttons .btn-danger {
  background-color: #f82249; /* สีแดง Theme Evently */
  border-color: #f82249;
  color: #fff;
}

.cta-buttons .btn-danger:hover {
  background-color: #e00a2f;
  transform: translateY(-3px); /* ลอยขึ้นเล็กน้อยเมื่อชี้ */
  box-shadow: 0 5px 15px rgba(248, 34, 73, 0.4);
}

/* ปรับระยะห่างระหว่างปุ่ม */
.ms-3 {
  margin-left: 1rem !important;
}

/* รองรับหน้าจอมือถือ */
@media (max-width: 576px) {
  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .ms-3 {
    margin-left: 0 !important;
  }
}

/* --- 1. ปุ่ม Hero ให้ดู Pro --- */
.cta-buttons {
  margin-top: 30px;
}

/* ปุ่มหลัก (Pre-register) */
.btn-register-hero {
  background: #f82249; /* สีแดง Theme */
  color: #fff;
  border: 2px solid #f82249;
  padding: 12px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(248, 34, 73, 0.4); /* เงาฟุ้งๆ */
}

.btn-register-hero:hover {
  background: #d61c3c;
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 15px 35px rgba(248, 34, 73, 0.6);
}

/* ปุ่มรอง (Contact) - ทำให้ดูเบาลง เพื่อดันให้ปุ่มแดงเด่นขึ้น */
.btn-contact-hero {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.3s;
}

.btn-contact-hero:hover {
  background: #fff;
  color: #0e1b4d;
  border-color: #fff;
}

/* Animation จุดกระพริบ */
@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}
.animate-pulse {
  animation: pulse-red 2s infinite;
}

/* --- 2. Mobile Sticky Bar Style --- */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(14, 27, 77, 0.95); /* สีน้ำเงินเข้ม Theme โปร่งแสงนิดๆ */
  backdrop-filter: blur(10px); /* เบลอฉากหลัง (Glassmorphism) */
  padding: 12px 0;
  z-index: 9999;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ดัน Footer ขึ้นมาหน่อยในมือถือ เพื่อไม่ให้ Sticky Bar บัง */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px; 
  }
}

/* --- 1. ปุ่ม Pre-register แบบเรืองแสง (Neon Glow) --- */
.btn-register-glow {
  background: linear-gradient(45deg, #f82249, #ff5e62); /* ไล่สีแดงไปส้ม ให้ดูมีมิติ */
  color: #fff;
  border: none;
  padding: 14px 40px; /* เพิ่มความสูงปุ่ม */
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 0 20px rgba(248, 34, 73, 0.5); /* เงาฟุ้งๆ สีแดง */
  z-index: 1; /* เพื่อให้จุด Notification ไม่จม */
}

.btn-register-glow:hover {
  transform: translateY(-4px) scale(1.02); /* ลอยขึ้นและขยาย */
  box-shadow: 0 0 35px rgba(248, 34, 73, 0.8); /* เงาแรงขึ้นเมื่อชี้ */
  color: #fff;
}

/* --- 2. ปุ่ม Contact แบบกระจก (Glassmorphism) --- */
.btn-contact-glass {
  background: rgba(255, 255, 255, 0.1); /* พื้นหลังขาวจางๆ */
  backdrop-filter: blur(10px); /* เบลอฉากหลัง */
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3); /* ขอบจางๆ */
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-contact-glass:hover {
  background: rgba(255, 255, 255, 0.25); /* ขาวชัดขึ้นเมื่อชี้ */
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* --- 3. แก้ไขจุดแจ้งเตือน (Pulse Fix) --- */
.translate-middle {
  transform: translate(-50%, -50%) !important; /* ดึงกลับมา 50% ให้กึ่งกลางมุมพอดี */
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(255, 193, 7, 0); } /* วงคลื่นขยายกว้าง */
  100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.animate-pulse {
  animation: pulse-gold 2s infinite;
  background-color: #ffc107 !important; /* สีเหลืองทอง */
  border: 2px solid #fff !important; /* ขอบขาวตัดกัน */
}

/* Styling สำหรับ Welcome Section */
.about-section {
  padding: 80px 0;
  background-color: #fff; /* ใช้พื้นขาวเพื่อให้ตัดกับ Hero และ Pre-register */
}

/* ตัวหนังสือหัวข้อ */
.letter-spacing-2 {
  letter-spacing: 2px;
  font-size: 0.9rem;
}

/* สีน้ำเงินเข้ม (Theme Color) สำหรับข้อความเน้น */
.text-primary-dark {
  color: #0e1b4d; 
}

.bg-primary-dark {
  background-color: #0e1b4d;
}

/* เส้นขีดคั่นสวยๆ */
.divider-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #f8f9fa;
  border-radius: 50%;
  position: relative;
}
.divider-icon::before,
.divider-icon::after {
  content: "";
  position: absolute;
  height: 1px;
  width: 100px;
  background: #e0e0e0;
  top: 50%;
}
.divider-icon::before { right: 100%; margin-right: 15px; }
.divider-icon::after { left: 100%; margin-left: 15px; }

/* กล่อง Host Box */
.host-box {
  transition: transform 0.3s;
}
.host-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
/* Floating Animation for Logos */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

.logo-float {
  animation: float 3s ease-in-out infinite;
}

.logo-float.delay-1 {
  animation-delay: 0s;
}

.logo-float.delay-2 {
  animation-delay: 0.3s;
}

.logo-float.delay-3 {
  animation-delay: 0.6s;
}

.logo-float.delay-4 {
  animation-delay: 0.9s;
}

/* Mobile Responsive for Logos */
@media (max-width: 576px) {
  .organized-logos-container {
    padding-bottom: 1.5rem !important;
  }
  
  .logo-item img {
    max-height: 50px !important;
  }
  
  .logo-main img {
    max-height: 70px !important;
  }
}

/* ============================================
   Circular Hub Section Styles - Light Theme
   ============================================ */

/* Circular Tabs Styling - Light Theme */
.circular-tabs {
  border-bottom: 2px solid rgba(0, 65, 255, 0.15);
  padding-bottom: 1px;
}

.circular-tabs .nav-item {
  margin: 0 10px;
}

.circular-tabs .nav-link {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(0, 65, 255, 0.2);
  color: #555;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: -2px;
}

.circular-tabs .nav-link:hover {
  background: rgba(0, 65, 255, 0.08);
  border-color: #0041ff;
  color: #0041ff;
  transform: translateY(-2px);
}

.circular-tabs .nav-link.active {
  background: linear-gradient(135deg, #0041ff, #0066ff);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 65, 255, 0.3);
  transform: translateY(-2px);
}

.circular-tabs .nav-link.disabled {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.35);
  cursor: not-allowed;
}

.circular-tabs .nav-link.disabled:hover {
  transform: none;
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Circular Card - Light Theme */
.circular-card-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 65, 255, 0.1);
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #0041ff;
}

/* Circular Image Container */
.circular-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.circular-image {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.circular-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 15px;
}

.circular-image-container:hover .circular-overlay {
  opacity: 1;
}

.circular-image-container:hover .circular-image {
  transform: scale(1.05);
}

.overlay-content {
  text-align: center;
  padding: 20px;
}

/* Circular Info - Light Theme */
.circular-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

.circular-info p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #666;
}

.circular-details .detail-item {
  font-size: 1rem;
  color: #555;
}

.circular-details .detail-item i {
  font-size: 1.2rem;
}

/* Circular Actions - Light Theme */

/* ============================================
   Enhanced Registration Timeline Styles
   ============================================ */

/* Timeline Container */
.timeline-container {
  position: relative;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #28a745, #dc3545, #17a2b8, #ffc107);
  border-radius: 3px;
}

/* Timeline Item */
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Timeline Marker */
.timeline-marker {
  position: absolute;
  left: -10px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
  border: 3px solid white;
}

.timeline-marker.bg-success {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.timeline-marker.bg-danger {
  background: linear-gradient(135deg, #dc3545, #e83e8c);
}

.timeline-marker.bg-info {
  background: linear-gradient(135deg, #17a2b8, #20c997);
}

.timeline-marker.bg-warning {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

/* Timeline Content */
.timeline-content {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #0e1b4d;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-date::before {
  content: '📅';
  font-size: 1rem;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0e1b4d;
  margin-bottom: 12px;
  line-height: 1.3;
}

.timeline-description {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.timeline-status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
}

/* Icon Box Styles */
.icon-box {
  transition: all 0.3s ease;
}

.icon-box:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced Card Styles */
.card-header.bg-primary {
  background: linear-gradient(135deg, #0e1b4d, #1a3b8b) !important;
}

.card-header.bg-danger {
  background: linear-gradient(135deg, #dc3545, #e83e8c) !important;
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline {
    padding-left: 20px;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-item {
    padding-left: 30px;
    margin-bottom: 30px;
  }
  
  .timeline-marker {
    width: 35px;
    height: 35px;
    left: -8px;
    font-size: 1rem;
  }
  
  .timeline-content {
    padding: 20px;
  }
  
  .timeline-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .timeline {
    padding-left: 15px;
  }
  
  .timeline::before {
    left: 10px;
  }
  
  .timeline-item {
    padding-left: 25px;
  }
  
  .timeline-marker {
    width: 30px;
    height: 30px;
    left: -5px;
    font-size: 0.9rem;
  }
  
  .timeline-content {
    padding: 15px;
  }
  
  .timeline-title {
    font-size: 1.1rem;
  }
}

/* Animation for timeline items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item {
  animation: fadeInUp 0.6s ease-out;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced Button Styles */
.btn-outline-primary {
  border-width: 2px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(14, 27, 77, 0.2);
}

/* Card Hover Effects */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* List Group Item Enhancement */
.list-group-item {
  transition: background-color 0.3s ease;
}

.list-group-item:hover {
  background-color: rgba(14, 27, 77, 0.05);
}

/* Section Background Enhancement */
.section {
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(14, 27, 77, 0.1), transparent);
}

/* Responsive Text Adjustments */
@media (max-width: 768px) {
  .section-header h2 {
    font-size: 1.8rem !important;
  }
  
  .section-header p {
    font-size: 1rem !important;
  }
  
  .card-title {
    font-size: 1.2rem !important;
  }
}

/* Print Styles */
@media print {
  .timeline-content {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .card {
    break-inside: avoid;
  }
}

/* ============================================
   Accommodation Section Styles
   ============================================ */

/* Accommodation Card Hover Effects */
.accommodation-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

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

/* Accommodation Image Container */
.accommodation-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.accommodation-image {
  transition: transform 0.5s ease;
}

.accommodation-image-container:hover .accommodation-image {
  transform: scale(1.05);
}

.accommodation-image-container:hover .accommodation-overlay {
  opacity: 1;
}

/* Accommodation Overlay */
.accommodation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.overlay-content {
  text-align: center;
  color: white;
}

.overlay-content i {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.overlay-content p {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* Accommodation Actions */
.accommodation-actions .btn {
  transition: all 0.3s ease;
}

.accommodation-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Additional Info Box */
.additional-info {
  transition: all 0.3s ease;
}

.additional-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 65, 255, 0.15);
}

/* Responsive Accommodation Section */
@media (max-width: 992px) {
  .accommodation-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .accommodation-card {
    padding: 20px !important;
  }
  
  .accommodation-image {
    height: 180px !important;
  }
}

@media (max-width: 576px) {
  .accommodation-card {
    padding: 15px !important;
  }
  
  .accommodation-image {
    height: 150px !important;
  }
  
  .accommodation-card h3 {
    font-size: 1.3rem;
  }
}
