/* Database Queries are all served from database-queries.php in the controllers folder */

/* @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Winky+Rough:ital,wght@0,300..900;1,300..900&display=swap');
:root {
  /* Basic Colors */

  --black: #000;
  --white: #fff;
  --lightgray: #d3d3d3;
  --primary-gray-100: #f8f9fa;
  --primary-gray-200: #e9ecef;
  --primary-gray-300: #dee2e6;
  --primary-gray-400: #ced4da;
  --primary-gray-500: #adb5bd;
  --primary-gray-600: #6c757d;
  --primary-gray-700: #495057;
  --primary-gray-800: #343a40;
  --primary-gray-900: #212529;
  --darkgray: #464027ff;
  --form-background-color: #f5eeee;
  /* Prime Colors, Warnings, Success, etc */
  --primary-color1: rgb(17, 5, 4);
  --primary-color2: #2a3857;
  --primary-color3: #3c66a1;
  --primary-color4: #1f477e;
  --primary-color5: #d81f26;
  --primary-color6: #3ab14e;
  --primary-color7: #5c5c56ff;
  --primary-color8: #f7d600;
  --primary-color9: #4682b4;
  --info-alert-color: rgba(13, 202, 240, 0.5);
  --alert-primary: #0d6efd;
  --alert-secondary: #6c757d;
  --alert-success: #198754;
  --alert-danger: #dc3545;
  --alert-warning: #ffc107;
  --alert-light: #f8f9fa;
  --alert-dark: #212529-;
  /* Club membership Cards */
  --bg: #f0f4f8;
  --primary: #0055aa;
  --accent: #ffffffcc;
  --blur-bg: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  /* Pagination Colors */
  --paginations-background-color: transparent;
  --paginations-hover-color: #0e4ead;
  --paginations-active-color: #0d6efd;
  --dashed-solid-border-color: var(--primary-color1);
  --header-background-color: #0d6efd;
  /* Default Font Variables */
  --base-font-color-dark: #333333;
  --base-font-color-light: #fff;
  --base-p-font-size: 16px;
  --forecast-font-scale: 0.85rem; /* Adjust this to scale all forecast font sizes */
  /* ==========  NavBar Variables  ========== */
  --navbar-dropdown-menu-bg-color: rgba(0, 0, 0, 0.8);

  /*  button variables */
  --primary-colorb: linear-gradient(135deg, #5181b6, #446b95);
  --secondary-colorb: linear-gradient(135deg, #adb5bd, #6c757d);
  --info-color: linear-gradient(135deg, #17c0eb, #0984e3);
  --action-color: linear-gradient(135deg, #00b894, #00cec9);
  --warning-color: linear-gradient(135deg, #b57b60, #8a4a38);

  --btn-text-color: #fff;
  --btn-radius: 999px;
  --btn-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  /* Box Styling */
  --standard-border-black: 1px solid #000;
  --standard-border-gray: 1px solid #ccc;

  --secondary-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --standard-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --focus-box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Bootstrap-style focus ring */
  --dark-box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
  --dark-box-shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.2);
  --primary-text-shadow: 1px 1px 2px rgba(48, 48, 49, 0.4);

  --standard-border-radius-small: 10px;
  --standard-border-radius-medium: 15px;
  --standard-border-radius-large: 20px;

  --overlay-color: rgba(0, 0, 0, 0.9);
  --spinner-border-color: 4px solid rgba(255, 255, 255, 0.3);
  --primary-color: #007bff;
  --bg-light: #f9f9f9;
  --text-dark: #333;
  --text-muted: #666;
  --dropdown-bg: #f2f2f2;

  --border-radius: 12px;
}

/* ==========  Global Resets  ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  position: relative;
  font-optical-sizing: auto;
  line-height: 1.5;
  /* font-family: 'Winky Rough', sans-serif; */
  font-family: 'Roboto', sans-serif;
  height: 100%;
  width: 100%;

  /* background-color: var(--bg); */
}
@media (max-width: 768px) {
  html {
    font-size: 14px; /* Smaller font for smaller screens */
  }
}
#clock {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
#clock::before {
  content: 'Current Time: ';
  font-weight: 400;
  color: var(--text-muted);
}
.header-data-b {
  color: var(--primary-color5);
  font-style: italic;
}
a {
  text-decoration: none;
  color: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}
hr {
  margin: 1.2rem auto;
  width: 80%;
  opacity: 0.5;
}
.nested-list ul {
  list-style-type: circle;
  padding-left: 20px;
}

/* Global Input Styling Individual Page can overwright */
input,
textarea,
select {
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
  height: auto;
}

main {
  flex: 1;
}

.my-container {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin: 0 auto;
  flex: 1;
}
#cookie-banner {
  position: absolute;
  display: none;
  top: 0;
  width: 100%;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 1rem;
  color: #fff;
}
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.password-toggle-wrapper {
  position: relative;
}

.toggle-password-field {
  padding-right: 2.5rem; /* space for the icon */
}

.toggle-password-icon {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
  font-size: 1.2rem;
  z-index: 2;
}

