/* ==========================================================================
   ASA — Adictos Sexuales Anónimos — "Amanecer" Theme
   Design: Deep teal + golden amber, Outfit + Nunito Sans
   ========================================================================== */

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

:root {
  --teal: #0D5C63;
  --teal-dark: #094249;
  --teal-light: #e8f4f5;
  --amber: #E8A838;
  --amber-dark: #c88a1e;
  --amber-light: #fdf3e0;
  --slate: #2D3436;
  --slate-light: #636e72;
  --white: #FAFAF7;
  --pure-white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-600: #868e96;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-dark); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* --- Sunrise Strip --- */
.sunrise-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-asa {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--teal);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--slate-light);
  display: none;
}

@media (min-width: 768px) {
  .logo-sub { display: inline; }
}

.nav-links {
  display: none;
  list-style: none;
  gap: 0.25rem;
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--pure-white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex !important;
    flex-direction: row;
    gap: 0.25rem;
  }
  .nav-links.open {
    position: static;
    border: none;
    padding: 0;
    box-shadow: none;
  }
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--slate);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--teal-light);
  color: var(--teal);
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--amber);
  color: var(--slate);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--slate);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--pure-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--pure-white);
  border-color: var(--pure-white);
}

.btn-teal {
  background: var(--teal);
  color: var(--pure-white);
  border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--pure-white);
}

.btn-amber {
  background: var(--amber);
  color: var(--slate);
  border-color: var(--amber);
}
.btn-amber:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--slate);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,92,99,0.85) 0%, rgba(13,92,99,0.6) 50%, rgba(45,52,54,0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 4rem 2rem;
  }
}

.hero-text h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--pure-white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Next Meeting Card */
.hero-next-meeting {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  color: var(--pure-white);
}

.next-meeting-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.next-meeting-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.next-meeting-time {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.5rem;
}

.next-meeting-countdown {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--amber);
  margin-bottom: 1rem;
}

/* --- Assessment Banner --- */
.assessment-banner {
  background: var(--teal);
  padding: 3rem 0;
}

.assessment-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.assessment-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--pure-white);
  margin-bottom: 0.75rem;
}

.assessment-content p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.assessment-content .btn-teal {
  background: var(--amber);
  color: var(--slate);
  border-color: var(--amber);
}
.assessment-content .btn-teal:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--slate-light);
}

/* --- Meetings Section --- */
.meetings {
  padding: 5rem 0;
  background: var(--white);
}

.meeting-filters {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .meeting-filters {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .meeting-filters {
    grid-template-columns: 1fr auto auto;
    align-items: end;
  }
}

.filter-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-light);
  margin-bottom: 0.5rem;
}

.day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.day-tab {
  padding: 0.4rem 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--pure-white);
  color: var(--slate);
  cursor: pointer;
  transition: all 0.15s;
}

.day-tab:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.day-tab.active {
  background: var(--teal);
  color: var(--pure-white);
  border-color: var(--teal);
}

.filter-select, .filter-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--pure-white);
  color: var(--slate);
  appearance: auto;
}

.filter-input:focus, .filter-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,92,99,0.1);
}

/* Location bar */
.location-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--teal-light);
  border: 1px solid rgba(13,92,99,0.15);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.location-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal);
}

.location-info svg {
  flex-shrink: 0;
}

#locationLabel {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--teal-dark);
}

.country-select {
  padding: 0.4rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--pure-white);
  color: var(--slate);
  appearance: auto;
  max-width: 280px;
}

.country-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,92,99,0.1);
}

.change-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.change-link:hover {
  color: var(--teal-dark);
}

.meeting-count {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
}

/* Meeting Grid */
.meeting-grid {
  display: grid;
  gap: 0.75rem;
}

