/* ══════════════════════════════════════════════════════
   LANDING PAGE – Hẹn Ước Thanh Xuân
   Font: Cormorant Garamond (heading), Inter (body)
   Palette: Dark #1A1A1A | Gold #C9A96E | Orange #FF6B35 | Cream #FAF8F5
══════════════════════════════════════════════════════ */

:root {
  --dark:   #1A1A1A;
  --cream:  #FAF8F5;
  --gold:   #C9A96E;
  --orange: #FF6B35;
  --muted:  #6a7282;
  --white:  #ffffff;
  --border: #e5e7eb;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }

/* ══ STICKY NAV ═══════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}
.navbar-toggle,
.navbar-mobile { display: none; }
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.navbar-brand span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
}
.navbar-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.navbar-links::-webkit-scrollbar { display: none; }
.navbar-links a {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.navbar-links a:hover,
.navbar-links a.active { color: var(--gold); }
.navbar-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.mobile-bottom-nav {
  display: none;
}
.btn-outline-gold {
  padding: 6px 14px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--white); }
.btn-gold {
  padding: 6px 14px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-gold:hover { background: #b8904f; }

@media (max-width: 768px) {
  .hero::before {
    background-image:
      linear-gradient(rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.5)),
      url('/images/background-home-mobile.png');
  }
  .navbar-links,
  .navbar-actions { display: none !important; }

  .navbar-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(201,169,110,0.4);
    border-radius: 8px;
    background: var(--white);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    cursor: pointer;
    padding: 0;
  }
  .navbar-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .navbar-toggle.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .navbar-toggle.active span:nth-child(2) { opacity: 0; }
  .navbar-toggle.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

  .navbar-mobile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 56px;
    z-index: 490;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.35);
    padding: 10px 14px 14px;
  }
  .navbar-mobile[hidden] {
    display: none !important;
  }
  .navbar-mobile:not([hidden]) {
    display: flex;
  }
  .navbar-mobile a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark);
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  }
  .navbar-mobile a:hover,
  .navbar-mobile a:active,
  .navbar-mobile a.active {
    background: rgba(201, 169, 110, 0.08);
    color: var(--gold);
    border-left-color: var(--gold);
  }

  .navbar-mobile-actions {
    display: none !important;
  }
  body[data-page="home"] {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 995;
    display: flex;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -12px 24px -18px rgba(15, 23, 42, 0.35);
  }
  .mobile-bottom-nav a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 8px;
  }
}

/* ══ FIXED CTA ════════════════════════════════════════════ */
.fixed-cta {
  display: none !important;
}

/* ══ SECTION SHARED ═══════════════════════════════════════ */
.section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner--narrow { max-width: 800px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 12px;
}
.title-underline {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 14px;
}
.section-subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ══ HERO ══════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.5)),
    url('/images/background-home-PC.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
}

/* Logo ornament ring */
.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 36px;
  width: clamp(120px, 18vw, 160px);
  height: clamp(120px, 18vw, 160px);
}
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: calc(100% + 56px);
  height: calc(100% + 56px);
  transform: translate(-50%, -50%);
  border: 1px dotted rgba(201,169,110,0.55);
  border-radius: 50%;
}
.hero-logo-wrap::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: calc(100% + 88px);
  height: calc(100% + 88px);
  transform: translate(-50%, -50%);
  border: 1px dotted rgba(201,169,110,0.22);
  border-radius: 50%;
}
.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 20px rgba(0,0,0,0.3));
}

.hero-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.05;
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-title-line1 {
  display: block;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
}
.hero-title-line2 {
  display: block;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
}

