/* PSL Foundation — Custom Styles
   Loaded after beautifuljekyll.css via site-css in _config.yml
   ============================================================= */

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar-custom {
  box-shadow: 0 1px 0 rgba(15, 34, 64, 0.06), 0 2px 8px rgba(15, 34, 64, 0.04);
  border-bottom: 1px solid #e2e8f0 !important;
}

/* Keep logo compact and un-filtered (logo has white bg matching white navbar) */
.navbar-custom .navbar-brand-logo img {
  height: 2.25rem !important;
  width: auto;
  padding: 2px 0;
}

/* Override the beautifuljekyll nav link colors */
.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav .nav-link {
  color: #0f2240 !important;
  font-weight: 600;
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus,
.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus {
  color: #00a896 !important;
}

/* Dropdown items */
.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
  background-color: #ffffff !important;
  color: #0f2240 !important;
  border-color: #e2e8f0 !important;
}

.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item:hover,
.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item:focus {
  color: #00a896 !important;
}

/* Mobile collapsed nav border */
@media (max-width: 1199px) {
  .navbar-custom .navbar-collapse {
    border-top: 1px solid #e2e8f0 !important;
  }
}

/* ============================================================
   HERO SECTION (home page)
   ============================================================ */

.psl-hero {
  background: linear-gradient(135deg, #0f2240 0%, #162d4a 65%, #0d3d5a 100%);
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid texture */
.psl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 168, 150, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.psl-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.psl-hero-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: #00a896;
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(0, 168, 150, 0.45);
  border-radius: 20px;
}

.psl-hero h1 {
  font-size: clamp(2rem, 5vw, 3.375rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  margin-top: 0;
}

.psl-hero h1 .teal {
  color: #00a896;
}

.psl-hero .hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.psl-hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-psl-primary {
  background-color: #00a896;
  color: #ffffff !important;
  border: 2px solid #00a896;
  padding: 0.7rem 1.8rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none !important;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
  display: inline-block;
  line-height: 1.5;
}

.btn-psl-primary:hover {
  background-color: #007a6e;
  border-color: #007a6e;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-psl-outline {
  background-color: transparent;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 0.7rem 1.8rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none !important;
  transition: border-color 0.2s, background-color 0.2s, transform 0.15s;
  display: inline-block;
  line-height: 1.5;
}

.btn-psl-outline:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-psl-teal {
  background-color: #00a896;
  color: #ffffff !important;
  border: 2px solid #00a896;
  padding: 0.7rem 1.8rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none !important;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
  display: inline-block;
  line-height: 1.5;
}

.btn-psl-teal:hover {
  background-color: #007a6e;
  border-color: #007a6e;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* ============================================================
   SECTIONS
   ============================================================ */

.psl-section {
  padding: 5rem 0;
}

.psl-section-white {
  background-color: #ffffff;
}

.psl-section-gray {
  background-color: #f8fafc;
}

.psl-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.psl-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  font-weight: 600;
  color: #00a896;
  margin-bottom: 0.75rem;
}

.psl-section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f2240;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.psl-section-desc {
  color: #718096;
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============================================================
   MISSION CARDS
   ============================================================ */

.mission-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem 1.75rem;
  height: 100%;
  border-top: 3px solid #00a896;
  box-shadow: 0 2px 12px rgba(15, 34, 64, 0.07);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mission-card:hover {
  box-shadow: 0 8px 28px rgba(15, 34, 64, 0.12);
  transform: translateY(-3px);
}

.mission-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
}

.mission-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f2240;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.mission-card p {
  color: #718096;
  font-size: 0.9375rem;
  line-height: 1.75;
  margin: 0;
}

/* ============================================================
   PROJECT CARDS (home page preview + projects page)
   ============================================================ */

.project-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  height: 100%;
  box-shadow: 0 2px 12px rgba(15, 34, 64, 0.07);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-card:hover {
  box-shadow: 0 8px 28px rgba(15, 34, 64, 0.13);
  transform: translateY(-3px);
}

.project-card-img-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  width: 100%;
}

.project-card-img-wrap img {
  max-height: 68px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f2240;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.project-card p {
  color: #718096;
  font-size: 0.875rem;
  line-height: 1.7;
  flex: 1;
  margin: 0 0 1.25rem 0;
}

.project-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #00a896 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
  margin-top: auto;
}

.project-card-link:hover {
  color: #007a6e !important;
}

/* ============================================================
   DONATE CTA (home page)
   ============================================================ */

.psl-donate-cta {
  background: linear-gradient(135deg, #0f2240 0%, #162d4a 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.psl-donate-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 168, 150, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.psl-donate-cta-content {
  position: relative;
  z-index: 1;
}

.psl-donate-cta h2 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
}

.psl-donate-cta p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================================
   PEOPLE CARDS (people page)
   ============================================================ */

.psl-page-intro {
  margin-bottom: 1rem;
}

.psl-section-divider {
  margin-bottom: 2rem;
}

.psl-section-divider h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f2240;
  margin-top: 2rem;
  margin-bottom: 0;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid #00a896;
  display: inline-block;
}

