@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --navy: #0a1f44;
  --deep-blue: #103783;
  --mid-blue: #1a56c4;
  --soft-blue: #dfe9ff;
  --gold: #f5a623;
  --gold-light: #ffd166;
  --white: #ffffff;
  --off-white: #f6f8fd;
  --text-dark: #11213b;
  --text-muted: #5a6a7e;
  --line: rgba(10, 31, 68, 0.1);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: linear-gradient(180deg, #fdfefe 0%, #f4f7ff 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.announce {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1001;
}

.announce a { color: var(--gold); text-decoration: none; font-weight: 700; }

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  background: rgba(10,31,68,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid rgba(245,166,35,0.4);
}

.nav-logo-text {
  color: white;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.nav-logo-text span {
  color: var(--gold);
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.45) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(10,31,68,0.99);
  padding: 20px 5% 28px;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--gold); }

.mobile-menu .m-cta {
  color: var(--gold) !important;
  font-weight: 700;
  border-bottom: none;
}

.container {
  width: min(1180px, 90%);
  margin: 0 auto;
}

.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.calendar-shell,
.agenda-panel,
.upcoming-card {
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(16, 55, 131, 0.08);
}

.hero-copy {
  padding: 38px;
  background: linear-gradient(145deg, var(--navy), var(--deep-blue));
  color: white;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin-bottom: 14px;
}

.accent { color: var(--gold-light); }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--mid-blue);
}

.hero-copy .section-label { color: var(--gold-light); }

.hero-sub,
.section-sub,
.hero-card-text,
.event-summary,
.footer-copy {
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-sub {
  color: rgba(255,255,255,0.8);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.icon-btn {
  border: none;
  cursor: pointer;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

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

.btn-secondary {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color: white;
}

.hero-card {
  background: white;
  padding: 34px;
  border: 1px solid rgba(10,31,68,0.08);
}

.hero-card-label,
.event-category {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(26,86,196,0.08);
  color: var(--mid-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-card h2 {
  font-size: 28px;
  line-height: 1.1;
  margin: 18px 0 10px;
  color: var(--navy);
}

.hero-card-meta,
.event-meta,
.empty-state {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

section {
  padding: 28px 0 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading.stack {
  align-items: start;
  flex-direction: column;
}

.section-title {
  font-size: clamp(26px, 3.8vw, 42px);
  color: var(--navy);
  line-height: 1.1;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--navy);
  font-weight: 600;
}

.month-label {
  min-width: 170px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.calendar-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.calendar-shell,
.agenda-panel {
  background: white;
  padding: 24px;
  border: 1px solid rgba(10,31,68,0.08);
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  min-width: 0;
  width: 100%;
}

.weekdays span {
  padding: 10px 8px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.calendar-day {
  min-height: 110px;
  border: 1px solid rgba(10,31,68,0.08);
  border-radius: 18px;
  padding: 12px;
  background: #fbfcff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.calendar-day:hover {
  transform: translateY(-2px);
  border-color: rgba(26,86,196,0.28);
}

.calendar-day.muted {
  opacity: 0.45;
}

.calendar-day.today {
  border-color: rgba(245,166,35,0.7);
  box-shadow: inset 0 0 0 1px rgba(245,166,35,0.3);
}

.calendar-day.active {
  background: linear-gradient(180deg, #eef4ff, #ffffff);
  border-color: var(--mid-blue);
}

.calendar-day.has-event .day-number {
  color: var(--deep-blue);
}

.day-number {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.day-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-dot {
  width: 100%;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(26,86,196,0.1);
  color: var(--deep-blue);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-title {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 18px;
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agenda-event,
.upcoming-card {
  border: 1px solid rgba(10,31,68,0.08);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.agenda-event {
  border-radius: 20px;
  padding: 18px;
}

.agenda-event h4,
.event-title {
  font-size: 18px;
  color: var(--navy);
  margin: 12px 0 8px;
}

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

.upcoming-card {
  padding: 22px;
}

.scheduler-form {
  margin-top: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

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

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid rgba(10,31,68,0.12);
  border-radius: 14px;
  padding: 13px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: white;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(26,86,196,0.5);
  box-shadow: 0 0 0 4px rgba(26,86,196,0.08);
}

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

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  margin: 6px 0 10px;
}

.helper-text {
  min-height: 22px;
  color: var(--mid-blue);
  font-size: 13px;
  font-weight: 600;
}

.admin-reset {
  background: rgba(10,31,68,0.06);
  border: 1px solid rgba(10,31,68,0.08);
  color: var(--navy);
}

.admin-event-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.admin-event-card {
  border-radius: 24px;
  border: 1px solid rgba(10,31,68,0.08);
  background: white;
  box-shadow: 0 18px 60px rgba(16,55,131,0.08);
  padding: 22px;
}

.admin-card-top,
.admin-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-card-actions {
  justify-content: flex-start;
  margin-top: 18px;
}

.delete-btn {
  color: #a22323;
  border-color: rgba(162,35,35,0.2);
}

.event-date-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: rgba(245,166,35,0.12);
  color: #8b5a06;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.footer-inner {
  border-top: 1px solid rgba(10,31,68,0.08);
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.footer-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--mid-blue);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .hero-grid,
  .calendar-layout,
  .upcoming-grid {
    grid-template-columns: 1fr;
  }

  .upcoming-grid,
  .admin-event-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 4%;
  }

  nav,
  .section-heading,
  .footer-inner {
    flex-direction: column;
    align-items: start;
  }

  nav {
    flex-direction: row;
    align-items: center;
    padding: 0 4%;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .calendar-day {
    min-height: 92px;
    padding: 10px;
  }

  .calendar-grid {
    gap: 8px;
  }

  .upcoming-grid,
  .admin-event-list,
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(92%, 1180px);
  }

  .calendar-shell,
  .agenda-panel,
  .hero-copy,
  .hero-card {
    padding: 18px;
  }

  .weekdays span {
    font-size: 10px;
    padding: 6px 2px;
  }

  .calendar-grid {
    gap: 6px;
  }

  .calendar-day {
    min-height: 84px;
    border-radius: 14px;
  }

  .event-dot {
    font-size: 10px;
    padding: 4px 6px;
  }
}
