/* Reset & Global */
html, body {
  overflow-x: hidden; /* stop horizontal scroll */
  width: 100%;
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.header {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(rgba(57, 59, 68, 0.4), rgba(57, 59, 68, 0.4)),
              url('/Photos/Troop Photo.jpg') center/cover no-repeat;
  position: relative;
}

.text-box {
  width: 90%;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.text-box h1 {
  font-size: clamp(24px, 5vw, 62px);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.text-box p {
  margin: 10px 0 40px;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 34px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border-radius: 10px;
  transition: 0.3s;
}
.hero-btn:hover {
  border-color: #f44336;
  background: #f44336;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: relative;
}

nav img {
  width: 100px;
}

.nav-links {
  position: fixed;    /* instead of absolute */
  top: 0;
  right: -200px;      /* hidden */
  height: 100vh;
  width: 200px;
  background: #fff;
  transition: right 0.4s ease;
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  overflow-y: auto;
  z-index: 1000;
}
.nav-links ul {
  padding: 60px 20px;
}

.nav-links ul li {
  display: block;
  margin: 20px 0;
}

.nav-links ul li a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
}
#nav-links .fa.fa-bars::before, .fa.fa-times::before {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}


.fa-bars, .fa-times {
  display: none;
  font-size: 30px;
  margin: 10px;
}

/* Force hamburger / close icons white and visible on all pages */
.fa-bars,
.fa-times {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  display: block;
  font-size: 30px;
  cursor: pointer;
  z-index: 1100;
}

/* position close icon inside the sliding menu */
.nav-links .fa-times {
  position: absolute;
  top: 16px;
  right: 16px;
}

/* ensure main hamburger sits above nav/logo */
nav .fa-bars {
  position: relative;
}

/* About Section */
.About {
  width: 80%;
  margin: auto;
  text-align: center;
  padding: 80px 0;
}

.About h1 {
  font-size: 36px;
  font-weight: 600;
}

.About p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 22px;
  color: #333;
}

.row {
  margin-top: 5%;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.About-col {
  flex: 1 1 300px;
  background: #f4f4f4;
  border-radius: 10px;
  padding: 20px;
  transition: 0.3s;
}

.About-col:hover {
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* Counter */
.counter-container {
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
  width: fit-content;
}

.counter {
  font-size: 48px;
  font-weight: bold;
  color: #2c3e50;
}

/* News Section */
.news-section {
  padding: 24px 20px;
}

/* container that holds news cards in a row and allows horizontal scrolling */
.news-list {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  overflow-x: auto;
  padding: 16px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* fixed-size horizontal cards (override previous sizes) */
.news-card {
  flex: 0 0 340px;        /* fixed card width */
  width: 340px;
  height: 420px;         /* fixed card height */
  box-sizing: border-box;
  scroll-snap-align: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 14px 14px;
}

/* image area */
.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  margin-bottom: 12px;
}

/* ensure text area doesn't overflow the card */
.news-card h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.news-card p {
  font-size: 14px;
  line-height: 1.45;
  color: #444;
  overflow: auto;
  flex: 1 1 auto;
}

/* spacing for the read-more link */
.news-card .read-more {
  margin-top: 10px;
  display: inline-block;
  color: #f44336;
  text-decoration: none;
}

/* show multiple cards on wider screens */
@media (min-width: 1100px) {
  .news-list {
    justify-content: flex-start;
  }
  .news-card {
    flex: 0 0 300px;
    width: 300px;
    height: 380px;
  }
}

/* mobile: single card width, center it and reduce height */
@media (max-width: 700px) {
  .news-card {
    flex: 0 0 88%;
    width: 88%;
    height: auto;
  }
  .news-card img {
    height: 180px;
  }
}

/* hide default scrollbar on WebKit while still scrollable */
.news-list::-webkit-scrollbar { height: 8px; }
.news-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 8px; }.news-list::-webkit-scrollbar { height: 8px; }
.news-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 8px; }

/* Carousel */
/* ---------- Carousel: one-card-per-view (visual card narrower) ---------- */
.scouts-carousel {
  max-width: 1200px;
  margin: 40px auto;
  overflow: hidden;
  position: relative;
  padding: 0;            /* ensure no inner padding changes width */
}

.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  gap: 0;
  touch-action: pan-y;   /* allow vertical page scrolling while swiping horizontally */
  user-select: none;
  -webkit-user-drag: none;
  box-sizing: border-box;
}

/* each slide equals the carousel viewport width */
.notable-alumni {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #f6f9fc 0%, #e9f1ff 100%);
}

.alumni-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: #003c8a;
  margin-bottom: 10px;
}

.alumni-subtext {
  font-size: 16px;
  color: #444;
  margin-bottom: 40px;
}

.scout-card {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.scout-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.scout-info h2 {
  font-size: 20px;
  color: #222;
  margin-top: 14px;
}

.scout-info p {
  color: #555;
  font-size: 14px;
}

@media (max-width: 768px) {
  .alumni-subtext {
    font-size: 14px;
  }
  .scout-info h2 {
    font-size: 18px;
  }
}
/* inner content centered and narrower than the slide (visual card size) */
.scout-card > .scout-image,
.scout-card > .scout-info {
  width: 80%;
  max-width: 420px;     /* smaller visual width on desktop */
  margin: 0 auto;
  box-sizing: border-box;
}

/* taller image per your request */
.scout-image {
  width: 100%;
  height: 340px;
  overflow: hidden;
  border-radius: 10px;
}
.scout-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scout-info {
  margin-top: 14px;
  padding-bottom: 10px;
}

/* arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
.prev { left: 10px; }
.next { right: 10px; }
.carousel-arrow:focus { outline: none; }

/* mobile: visual card uses almost full width and image smaller */
@media (max-width: 720px) {
  .scout-card > .scout-image,
  .scout-card > .scout-info {
    width: 94%;
    max-width: none;
  }
  .scout-image { height: 260px; }
  .scout-card { min-height: 420px; padding: 12px 0; }
}

/* Footer */
.interactive-footer {
  background: #003c8a;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
}

.footer-section {
  flex: 1 1 200px;
}

.footer-section h4 {
  color: #f44336;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  color: #ddd;
  text-decoration: none;
  transition: 0.3s;
}
.footer-section ul li a:hover {
  color: #f44336;
}

.newsletter input {
  padding: 10px;
  width: 70%;
  border: none;
  border-radius: 5px;
}

.newsletter button {
  padding: 10px;
  background: #f44336;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.newsletter button:hover {
  background: #e76f51;
}

.social-icons a {
  margin: 0 10px;
  color: #fff;
  font-size: 20px;
  transition: 0.3s;
}
.social-icons a:hover {
  color: #f44336;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 14px;
  color: #ddd;
}
