/* ===== CSS Variables ===== */
:root {
  --navy: #0D1B2A;
  --red: #E8272A;
  --gold: #F5A623;
  --cream: #FDF6EC;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --radius: 12px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  min-width: 375px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

/* ===== Header ===== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--gold); }

.main-nav { display: flex; gap: 0.25rem; align-items: center; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Ticker ===== */
.ticker-bar {
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  font-weight: 500;
}
.ticker-wrap {
  display: flex;
  width: 100%;
  overflow: hidden;
}
.ticker-content {
  display: flex;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-item { padding: 0 2rem; }
.ticker-item .flag { margin-right: 0.4rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Hero ===== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 1rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(245,166,35,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 70%, rgba(232,39,42,0.08) 0%, transparent 50%);
}
.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  color: var(--gold);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 99px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #c91e21; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }

/* ===== AdSense Slots ===== */
.adsense-slot {
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
  margin: 1.5rem auto;
  max-width: 728px;
}
.adsense-slot::before { content: "Advertisement"; }

/* ===== Countdown Strip ===== */
.countdown-strip {
  background: var(--gold);
  padding: 1rem;
}
.countdown-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.countdown-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.85rem 1.5rem;
  text-align: center;
  min-width: 180px;
}
.countdown-card .flag { font-size: 1.4rem; }
.countdown-card .holiday-name { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin: 0.2rem 0; }
.countdown-card .days-count { font-family: var(--font-heading); font-size: 2rem; color: var(--gold); font-weight: 700; line-height: 1; }
.countdown-card .days-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ===== Section Layout ===== */
.section { padding: 3.5rem 1rem; }
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); }
.container { max-width: 1200px; margin: 0 auto; }

/* ===== Holiday Cards Grid ===== */
.holidays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.holiday-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid transparent;
}
.holiday-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.12); }
.holiday-card.sg { border-left-color: #EF4444; }
.holiday-card.my { border-left-color: #3B82F6; }
.holiday-card.th { border-left-color: #F59E0B; }
.holiday-card.id { border-left-color: #10B981; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.card-flag { font-size: 1.8rem; line-height: 1; }
.badge-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-country { background: #e0e7ff; color: #3730a3; }
.badge-long { background: #fef3c7; color: #92400e; }
.badge-soon { background: #fee2e2; color: #991b1b; }

.card-name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; }
.card-local { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }
.card-date { font-size: 0.85rem; color: var(--text-muted); }
.card-days {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--red);
}

/* ===== Long Weekend Planner ===== */
.planner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.planner-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.planner-card:hover { transform: translateY(-3px); }
.planner-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.25rem;
}
.planner-header .dates { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 0.3rem; }
.planner-header h3 { font-size: 1rem; }
.planner-body { padding: 1rem 1.25rem; }
.planner-body p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.travel-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.travel-tag {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 99px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ===== Country Quick Links ===== */
.country-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
@media (min-width: 640px) { .country-links { grid-template-columns: repeat(4, 1fr); max-width: none; } }
.country-link-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.country-link-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.country-link-card .flag { font-size: 2.5rem; margin-bottom: 0.5rem; }
.country-link-card .name { font-weight: 700; font-size: 0.95rem; }
.country-link-card .sub { font-size: 0.75rem; color: var(--text-muted); }

/* ===== Video Cards ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.v-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.v-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.v-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
  background: #1a1a2e;
}
.v-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.v-card:hover .v-thumb-overlay { opacity: 1; }
.v-play {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--navy);
}
.v-info { padding: 1rem; }
.v-tag {
  font-size: 0.72rem;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.v-title { font-size: 0.9rem; font-weight: 600; color: var(--navy); line-height: 1.4; margin-bottom: 0.4rem; }
.v-source { font-size: 0.75rem; color: var(--text-muted); }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1rem 1.5rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .site-logo { font-size: 1.3rem; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-family: var(--font-heading); margin-bottom: 0.75rem; font-size: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col a { font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
}
.footer-bottom a:hover { color: var(--gold); }

/* ===== Holiday Table (country pages) ===== */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 1rem 2rem;
  text-align: center;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

.year-section { margin-bottom: 3rem; }
.year-section h2 {
  font-size: 1.5rem;
  color: var(--navy);
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--gold);
  margin-bottom: 1.25rem;
}
.holiday-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}
.holiday-table th {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.holiday-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.holiday-table tr:last-child td { border-bottom: none; }
.holiday-table tr:hover td { background: #f8fafc; }
.holiday-table .long-weekend { background: #fffbeb; }
.tag-long {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border-radius: 99px;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
}
.tag-state {
  display: inline-block;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 99px;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
}

/* ===== Sidebar Layout ===== */
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
@media (min-width: 900px) {
  .content-sidebar { grid-template-columns: 1fr 300px; }
}
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.sidebar-card h3 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--navy); }
.sidebar-card ul { display: flex; flex-direction: column; gap: 0.4rem; }
.sidebar-card a { color: var(--red); font-size: 0.875rem; }
.sidebar-card a:hover { text-decoration: underline; }

/* ===== About / 404 ===== */
.simple-page { max-width: 760px; margin: 3rem auto; padding: 0 1rem; }
.simple-page h1 { margin-bottom: 1rem; }
.simple-page p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--red);
  font-weight: 600;
  margin-top: 1rem;
}
.back-home:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.65rem 1rem; border-radius: 8px; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }

  .hero { padding: 3rem 1rem 2.5rem; }
  .holiday-table { font-size: 0.8rem; }
  .holiday-table th, .holiday-table td { padding: 0.6rem 0.5rem; }
  .section { padding: 2rem 1rem; }
  .countdown-card { min-width: 140px; padding: 0.65rem 1rem; }
}

@media (max-width: 480px) {
  .holidays-grid { grid-template-columns: 1fr; }
  .planner-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Breadcrumb ===== */
.breadcrumb-nav {
  background: var(--cream);
  border-bottom: 1px solid #e8e0d0;
  padding: 0.6rem 1rem;
}
.breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb-inner a {
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-inner span.sep { color: #aaa; }
.breadcrumb-inner span.current { color: var(--text-dark); font-weight: 600; }

/* ===== Article Related Links ===== */
.related-articles {
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}
.related-articles h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.related-articles ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.related-articles li a {
  color: var(--red);
  text-decoration: none;
  font-size: 0.9rem;
}
.related-articles li a:hover { text-decoration: underline; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
