/* ===== FONTS (backup if header links fail) ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Merriweather:wght@700&display=swap');

/* ===== RESET & LAYOUT ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  display: flex;               /* sticky footer layout */
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: #fafafa;
  color: #222;
  line-height: 1.7;
  font-size: 1.02rem;          /* slightly larger base */
}
.site-content { flex: 1 0 auto; }   /* pushes footer to bottom */
.site-footer { flex-shrink: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== TYPE ===== */
h1, h2, h3, h4 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: #1a2d5c;
  margin-bottom: 14px;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
p { margin-bottom: 14px; color: #333; }
a { color: #1a2d5c; text-decoration: none; transition: color .2s; }
a:hover { color: #e63946; }

/* ===== HEADER ===== */
.site-header { background: #fff; border-bottom: 1px solid #ddd; padding: 14px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.branding { display: flex; align-items: center; gap: 16px; }
.logo { height: 64px; }            /* bigger logo */
.tagline { font-size: .98rem; color: #6f7685; font-style: italic; }

.main-nav a {
  margin-left: 26px;
  font-weight: 600;
  font-size: 1.06rem;              /* larger nav */
}
.main-nav .donate {
  background: #e5534b;             /* more color */
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: .95rem;
  box-shadow: 0 2px 0 #c0413a;
}
.main-nav .donate:hover { background: #cc473f; }

/* ===== HERO ===== */
.hero {
  background: #f3f5f8;
  border-bottom: 3px solid #e5534b;
  padding: 82px 0;
  text-align: center;
}
.hero p { font-size: 1.18rem; color: #444; }

/* ===== FEATURED PROGRAMS ===== */
.featured { padding: 46px 0; }
.section-intro { margin-bottom: 18px; color: #5a6274; }
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.program {
  background: #fff;
  border: 1px solid #e9ebef;
  border-top: 4px solid #1a2d5c;   /* PBS-ish accent bar */
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 2px 6px rgba(16,24,40,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.program:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(16,24,40,.10); }
.program p { color: #525a6a; }

/* ===== SCHEDULE PREVIEW ===== */
.schedule-preview { padding: 8px 0 54px; }
.schedule-card {
  background: #fff;
  border: 1px solid #e9ebef;
  border-left: 4px solid #e5534b;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 2px 6px rgba(16,24,40,.06);
  max-width: 760px;
}
.schedule-card ul { list-style: none; }
.schedule-card li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #eef1f5;
}
.schedule-card li:last-child { border-bottom: 0; }
.schedule-card .time { font-family: monospace; color: #e5534b; min-width: 86px; }

/* ===== FOOTER ===== */
.site-footer {
  background: #1e1f22;
  color: #e9e9ea;
  padding: 50px 0 18px;
  margin-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px,1fr));
  gap: 28px;
  margin-bottom: 18px;
}
.footer-logo { height: 62px; margin-bottom: 12px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 10px; color: #fff; }
.footer-col ul { list-style: none; }
.footer-col li { margin: 6px 0; }
.footer-col a { color: #c5c7ce; font-size: .94rem; }
.footer-col a:hover { color: #fff; }

/* socials hidden for now; add `.stay-connected.show {display:block}` to re-enable */
.footer-col.stay-connected { display: none; }
.footer-col.stay-connected.show { display: block; }

.footer-col p {
  font-size: 0.92rem;
  color: #c5c7ce;
  margin-top: 10px;
  line-height: 1.5;
}


/* Sections default */
section {
  padding: 50px 0;
}

section > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== PAGE HERO (subpages) ===== */
.page-hero {
  background: #f3f5f8;
  border-bottom: 2px solid #e5534b;
  padding: 60px 0 40px;
  margin-bottom: 30px;
}
.page-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 1.1rem;
  color: #555;
}

/* ===== PAGE CONTENT ===== */
.page-content {
  padding: 20px 0 60px;
}
.page-content h2 {
  margin-top: 30px;
  font-size: 1.4rem;
}
.page-content p {
  max-width: 800px;
}

/* Program Cards (used on Programs & Community pages) */
.page-content .program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.page-content .program {
  background: #fff;
  border: 1px solid #e9ebef;
  border-top: 4px solid #1a2d5c;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform .2s, box-shadow .2s;
}
.page-content .program:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Schedule Enhancement */
.schedule-card {
  background: #fff;
  border: 1px solid #e9ebef;
  border-left: 5px solid #e5534b;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.schedule-card ul { list-style: none; margin: 0; padding: 0; }
.schedule-card li {
  display: flex;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid #f0f2f5;
}
.schedule-card li:last-child { border-bottom: none; }
.schedule-card .time {
  font-family: monospace;
  font-weight: bold;
  color: #e5534b;
  margin-right: 15px;
  min-width: 90px;
}
.schedule-card li:nth-child(odd) {
  background: #fafbfc;
  border-radius: 4px;
  padding-left: 8px;
}

/* ===== LISTS ===== */
.page-content ul,
.page-content ol {
  margin: 20px 0 30px 25px;   /* breathing room + indent */
  padding: 0;
  line-height: 1.7;
}

.page-content ul li,
.page-content ol li {
  margin-bottom: 10px;        /* spacing between items */
  color: #333;
  font-size: 1.05rem;
}

/* Unordered list bullets */
.page-content ul {
  list-style: disc;           /* clean circle bullets */
}
.page-content ul li::marker {
  color: #1a2d5c;             /* navy to match theme */
  font-size: 1rem;
}

/* Ordered list numbers */
.page-content ol {
  list-style: decimal;        /* classic numbering */
}
.page-content ol li::marker {
  color: #e5534b;             /* red accent for numbers */
  font-weight: bold;
  font-size: 1rem;
}



/* Quotes */
.footer-quotes {
  font-style: italic;
  font-size: 0.8rem;  /* slightly smaller */
  color: #aaa;
  margin-bottom: 8px;
}

//* ===== Top Ticker (under header) ===== */
.ticker {
  width: 100%;
  overflow: hidden;
  background: #111;
  border-bottom: 2px solid #e5534b;
  padding: 6px 0;
  position: relative;
  z-index: 2;
}

.ticker-track {
  display: flex;                  /* line up spans side by side */
  width: max-content;             /* ensure track is as wide as content */
  animation: tickerMove 30s linear infinite;
}

.ticker-track span {
  padding: 0 40px;                /* space between repeats */
  color: #e5534b;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

@keyframes tickerMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* slides half the width for looping */
}


/* ===== Footer extras ===== */
.footer-extras {
  margin-top: 25px;
  border-top: 1px solid #34363b;
  padding-top: 12px;
  text-align: center;
}
.site-footer .footer-quotes {
  display: block;
  text-align: center;
  font-style: italic;
  font-size: 0.82rem;         /* slightly smaller */
  color: #aaa;
  margin-bottom: 6px;
}

/* ===== Lighter copyright line ===== */
.site-footer .legal {
  border-top: 1px solid #34363b;
  padding-top: 14px;
  text-align: center;
  font-size: .85rem;
  color: #ccc !important;     /* ensure it’s light */
}

.legal p {color: #ccc;}

/* ===== GLOBAL MOBILE TYPE ===== */
@media (max-width: 768px) {
  body {
    font-size: 1rem;  /* comfortable base size */
    line-height: 1.6;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
}

/* ===== NAVIGATION ===== */
@media (max-width: 780px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .main-nav a {
    margin: 0;
    padding: 8px 12px;
    font-size: 1rem;
    background: #f3f5f8;
    border-radius: 4px;
  }
  .main-nav .donate {
    margin-top: 6px;
    width: 100%;
    text-align: center;
  }
}

/* ===== HERO ===== */
@media (max-width: 600px) {
  .hero {
    padding: 50px 15px;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* ===== GRIDS ===== */
@media (max-width: 1100px) {
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .program-grid,
  .page-content .program-grid {
    grid-template-columns: 1fr; /* stack everything */
  }
}

/* ===== SCHEDULE ===== */
@media (max-width: 600px) {
  .schedule-card {
    padding: 18px;
  }
  .schedule-card li {
    flex-direction: column;
    align-items: flex-start;
  }
  .schedule-card .time {
    margin-bottom: 4px;
    font-size: 0.9rem;
  }
}

/* ===== FOOTER ===== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col ul {
    padding: 0;
  }
  .footer-col li {
    margin: 4px 0;
  }
}

/* ===== TICKER ===== */
@media (max-width: 600px) {
  .ticker-track span {
    font-size: 0.8rem;
    padding: 0 20px;
  }
}

