/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: white;
  background-color: #2c2c2c;
  min-width: 980px;
}

p:not(:last-child) {
  margin-bottom: 1rem;
}

a {
  color: #d32f2f;
}

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

/* Header */
.site-header {
  background: #d32f2f;
  color: white;
  padding: 1rem 0;
}

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

.logo-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.site-title {
  font-size: 1rem;
  font-weight: bold;
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-size: 1.125rem
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.main-nav a:hover {
  color: black;
}

.main-nav a.active {
  color: black;
  pointer-events: none;
}

a.btn-thanks {
  background: white;
  padding: 4px 12px;
  border-radius: 20px;
  color: #f60419;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

/* Hero section */
.hero-image {
  background: url('/img/hero.avif') center/cover;
  height: 60vh;
  position: relative;
}

.hero-overlay {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.7);
  color: black;
  padding: 1rem;
}

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

.hero-content h1 {
  font-size: 1.875rem; /* 30px / 16px, the typical base font size */
}

.subtitle {
  font-size: 0.688rem; /* 11px / 16px, the typical base font size */
  opacity: 0.9;
}

/* Programs section */
.programs {
  padding: 0;
}

.program-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.program-card {
  background: #1e3a5f;
  color: white;
  padding: 3rem 2rem;
  text-align: left;
}

.program-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.program-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.btn {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.btn:hover {
  background: rgba(255,255,255,0.3);
  color: lightskyblue;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0); /* Older standard */
    clip-path: inset(50%); /* Modern standard */
    border: 0;
    white-space: nowrap; /* Prevents text from wrapping and taking up visual space */
}

/* About section */
.about {
  padding: 4rem 0;
  background-color: #2c2c2c;
  color: white;
}

.about h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: bold;
}

.about p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: left;
}

.scout-logo {
  text-align: center;
  margin-top: 3rem;
}

.scout-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

/* Footer */
.site-footer {
  background: #d32f2f;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-links {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: black;
}

.footer-credit {
  margin-top: 1rem;
  font-size: 0.875rem;
  text-align: center;
  position: relative;
}

.footer-logo {
  margin-top: 1rem;
  width: 3rem;
  height: 3rem;
  position: absolute;
  right: 1rem;
  bottom: -1rem;
}

/* Image pill shortcode styles */
.image-pill {
  display: inline-block;
  width: 100%;
}

.image-pill-link {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.8) 30%);
  border-radius: 0 1.5rem 1.5rem 0;
  text-decoration: none;
  color: white;
  overflow: hidden;
  transition: transform 0.2s;
}

.image-pill-link:hover {
  transform: scale(1.05);
}

.image-pill-icon {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.image-pill-text {
  padding: 0 20px 0 15px;
  font-size: 1.2rem;
  font-weight: bold;
  white-space: nowrap;
}

/* Grid shortcode styles */
.grid-container {
  width: 100%;
}

.grid-item {
  padding: 1rem;
}

/* Contact page styles */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 2;
  gap: 0;
  width: min-content;
}

.contact-card-right {
  justify-items: right;
}

.contact-card-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.contact-card-info {
  width: 240px;
  align-content: center;
}

/* Responsive design */
@media (max-width: 980px) {
  html {
    font-size: 15px;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .program-cards {
    grid-template-columns: 1fr;
  }
  
  .program-card {
    padding: 1.5rem;
  }

  .contact-card-right {
    justify-items: left;
  }

  :not(.grid-item)>.grid-container {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 690px) {
  html {
    font-size: 14px;
  }

  .header-content {
    flex-direction: column;
    gap: 0.9rem;
  }
  
  .hero-content h1 {
    font-size: 1.25rem;
  }
  
  .program-cards {
    grid-template-columns: 1fr;
  }
  
  .program-card {
    padding: 1.25rem;
  }

  :not(.grid-item)>.grid-container {
    grid-template-columns: 1fr !important;
  }
}