/* ========================================
   APhO 2027 - Asian Physics Olympiad
   Nakhon Ratchasima, Thailand
   ======================================== */

/* CSS Custom Properties */
:root {
  --navy: #2D2B7F;
  --navy-dark: #1a1854;
  --purple: #6C63FF;
  --purple-light: #A8A4CE;
  --purple-bg: #EEEDFA;
  --orange: #F5A623;
  --orange-dark: #E09000;
  --gold: #FFD700;
  --white: #FFFFFF;
  --light-bg: #F8F7FF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-600: #6B7280;
  --gray-800: #1F2937;
  --text-primary: #1a1854;
  --text-secondary: #4a4a6a;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 1px 3px rgba(45, 43, 127, 0.08);
  --shadow-md: 0 4px 12px rgba(45, 43, 127, 0.1);
  --shadow-lg: 0 8px 30px rgba(45, 43, 127, 0.12);
  --shadow-xl: 0 20px 60px rgba(45, 43, 127, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Header / Navigation
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(45, 43, 127, 0.06);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.nav-logo .logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: -0.5px;
}

.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-logo .logo-text .logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: var(--purple-bg);
}

.nav-links a.active {
  font-weight: 600;
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--navy) !important;
  color: var(--white) !important;
  border-radius: var(--radius-xl) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--purple) !important;
  transform: translateY(-1px);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, var(--purple) 100%);
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(108, 99, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 60px 24px;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .hero-edition {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 300;
  opacity: 0.85;
  margin-bottom: 24px;
  font-family: var(--font-heading);
}

.hero .hero-tagline {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 40px;
  font-style: italic;
  opacity: 0.95;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  opacity: 0.9;
}

.hero-meta-item .icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.countdown-item {
  text-align: center;
  min-width: 80px;
}

.countdown-item .number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
  background: linear-gradient(135deg, var(--white) 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
  font-weight: 500;
}

/* Thai ribbon decoration */
.hero-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.ribbon-stripe {
  position: absolute;
  width: 600px;
  height: 30px;
  transform: rotate(-35deg);
  right: -100px;
}

.ribbon-stripe.red { background: #ED1C24; top: 15%; }
.ribbon-stripe.white { background: #FFFFFF; top: calc(15% + 30px); }
.ribbon-stripe.blue { background: #241D4F; top: calc(15% + 60px); height: 60px; }
.ribbon-stripe.white2 { background: #FFFFFF; top: calc(15% + 120px); }
.ribbon-stripe.red2 { background: #ED1C24; top: calc(15% + 150px); }

/* Floating particles */
.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float-up linear infinite;
}

@keyframes float-up {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 166, 35, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 43, 127, 0.3);
}

/* ========================================
   Section Styles
   ======================================== */
.section {
  padding: 100px 0;
}

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

.section-navy {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--purple);
  margin-bottom: 16px;
}

.section-navy .section-label {
  color: var(--orange);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.section-navy .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(45, 43, 127, 0.05);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--purple-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ========================================
   Page Hero (inner pages)
   ======================================== */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--purple) 100%);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(245, 166, 35, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: 1.15rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

.breadcrumb a:hover {
  opacity: 1;
}

.breadcrumb .sep {
  opacity: 0.4;
}

/* ========================================
   Schedule / Timeline
   ======================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--purple-bg), var(--purple), var(--purple-bg));
  border-radius: 3px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-date {
  flex: 1;
  text-align: right;
  padding-right: 40px;
}

.timeline-item:nth-child(odd) .timeline-date {
  text-align: left;
  padding-right: 0;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--purple);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.timeline-content {
  flex: 1;
  padding-left: 40px;
}

.timeline-item:nth-child(odd) .timeline-content {
  padding-left: 0;
  padding-right: 40px;
  text-align: right;
}

.timeline-day {
  display: inline-block;
  padding: 4px 14px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Schedule table (alternative) */
.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.schedule-table thead {
  background: var(--navy);
  color: var(--white);
}

.schedule-table th {
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
}

.schedule-table th:nth-child(2) {
  text-align: center;
}

.schedule-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
}

.schedule-table td:nth-child(2) {
  text-align: center;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table tr:nth-child(even) {
  background: var(--light-bg);
}

.schedule-table tr:hover {
  background: var(--purple-bg);
}

.schedule-table .exam-row {
  background: rgba(245, 166, 35, 0.08) !important;
  font-weight: 600;
}

.schedule-table .exam-row td {
  color: var(--navy);
}

/* ========================================
   Venue & Info Cards
   ======================================== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.info-grid.reverse {
  direction: rtl;
}

.info-grid.reverse > * {
  direction: ltr;
}

.info-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-text h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--navy);
}

.info-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
}

/* Feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--purple-bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236C63FF'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ========================================
   Organizers
   ======================================== */
.org-section {
  margin-bottom: 64px;
}

.org-section h3 {
  text-align: center;
  font-size: 1.3rem;
  color: var(--purple);
  margin-bottom: 32px;
}

.org-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.org-logo {
  width: 120px;
  height: 120px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.org-logo:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.org-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* Placeholder for logos */
.org-logo .placeholder {
  font-size: 0.7rem;
  text-align: center;
  color: var(--gray-600);
  font-weight: 600;
}

/* ========================================
   Attractions
   ======================================== */
.attraction-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-200);
  aspect-ratio: 3/4;
  cursor: pointer;
}

.attraction-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px;
  background: linear-gradient(transparent, rgba(26, 24, 84, 0.9));
  color: var(--white);
  transition: var(--transition);
}

.attraction-card:hover .overlay {
  padding-bottom: 40px;
  background: linear-gradient(transparent, rgba(26, 24, 84, 0.95));
}

.attraction-card .overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.attraction-card .overlay p {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.5;
}

.attraction-emoji {
  font-size: 4rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--purple-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--orange);
  color: var(--white);
}

/* ========================================
   Stats / Numbers
   ======================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 32px 16px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}

.section-navy .stat-number {
  color: var(--orange);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.section-navy .stat-label {
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Map embed
   ======================================== */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================================
   CTA Banner
   ======================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--purple) 100%);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .info-grid {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .info-grid.reverse {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .countdown {
    gap: 12px;
  }

  .countdown-item .number {
    font-size: 2rem;
  }

  .section {
    padding: 64px 0;
  }

  .page-hero {
    padding: 120px 0 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
    padding-left: 48px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-date,
  .timeline-item:nth-child(odd) .timeline-date {
    text-align: left;
    padding: 0;
  }

  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
    padding: 0;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  .schedule-table {
    display: block;
    overflow-x: auto;
  }

  .org-logos {
    gap: 24px;
  }

  .org-logo {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ใหม่ */