.meeting-card {
  display: grid;
  grid-template-columns: 4px 1fr;
  background: var(--pure-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.meeting-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.meeting-day-bar {
  border-radius: var(--radius) 0 0 var(--radius);
}

.meeting-day-bar[data-day="0"] { background: #0D5C63; }
.meeting-day-bar[data-day="1"] { background: #E8A838; }
.meeting-day-bar[data-day="2"] { background: #2a9d8f; }
.meeting-day-bar[data-day="3"] { background: #264653; }
.meeting-day-bar[data-day="4"] { background: #e9c46a; }
.meeting-day-bar[data-day="5"] { background: #0f766e; }
.meeting-day-bar[data-day="6"] { background: #c88a1e; }

.meeting-card-body {
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .meeting-card-body {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .meeting-card-body {
    grid-template-columns: 1fr;
  }
  .meeting-time-block {
    text-align: left;
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
  }
  .meeting-join {
    justify-self: start;
  }
}

.meeting-info h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--slate);
  margin-bottom: 0.15rem;
}

.meeting-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--slate-light);
}

.meeting-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  background: var(--gray-100);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-light);
}

.meeting-badge.men { background: #dbeafe; color: #1e40af; }
.meeting-badge.women { background: #fce7f3; color: #9d174d; }
.meeting-badge.mixed { background: #f0fdf4; color: #166534; }
.meeting-badge.open { background: #fef3c7; color: #92400e; }
.meeting-badge.closed { background: #fce7f3; color: #9d174d; }
.meeting-badge.online { background: #dbeafe; color: #1e40af; }
.meeting-badge.presencial { background: #fef3c7; color: #92400e; }
.meeting-badge.zoom-id { background: var(--gray-100); color: var(--slate-light); font-size: 0.7rem; }
.meeting-badge.location { background: #f0fdf4; color: #166534; font-size: 0.7rem; }
.meeting-badge.focus { background: #ede9fe; color: #5b21b6; font-size: 0.7rem; }

.meeting-time-block {
  text-align: right;
  white-space: nowrap;
}

.meeting-time-block .time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal);
}

.meeting-time-block .day-label {
  font-size: 0.8rem;
  color: var(--slate-light);
}

.meeting-join {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  background: var(--amber);
  color: var(--slate);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.meeting-join:hover {
  background: var(--amber-dark);
  color: var(--slate);
}

.meeting-join.no-link {
  background: var(--gray-200);
  color: var(--slate-light);
  cursor: default;
}

/* --- Meeting card content wrapper (holds body + expandable) --- */
.meeting-card-content {
  display: flex;
  flex-direction: column;
}

/* --- Expandable row: toggle + report button --- */
.meeting-expand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem 0.75rem;
  flex-wrap: wrap;
}

.meeting-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.meeting-toggle-btn:hover {
  color: var(--teal-dark, #0d7377);
}

.toggle-arrow {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.meeting-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--gray-600);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-left: auto;
  opacity: 0.6;
}

.meeting-report-btn:hover {
  opacity: 1;
  color: #c0392b;
  background: rgba(231, 76, 60, 0.06);
}

.meeting-report-btn svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.meeting-report-btn:hover svg {
  opacity: 1;
}

/* --- Expandable details panel --- */
.meeting-details {
  padding: 0 1.25rem 1rem;
  border-top: 1px solid var(--gray-200);
  margin: 0 0.5rem;
  padding-top: 0.75rem;
}

.detail-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--slate);
  padding: 0.2rem 0;
  line-height: 1.4;
}

.detail-row + .detail-row {
  border-top: 1px dashed var(--gray-200);
  padding-top: 0.35rem;
  margin-top: 0.15rem;
}

.detail-label {
  font-weight: 600;
  color: var(--slate-light);
  white-space: nowrap;
  min-width: 5.5rem;
}

.detail-value {
  color: var(--slate);
  word-break: break-word;
}

.meetings-note, .lit-note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--amber-light);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--slate-light);
  text-align: center;
}

.meetings-note a, .lit-note a {
  color: var(--teal);
  font-weight: 600;
}

/* No results */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--slate-light);
  font-size: 1rem;
}

/* --- About Section --- */
.about {
  padding: 5rem 0;
  background: var(--gray-50);
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-text h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--teal);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--slate);
}

.recovery-quote {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--amber);
  background: var(--amber-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--slate);
}

.recovery-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal);
}

/* --- Program Section --- */
.program {
  padding: 5rem 0;
  background: var(--white);
}

.program-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .program-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.program-card {
  background: var(--pure-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.program-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--teal);
  color: var(--pure-white);
}

.program-icon { flex-shrink: 0; }

.program-card-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.steps-list {
  padding: 0.5rem;
}

.step-item {
  border-bottom: 1px solid var(--gray-100);
}

.step-item:last-child { border-bottom: none; }

.step-item summary {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--slate);
  list-style: none;
  transition: background 0.15s;
}

.step-item summary:hover {
  background: var(--teal-light);
}

.step-item summary::-webkit-details-marker { display: none; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  background: var(--teal);
  color: var(--pure-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Concepts Grid */
.concepts-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.concept-card {
  padding: 1.5rem;
  background: var(--pure-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.concept-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.concept-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.concept-card p {
  font-size: 0.92rem;
  color: var(--slate-light);
}

/* --- Image Divider --- */
.image-divider {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.image-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.divider-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,92,99,0.7);
  padding: 2rem;
}

.divider-overlay blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--pure-white);
  text-align: center;
  max-width: 600px;
  font-style: italic;
}

/* --- Literature Section --- */
.literature {
  padding: 5rem 0;
  background: var(--gray-50);
}

.lit-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.lit-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--pure-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.lit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--teal);
}