/* Main content area that grows to fill space */
.main-content {
  flex-grow: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
@media (min-width: 576px) {
  .my-container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .my-container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .my-container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .my-container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .my-container {
    max-width: 1320px;
  }
}
textarea {
  field-sizing: content;
}
#message {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}
/* Make the checkbox bigger */
.form-check-input {
  width: 1.5em;
  height: 1.5em;
  border: 2px solid #333;
  background-color: #fff;
  cursor: pointer;
  margin-right: 10px;
  transition: all 0.2s ease;
}

/* When checked, change the background */
.form-check-input:checked {
  background-color: #4a7c59; /* a visible green tone */
  border-color: #4a7c59;
}

/* Optional: Add a subtle shadow on hover */
.form-check-input:hover {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Improve label spacing and alignment */
.form-check-label {
  font-size: 1.1em;
  font-weight: 500;
  color: #222;
  vertical-align: middle;
}

.button-flex-container {
  display: flex;
  /* flex-direction: column; */
  justify-content: flex-end;
  gap: 2.5rem;
  align-items: center;
  margin: 1rem 0;
}
.button-flex-container .contact-button {
  padding: 10px 12px;
}
.small-text {
  display: flex;
  flex-direction: column;
  font-weight: 400;
  /* text-align: end; */
  margin: 15px 0 7px 0;
  transition: all 0.3s ease-in-out;
}
.small-text small a:hover {
  transform: scale(1.05);
}

.chart-section {
  display: flex;

  gap: 2rem;
  padding: 2rem;
  background: var(--bg-light, #f9f9f9);
}

.chart-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
  width: 100%;
  overflow-x: auto;
}

.chart-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.chart-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  text-align: center;
}

/* Responsive Improvements */
.chart-card canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
}

@media (max-width: 768px) {
  .chart-section {
    flex-direction: column;
    padding: 1rem;
    gap: 1.5rem;
  }

  .chart-card {
    padding: 1rem;
  }

  .chart-card h3 {
    font-size: 1.1rem;
  }
}

/* Popup modals popups-forms.php */
#textarea4 {
  min-height: 150px;
}
@media (max-width: 768px) {
  .button-flex-container {
    flex-direction: column;
    align-items: center;
  }
  .button-flex-container button {
    margin-top: 10px;
  }
}
/* =================  Modal Styling ================ */

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  color: var(--base-font-color-dark);
  pointer-events: auto;
  background-clip: padding-box;
  background-color: var(--bg);
  /* background: linear-gradient(
    to bottom,
    rgb(0, 0, 0) 0%,
    rgba(81, 129, 182, 0.8) 30%,
    rgba(81, 129, 182, 0.6) 50%,
    rgba(81, 129, 182, 0.2) 100%
  ); */
  border: 3px solid var(--base-font-color-dark);
  background-color: var(--base-font-color-light);
  border-radius: var(--standard-border-radius-medium);
  outline: 0;
}
.modal-content {
  color: var(--base-font-color-dark);
}
.pw-reset {
  color: var(--base-font-color-dark);
}
/*===================== BUTTONS =====================*/
.primary-button,
.secondary-button,
.info-button,
.action-button,
.warning-button {
  display: inline-block;
  max-height: fit-content;
  padding: 0.6rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--btn-text-color);
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  /* background-size: 200% auto; */
  box-shadow: var(--btn-shadow);
  transition: all 0.3s ease-in-out;
}

/* Unique background gradients */
.primary-button {
  background-image: var(--primary-colorb);
}
.secondary-button {
  background-image: var(--secondary-colorb);
}
.info-button {
  background-image: var(--info-color);
}
.action-button {
  background-image: var(--action-color);
}
.warning-button {
  background-image: var(--warning-color);
}
/* Hover animations */
.primary-button:hover,
.secondary-button:hover,
.info-button:hover,
.action-button:hover,
.warning-button:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* Active state (click) */
.primary-button:active,
.secondary-button:active,
.info-button:active,
.action-button:active,
.warning-button:active {
  transform: scale(0.98);
}
/* ============= Iframe Responsiveness   ================= */
.responsive-iframe {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio (divide 9 by 16 = 0.5625) */
  height: 0;
  overflow: hidden;
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/*===================== LOADING OVERLAY =====================*/
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.loading-overlay .loading-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--form-background-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--standard-box-shadow);
  text-align: center;
}

.loading-overlay .spinner {
  border: var(--primary-color3);
  border-radius: 50%;
  border-top: 4px solid var(--primary-color4);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*===================== MESSAGE CONTAINERS =====================*/
/* Wrapper only renders when PHP adds .is-active */
.toast-modal {
  display: none;
}

.toast-modal.is-active {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 9000;
  padding: 16px;
  /* Optional subtle dim (no blur). Remove if you don't want any backdrop. */
  background: rgba(0, 0, 0, 0.25);
}

/* Card */
.toast-card {
  position: relative;
  width: min(420px, 90vw);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
  padding: 36px 20px;
  text-align: center;
  animation: dropIn 0.35s ease both;
}

.toast-card.success {
  --accent: #4caf50;
  --accent-dark: #2e7d32;
}
.toast-card.danger {
  --accent: #e53935;
  --accent-dark: #b71c1c;
}
.toast-card.info {
  --accent: #2196f3;
  --accent-dark: #1565c0;
}
.toast-card.warning {
  --accent: #fb8c00;
  --accent-dark: #e65100;
}

.toast-title {
  font-size: 1.4rem;
  margin: 20px 0 6px;
  color: #333;
  font-weight: 600;
}

.toast-msg {
  text-align: left;
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: #555;
}

/* Green badge that overlaps the top edge */
.toast-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* Close (×) in the corner */
.toast-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 18px;
  line-height: 34px;
  cursor: pointer;
  color: #777;
}