.people-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.75rem;
  margin-bottom: 3rem;
}

.person-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.75rem 1.25rem;
  box-shadow: 0 2px 12px rgba(15, 34, 64, 0.07);
  text-align: center;
  width: 190px;
  flex-shrink: 0;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.person-card:hover {
  box-shadow: 0 8px 28px rgba(15, 34, 64, 0.12);
  transform: translateY(-3px);
}

.person-card img {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid #e2e8f0;
}

.person-card .person-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f2240;
  margin: 0;
  line-height: 1.35;
}

.person-card .person-name a {
  color: #0f2240 !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.person-card .person-name a:hover {
  color: #00a896 !important;
}

/* ============================================================
   PROJECTS PAGE (sponsored_projects.md)
   ============================================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
  margin-bottom: 3rem;
}

/* ============================================================
   DONATE PAGE
   ============================================================ */

.donate-hero {
  background: linear-gradient(135deg, #0f2240 0%, #162d4a 100%);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.donate-hero h2 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.donate-hero p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.donate-badge {
  display: inline-block;
  background: rgba(0, 168, 150, 0.2);
  border: 1px solid rgba(0, 168, 150, 0.5);
  color: #00a896;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  display: block;
}

.donate-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.donate-method-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #00a896;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
}

.donate-method-card h4 {
  color: #0f2240;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.donate-method-card p {
  color: #718096;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.65;
}

/* ============================================================
   PAGE HEADER SECTIONS (inner pages: people, projects, donate)
   ============================================================ */

/* The <header> wraps .intro-header — give it the dark bg so it covers
   the full section from top (including the space behind the fixed navbar).
   overflow: hidden prevents child margin-top from collapsing through, which
   would otherwise leave a gap above the dark gradient. */
.header-section {
  background: linear-gradient(180deg, #0f2240 0%, #162d4a 100%);
  overflow: hidden;
}

/* Remove conflicting bg from inner div; let .header-section show through */
.intro-header.no-img {
  padding-top: 0;
  padding-bottom: 0;
}

/* Give the heading some breathing room */
.intro-header.no-img .page-heading {
  padding: 1.25rem 0 2rem;
}

/* White title text on dark header */
.header-section .page-heading h1,
.intro-header .page-heading h1 {
  color: #ffffff;
}

.header-section .page-heading hr.small {
  border-color: #00a896;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.footer-cols {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-org-name {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-org-desc {
  color: #718096;
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.footer-col-heading {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  margin-top: 0;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-link {
  color: #a0aec0 !important;
  text-decoration: none !important;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-nav-link:hover {
  color: #00a896 !important;
}

.footer-donate-btn {
  display: inline-block;
  background-color: #00a896;
  color: #ffffff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.2s;
}

.footer-donate-btn:hover {
  background-color: #007a6e;
  color: #ffffff !important;
}

/* Social icon circles */
footer .list-inline {
  text-align: left;
  margin-top: 0.25rem;
}

footer .list-inline-item a {
  color: #a0aec0 !important;
  transition: color 0.2s;
}

footer .list-inline-item a:hover {
  color: #00a896 !important;
}


.footer-bottom {
  padding-top: 1.5rem;
}

footer p.copyright,
footer p.theme-by {
  color: #4a5568 !important;
  margin-bottom: 0.25rem;
}

footer a {
  color: #a0aec0 !important;
}

footer a:hover {
  color: #00a896 !important;
}

@media (max-width: 767px) {
  .footer-cols {
    padding: 2rem 0 1.5rem;
  }

  .footer-col-nav,
  .footer-col-donate {
    margin-top: 1.5rem;
  }

  footer .list-inline {
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 767px) {
  .psl-hero {
    padding: 6rem 0 4rem;
  }

  .psl-section {
    padding: 3rem 0;
  }

  .psl-donate-cta {
    padding: 3.5rem 0;
  }

  .people-grid {
    justify-content: center;
  }

  .person-card {
    width: 155px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .psl-hero h1 {
    font-size: 1.75rem;
  }
}