.lit-icon {
  color: var(--teal);
  flex-shrink: 0;
}

.lit-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal);
  line-height: 1.4;
}

.lit-card p {
  font-size: 0.85rem;
  color: var(--slate-light);
  line-height: 1.5;
}

/* --- Contact Section --- */
.contact {
  padding: 5rem 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}

.contact-card {
  padding: 1.75rem;
  background: var(--pure-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.contact-main {
  border-color: var(--teal);
  border-width: 2px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.92rem;
  color: var(--slate-light);
  margin-bottom: 0.75rem;
}

.contact-email, .contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal);
  word-break: break-all;
}

.contact-phone {
  font-size: 0.9rem;
  color: var(--slate-light);
  margin-top: 0.5rem;
}

/* --- Footer --- */
.footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: auto 1fr auto;
    align-items: start;
  }
}

.footer-brand .logo-asa {
  color: var(--amber);
  font-size: 1.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-disclaimer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  max-width: 400px;
  text-align: right;
}

@media (max-width: 767px) {
  .footer-content { text-align: center; }
  .footer-disclaimer { text-align: center; max-width: 100%; }
  .footer-links { justify-content: center; }
}

/* --- Self-Assessment Section --- */
.self-assessment {
  padding: 5rem 0;
  background: var(--white);
}

.assessment-form {
  max-width: 800px;
  margin: 0 auto;
}

.assessment-intro {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.7;
}

.question-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--pure-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.question-item:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}

.question-item input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  flex-shrink: 0;
}

.question-item label {
  font-size: 0.95rem;
  color: var(--slate);
  cursor: pointer;
  line-height: 1.5;
}

.assessment-actions {
  text-align: center;
  margin-top: 2rem;
}

.assessment-result {
  display: none;
  max-width: 600px;
  margin: 2rem auto 0;
  padding: 2rem;
  background: var(--teal-light);
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  text-align: center;
}

.result-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.result-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-light);
  margin-bottom: 1rem;
}

#resultMessage p {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.7;
}

#resultMessage a {
  color: var(--teal);
  font-weight: 600;
}

/* --- FAQ Section --- */
.faq {
  padding: 5rem 0;
  background: var(--gray-50);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 0.5rem;
}

.faq-item details {
  background: var(--pure-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--teal);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.faq-item summary:hover {
  background: var(--teal-light);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item details[open] summary::after {
  content: '\2212';
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.7;
}

/* --- Filter Row --- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filter-row .filter-group {
  flex: 1;
  min-width: 140px;
}

.filter-row .filter-group.search-group {
  flex: 2;
  min-width: 200px;
}

.no-meetings {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--slate-light);
}

.no-meetings p {
  margin-bottom: 0.5rem;
}

/* --- Assessment Card --- */
.assessment-card {
  max-width: 800px;
  margin: 0 auto;
}

.q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  background: var(--teal);
  color: var(--pure-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.assessment-disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--amber-light);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--slate-light);
  text-align: center;
}

.assessment-disclaimer a {
  color: var(--teal);
  font-weight: 600;
}

.btn-outline-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid var(--teal);
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-teal:hover {
  background: var(--teal-light);
}

/* --- Assessment Section (override) --- */
.assessment {
  padding: 5rem 0;
  background: var(--white);
}

/* --- Literature Featured Card --- */
.lit-featured {
  margin-bottom: 2rem;
}

.lit-featured-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--teal);
  color: var(--pure-white);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.lit-featured-card:hover {
  background: var(--teal-dark);
  color: var(--pure-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.lit-featured-icon {
  flex-shrink: 0;
  color: var(--amber);
}

.lit-featured-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.lit-featured-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
}

.lit-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--amber);
  color: var(--slate);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 4px;
}

.lit-category-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
}

.concept-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.concept-link:hover {
  color: var(--teal-dark);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Map View Toggle & Map Container --- */
.view-toggle {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  margin-bottom: 16px;
  background: var(--cream);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  margin-left: auto;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn:hover {
  color: var(--teal);
  background: rgba(13, 92, 99, 0.06);
}

.view-btn.active {
  background: white;
  color: var(--teal);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.view-btn svg {
  flex-shrink: 0;
}

.meeting-map-container {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(13, 92, 99, 0.12);
  border: 2px solid var(--cream);
  margin-bottom: 24px;
}

#meetingMap {
  border-radius: 12px;
}

/* --- Google Maps InfoWindow Styles --- */
.gm-style .gm-style-iw-c {
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  padding: 0 !important;
  max-width: 300px !important;
}

.gm-style .gm-style-iw-d {
  overflow: auto !important;
  max-height: 320px !important;
}

.map-popup {
  padding: 16px 18px;
  font-family: 'Nunito Sans', sans-serif;
}

.map-popup strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.map-popup-time {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 8px;
}

.map-popup-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cream);
}