.toast-close:hover {
  background: #f2f2f2;
}

/* OK button */
.toast-action {
  display: inline-block;
  width: 100%;
  max-width: 280px;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 25px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.toast-action:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.toast-action:active {
  transform: translateY(0);
}

/* Progress bar (auto-dismiss) */
.toast-progress {
  position: absolute;
  left: 75px;
  right: 75px;
  bottom: 10px;
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.toast-progress::after {
  content: '';
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: progressVar linear forwards;
  /* duration set via inline style by JS from data-dismiss-ms */
}

/* Exit animation */
.toast-exit {
  animation: popOut 0.22s ease forwards;
}

/* Keyframes */
@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popOut {
  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

@keyframes progressVar {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}
/* ==========  Navigation bar  ========== */
.nav-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  padding: 1rem 2rem;
  background-color: rgb(0, 0, 0);
  color: var(--base-font-color-light);
  z-index: 1000;
}

.logo {
  position: relative;
  z-index: 200;
}
.logo-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.logo-text h5 {
  transition: all 0.2s ease-in-out;
}
.logo-text h5:hover {
  background-position: right center;
  transform: translateY(-2px);
  text-shadow: 0 6px 16px rgb(10, 250, 2);
}
.logo-text p {
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
}
.logo-text h5 {
  margin: 0;
  padding: 0;

  font-size: 1.6rem;
}
.logo-text h6 {
  margin: 0;
  padding: 0;
  font-size: 1rem;
}

.logo-ama-text {
  margin: 0;
  padding: 0;
  font-size: 20px;
}
#nav-bar-menu {
  display: flex;
  margin: auto 0;
  list-style: none;
  gap: 1rem;
  z-index: 10;
  padding: 0;
  margin: 0;
}

#nav-bar-menu li {
  position: relative;
}
/* #nav-bar-menu {
  margin-left: 15px;
} */
#nav-bar-menu a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 1rem;
  z-index: 10;
  display: block;
  padding: 6px 0;
  transition: color 0.3s ease;
}
#nav-bar-menu a:hover {
  color: var(--primary-color5);
}

.dropdown-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--dropdown-bg);
  min-width: 180px;
  z-index: 9999;
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  color: var(--text-dark);
}

.dropdown.open .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  color: var(--text-dark);
  display: block;
  padding: 5px 10px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  z-index: 9999;
}

.menu-toggle i {
  font-size: 2rem;
  color: var(--text-light);
}

@media (max-width: 978px) {
  #nav-bar-menu {
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
  }

  #nav-bar-menu.active {
    transform: scaleY(1);
    opacity: 1;
  }

  .dropdown-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    position: relative;
    background: var(--dropdown-bg);
    box-shadow: none;
    padding: 0 0 0 1rem;
    pointer-events: none;
  }

  .dropdown.open .dropdown-content {
    max-height: 1000px;
    /* big enough to reveal all links */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    /* padding: 10px 1rem; */
    /* Add padding back when open */
  }

  #nav-bar-menu li {
    padding-left: 10px;
  }

  .menu-toggle {
    display: block;
  }
}

.hero-section {
  position: relative;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
}
@media (min-width: 2000px) {
  .hero-section {
    min-height: 575px;
  }
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(0, 0, 0) 0%,
    rgba(20, 5, 4, 0.2) 5%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
}
.hero-section .hero-text {
  position: relative;
  z-index: 10;
  margin-top: 2.7rem;
}
.hero-text h1 {
  font-size: 3rem;
  margin: 0;
}
.hero-text h5 {
  font-size: 1.2rem;
  margin: 0;
}

