/* ============================================
   V1S CITY HUB - SHARED STYLES
   --------------------------------------------
   One sheet for every city hub, loaded as
   /assets/css/city.css BEFORE the hub's own
   css/styles.css - so anything a hub overrides
   still wins, exactly as it did when both lived
   in one file.

   Nothing here is city-specific. The hero image,
   the badge and legend layer, and the one-off
   category colours stay in each hub's own sheet.

   Regenerate with:
       python scripts/build_city_css.py
   ============================================ */

/* ============================================
   KILLEEN VETERAN EVENTS — STYLES
   Patriotic theme: Navy, Red, White, Gold
   ============================================ */

:root {
  --navy: #0A1628;
  --navy-light: #132240;
  --red: #BF0A30;
  --red-dark: #8B0000;
  --white: #FFFFFF;
  --off-white: #F5F5F5;
  --cream: #FAF9F6;
  --gold: #C5A258;
  --gold-light: #D4B87A;
  --blue: #002868;
  --blue-light: #1A3D7C;
  --gray-100: #F0F0F0;
  --gray-200: #E0E0E0;
  --gray-300: #CCCCCC;
  --gray-600: #666666;
  --gray-800: #333333;
  --shadow: 0 2px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--gray-800);
  background: var(--off-white);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; line-height: 1.2; }

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

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

button { cursor: pointer; border: none; font-family: inherit; }

/* UTILITIES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section-title {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

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

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo { height: 50px; }

.main-nav { display: flex; gap: 28px; }

.main-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  transition: var(--transition);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: var(--transition);
}

.main-nav a:hover::after { width: 100%; }

.mobile-menu-btn {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: var(--navy);
}

/* SUBTITLE BANNER */
.subtitle-banner {
  background: var(--navy);
  text-align: center;
  padding: 16px 20px;
}