.map-popup-topic {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}

.map-popup-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.map-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--cream);
  color: var(--teal);
}

/* Google Maps z-index fix */
.gm-style {
  z-index: 400 !important;
}

/* Responsive map */
@media (max-width: 600px) {
  #meetingMap {
    height: 350px !important;
  }
  .view-toggle {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  .view-btn {
    flex: 1;
    justify-content: center;
  }
}

/* --- Map Section Title --- */
.map-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 12px;
}
.map-section-title svg {
  flex-shrink: 0;
  stroke: var(--teal);
}

/* --- Directions Button (on meeting cards) --- */
.meeting-join.directions-btn {
  background: #0f766e;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s;
}
.meeting-join.directions-btn:hover {
  background: #0d6560;
}
.meeting-join.directions-btn svg {
  stroke: white;
  flex-shrink: 0;
}

/* --- Map Popup Directions Link --- */
.map-popup-directions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 5px 12px;
  background: #0f766e;
  color: white;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.map-popup-directions:hover {
  background: #0d6560;
  color: white;
}

/* --- Distance message when presencial meetings are far away --- */
.map-distance-msg {
  background: linear-gradient(135deg, #f0fdfa 0%, #fff7ed 100%);
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-top: 1rem;
}
.distance-info {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.distance-info svg {
  flex-shrink: 0;
  color: #0f766e;
  margin-top: 0.2rem;
}
.distance-info p {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.5;
}
.distance-info p:last-child {
  margin-bottom: 0;
}
.distance-info a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.distance-info a:hover {
  color: #115e59;
}

/* --- Detail links in expandable section --- */
.detail-link {
  color: #0f766e;
  text-decoration: none;
  border-bottom: 1px dotted #0f766e;
  transition: color 0.2s, border-color 0.2s;
  word-break: break-all;
}
.detail-link:hover {
  color: #115e59;
  border-bottom-style: solid;
}

.show-all-presencial-btn {
  background: #0f766e;
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.show-all-presencial-btn:hover {
  background: #0d6b64;
}
.distance-info-mild {
  background: #fef3c7;
  border-left: 3px solid #d97706;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #92400e;
}
.distance-info-mild svg {
  flex-shrink: 0;
  stroke: #d97706;
}

/* ==========================================================================
   Report Dialog & Inactive Banner
   ========================================================================== */

/* Inactive banner on meeting cards */
.meeting-inactive-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fff3cd;
  border-bottom: 1px solid #ffc107;
  color: #856404;
  font-size: 0.8rem;
  line-height: 1.3;
}
.meeting-inactive-banner svg {
  flex-shrink: 0;
  stroke: #856404;
}
.meeting-card-inactive {
  border: 1px solid #ffc107;
  box-shadow: 0 0 0 1px #ffc10744;
}

/* Report overlay / modal */
.report-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.report-modal {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: var(--teal);
  color: var(--pure-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.report-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}
.report-close-btn {
  background: none;
  border: none;
  color: var(--pure-white);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
  opacity: 0.8;
}
.report-close-btn:hover { opacity: 1; }
.report-meeting-name {
  padding: 0.75rem 1.25rem 0;
  font-weight: 600;
  color: var(--slate);
  font-size: 0.95rem;
}
.report-subtitle {
  padding: 0.25rem 1.25rem 0.5rem;
  color: var(--slate-light);
  font-size: 0.85rem;
}
.report-options {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.report-option-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--slate);
}
.report-option-btn:hover {
  border-color: var(--teal);
  background: var(--teal-light);
  transform: translateX(4px);
  transition: all 0.2s ease;
}
.report-option-btn svg {
  flex-shrink: 0;
}
.report-option-btn small {
  color: var(--slate-light);
  font-size: 0.78rem;
}
.report-option-btn.report-inactive svg { stroke: #dc3545; }
.report-option-btn.report-wrong-info svg { stroke: #e8a838; }
.report-option-btn.report-other svg { stroke: #6c757d; }

.report-status {
  padding: 0.75rem 1.25rem 1rem;
}
.report-sending {
  color: var(--slate-light);
  font-size: 0.85rem;
  text-align: center;
}
.report-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #16a34a;
  font-size: 0.85rem;
}
.report-error {
  color: #dc3545;
  font-size: 0.85rem;
  text-align: center;
}
