* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Outfit, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root {
  --navy: #0d2149;
  --navy-light: #1a3a75;
  --saffron: #ff8f1f;
  --saffron-light: #ffb15c;
  --chakra-blue: #1e5aa8;
  --bg-dark: #0a0e18;
  --card-bg: #131a2c;
  --border-subtle: rgba(30, 90, 168, 0.22);
  --text-primary: #e8ecf5;
  --text-secondary: #8d97ab;
}

body {
  background: radial-gradient(circle at top, #131a2c 0%, #0a0e18 60%, #060811 100%);
  min-height: 100vh;
  color: var(--text-primary);
}

/* ---------- Navbar ---------- */
.nd-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 30px;
  background: rgba(10, 14, 24, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.back-link:hover { color: var(--saffron-light); }

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-brand .saffron { color: #ff6f00; }
.nav-brand .gold { color: #ffab00; }
.nav-brand .green { color: #4caf50; }

/* ---------- Hero ---------- */
.hero-section {
  text-align: center;
  padding: 48px 20px 30px;
}

.section-badge {
  display: inline-block;
  color: var(--saffron-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--saffron-light), var(--chakra-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 0.96rem;
}

/* ---------- Month Filter ---------- */
.month-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px 30px;
  max-width: 900px;
  margin: 0 auto;
}

.month-chip {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 16px;
  border-radius: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.month-chip:hover {
  border-color: var(--saffron);
  color: var(--text-primary);
}

.month-chip.active {
  background: linear-gradient(135deg, var(--navy-light), var(--chakra-blue));
  border-color: transparent;
  color: #fff;
}

/* ---------- Container / Calendar Grid ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px 60px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.day-card {
  background: linear-gradient(160deg, var(--card-bg), #0e1420);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px 20px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.2s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.day-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--saffron), var(--chakra-blue));
}

.day-card:hover, .day-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--saffron);
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
}

.day-card-date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 143, 31, 0.1);
  border: 1px solid rgba(255, 143, 31, 0.25);
  border-radius: 10px;
  padding: 6px 14px;
  margin-bottom: 12px;
}

.day-card-date-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--saffron-light);
  line-height: 1;
}

.day-card-date-month {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
}

.day-card-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: block;
}

.day-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.day-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.day-card-cta {
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--saffron-light);
  font-weight: 600;
}

/* ---------- Day Modal ---------- */
.day-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.8);
  backdrop-filter: blur(6px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.day-modal-overlay.active { display: flex; }

.day-modal {
  background: linear-gradient(160deg, var(--card-bg), #0e1420);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 34px 30px;
  position: relative;
  animation: modal-pop 0.25s ease;
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.day-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}
.day-modal-close:hover { background: rgba(255,255,255,0.15); }

.day-modal-date {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--saffron-light);
  background: rgba(255, 143, 31, 0.1);
  padding: 4px 12px;
  border-radius: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.day-modal-icon { font-size: 2.6rem; margin-bottom: 10px; }

.day-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.day-modal-desc {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  font-size: 0.93rem;
}

.day-modal-section {
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
}

.day-modal-section h4 {
  font-size: 0.88rem;
  color: var(--saffron-light);
  margin-bottom: 8px;
}

.day-modal-section p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.day-modal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-modal-section li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.day-modal-section li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--chakra-blue);
  font-size: 0.6rem;
  top: 6px;
}

/* ---------- No Results ---------- */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

.hidden { display: none !important; }

/* ---------- Footer ---------- */
.nd-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-subtle);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero-section h1 { font-size: 1.6rem; }
  .calendar-grid { grid-template-columns: 1fr; }
}