/* ==========================================================================
   STERLING SPORTSMEN ASSOCIATION - MASTER STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #e8e3d5; /* Warm natural background */
  color: #1a2419;
  line-height: 1.5;
}

a { 
  color: inherit; 
  text-decoration: none; 
}

/* --------------------------------------------------------------------------
   2. HEADER & FOOTER PLACEHOLDERS (Prevents Layout Shift)
   -------------------------------------------------------------------------- */
#header-placeholder {
  min-height: 95px; /* Reserves space for desktop header */
  background-color: #1b3823; /* Dark Forest Green background while loading */
  position: sticky;
  top: 0;
  z-index: 500; /* Stays above page content, below modal overlays (z-index: 1000) */
}

#footer-placeholder {
  min-height: 80px;
  background-color: #1b3823;
}

/* --------------------------------------------------------------------------
   3. SHARED NAVIGATION & HEADER
   -------------------------------------------------------------------------- */
header {
  background-color: #1b3823; /* Dark Forest Green */
  color: #ffffff;
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-container h2 {
  line-height: 1.2;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 15px;
  flex-wrap: wrap;
}

nav a {
  font-weight: bold;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 4px;
  display: inline-block;
  transition: background 0.2s;
}

nav a:hover, 
nav a.active {
  background-color: #3b5a41;
  color: #fff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-phone { 
  font-weight: bold; 
  font-size: 0.9rem;
  white-space: nowrap;
}

.facebook-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #fff;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.facebook-link:hover { 
  opacity: 0.8; 
}

.facebook-text { 
  font-weight: bold; 
}

.facebook-icon { 
  width: 24px; 
  height: 24px; 
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none; /* Hidden on desktop */
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.hamburger-bar {
  width: 26px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   4. PAGE BANNERS & REUSABLE CARDS
   -------------------------------------------------------------------------- */
.page-banner {
  background: #233e29;
  color: #ffffff;
  text-align: center;
  padding: 40px 20px;
  border-bottom: 4px solid #8b0000;
}

.page-banner h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.page-banner p {
  font-size: 1.1rem;
  color: #d1dcd0;
}

.card {
  background: #ffffff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.card h2 {
  font-size: 1.2rem;
  border-bottom: 2px solid #1b3823;
  padding-bottom: 8px;
  margin-bottom: 15px;
  color: #1b3823;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   5. PAGE SPECIFIC: HOMEPAGE (index.html)
   -------------------------------------------------------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: 1fr 300px 280px;
  gap: 20px;
}

/* Hero Slideshow */
.hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  padding: 0 20px;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); 
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 { 
  font-size: 2.2rem; 
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7); 
}

.hero-content p { 
  font-size: 1.1rem; 
  margin-top: 10px; 
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7); 
}