.hero-school {
  font-size: 16px;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 6px;
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-tagline {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease 0.35s both;
}
.hero-desc {
  font-size: 15px;
  color: #FFF176;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.75;
  animation: fadeUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
  animation: fadeUp 0.8s ease 0.5s both;
}
.btn-hero-primary {
  padding: 13px 32px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-hero-primary:hover { background: #b8904f; }
.btn-hero-secondary {
  padding: 13px 32px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-hero-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.hero-btn-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 52px;
  animation: fadeUp 0.8s ease 0.55s both;
}
.hero-btn-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.55;
}

/* Countdown flat */
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  animation: fadeUp 0.8s ease 0.65s both;
}
.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cd-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.cd-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}
.cd-sep {
  font-size: 2.2rem;
  color: rgba(255,255,255,0.18);
  font-weight: 300;
  padding-top: 4px;
}
.cd-done {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--gold);
  padding: 12px 24px;
  border: 1px solid rgba(201,169,110,0.4);
  border-radius: 8px;
}
.cd-done i { font-size: 1.2rem; }

@media (max-width: 600px) {
  .hero { padding: 60px 16px; }
  .countdown { gap: 14px; }
  .cd-num { font-size: 2.2rem; }
  .cd-sep { font-size: 1.8rem; }
  .hero-buttons { gap: 10px; }
  .btn-hero-primary, .btn-hero-secondary { padding: 12px 20px; font-size: 11px; }
}

/* ══ INTRO SECTION (Thư ngỏ) ══════════════════════════════ */
.intro-section { background: var(--cream); }

.intro-letter {
  max-width: 740px;
  margin: 0 auto 48px;
  border-left: 3px solid var(--gold);
  padding-left: 24px;
}
.intro-letter p {
  text-align: justify;
  font-size: 15px;
  line-height: 1.9;
  color: var(--dark);
  margin-bottom: 16px;
  white-space: pre-wrap;
}
.intro-signature {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  text-align: right;
  margin-top: 20px;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .info-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .info-cards { grid-template-columns: 1fr; } }

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.2s;
}
.info-card:hover { transform: translateY(-3px); }
.info-card-icon {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--gold);
}
.info-card-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.info-card-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
}

/* ══ SCHEDULE SECTION ═════════════════════════════════════ */
.schedule-section { background: var(--white); }

.activity-icons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.activity-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 82px;
  height: 82px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  justify-content: center;
  padding: 8px;
  transition: border-color 0.2s, transform 0.2s;
}
.activity-icon:hover { border-color: var(--gold); transform: translateY(-2px); }
.activity-icon-symbol {
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
}
.activity-icon-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  line-height: 1.2;
}

.timeline { max-width: 700px; margin: 0 auto; }
.timeline-day { margin-bottom: 40px; }
.timeline-day-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.timeline-day-badge {
  background: var(--dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 4px;
  flex-shrink: 0;
}
.timeline-day-date { font-size: 13px; color: var(--muted); }
.timeline-day-divider { flex: 1; height: 1px; background: var(--border); }

.timeline-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.timeline-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  min-width: 96px;
  flex-shrink: 0;
  padding-top: 2px;
}
.timeline-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 7px;
}
.timeline-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 3px;
}
.timeline-desc { font-size: 13px; color: var(--muted); }

/* ══ REGISTERED SECTION ═══════════════════════════════════ */
.registered-section { background: var(--cream); }

