/* ===============================
   Global
=============================== */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #f3f4f2;
  color: #1f2933;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  font-family: "Arial Black", Impact, sans-serif;
  letter-spacing: 0.5px;
}

.container,
.section {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
}
/* ===============================
   Slideshow Caption Overlay
=============================== */
.slide-wrapper {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.slide-wrapper.active {
  opacity: 1;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0)
  );
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

/* ===============================
   Brand Logo
=============================== */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}


.brand-logo {
  width: 170px;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.brand-logo {
  background: radial-gradient(circle at center, #556b2f 0%, transparent 70%);
  padding: 6px;
  border-radius: 50%;
}


.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* Mobile tweak */
@media (max-width: 768px) {
  .brand-logo {
    width: 142px;
    height: 142px;
  }

  .brand-name {
    font-size: 1.1rem;
  }
}



/* ===============================
   Mobile Baseline
=============================== */
* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

/* ===============================
   Header / Nav (Sportsmen Style)
=============================== */
.range-header {
  background: linear-gradient(
    to bottom,
    #1f2321,
    #1b1e1c
  );
  border-bottom: 3px solid #556b2f;
  box-shadow: 0 6px 14px rgba(0,0,0,0.45);
  position: sticky;
  top: 0;
  z-index: 1000;
}


.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 14px 20px;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: #9ca3af;
  text-transform: uppercase;
}


.range-nav a {
  margin-left: 18px;
  font-weight: 600;
  color: #e5e7eb;
  padding: 8px 12px;
  border-radius: 4px;
}

.range-nav a:hover {
  background: #2d322f;
}

.nav-cta {
  background: #8b0000;
  color: #fff !important;
}

.nav-cta:hover {
  background: #a00000;
}

.nav-admin {
  border: 1px solid #556b2f;
}
.range-nav a {
  transition: background 0.2s ease, transform 0.15s ease;
}

.range-nav a:hover {
  background: #2d322f;
  transform: translateY(-1px);
}

/* ===============================
   Mobile Navigation
=============================== */
.nav-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .range-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1b1e1c;
    margin-top: 12px;
  }

  .range-nav a {
    padding: 14px;
    border-top: 1px solid #2d322f;
  }

  .range-nav.open {
    display: flex;
  }
}

/* ===============================
   Hero Section
=============================== */
.hero {
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("../images/range-bg.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 110px 20px;
}

.hero h2 {
  font-size: 2.6rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: auto;
}
/* ===============================
   Slideshow (Fit Inside Box)
=============================== */
.slideshow-section {
  background: #000;
  padding: 30px 0;
}

.slideshow {
  position: relative;
  max-width: 1000px;
  height: 420px;
  margin: auto;
  background: #000;
  overflow: hidden;
  border-radius: 6px;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}


/* Controls */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 14px 18px;
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
}

.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }

.slide-btn:hover {
  background: rgba(0,0,0,0.85);
}

/* ===============================
   Lightbox
=============================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .slideshow {
    height: 260px;
  }
}



/* ===============================
   Sections
=============================== */
.section {
  background: #f3f4f2;
}

.section.alt {
  background: #ffffff;
  border-top: 1px solid #d1d5db;
  border-bottom: 1px solid #d1d5db;
}

.section ul {
  list-style: square;
  padding-left: 20px;
}