/* Dynamic Announcements, Scrollbox & Modal Popup */
.pinned-item {
  background-color: #f4f1e8;
  border-left: 5px solid #8b0000;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.pinned-badge {
  display: inline-block;
  background-color: #8b0000;
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.news-scrollbox {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 8px;
}

.news-scrollbox::-webkit-scrollbar {
  width: 6px;
}
.news-scrollbox::-webkit-scrollbar-thumb {
  background: #1b3823;
  border-radius: 3px;
}

.announcement-item {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.announcement-item:last-child {
  border-bottom: none;
}

.announcement-item.clickable {
  cursor: pointer;
  transition: background-color 0.15s ease;
  padding: 8px;
  border-radius: 4px;
}

.announcement-item.clickable:hover {
  background-color: #f9f8f3;
}

.announcement-item h3 {
  font-size: 0.98rem;
  color: #1b3823;
}

.news-click-hint {
  font-size: 0.78rem;
  color: #8b0000;
  font-weight: bold;
  margin-top: 4px;
}

/* Modal Popup Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background-color: #ffffff;
  width: 100%;
  max-width: 580px;
  border-radius: 8px;
  padding: 25px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-top: 6px solid #1b3823;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-content .modal-close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  font-weight: bold;
  color: #666;
  cursor: pointer;
}

.modal-content .modal-close-btn:hover {
  color: #8b0000;
}

#modal-title {
  color: #1b3823;
  font-size: 1.3rem;
  padding-right: 30px;
}

.modal-date {
  font-size: 0.85rem;
  color: #8b0000;
  font-weight: bold;
  margin-top: 4px;
}

.modal-divider {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 12px 0 15px 0;
}

.modal-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2b2b2b;
}

/* Homepage Raffle Teaser Banner */
.raffle-banner {
  background: #233e29;
  color: #ffffff;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.raffle-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.raffle-banner-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.raffle-badge {
  background: #8b0000;
  color: #fff;
  font-weight: bold;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 10px;
}

.raffle-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 10px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.raffle-banner h2 { color: #fff; border: none; padding: 0; }
.raffle-banner p { font-size: 0.95rem; margin: 10px 0; }
.raffle-date { font-weight: bold; color: #ffd700; margin-top: 10px; }

.raffle-click-hint {
  display: inline-block;
  margin-top: 15px;
  background-color: #8b0000;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.raffle-banner:hover .raffle-click-hint {
  background-color: #a30000;
}

/* Homepage Dynamic Calendar */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #1b3823;
  padding-bottom: 8px;
  margin-bottom: 15px;
  gap: 10px;
  flex-wrap: wrap;
}

.month-dropdown {
  background-color: #1b3823;
  color: #ffffff;
  border: 1px solid #1b3823;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: bold;
  cursor: pointer;
  max-width: 160px;
  box-sizing: border-box;
}

.month-dropdown:focus {
  outline: none;
  background-color: #3b5a41;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.85rem;
}

.calendar-table th { background: #1b3823; color: #fff; padding: 5px; }
.calendar-table td { padding: 8px; border: 1px solid #ddd; }

.calendar-table td.event-day {
  background-color: #ffd700;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.calendar-table td.event-day:active {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Homepage Facilities Section Grid */
.facilities-grid {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.facilities-grid h2 {
  text-align: center;
  font-size: 1.5rem;
  color: #1b3823;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.facility-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.facility-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  text-align: center;
}

.facility-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background-color: #fff;
}

.facility-card div { 
  padding: 15px; 
}

/* --------------------------------------------------------------------------
   6. PAGE SPECIFIC: ABOUT US (about.html)
   -------------------------------------------------------------------------- */
.containerabout {
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
}

.carda {
  background: #ffffff;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}

/* ==========================================================================
   PATRIOTIC SPORTSMEN PLEDGE STYLES
   ========================================================================== */
.pledge-card {
  position: relative;
  background: linear-gradient(135deg, #101c31 0%, #1b2b48 100%) !important; /* Navy Blue Base */
  color: #ffffff !important;
  border-left: 6px solid #9b1c2c !important; /* Patriotic Red Stripe Accent */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  padding: 35px 30px;
}

/* Subtle Watermark Star in Background */
.pledge-card::before {
  content: "★";
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 14rem;
  color: rgba(255, 255, 255, 0.04);
  user-select: none;
  pointer-events: none;
}

.pledge-card h2 {
  color: #ffffff !important;
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
}

.pledge-quote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.7;
  font-style: italic;
  font-weight: 600;
  color: #f0f4f8;
  margin: 0;
  padding: 0;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carda h2 {
  font-size: 1.4rem;
  border-bottom: 2px solid #1b3823;
  padding-bottom: 8px;
  margin-bottom: 15px;
  color: #1b3823;
  text-transform: uppercase;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.board-card {
  background: #f4f1e8;
  padding: 20px;
  border-radius: 6px;
  border-left: 5px solid #1b3823;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.board-card h3 {
  color: #8b0000;
  font-size: 1.1rem;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.board-name {
  font-weight: bold;
  font-size: 1rem;
  color: #1b3823;
  margin-bottom: 8px;
}

.board-contact {
  font-size: 0.88rem;
  color: #333;
  margin-bottom: 4px;
}

.resource-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.resource-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1b3823;
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.resource-btn:hover {
  background-color: #3b5a41;
}

.ext-icon {
  font-size: 1.1rem;
  color: #ffd700;
}

/* --------------------------------------------------------------------------
   7. PAGE SPECIFIC: RAFFLES (raffles.html)
   -------------------------------------------------------------------------- */
.containerr {
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
}

.raffle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.raffle-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  border: 1px solid #d3ccba;
}

.raffle-card-header {
  background: #1b3823;
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.raffle-status-badge {
  background-color: #8b0000;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.raffle-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background-color: #1b3823;
}

.raffle-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.raffle-card-body h2 {
  color: #1b3823;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.raffle-info-list {
  list-style: none;
  margin: 15px 0;
  font-size: 0.95rem;
}

.raffle-info-list li {
  padding: 6px 0;
  border-bottom: 1px dashed #e0e0e0;
}

.raffle-info-list li strong { color: #1b3823; }

.purchase-section {
  background-color: #ffffff;
  border-left: 6px solid #1b3823;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

.purchase-section h2 {
  color: #1b3823;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 1.3rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.contact-card {
  background: #f4f1e8;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #dcd5c5;
}

.contact-card h3 {
  color: #8b0000;
  font-size: 1rem;
  margin-bottom: 5px;
}

/* --------------------------------------------------------------------------
   8. PAGE SPECIFIC: FACILITIES (facilities.html)
   -------------------------------------------------------------------------- */
.containerf {
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.facility-card-full {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 420px 1fr;
  border: 1px solid #d3ccba;
}

.facility-slideshow {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background-color: #1b3823;
}

.facility-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.facility-slide.active {
  opacity: 1;
}

.facility-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.facility-content h2 {
  color: #1b3823;
  font-size: 1.6rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.facility-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: #8b0000;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.facility-content p {
  color: #2b2b2b;
  font-size: 0.98rem;
  line-height: 1.6;
}

.cardf {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  border: 1px solid #d3ccba;
}

.rules-section h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #1b3823;
  padding-bottom: 8px;
  margin-bottom: 20px;
  color: #1b3823;
  text-transform: uppercase;
}

.rules-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 25px;
  align-items: center;
}

.rules-img-container {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  border: 2px solid #1b3823;
}

.rules-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.rules-text p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.5;
}

.rules-list {
  list-style-type: square;
  padding-left: 20px;
  font-size: 0.95rem;
  color: #1b3823;
}

.rules-list li {
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   9. PAGE SPECIFIC: EVENTS & GALLERY (events.html)
   -------------------------------------------------------------------------- */

/* Outer Page Layout */
.containere {
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.carde {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  border: 1px solid #d3ccba;
}

.carde h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #1b3823;
  padding-bottom: 8px;
  margin-bottom: 20px;
  color: #1b3823;
  text-transform: uppercase;
}

/* ==========================================================================
   UPCOMING EVENTS SECTION
   ========================================================================== */
#upcoming-events-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* 1. Featured Event Card (Full-Width Hero Layout) */
.event-card.featured-event {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 25px;
  background: #f4f1e8;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #d3ccba;
  border-left: 6px solid #8b0000;
  width: 100%;
  box-sizing: border-box;
}

.event-card.featured-event .event-img-container {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* 2. Side-by-Side Grid for Non-Featured Events */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
  gap: 20px;
  width: 100%;
}

.upcoming-grid .event-card {
  display: flex;
  flex-direction: column;
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}

.upcoming-grid .event-img-container {
  position: relative;
  width: 100%;
  height: 300px; /* Uniform height for grid items */
  overflow: hidden;
}

/* Common Image & Typography Rules */
.event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #8b0000;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
}

.event-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-details h3 {
  font-size: 1.4rem;
  color: #1b3823;
  margin-bottom: 5px;
}

.event-date {
  font-weight: bold;
  color: #8b0000;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.event-location {
  font-weight: bold;
  color: #1b3823;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* ==========================================================================
   PAST EVENTS ACCORDION & LIST
   ========================================================================== */
.past-events-accordion {
  cursor: pointer;
}

.accordion-header {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-icon {
  font-size: 1.2rem;
  color: #1b3823;
  transition: transform 0.3s ease;
}

details[open] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.past-event-item {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #ccc;
  align-items: center;
}

.past-event-item.clickable {
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 10px;
  border-radius: 6px;
}

.past-event-item.clickable:hover {
  background: #f4f1e8;
}

.past-event-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.past-event-thumb {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.past-event-info h3 {
  font-size: 1.1rem;
  color: #1b3823;
}

.past-event-date {
  font-size: 0.85rem;
  font-weight: bold;
  color: #8b0000;
  margin-bottom: 6px;
}

/* ==========================================================================
   GALLERY LIGHTBOX MODAL
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-overlay.open {
  display: flex;
}

.gallery-modal-content {
  background: #111;
  color: #fff;
  width: 100%;
  max-width: 900px;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.gallery-modal-content .modal-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 15;
}

.main-photo-container {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  margin: 15px 0;
  border-radius: 6px;
  overflow: hidden;
}

.main-photo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
  user-select: none;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.85);
  border: none;
  font-size: 2rem;
  padding: 15px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
  user-select: none;
}

.nav-arrow:hover {
  background: rgba(44, 94, 59, 0.85);
  color: #fff;
}

.prev-arrow { left: 10px; }
.next-arrow { right: 10px; }

.fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 12;
  transition: background 0.2s;
}

.fullscreen-btn:hover {
  background: rgba(44, 94, 59, 0.85);
}

/* Horizontal Thumbnail Strip */
.thumbs-scroll-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.thumbs-scroll-row::-webkit-scrollbar {
  height: 8px;
}

.thumbs-scroll-row::-webkit-scrollbar-thumb {
  background: #2c5e3b;
  border-radius: 4px;
}

.gallery-thumb-item {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.gallery-thumb-item:hover, 
.gallery-thumb-item.active {
  opacity: 1;
  border-color: #2c5e3b;
}

/* Native Fullscreen Rules */
.main-photo-container:fullscreen {
  width: 100vw;
  height: 100vh;
  margin: 0;
  border-radius: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-photo-container:fullscreen img {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (MOBILE & TABLETS)
   ========================================================================== */
@media (max-width: 768px) {
  /* Collapse featured card to single column */
  .event-card.featured-event {
    grid-template-columns: 1fr;
  }

  .event-card.featured-event .event-img-container {
    height: 240px;
  }

  /* Collapse side-by-side grid to single column */
  .upcoming-grid {
    grid-template-columns: 1fr;
  }

  /* Adjust past event items */
  .past-event-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .past-event-thumb {
    width: 100%;
    height: 180px;
  }

  .main-photo-container {
    height: 300px;
  }
}
/* --------------------------------------------------------------------------
   10. PAGE SPECIFIC: MEMBERSHIP (membership.html)
   -------------------------------------------------------------------------- */
.containerm {
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
}

.cardm {
  background: #ffffff;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}

.cardm h2 {
  font-size: 1.4rem;
  border-bottom: 2px solid #1b3823;
  padding-bottom: 8px;
  margin-bottom: 15px;
  color: #1b3823;
  text-transform: uppercase;
}

.facility-item {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  align-items: center;
}

.facility-item:last-child { 
  border-bottom: none; 
  margin-bottom: 0; 
  padding-bottom: 0; 
}

.facility-img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  background-color: #1b3823;
}

.facility-info h3 { 
  color: #1b3823; 
  margin-bottom: 5px; 
}

.benefits-list {
  list-style-type: square;
  padding-left: 20px;
  margin-top: 10px;
}

.benefits-list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.membership-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.action-cardm {
  background: #1b3823;
  color: #ffffff;
  padding: 25px;
  border-radius: 6px;
  text-align: center;
  position: sticky;
  top: 20px;
}

.action-cardm h2 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.btn-downloadm {
  display: inline-block;
  background-color: #8b0000;
  color: #ffffff;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 4px;
  margin-top: 15px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.btn-downloadm:hover {
  background-color: #a30000;
}

/* PDF Responsive Toggle */
.mobile-pdf-notice {
  display: none; /* Hidden on desktop */
  background: #f4f6f4;
  border: 1px solid #2c5e3b;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}

/* Desktop View (769px and above) */
@media (min-width: 769px) {
  .mobile-pdf-notice {
    display: none;
  }
  .desktop-pdf-only {
    display: block;
  }
}

/* Mobile View (768px and below) */
@media (max-width: 768px) {
  .mobile-pdf-notice {
    display: block; /* Shown on phones/tablets */
  }
  .desktop-pdf-only {
    display: none; /* Hide embed box on phones to prevent broken renders */
  }
}
/* ==========================================================================
   LIFETIME MEMBERSHIP & TABLE STYLES
   ========================================================================== */
.plaque-highlight {
  background: #fdf8e6;
  border-left: 5px solid #d4af37; /* Gold border accent */
  padding: 15px;
  border-radius: 4px;
  margin: 15px 0;
  color: #5c4000;
  font-size: 0.98rem;
}

.lifetime-table-container {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
}

.lifetime-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.95rem;
}

.lifetime-table th {
  position: sticky;
  top: 0;
  background: #2c5e3b;
  color: #ffffff;
  padding: 10px;
  font-weight: bold;
  z-index: 2;
}

.lifetime-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
}

.lifetime-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.lifetime-table tbody tr:hover {
  background-color: #f0f4f0;
}
/* --------------------------------------------------------------------------
   11. PAGE SPECIFIC: CONTACT US (contact.html)
   -------------------------------------------------------------------------- */
.containerc {
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.cardc {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  border: 1px solid #d3ccba;
}

.cardc h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #1b3823;
  padding-bottom: 8px;
  margin-bottom: 20px;
  color: #1b3823;
  text-transform: uppercase;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-weight: bold;
  font-size: 0.9rem;
  color: #1b3823;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1b3823;
  box-shadow: 0 0 5px rgba(27, 56, 35, 0.3);
}

.submit-btn {
  background-color: #1b3823;
  color: #ffffff;
  border: none;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 5px;
}

.submit-btn:hover {
  background-color: #8b0000;
}

.info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.4rem;
}

.info-item strong {
  color: #1b3823;
  display: block;
  margin-bottom: 3px;
}

.info-item a {
  color: #8b0000;
  text-decoration: none;
  font-weight: bold;
}

.info-item a:hover {
  text-decoration: underline;
}

.map-container {
  margin-top: 20px;
  border: 2px solid #1b3823;
  border-radius: 8px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
footer {
  background-color: #1b3823;
  color: #d1dcd0;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS (Media Queries)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header-left { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 10px; 
  }
  nav ul { 
    margin-top: 10px; 
  }
}

@media (max-width: 900px) {
  .container { grid-template-columns: 1fr; }
  .membership-grid { grid-template-columns: 1fr; }
  .facility-item { flex-direction: column; text-align: center; }
  .facility-img { width: 100%; height: 200px; } 
  .facility-card-full { grid-template-columns: 1fr; }
  .facility-slideshow { height: 220px; }
}

@media (max-width: 850px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .featured-event { grid-template-columns: 1fr; }
  .past-event-item { flex-direction: column; align-items: flex-start; }
  .past-event-thumb { width: 100%; height: 180px; }
}

@media (max-width: 768px) {
  /* On mobile, the logo/title block scrolls away normally; the nav
     bar becomes a full-width green ribbon (hamburger centered) that
     stays stuck to the top of the screen as you scroll. */
  #header-placeholder {
    position: static;
    min-height: 170px; /* Reserved header space on mobile */
  }

  .header-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  nav {
    width: 100%;
    background-color: #2c5e3b;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  /* Added via JS (resources/script.js) once the page has scrolled past
     the logo/title block, since position:sticky can't stay "stuck"
     indefinitely here (its container is only as tall as the header). */
  nav.nav-stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 600; /* Above page content, below modal overlays (z-index: 1000) */
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 12px;
    background-color: #142a1a;
    padding: 10px 0;
    border-radius: 6px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu a {
    display: block;
    padding: 10px 0;
    width: 100%;
  }

  .mobile-menu-toggle.open .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-menu-toggle.open .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.open .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

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