.registered-stat {
  text-align: center;
  margin-bottom: 36px;
}
.registered-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.registered-sub { font-size: 14px; color: var(--muted); margin-top: 8px; }
.registered-sub-gold { font-size: 13px; color: var(--gold); margin-top: 6px; font-weight: 600; }
.registered-refresh {
  border: none;
  background: none;
  color: var(--gold);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.registered-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.registered-tab {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(26,26,26,0.12);
  background: transparent;
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.registered-tab.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.registered-panel { display: none; }
.registered-panel.active { display: block; }

.bar-chart { max-width: 560px; margin: 0 auto; }
.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.bar-label { font-size: 13px; font-weight: 500; color: var(--dark); width: 36px; flex-shrink: 0; }
.bar-label-button {
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  padding: 0;
}
.bar-label-button:hover { color: var(--gold); }
.bar-track {
  flex: 1;
  height: 10px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.bar-fill {
  width: 0;
  height: 100%;
  background: var(--dark);
  border-radius: 2px;
  transition: width 0.8s ease;
  min-width: 2px;
}
.bar-count { font-size: 13px; color: var(--muted); width: 28px; text-align: right; flex-shrink: 0; }
.registered-hint {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: #a0a7b4;
}
.registered-class-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}
.registered-class-chip {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.registered-class-chip:hover,
.registered-class-chip.active {
  background: #c9a96e;
  border-color: #c9a96e;
  color: var(--white);
}
.registered-class-chip-all {
  font-weight: 700;
}
.registered-list {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}
.registered-list-head,
.registered-list-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.8fr) 72px 110px minmax(0, 1.8fr) 140px;
  gap: 16px;
  padding: 14px 18px;
  align-items: center;
}
.registered-list-head {
  background: var(--dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.registered-list-row {
  font-size: 14px;
  color: var(--dark);
  border-top: 1px solid var(--border);
  background: var(--white);
}
.registered-status {
  color: #8c919f;
  font-size: 13px;
}
.registered-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.registered-page-btn {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
}
.registered-page-btn.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.registered-empty {
  border: 1px dashed rgba(201,169,110,0.5);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,0.55);
}
@media (max-width: 640px) {
  .registered-list-head { display: none; }
  .registered-list-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ══ GALLERY SECTION (carousel) ══════════════════════════ */
.gallery-section { background: var(--white); }

.gallery-carousel {
  position: relative;
  max-width: 720px;
  margin: 0 auto 12px;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
  aspect-ratio: 4 / 3;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.carousel-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  padding: 12px 14px;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.62) 100%);
}
.carousel-caption-title {
  font-size: 15px;
  font-weight: 700;
}
.carousel-caption-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}
.carousel-counter {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  z-index: 5;
  background: rgba(0,0,0,0.3);
  padding: 2px 8px;
  border-radius: 10px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
  line-height: 1;
}
.carousel-btn:hover { background: rgba(255,255,255,0.26); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  padding: 0;
}
.carousel-dot.active { background: var(--gold); }

.gallery-upload-cta {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  text-align: center;
  border: 1px dashed var(--gold);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: background 0.2s;
  cursor: default;
}
.gallery-upload-cta:hover { background: var(--cream); }

/* ══ GUESTBOOK SECTION ════════════════════════════════════ */
.guestbook-section { background: var(--cream); }

.guestbook-cta-wrap { text-align: center; margin-bottom: 36px; }
.btn-dark {
  display: inline-block;
  padding: 12px 28px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-dark:hover { background: #333; }

.guestbook-grid {
  columns: 3;
  column-gap: 16px;
}
@media (max-width: 900px) { .guestbook-grid { columns: 2; } }
@media (max-width: 480px) { .guestbook-grid { columns: 1; } }

.guestbook-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  break-inside: avoid;
}
.guestbook-card.highlighted { border-color: var(--gold); }
.guestbook-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.75;
  color: var(--dark);
  margin-bottom: 12px;
}
.guestbook-sep { color: var(--gold); font-size: 16px; margin-bottom: 10px; display: block; }
.guestbook-name { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.guestbook-class { font-size: 13px; color: var(--muted); }
.guestbook-date { font-size: 12px; color: #9ca3af; margin-top: 10px; }

/* Guestbook modal */
.guestbook-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.guestbook-modal.active { display: flex; }
.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.modal-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
}
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}
.modal-form-group { margin-bottom: 16px; }
.modal-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.modal-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}
.modal-input:focus { border-color: var(--gold); }
textarea.modal-input { resize: vertical; min-height: 100px; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  background: none; border: none;
  font-size: 1.1rem; cursor: pointer;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--dark); }

