@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700&display=swap');

:root {
  --home-link: #7fe783;
}

.home-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.625rem;
}

.home-video-link {
  color: var(--home-link);
}

.camp-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.camp-content {
    background: linear-gradient(135deg, #153d1e, #1d4d27);
    color: white;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 16px;
    text-align: center;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.camp-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
}

.camp-content p {
    margin: 0 0 15px;
    padding: 0;
    font-size: 1.1em;
}

.camp-btn {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: #1c4b27;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.camp-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.home-feature-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.feature-box {
    width: 240px;
    text-align: center;
    text-decoration: none;
    color: var(--home-link);
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .2s ease, opacity .2s ease;
}

.feature-box img {
    width: 140px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 12px;
}

.feature-box:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Mobile fixes */
@media (max-width: 600px) {
    .home-feature-row {
        gap: 20px;
    }

    .feature-box {
        width: 80%;
    }

    .feature-box img {
        width: 110px;
    }
}

.pdf-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.pdf-links a {
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #f2f2f2;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.pdf-links a:hover {
    background-color: #d0d0d0;
}

@media (max-width: 992px) {
  .pdf-links { flex-wrap: wrap; gap: 12px; }
  .pdf-links a { font-size: 0.95em; padding: 8px 12px; }
}

@media (max-width: 768px) {
  .home-heading { font-size: 2rem; }
  .pdf-links { flex-direction: column; }
  .pdf-links a { width: 80%; margin: 0 auto; }
}

.home-slideshow {
    --slide-fade: 900ms;
    --caption-fade: calc(var(--slide-fade) / 2);
    display: flow-root;
    margin-bottom: 1.25rem;
}

.slideshow-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.home-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.home-slides > div {
    position: absolute;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--slide-fade) ease, visibility 0s linear var(--slide-fade);
}

.home-slides > .is-current {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.home-slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.home-slide-controls {
    width: max-content;
    margin: 0.65rem auto 0;
    display: flex;
    gap: 0.15rem;
    padding: 0.2rem;
    background: #191d1beb;
    border: 1px solid #ffffff40;
    border-radius: 999px;
}

.home-slide-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.home-slide-controls button:hover,
.home-slide-controls button:focus-visible { background: #ffffff26; }
.home-slide-controls button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.home-slide-controls svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-slide-controls[hidden] { visibility: hidden; }
.home-slide-controls svg[hidden] { display: none; }

.slideshow-caption {
  display: grid;
  text-align: center;
  margin: 10px auto 0;
  width: 100%;
  max-width: 960px;
  box-sizing: border-box;
  font-size: 1.4rem;
  font-family: "Georgia", serif;
  font-weight: bold;
  color: #333;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 11px;
}

.slideshow-caption > span {
  grid-area: 1 / 1;
  align-self: center;
  overflow-wrap: anywhere;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--caption-fade) ease-in, visibility 0s linear var(--caption-fade);
}

.slideshow-caption > .is-current {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--caption-fade) ease-out var(--caption-fade);
}

.home-slide-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .home-slides > div, .slideshow-caption > span { transition: none; }
}

/* Phones (portrait orientation) */
@media (max-width: 768px) {
  /* Ensure slideshow and caption stay centered */
  .slideshow-container {
    width: 95%;
    aspect-ratio: 16 / 9;
    margin: 10px auto;
    border-radius: 16px;
  }

  .slideshow-caption {
    width: 90%;
    font-size: 1rem;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .slideshow-caption {
    font-size: 0.9rem;
    padding: 6px;
  }
}