.hero-text h1,
.hero-text h5 {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  animation: fadeInUp 0.2s ease-out;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-text img {
  max-width: 50px;
  margin-right: 1.2rem;
  margin-bottom: 1rem;
}
.hero-section h2 {
  font-size: 1.5rem;
  margin: 0;
}
/*===================== PAGINATION =====================*/

.pagination-custom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.pagination-custom button {
  border: none;
  padding: 10px 15px;
  margin: 5px 1px;
  cursor: pointer;
  border-radius: 5px;
  background-color: var(--paginations-background-color);
  color: var(--primary-text-color);
  transition: background 0.3s;
}

.pagination-custom button:hover {
  background-color: var(--paginations-hover-color);
}

.pagination-custom button.active {
  background-color: var(--paginations-active-color);
  color: var(--base-font-color-light);
}

.hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
/* ================= club member contact list =================== */
.contact-list-table td,
.contact-list-table th {
  vertical-align: middle;
  text-align: center;
}

.contact-list-table a {
  text-decoration: none;
  color: var(--primary-link, #0056b3);
}

.contact-list-table a:hover {
  text-decoration: underline;
}
/*===================== ADINS PDF & IMAGE UPLOAD DRAG AND DROP AREAS =====================*/
.drop-area {
  border: 2px dashed var(--dashed-solid-border-color, #aaa);
  background-color: #fafafa;
  padding: 20px;
  min-height: 150px;
  text-align: center;
  cursor: pointer;
  margin-top: 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.drop-area.highlight {
  background-color: #eef7ff;
  border-color: var(--primary-colorb, #007bff);
}

/* === Drop Area Message === */
.drop-area p {
  margin: 0;
  font-size: 16px;
  color: var(--dashed-solid-border-color, #777);
}

/* === File List (for PDF or attachment names) === */
.file-list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.file-list li {
  padding: 4px 8px;
  background-color: #f1f1f1;
  margin-bottom: 4px;
  border-radius: 4px;
  word-break: break-word;
}

/* === Image Preview Thumbnails === */
#image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding: 0;
}

#image-previews img.preview-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#for-sale-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding: 0;
}

#for-sale-previews img.preview-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.for-sale-text-area textarea {
  min-height: 150px;
}
#pdfForm input[type='file'],
#imageForm input[type='file'] {
  opacity: 0;
  position: absolute;
  width: 1px;
  height: 1px;
}
/* ========== Club Membership Page  ========= */
.membership-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  /* ensure consistent height */
  gap: 0;
  /* remove gap to avoid spacing around divider */
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  padding: 0;
  box-shadow: var(--standard-box-shadow);
}
.paypal-button-membership {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}
.membership-card {
  flex: 1 1 25%;
  min-width: auto;
  padding: 1.5rem;
  text-align: center;
  background-color: #fff;
  border-radius: 8px;
}

.badge {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  background: var(--primary, #2a5d84);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  display: inline-block;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary, #2a5d84);
  margin-bottom: 1rem;
}

.price span {
  font-size: 1rem;
  color: #555;
  font-weight: 400;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.features li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.features li::before {
  content: '✓';
  color: var(--primary, #2a5d84);
  font-weight: bold;
  margin-right: 0.5rem;
  position: absolute;
  left: 0;
}

.divider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
}

.divider::before {
  content: '';
  display: block;
  width: 2px;
  height: 80%;
  background-color: var(--primary-gray-600);
}

@media (max-width: 768px) {
  .membership-cards {
    flex-direction: column;
  }

  .divider {
    width: 80%;
    height: 2px;
    background-color: #999;
    margin: 1rem auto;
  }
}

.membership-instructions {
  margin-top: 2rem;
}
/* ==========  Club Officers========== */
.officer-container {
  max-width: 950px;
  margin: 2.5rem auto;
}
.heading-center {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.75rem;
}
.club-officers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.officer-photo-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.officer-photo-block img {
  max-width: 800px;

  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.officer-ul {
  list-style: none;
  border-left: 2px solid var(--primary-gray-600, #ccc);
  border-bottom-left-radius: 12px;
  border-top-left-radius: 12px;
}

.officer-li {
  padding: 5px 0;
  margin-bottom: 1.5rem;
}

.contact-details {
  text-wrap: balance;
  margin-top: 0.5rem;
  margin-left: 1rem;
  list-style: none;
  padding-left: 0;
  font-size: 0.95rem;
}

.contact-details a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .club-officers {
    grid-template-columns: 1fr;
  }

  .officer-list {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }
}

/* ==========  Hero background images for switch statement in variables  ========== */
.winter-bg {
  background-image: url('../images/banner-images/winter/snow_flying8.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: contrast(150%);
}
.spring-bg {
  background-image: url('../images/banner-images/spring/mountain.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: contrast(150%);
}
.julyfourth-bg {
  background-image: url('../images/banner-images/summer/4th-of-julyresized.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: contrast(150%);
}
.summer-bg {
  background-image: url('../images/banner-images/summer/IMG_3037cloudless.jpg');
  background-position: bottom 65% right 70%;
  background-repeat: no-repeat;
  background-size: cover;
  filter: contrast(150%);
}
.fall-bg {
  background-image: url('../images/banner-images/fall/fall02.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: contrast(160%);
}
.default-bg {
  background-image: url('../images/banner-images/summer/IMG_3037cloudless.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: contrast(130%);
}

/* ==========  Landing Page (Index.php)  ========== */
/* Wrapper and width and centering for index page */
.layout-wrapper {
  max-width: 1400px;
  margin: auto;
  padding: 1rem;
}
/* Top Section styles */
.top-section-wrapper {
  width: 100%;
  /* max-width: 1250px; */
  margin: auto;
}

.sign-up-section,
.meeting-section {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.sign-up-image,
.meeting-image {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  margin: auto;
}
.sign-up-image img,
.meeting-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.benefits-list p {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}
/* adds checkmark before list in signup section */
.benefits-list p::before {
  content: '✓';
  color: #007bff;
}
.sign-up-text,
.meeting-text {
  text-align: center;
  margin-bottom: 1rem;
  width: 100%;
}
.meeting-title {
  margin-bottom: 1rem;
}
.meeting-date {
  margin-bottom: 1rem;
}

.sign-up-text h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.sign-up-text h3 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 1rem;
}
/* Hides H2 header in non mobile view */
.hidden-sign-up {
  display: none;
}

/* Bottom section index.php */
.main-page-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  gap: 1rem; /* Optional: adds spacing between columns */
  margin: 15px auto;
  padding: 0 1rem;
  width: 100%;
}
.main-page-content .fria-content {
  margin-top: 15px;
  /* Allows wrapping on smaller screens */
}
.main-page-content .fria-content h5 {
  margin: 7px 0;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 768px) {
  .sign-up-content-wrapper,
  .meeting-section {
    flex-direction: column;
  }

  .sign-up-content-wrapper {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .sign-up-section {
    flex-direction: column;
    align-items: center;
  }
  .meeting-section {
    flex-direction: column;
    flex-direction: column-reverse;
    align-items: center;
  }

  .sign-up-section img,
  .meeting-section img {
    margin: 20px;
  }
  .hidden-sign-up {
    display: block;
    text-align: center;
    font-size: 32px;
    margin: 0;
    padding: 0;
  }
  .hidden-mobile-sign-up {
    display: None;
  }
}
/*====== Requirements page ============== */
/* ama style */
.ama-section {
  padding: 3rem 1rem;
  font-family: system-ui, sans-serif;
}

.ama-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ama-section h2 {
  font-size: 2rem;
  color: var(--bs-nav-tabs-link-active-bg);
  margin-bottom: 1rem;
}

.ama-section h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--bs-nav-tabs-link-active-bg);
}

.ama-section p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ama-benefits {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.ama-benefits li {
  margin-bottom: 0.75rem;
  padding-left: 1.2em;
  position: relative;
}

.ama-benefits li::before {
  content: '✓';
  color: #3e6b4b;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.ama-cta {
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: bold;
}

.ama-cta a {
  color: #3e6b4b;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease-in-out;
}

.ama-cta a:hover {
  border-color: #3e6b4b;
}

@media (max-width: 600px) {
  .ama-container {
    padding: 1.5rem;
  }

  .ama-section h2 {
    font-size: 1.5rem;
  }

  .ama-section h3 {
    font-size: 1.25rem;
  }
}
/* === IMAGES === */
.ama-logo img,
.remote-id-content img {
  max-width: 180px;
  height: auto;
  margin: 1rem 0;
}
/* faa styles */
.faa-section {
  padding: 3rem 1rem;
  font-family: system-ui, sans-serif;
}

.faa-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faa-section h2 {
  font-size: 2rem;
  color: var(--bs-nav-tabs-link-active-bg);
  margin-bottom: 1rem;
}

.faa-section h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--bs-nav-tabs-link-active-bg);
}

.faa-section p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.faa-benefits {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.faa-benefits li {
  margin-bottom: 0.75rem;
  padding-left: 1.2em;
  position: relative;
}

.faa-benefits li::before {
  content: '✓';
  color: #2b4b66;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.faa-cta {
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: bold;
}

.faa-cta a {
  color: #2b4b66;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease-in-out;
}

.faa-cta a:hover {
  border-color: #2b4b66;
}

@media (max-width: 600px) {
  .faa-container {
    padding: 1.5rem;
  }

  .faa-section h2 {
    font-size: 1.5rem;
  }

  .faa-section h3 {
    font-size: 1.25rem;
  }
}

/* trust styles */
.trust-section {
  padding: 3rem 1rem;
  font-family: system-ui, sans-serif;
}

.trust-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.trust-section h2 {
  font-size: 2rem;
  color: var(--bs-nav-tabs-link-active-bg);
  margin-bottom: 1rem;
}

.trust-section h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--bs-nav-tabs-link-active-bg);
}

.trust-section p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.trust-benefits {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.trust-benefits li {
  margin-bottom: 0.75rem;
  padding-left: 1.2em;
  position: relative;
}

.trust-benefits li::before {
  content: '✓';
  color: #4b3c25;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.trust-cta {
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: bold;
}

.trust-cta a {
  color: #4b3c25;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease-in-out;
}

.trust-cta a:hover {
  border-color: #4b3c25;
}

@media (max-width: 600px) {
  .trust-container {
    padding: 1.5rem;
  }

  .trust-section h2 {
    font-size: 1.5rem;
  }

  .trust-section h3 {
    font-size: 1.25rem;
  }
}
/* Membership Header Styles  */

.membership-header {
  padding: 3rem 1rem 2rem;
  font-family: system-ui, sans-serif;
  color: #333;
  text-align: center;
}

.membership-container {
  max-width: 800px;
  margin: 0 auto;
}

.membership-header h1 {
  font-size: 2.25rem;
  color: var(--bs-nav-tabs-link-active-bg);
  margin-bottom: 1rem;
}

.membership-header p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.membership-header ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.membership-header ul li {
  margin: 0.5rem 0;
  position: relative;
  padding-left: 1.2em;
  text-align: left;
}

.membership-header ul li::before {
  content: '✓';
  color: #3e5c40;
  position: absolute;
  left: 0;
  font-weight: bold;
}

@media (max-width: 600px) {
  .membership-header h1 {
    font-size: 1.75rem;
  }

  .membership-header p {
    font-size: 1rem;
  }
}

/* ================== new weather widget ================== */

/* Layout Containers */
.forecast-flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6rem;
  margin-bottom: 2.5rem;
}

.forecast-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0 3.2rem;
  max-width: 700px;
}

.forecast-row:last-child {
  border-bottom: none;
}

/* Forecast Card */
.forecast-header {
  border-radius: 15px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.forecast-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.forecast-header h2 {
  text-align: center;
  font-size: calc(var(--forecast-font-scale) * 1.7);
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Field Status Section */
.field-status-header {
  font-size: calc(var(--forecast-font-scale) * 2.1);
  text-align: center;
  margin-top: 1.5rem;
  padding: 1.8rem 0;
}

.field-status-header i {
  color: var(--primary-color5);
  margin-right: 1rem;
}

/* Text Styling */
.temp-high,
.temp-low {
  font-weight: bold;
  font-size: calc(var(--forecast-font-scale) * 1.5);
}

.temp-high {
  color: var(--primary-color5);
}

.temp-low {
  color: var(--primary-color9);
}

.forecast-day {
  display: flex;
  flex-direction: column;
  font-size: calc(var(--forecast-font-scale) * 1.2);
  font-weight: 600;
  text-align: start;
  color: var(--text-dark);
}

.forecast-day-date,
.forecast-temp,
.forecast-description,
.forecast-humidity,
.forecast-wind,
.forecast-precip,
.sunrise,
.sunset {
  font-size: calc(var(--forecast-font-scale) * 1);
  margin-bottom: 0.5rem;
}

.forecast-day-date {
  font-weight: bold;
}

.forecast-temp {
  margin-left: 1rem;
}

.forecast-precip {
  display: flex;
  flex-direction: column;
}

.full-forecast {
  display: block;
  text-align: center;
  color: red;
  font-size: calc(var(--forecast-font-scale) * 0.9);
  margin-bottom: 1rem;
}

/* Icons & Images */
.forecast-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Field Status & Schedule */
.field-status {
  text-align: center;
  margin-bottom: 0.5rem;
}

.field-status .status-indicator {
  font-weight: bold;
}

.field-status-open {
  color: var(--primary-color6);
}

.field-status-closed {
  color: var(--primary-color5);
}

.field-hours {
  text-align: center;
}

.summer-schedule h5:first-of-type {
  color: orangered;
  font-size: calc(var(--forecast-font-scale) * 1.6);
}

.summer-schedule p {
  color: orangered;
  font-size: calc(var(--forecast-font-scale) * 1.2);
}

/* Responsive */
@media (max-width: 868px) {
  .forecast-header {
    font-size: 60%;
  }
}

/*=============== Youtube and pdf page loyout ================== */
.youtube-panels .video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.iframe-buttons {
  display: flex;
  justify-content: flex-end;
}
.youtube-panels .video-grid > div {
  flex: 1 1 400px;
  /* max-width: 400px; */
}

.responsive-iframe {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* =================  User Feedback ====================== */
.feedback-page {
  background: var(--primary-gray-100);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: auto;
}

.feedback-page textarea {
  resize: vertical;
  height: 150px;
}

.feedback-page input,
.feedback-page textarea,
.feedback-page select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid var(--primary-gray-300);
}

.feedback-page-submit {
  display: flex;
  justify-content: space-between;
}

.feedback-page-submit {
  display: flex;
  justify-content: space-between;
}
/*===================== GALLERY PAGES =====================*/

.gallery-container {
  flex-grow: 1;
  padding: 2rem;
}
#galleryImages {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Each image card */
.gallery-item {
  flex: 1 1 260px; /* ✅ flexible item size */
  max-width: 320px; /* ✅ limit stretch */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease;
  text-align: center;
}
.gallery-item:hover {
  transform: translateY(-5px);
}

/* Image styling */
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid #eee;
}
.pagination-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.pagination-button {
  background: #eee;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.pagination-button.active,
.pagination-button:hover {
  background: var(--primary-color3);
  color: #fff;
}
.pagination-controls[style*='display: none'] {
  visibility: hidden;
  height: 0;
}
/* Description under image */
.caption {
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  color: #333;
  background-color: #f8f8f8;
  line-height: 1.4;
}
/* Suggestion User */
.suggestion-section {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color, #ccc);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary-color, #333);
  margin-bottom: 1rem;
}

.section-title .highlight {
  color: var(--accent-color, #7e6249);
  font-style: italic;
}

.intro-text {
  font-size: 1rem;
  color: var(--text-color, #555);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--base-font-color-dark, #333);
}

.styled-textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  min-height: 250px;
  resize: vertical;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--input-bg, #fff);
  color: var(--text-color, #333);
}

.styled-textarea:focus {
  outline: none;
  border-color: var(--accent-color, #7e6249);
  box-shadow: 0 0 0 2px rgba(126, 98, 73, 0.2);
}

.button-group {
  display: flex;
  gap: 1rem;
}
.button-group-suggestion {
  display: flex;

  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}
/* ==========  Admin admin-dashboard.php  ========== */
.bi-trash3 {
  color: var(--primary-color5);
}
#imageForm ul,
#pdfForm ul {
  min-height: 260px;
}

.nav-item {
  border: 1px solid black;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom: none;
  margin: 5px;
  box-shadow: 0 -4px 6px -2px rgba(0, 0, 0, 0.3),
    4px 0 6px -2px rgba(0, 0, 0, 0.3), -4px 0 6px -2px rgba(0, 0, 0, 0.3);
}
.tab-pane {
  display: none;
}

.tab-pane.show {
  display: block;
  /* flex-grow: 1; */
}
.nav-tabs-container {
  display: flex;
  margin: 0 auto;
  max-width: 75%;
}
.nav-tabs {
  padding-bottom: 10px;
  --bs-nav-tabs-link-active-color: var(--lightgray);
  --bs-nav-tabs-link-active-bg: #1f477e;
}

.nav-tabs .nav-item a {
  color: var(--base-font-color-dark);
}

/* .nav-tabs .nav-item:active {
  color: var(red);
  box-shadow: 0 -4px 6px 0 rgba(0, 0, 0, 0.4), 4px 0 6px 0 rgba(0, 0, 0, 0.4),
    -4px 0 6px 0 rgba(0, 0, 0, 0.4);
} */
.admin-table {
  position: relative;
  margin: 40px 0;
  padding: 15px;
  border: var(--standard-border-gray);
  border-radius: var(--standard-border-radius-medium);
}
.admin-table p {
  font-size: 1.1rem;
  color: var(--primary-color5);
  font-style: italic;
}
.admin-table .gallery {
  background: none;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
  /* overflow: scroll; */
}
.lg-form-container {
  margin: 0 auto;
  max-width: 1800px;
  padding: 0 20px;
}
.lg-form-container .table-overflow {
  overflow-x: auto;
  white-space: nowrap;
  user-select: none; /* Prevents text selection during dragging */
}
.admin-table .gallery img {
  object-fit: cover;
  width: 100%;
  height: auto;
}
.admin-table table {
  border-collapse: collapse;
  background: transparent;
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.admin-table table thead {
  height: fit-content;
  text-align: center;
  text-wrap: auto;
  padding: 7px 2px;
  color: var(--base-font-color-light);
  background: var(--primary-color3);
  border-radius: var(--standard-border-radius-medium);
}

.admin-table table thead tr th {
  height: fit-content;
  padding: 5px;
}
.admin-announcement-textarea textarea {
  min-height: 200px;
}
.admin-table table td {
  padding: 10px;
  text-align: center;
}

.admin-table table td button {
  margin: 0 auto;
}
.admin-table tbody {
  margin-top: 25px;
}

.admin-table tbody tr:hover {
  color: var(--primary-color7);
  background-color: var(--lightgray);
}
/* =============  Field Announcements  ============== */

.announcement-wrapper {
  background-color: var(--bg-light);
  border: 1px solid #ccc;
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.announce-title {
  font-size: 1.8rem;
  color: var(--primary-color5);
  text-align: center;
  margin-bottom: 1rem;
}

.announce-body {
  display: flex;
  text-align: left;
  justify-content: space-evenly;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  gap: 35px;
}

.announce-section {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  /* white-space: pre-wrap; */
}
.announce-section p {
  margin: 0;
  padding: 0;
}
.announce-attachments {
  border-top: 1px dashed var(--primary-color4);
  padding-top: 1rem;
  margin-top: 1rem;
}

.attachment-group {
  margin-bottom: 1rem;
}

.attachment-image {
  max-width: 250px;
  height: auto;
  border-radius: 10px;
  margin-top: 0.5rem;
  display: block;
}

.doc-list {
  list-style: none;
  padding-left: 0;
}

.doc-item {
  margin-bottom: 0.5rem;
}

.doc-item::before {
  content: '📎 ';
}

.doc-item.pdf a {
  color: #b22222;
}
.doc-item.word a {
  color: #2a5699;
}
.doc-item.excel a {
  color: #1c8a26;
}
.doc-item.generic a {
  color: #555;
}

.external-link {
  text-align: center;
  margin-top: 1.5rem;
}

.announce-footer {
  text-align: right;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--primary-color5);
}

/* ==========  For-sale.php  ========== */
.sale-no-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}
.post-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 2rem;
}

.sale-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--standard-box-shadow);
  transition: transform 0.3s ease-in-out;
  position: relative;
}

.sale-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.sale-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}

.sale-details {
  padding: 15px;
}

.sale-details .modal-header {
  background-color: var(--primary-color6);
  color: white;
  width: 100%;
}
.sale-details .modal-body {
  background-color: var(--form-background-color);
  color: var(--base-font-color-dark);
  padding: 18px;
  width: 100%;
  text-align: center;
}
.sale-details .modal-body h5 {
  margin-bottom: 5px;
}

.sale-description {
  font-size: 14px;
  color: #555;
  height: 60px;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul li a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

.sidebar ul li a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .sidebar {
    margin-top: 20px;
  }
}

/* =================== FAQ.PHP ===================== */

.content-section {
  padding: 20px;
}
.content-section h3 {
  margin: 15px 0;
}
.faq-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px;
}
.faq-item h6 {
  margin-bottom: 5px;
  color: var(--text-dark);
}
.faq-item img {
  width: 100%;
  max-width: 100px;
  height: auto;
  border-radius: 8px;
  display: block;
  padding: 7px;
}

/* =========  field-info.php ======== */
.field-banner {
  background: var(--info-alert-color);

  color: white;
  text-align: center;
  padding: 1.5rem 0;
  min-height: 3.5rem;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;

  color: var(--base-font-color-dark);
  z-index: 1;
}
.fire-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.resource-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 20px;
}
.resource-container a {
  color: var(--primary-color7);
}
.resource-container a:hover {
  color: var(--primary-color5);
}
/* dynamic MainPage  */
.record {
  padding: 10px;
  margin-bottom: 15px;
}

.record h2 {
  text-align: center;
}

.record img {
  max-width: 200px;
  height: auto;
  border-radius: var(--standard-border-radius-medium);
  box-shadow: var(--standard-box-shadow);
  padding: 10px;
  float: left;
}
/* user-rofile.php */
.user-profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin: 0 auto;
  max-width: 800px;
}

/* Avatar styling */
.profile-avatar img {
  max-width: 100px;
  border-radius: 50%;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}
.image-float-right {
  float: right;
  margin-left: 15px;
}
.image-float-left {
  float: left;
  margin-left: 15px;
}
/* Avatar gallery */
.avatar-selection {
  width: 100%;
  margin: 0 auto;
}
.avatar-gallery-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.avatar-gallery img {
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.avatar-gallery img:hover {
  transform: scale(1.1);
}
.opt-in {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}
/* Form elements styling */
.form-floating input,
.form-control {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  margin-top: 5px;
  width: 100%;
}

label {
  font-weight: bold;
}

/* Avatar gallery visibility toggle */
#avatarLibrary {
  display: none;
}

.avatar-gallery-container.show {
  display: flex;
}

/* Title styling */
/* user profile */
.card-title {
  font-weight: 600;
  font-size: 1.2rem;
  color: #333;
  text-align: center;
  margin-top: 10px;
}

.member-application-table tbody {
  font-size: 13px;
}
/* Style for even rows */
.member-application-table tbody tr:nth-child(even) {
  background-color: var(--base-font-color-light); /* Light gray for even rows */
}

/* Style for odd rows */
.member-application-table tbody tr:nth-child(odd) {
  background-color: var(--lightgray); /* Lighter gray for odd rows */
  color: var(--base-font-color-dark);
}

.member-data-table {
  border-collapse: collapse;
  overflow: auto;
  box-shadow: var(--standard-box-shadow);
}
.member-data-table th {
  padding: 10px;
  font-size: 15px;
}
.member-data-table td {
  font-size: 14px;
}
.members-data-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.members-data-container .card {
  min-height: 150px;
  border-radius: var(--standard-border-radius-medium);
}
.members-data-container .card h5 {
  border-bottom: 1px solid var(--primary-color1);

  padding: 10px 0 15px 0;
  text-align: center;
  font-size: 18px;
  color: var(--base-font-color-dark);
}
.members-data-container .card h2 {
  padding: 5px 0;
}
.avatar-gallery-container label {
  text-align: center;
}

.nested-list ul li::before {
  content: '•';
  margin-right: 7px;
  /* list-style-type: circle; */
}

.mailer-container aside {
  display: flex;
  flex-direction: column;
  margin-top: 25px;
}

.mailer-container aside h4 {
  font-size: 22px;
  font-weight: 500;
  text-align: center;
}

.mailer-container section h4 {
  font-size: 18px;
  text-align: center;
}

.mailer-header {
  font-weight: bold;
  font-size: 24px;
  margin: 20px 0;
  text-align: center;
}
/* Main page Event/Breaking News Container */
.event-container {
  /* background-color: rgba(70, 130, 180, 0.5);
  border-radius: var(--standard-border-radius-medium); */
  color: var(--base-font-color-dark);
  padding: 20px;
}

.event {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 10px;
}
.event-container h3 {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}
.event .event-image {
  max-width: 250px;
  height: auto;
  border-radius: var(--standard-border-radius-medium);
  box-shadow: var(--standard-box-shadow);
}
.event-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  text-align: center;
}
.banner-container {
  display: flex;
  width: 100%;
  background-color: var(--info-alert-color);
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid var(--darkgray);
  border-bottom-left-radius: var(--standard-border-radius-medium);
  border-bottom-right-radius: var(--standard-border-radius-medium);
  box-shadow: var(--standard-box-shadow);
}

.banner-container h5 {
  text-align: center;
}
@media (max-width: 768px) {
  .small-screen {
    display: block;
  }
  .event {
    flex-direction: column;
    align-items: center;
  }
  .event .event-image {
    display: none;
  }
  .event-content {
    margin-left: 0;
  }
}

@media (max-width: 968px) {
  .mailer-container aside,
  .mailer-container section {
    width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .mailer-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .mailer-container aside,
  .mailer-container section {
    width: 100%;
  }
}
/* about-the-site.php */
.about-site-container {
  max-width: 900px;
  padding: 3rem 1.5rem;
  margin: auto;
  color: #333;
  line-height: 1.6;
  min-height: fit-content;
  padding: 4rem 0;
}

.about-site-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #5c4634;
  width: fit-content;
}

.about-site-section h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #7e6249;
}

.about-site-section ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.about-site-section li {
  margin-bottom: 0.5rem;
}

.about-site-section p {
  margin-top: 1rem;
  font-size: 1.05rem;
}

/*==========  Footer  =========*/
footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color1);
  color: var(--base-font-color-light);
  padding: 20px;
  text-align: center;
  margin-top: auto;
  min-height: 10rem;
}
