/* ============================================
   YUVA GANESH CHATURTHI 2026 — STYLES
   Branded with YUVA Colors (Teal, Forest Green, Gold)
   Mobile-first, Senior-Citizen-Friendly
   ============================================ */

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

:root {
  --yuva-teal: #008ea6;
  --yuva-cyan: #0284c7;
  --yuva-green: #0d7a54;
  --yuva-dark-green: #064e3b;
  --yuva-gold: #c27c1a;
  --yuva-gold-dark: #b45309;
  --yuva-bg: #f8faf9;
  --text-main: #1e293b;
  --text-muted: #475569;
}

html {
  scroll-behavior: smooth;
  font-size: 18px; /* larger base for readability */
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
  color: var(--text-main);
  background: var(--yuva-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #042f2e 0%, #064e3b 50%, #0369a1 100%);
  color: #fff;
  box-shadow: 0 2px 14px rgba(4, 47, 46, 0.35);
  border-bottom: 2px solid rgba(194, 124, 26, 0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  white-space: nowrap;
}

.nav-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.nav-brand-text {
  letter-spacing: 0.3px;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.nav-links {
  display: none;
  list-style: none;
  width: 100%;
  flex-direction: column;
  gap: 0;
  padding-top: 0.75rem;
}

.nav-links.open {
  display: flex;
}

.nav-links li a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
}

.nav-links li a:hover,
.nav-links li a:focus {
  background: rgba(255, 255, 255, 0.12);
}

.nav-pdf-btn {
  background: rgba(194, 124, 26, 0.35);
  border-radius: 6px;
  font-weight: 700 !important;
  color: #fef08a !important;
}

/* ---------- COMPACT BRAND HEADER ---------- */
.site-header {
  background: linear-gradient(135deg, #032b26 0%, #064e3b 40%, #026670 75%, #854d0e 100%);
  color: #fff;
  text-align: center;
  padding: 2rem 1.25rem 1.75rem;
  border-bottom: 3px solid var(--yuva-gold);
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-logo-box {
  background: #ffffff;
  padding: 0.5rem 1.4rem;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.85rem;
  display: inline-block;
  border: 2px solid rgba(194, 124, 26, 0.3);
}

.header-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.header-badge {
  display: inline-block;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.35);
}

.header-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-dates {
  font-size: 1rem;
  font-weight: 500;
  color: #fef08a;
  opacity: 0.95;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
  border: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.4);
  width: 100%;
  max-width: 320px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 6px 22px rgba(180, 83, 9, 0.55);
}

.btn-register {
  background: linear-gradient(135deg, #0d7a54 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 122, 84, 0.35);
  width: 100%;
  padding: 1rem;
  font-size: 1.15rem;
  margin-top: auto;
  border-radius: 12px;
}

.btn-register:hover {
  background: linear-gradient(135deg, #064e3b 0%, #0369a1 100%);
  box-shadow: 0 6px 20px rgba(13, 122, 84, 0.45);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 2.75rem 1.25rem;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.4rem;
  color: var(--yuva-dark-green);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

/* ---------- SCHEDULE (FRONT SECTION) ---------- */
.schedule-section {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.schedule-banner {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 100%);
  border-left: 5px solid var(--yuva-green);
  border-right: 5px solid var(--yuva-teal);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(13, 122, 84, 0.08);
}

.schedule-banner p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--yuva-dark-green);
  margin-bottom: 0.25rem;
}

.schedule-banner p:last-child {
  margin-bottom: 0;
  color: var(--yuva-gold-dark);
}

.schedule-image-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(6, 78, 59, 0.15);
  border: 3px solid var(--yuva-dark-green);
}

.schedule-img {
  width: 100%;
  cursor: zoom-in;
}

.schedule-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.85rem;
  font-weight: 600;
}

/* ---------- PDF DOWNLOAD CARD ---------- */
.pdf-download-card {
  max-width: 900px;
  margin: 2rem auto 0;
  background: #f0fdf4;
  border: 2px dashed var(--yuva-green);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pdf-download-info h3 {
  font-size: 1.25rem;
  color: var(--yuva-dark-green);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.pdf-download-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-pdf {
  background: linear-gradient(135deg, #0d7a54 0%, #064e3b 100%);
  color: #ffffff;
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(13, 122, 84, 0.35);
  width: 100%;
  max-width: 360px;
}

.btn-pdf:hover {
  background: linear-gradient(135deg, #064e3b 0%, #033629 100%);
  box-shadow: 0 6px 20px rgba(13, 122, 84, 0.45);
}

/* ---------- EVENTS GRID ---------- */
.events-section {
  background: var(--yuva-bg);
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 950px;
  margin: 0 auto;
}

/* ---------- EVENT CARD ---------- */
.event-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  border-top: 5px solid var(--yuva-green);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(6, 78, 59, 0.14);
}

.event-poster {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.event-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.event-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--yuva-dark-green);
}

.event-desc {
  font-size: 1rem;
  color: #334155;
  line-height: 1.65;
  white-space: pre-line;
}

.phone-link {
  color: var(--yuva-dark-green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #e0f2fe;
  display: inline-block;
}

.phone-link:hover {
  background: #bae6fd;
  color: #0369a1;
}

/* ---------- VENUE & GOOGLE MAP ---------- */
.venue-section {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.map-card {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(6, 78, 59, 0.12);
  border: 3px solid var(--yuva-dark-green);
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-info {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.venue-details h3 {
  font-size: 1.2rem;
  color: var(--yuva-dark-green);
  margin-bottom: 0.25rem;
}

.venue-details p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.btn-directions {
  background: linear-gradient(135deg, #0284c7 0%, #0d7a54 100%);
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  display: inline-block;
  font-weight: 700;
  width: 100%;
  max-width: 320px;
}

.btn-directions:hover {
  background: linear-gradient(135deg, #0369a1 0%, #064e3b 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

/* ---------- FOOTER ---------- */
.footer {
  background: linear-gradient(135deg, #042f2e 0%, #064e3b 50%, #0f172a 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1.25rem;
  border-top: 3px solid var(--yuva-gold);
}

.footer-logo-box {
  background: #ffffff;
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.footer-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer h2 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.footer p {
  font-size: 1rem;
  opacity: 0.92;
  margin-bottom: 0.5rem;
  color: #e2e8f0;
}

.footer-pdf {
  margin: 1.5rem 0 1rem;
}

.footer-pdf-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
}

.footer-pdf-btn:hover {
  background: #ffffff;
  color: var(--yuva-dark-green);
}

.footer-venue {
  font-weight: 600;
  color: #fef08a !important;
  margin-top: 1rem;
}

.footer-copy {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.75;
  color: #94a3b8 !important;
}

/* ============================================
   DESKTOP (≥ 768px)
   ============================================ */
@media (min-width: 768px) {
  html {
    font-size: 18px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row;
    width: auto;
    gap: 0.5rem;
    padding-top: 0;
  }

  .nav-links li a {
    border-top: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
  }

  .site-header {
    padding: 2.75rem 2rem 2.25rem;
  }

  .header-logo {
    height: 70px;
  }

  .header-title {
    font-size: 2.2rem;
  }

  .header-dates {
    font-size: 1.15rem;
  }

  .pdf-download-card {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 1.75rem 2rem;
  }

  .pdf-download-info {
    flex: 1;
    margin-right: 1.5rem;
  }

  .btn-pdf {
    width: auto;
    white-space: nowrap;
  }

  .section {
    padding: 3.75rem 2rem;
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-register {
    width: auto;
  }

  .map-info {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 1.5rem 2rem;
  }

  .btn-directions {
    width: auto;
    white-space: nowrap;
  }
}

/* ============================================
   LARGE DESKTOP (≥ 1024px)
   ============================================ */
@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
  }
}