/* ===============================
   Raffle Ticket Button
=============================== */
.raffle-btn {
  background: linear-gradient(135deg, #8b0000, #a00000);
  font-size: 1.1rem;
  padding: 14px 28px;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.raffle-btn:hover {
  background: linear-gradient(135deg, #a00000, #c1121f);
  transform: translateY(-2px);
}

/* ===============================
   Buttons
=============================== */
.btn {
  display: inline-block;
  margin-top: 18px;
  background: #556b2f;
  color: #fff;
  padding: 12px 22px;
  font-weight: 700;
  border-radius: 4px;
}

.btn:hover {
  background: #6b8e23;
}

.btn.secondary {
  background: #1f2933;
}
/* ===============================
   Tickets Section
=============================== */
.tickets-section {
  text-align: center;
}

.ticket-event {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
}

.ticket-warning {
  margin-top: 15px;
  color: #8b0000;
  font-weight: 700;
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 30px auto;
}

.ticket-card {
  background: #ffffff;
  border: 2px solid #d1d5db;
  padding: 22px;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.ticket-card h3 {
  margin-bottom: 10px;
}

.ticket-card .price {
  font-size: 1.4rem;
  font-weight: 900;
  color: #556b2f;
}

.ticket-card.highlight {
  border-color: #556b2f;
  background: #f6f7f5;
}

.ticket-actions {
  margin-top: 30px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.ticket-form {
  margin-top: 40px;
}

.ticket-card label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
}

.ticket-card input[type="number"] {
  width: 100%;
  margin-top: 6px;
}
/* ===============================
   Ticket Form Polish
=============================== */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.ticket-total {
  margin: 30px auto 10px;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

.ticket-total strong {
  color: #8b0000;
  font-size: 1.4rem;
  margin-left: 10px;
}

/* ===============================
   Forms
=============================== */
.form {
  max-width: 520px;
  margin: auto;
}

.form label {
  display: block;
  margin-bottom: 16px;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #9ca3af;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .form {
    padding: 0 10px;
  }

  .form input,
  .form select,
  .form textarea {
    font-size: 16px; /* prevents iOS zoom */
  }
}


/* ===============================
   Admin Table
=============================== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th {
  background: #1b1e1c;
  color: #fff;
  padding: 10px;
  text-align: left;
}

.admin-table td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.badge-new {
  background: #fde68a;
  padding: 4px 8px;
  border-radius: 999px;
}

.badge-done {
  background: #86efac;
  padding: 4px 8px;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table th,
  .admin-table td,
  .admin-table tr {
    display: block;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tr {
    margin-bottom: 16px;
    border: 1px solid #d1d5db;
    padding: 10px;
    background: #fff;
  }

  .admin-table td {
    padding: 6px 0;
  }
}
/* ===============================
   Admin Dashboard (Polished)
=============================== */
.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.dash-card {
  background: linear-gradient(180deg, #ffffff, #f5f6f4);
  border: 2px solid #d1d5db;
  padding: 18px 14px;
  text-align: center;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dash-card strong {
  display: block;
  font-size: 1.4rem;
  margin-top: 6px;
  color: #1b1e1c;
}

.dash-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.dash-card.highlight {
  border-color: #556b2f;
  background: linear-gradient(180deg, #f8faf5, #eef2ea);
}

/* ===============================
   Admin Action Buttons
=============================== */
.admin-actions {
  display: flex;
  gap: 14px;
  margin: 20px 0 30px;
  flex-wrap: wrap;
}

.admin-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Mobile */
@media (max-width: 600px) {
  .admin-actions {
    flex-direction: column;
  }
}

/* ===============================
   Slideshow Drag UI
=============================== */
.admin-table tr[draggable="true"] {
  cursor: grab;
}

.admin-table tr[draggable="true"]:hover {
  background: #f8faf5;
}

/* ===============================
   Status Badges
=============================== */
.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.new {
  background: #fff7ed;
  color: #b45309;
  border: 1px solid #f59e0b;
}

.status-badge.paid {
  background: #ecfdf5;
  color: #15803d;
  border: 1px solid #22c55e;
}

.status-badge.completed {
  background: #e5e7eb;
  color: #374151;
  border: 1px solid #9ca3af;
}

/* ===============================
   Admin Row Status
=============================== */
.status-new {
  background: #fffbea;
}

.status-paid {
  background: #ecfdf5;
}

.status-completed {
  background: #e5e7eb;
}

.status-new td:first-child::before {
  content: "● ";
  color: #ca8a04;
}

.status-paid td:first-child::before {
  content: "● ";
  color: #16a34a;
}

.status-completed td:first-child::before {
  content: "● ";
  color: #6b7280;
}

/* ===============================
   Admin Notes
=============================== */
.admin-table textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #9ca3af;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.admin-table textarea:focus {
  outline: none;
  border-color: #556b2f;
  box-shadow: 0 0 0 2px rgba(85,107,47,0.25);
}

/* ===============================
   Admin Filters
=============================== */
.admin-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-filters a {
  padding: 6px 14px;
  border-radius: 999px;
  background: #e5e7eb;
  font-weight: 700;
  font-size: 0.8rem;
  color: #1b1e1c;
}

.admin-filters a.active {
  background: #556b2f;
  color: #fff;
}

.admin-filters a:hover {
  background: #6b8e23;
  color: #fff;
}


/* ===============================
   Admin Action Buttons
=============================== */
.mini-btn {
  margin-top: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #556b2f, #6b8e23);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.1s ease;
}

.mini-btn:hover {
  transform: translateY(-1px);
}

.mini-btn.secondary {
  background: linear-gradient(135deg, #1f2933, #374151);
}

/* ===============================
   Admin Contact Links
=============================== */
.admin-table a {
  color: #1b1e1c;
  font-weight: 600;
}

.admin-table a:hover {
  color: #556b2f;
  text-decoration: underline;
}

/* ===============================
   Export Button
=============================== */
.btn.secondary {
  background: linear-gradient(135deg, #1f2933, #374151);
  border-radius: 6px;
}

.btn.secondary:hover {
  background: linear-gradient(135deg, #374151, #4b5563);
}

/* ===============================
   Success Overlay
=============================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.overlay.active {
  display: flex;
}

.overlay-box {
  background: #ffffff;
  max-width: 520px;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.overlay-box h2 {
  margin-top: 0;
}

.overlay-box p {
  margin: 14px 0;
}

/* ===============================
   Footer
=============================== */
.site-footer {
  background: #1b1e1c;
  color: #9ca3af;
  text-align: center;
  padding: 18px;
  font-size: 0.9rem;
}