/* Registration modal */
.register-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9200;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.register-modal.active { display: flex; }
.register-modal-box {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: var(--white);
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  overflow: hidden;
}
.register-modal-header {
  background: var(--dark);
  color: var(--white);
  padding: 28px 28px 22px;
}
.register-modal-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.register-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 8px;
}
.register-modal-subtitle {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}
.register-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.24);
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#register-form {
  padding: 24px 28px 28px;
}
.register-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.register-form-group {
  margin-bottom: 16px;
}
.register-form-label {
  display: block;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.register-form-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d6d6d6;
  background: #fbfbfb;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  outline: none;
}
.register-form-input:focus {
  border-color: var(--gold);
  background: var(--white);
}
.register-form-textarea {
  min-height: 92px;
  resize: vertical;
}
.register-form-message {
  margin-bottom: 14px;
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 4px;
}
.register-form-message.error {
  background: #fff1f2;
  color: #be123c;
}
.register-form-message.success {
  background: #ecfdf3;
  color: #027a48;
}
.register-submit {
  width: 100%;
  min-height: 48px;
  border: none;
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.register-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

/* ══ ANNOUNCEMENTS SECTION ════════════════════════════════ */
.announcements-section { background: var(--white); }

.announcements-list { max-width: 780px; margin: 0 auto; }
.announcement-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.announcement-item-highlight {
  background: rgba(250,248,245,0.75);
  padding-left: 14px;
  padding-right: 14px;
  border-radius: 10px;
}
.announcement-item:first-child { border-top: 1px solid var(--border); }
.announcement-bullet { color: var(--orange); font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.announcement-content { flex: 1; }
.announcement-title { font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.announcement-title-link {
  display: inline-block;
  color: var(--orange);
  text-decoration: none;
}
.announcement-title-link:hover { text-decoration: underline; }
.announcement-desc { font-size: 14px; color: var(--muted); margin-bottom: 4px; line-height: 1.5; }
.announcement-date { font-size: 12px; color: #9ca3af; }

/* ══ CONTACT SECTION ══════════════════════════════════════ */
.contact-section { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 40px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.map-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.map-link { font-size: 13px; color: var(--gold); text-decoration: none; font-weight: 500; }
.map-link:hover { text-decoration: underline; }
.map-wrap { border-radius: 12px; overflow: hidden; }
.map-wrap iframe { width: 100%; height: 300px; border: none; display: block; }
.btn-directions {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  margin-top: 12px;
  transition: background 0.2s;
}
.btn-directions:hover { background: #333; }

.contact-info { display: flex; flex-direction: column; }
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:first-child { border-top: 1px solid var(--border); }
.contact-icon {
  width: 24px;
  font-size: 20px;
  color: var(--gold);
  flex-shrink: 0;
  padding-top: 2px;
  text-align: center;
}
.contact-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-value { font-size: 15px; color: var(--dark); line-height: 1.5; }

/* ══ FOOTER ═══════════════════════════════════════════════ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 56px 24px;
}
.footer-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 16px;
  opacity: 0.8;
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.35;
  margin: 0 auto 18px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: 12px; }
.admin-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.1);
  text-decoration: none;
  transition: color 0.25s;
}
.admin-link i { display: block; font-size: 15px; }
.admin-link:hover { color: var(--gold); }

/* ══ SCROLL REVEAL ════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ══ ANIMATIONS ═══════════════════════════════════════════ */
@keyframes fadeIn  { from { opacity: 0; }                          to { opacity: 1; } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ══ MOBILE ════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .section { padding: 60px 16px; }
  .navbar { padding: 0 16px; }
  .navbar-brand {
    min-width: 0;
    gap: 10px;
  }
  .navbar-brand span {
    display: block;
    min-width: 0;
    font-size: 11px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-bottom-nav {
    gap: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .mobile-bottom-nav a {
    min-height: 44px;
    font-size: 11px;
  }
  .info-cards { gap: 12px; }
  .contact-grid { gap: 24px; }
  .register-form-row { grid-template-columns: 1fr; gap: 0; }
  .register-modal-header { padding: 24px 22px 20px; }
  #register-form { padding: 22px; }

  /* Cho phép modal scroll khi bàn phím ảo bật lên che mất input/textarea */
  .register-modal,
  .guestbook-modal {
    align-items: flex-start;
    overflow-y: auto;
    padding: 16px 16px 40vh;
    -webkit-overflow-scrolling: touch;
  }
}