.subtitle-banner p {
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.55) 0%,
    rgba(0, 40, 104, 0.4) 50%,
    rgba(10, 22, 40, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 40px 20px;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: 1.2rem;
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CATEGORIES */
.categories {
  padding: 50px 0 30px;
  background: var(--white);
  border-bottom: 3px solid var(--gray-100);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cat-btn {
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--gray-100);
  color: var(--gray-800);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-btn:hover { opacity: 0.85; transform: scale(1.03); }

.cat-btn.active { box-shadow: 0 0 0 3px var(--gold), var(--shadow); transform: scale(1.05); }

.cat-btn[data-category="all"] { background: var(--navy); color: var(--white); }

.cat-btn[data-category="career"] { background: var(--blue); color: var(--white); }

.cat-btn[data-category="benefits"] { background: #2E7D32; color: var(--white); }

.cat-btn[data-category="social"] { background: #6A1B9A; color: var(--white); }

.cat-btn[data-category="health"] { background: var(--red); color: var(--white); }

.cat-btn[data-category="education"] { background: #E65100; color: var(--white); }

.cat-btn[data-category="spouse"] { background: #E91E90; color: var(--white); }

/* CALENDAR SECTION */
.calendar-section {
  padding: 40px 0;
  background: var(--off-white);
}

.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calendar-title {
  font-size: 1.5rem;
  color: var(--navy);
  min-width: 220px;
  text-align: center;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.view-toggle { display: flex; gap: 4px; }

.view-btn {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--white);
  color: var(--gray-600);
  border-radius: var(--radius);
  transition: var(--transition);
}

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

.view-btn:hover:not(.active) { background: var(--gray-200); }

/* MONTH VIEW */
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.month-grid .day-header {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 12px 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.month-grid .day-cell {
  background: var(--white);
  min-height: 120px;
  max-height: 160px;
  padding: 8px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.month-grid .day-cell:hover { background: var(--cream); }

.month-grid .day-cell.other-month { background: var(--gray-100); opacity: 0.5; }

.month-grid .day-cell.today {
  background: #FFF8E1;
  box-shadow: inset 0 0 0 2px var(--gold);
}

.day-number {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.today .day-number {
  background: var(--red);
  color: var(--white);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-dot {
  display: block;
  padding: 3px 6px;
  margin-bottom: 2px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition);
}

.event-dot:hover { opacity: 0.85; transform: scale(1.02); }

.event-more {
  display: block;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  text-align: center;
  border-radius: 4px;
  transition: var(--transition);
}

.event-more:hover { background: var(--gray-200); }

.event-dot.career { background: var(--blue); }

.event-dot.benefits { background: #2E7D32; }

.event-dot.social { background: #6A1B9A; }

.event-dot.health { background: var(--red); }

.event-dot.education { background: #E65100; }

.event-dot.spouse { background: #E91E90; }

/* FEDERAL HOLIDAYS */
.day-cell.holiday {
  background: rgba(197, 162, 88, 0.08);
}

.holiday-label {
  display: block;
  padding: 2px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold);
  background: rgba(197, 162, 88, 0.12);
  border-left: 2px solid var(--gold);
  border-radius: 2px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.holiday-label i { margin-right: 3px; font-size: 0.6rem; }

.holiday-label-week {
  font-size: 0.6rem;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.holiday-label-day {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-top: 4px;
}

.holiday-label-day i { margin-right: 4px; }

/* WEEK VIEW */
.week-grid {
  display: grid;
  grid-template-columns: 80px repeat(7, minmax(0, 1fr));
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.week-grid .time-label {
  padding: 8px;
  font-size: 0.75rem;
  color: var(--gray-600);
  text-align: right;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-100);
}

.week-grid .week-day-header {
  text-align: center;
  padding: 12px 4px;
  background: var(--navy);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
}

.week-grid .week-day-header.today-header {
  background: var(--red);
}

.week-grid .week-cell {
  border-bottom: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-100);
  min-height: 48px;
  padding: 2px;
  position: relative;
}

.week-event {
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.week-event.career { background: var(--blue); }

.week-event.benefits { background: #2E7D32; }

.week-event.social { background: #6A1B9A; }

.week-event.health { background: var(--red); }

.week-event.education { background: #E65100; }

.week-event.spouse { background: #E91E90; }

/* DAY VIEW */
.day-grid {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.day-grid .day-view-header {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
}

.day-grid .day-hour-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  border-bottom: 1px solid var(--gray-100);
  min-height: 60px;
}

.day-grid .hour-label {
  padding: 8px;
  font-size: 0.8rem;
  color: var(--gray-600);
  text-align: right;
  background: var(--gray-100);
}

.day-grid .hour-content {
  padding: 4px 8px;
  position: relative;
}

.day-event {
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.day-event:hover { transform: translateX(4px); }

.day-event.career { background: var(--blue); }

.day-event.benefits { background: #2E7D32; }

.day-event.social { background: #6A1B9A; }

.day-event.health { background: var(--red); }

.day-event.education { background: #E65100; }

.day-event.spouse { background: #E91E90; }

.day-event .event-time { font-size: 0.75rem; opacity: 0.9; }

/* UPCOMING LIST */
.upcoming-section {
  padding: 50px 0;
  background: var(--white);
}

.upcoming-list {
  display: grid;
  gap: 16px;
}

.upcoming-card {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--navy);
  transition: var(--transition);
  cursor: pointer;
}

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

.upcoming-card.career { border-left-color: var(--blue); }

.upcoming-card.benefits { border-left-color: #2E7D32; }

.upcoming-card.social { border-left-color: #6A1B9A; }

.upcoming-card.health { border-left-color: var(--red); }

.upcoming-card.education { border-left-color: #E65100; }

.upcoming-card.spouse { border-left-color: #E91E90; }

.upcoming-date {
  text-align: center;
  background: var(--white);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.upcoming-date .month {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 1px;
}

.upcoming-date .day {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
}

.upcoming-date .weekday {
  font-size: 0.7rem;
  color: var(--gray-600);
  text-transform: uppercase;
}

.upcoming-info h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.upcoming-info .event-meta {
  font-size: 0.85rem;
  color: var(--gray-600);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.upcoming-info .event-meta i { color: var(--gold); margin-right: 4px; }

.upcoming-actions .badge-reg {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-reg.required { background: #FFF3E0; color: #E65100; }

.badge-reg.free { background: #E8F5E9; color: #2E7D32; }

/* OPPORTUNITIES */
.opportunities-section {
  padding: 50px 0;
  background: var(--off-white);
}

.section-subtitle {
  color: var(--gray-600);
  margin-top: -10px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.opportunities-list {
  display: grid;
  gap: 20px;
}

.opp-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--gold);
  transition: var(--transition);
}

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

.opp-card-image {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.opp-card-body h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.opp-card-body .opp-type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--white);
}

.opp-type.spouse { background: #E91E90; }

.opp-type.career { background: var(--blue); }

.opp-type.benefits { background: #2E7D32; }

.opp-type.education { background: #E65100; }

.opp-type.health { background: var(--red); }

.opp-type.social { background: #6A1B9A; }

.opp-card-body p {
  font-size: 0.9rem;
  color: var(--gray-800);
  margin-bottom: 12px;
  line-height: 1.6;
}

.opp-card-body .opp-meta {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 14px;
}

.opp-card-body .opp-meta i { color: var(--gold); margin-right: 4px; }

.opp-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.opp-card.career { border-left-color: var(--blue); }

.opp-card.spouse { border-left-color: #E91E90; }

.opp-card.benefits { border-left-color: #2E7D32; }

.opp-card.education { border-left-color: #E65100; }

.opp-card.health { border-left-color: var(--red); }

.opp-card.social { border-left-color: #6A1B9A; }

@media (max-width: 768px) {
  .opp-card { grid-template-columns: 1fr; }
  .opp-card-image { max-width: 200px; }
}

/* ABOUT */
.about-section {
  padding: 60px 0;
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: center;
}

.about-text p { margin-bottom: 16px; }

.about-logo { text-align: center; }

.about-logo img { max-width: 200px; }

/* NEWSLETTER */
.newsletter-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
}

.newsletter-inner { text-align: center; max-width: 560px; margin: 0 auto; }

.newsletter-inner h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.newsletter-inner p { opacity: 0.9; margin-bottom: 24px; }

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
}

.newsletter-note { font-size: 0.8rem; opacity: 0.6; margin-top: 12px; }

/* FOOTER */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }

.footer-brand p { font-size: 0.8rem; margin: 0; }

.footer-logo { height: 40px; }

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 0.85rem;
  transition: var(--transition);
}

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

.footer-flag { display: flex; align-items: center; gap: 12px; }

.us-flag-icon { width: 40px; height: auto; border-radius: 2px; box-shadow: 0 0 4px rgba(255,255,255,0.2); }

.footer-flag span { font-size: 0.8rem; }

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1;
}

.modal-close:hover { background: rgba(0,0,0,0.3); }

.modal-header {
  padding: 32px 28px 20px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  position: relative;
}

.modal-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.2);
}

.modal-header h2 { font-size: 1.6rem; }

.modal-body { padding: 24px 28px; }

.modal-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--gray-800);
}

.modal-detail i { color: var(--gold); width: 16px; text-align: center; }

.modal-detail a { color: var(--navy); font-weight: 600; text-decoration: underline; }

.modal-detail a:hover { color: var(--gold); }

.modal-description {
  margin: 20px 0;
  padding: 16px;
  background: var(--gray-100);
  border-radius: var(--radius);
  line-height: 1.7;
}

.modal-map {
  height: 200px;
  background: var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}

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

.modal-flyer {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--gray-100);
  border-radius: var(--radius);
  text-align: center;
}

.flyer-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 12px;
}

.flyer-label i { color: var(--gold); margin-right: 6px; }

.flyer-thumbnail {
  max-width: 100%;
  max-height: 300px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 12px;
}

.flyer-thumbnail:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 480px) {
  .hero { min-height: 45vh; }
  .hero h1 { font-size: 1.6rem; }
  .month-grid .day-header { font-size: 0.7rem; padding: 8px 2px; }
}

/* ============================================
   EVENT SEARCH (Upcoming section)
   ============================================ */
.upcoming-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.upcoming-header .section-title { margin-bottom: 0; }

.event-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  max-width: 440px;
}

.event-search > i {
  position: absolute;
  left: 16px;
  color: #8a94a6;
  font-size: 0.95rem;
  pointer-events: none;
}

.event-search input {
  width: 100%;
  padding: 12px 42px 12px 42px;
  border: 2px solid #d7dce5;
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
  color: #0A1628;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.event-search input::placeholder { color: #9aa3b2; }

.event-search input:focus {
  outline: none;
  border-color: #002868;
  box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.12);
}

.event-search input[type="search"]::-webkit-search-cancel-button { display: none; }

.search-clear {
  position: absolute;
  right: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #8a94a6;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.search-clear:hover { color: #002868; background: #eef1f6; }

@media (max-width: 640px) {
  .upcoming-header { flex-direction: column; align-items: stretch; }
  .event-search { max-width: none; }
}
