/* ============================================
   NRFOP - Palestinian Flag Inspired Theme
   v2.0 - Added categories, ticket price, nav improvements
   Colors:
     - Background: #0a0a0a (black)
     - Surface:    #1a1a1a
     - Card:       #141414
     - Card Hover: #222222
     - Primary:    #e31b23 (red)
     - Prim Hover: #ff2a33
     - Secondary:  #239e42 (green)
     - Sec Hover:  #28b84b
     - White:      #ffffff
     - Text Sec:   #cccccc
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url('/logo.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: 600px auto;
  opacity: 1;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.85);
  z-index: -1;
  pointer-events: none;
}

a {
  color: #e31b23;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #ff2a33;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Navbar --- */
.navbar {
  background-color: #000000;
  border-bottom: 1px solid #222222;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 42px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: #cccccc !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #ffffff !important;
  background-color: #222222;
}

.nav-link-active {
  color: #ffffff !important;
  background-color: #e31b23 !important;
}

.nav-link-active {
  color: #ffffff !important;
  background-color: #e31b23 !important;
}

.nav-link-admin {
  color: #239e42 !important;
}

.nav-link-logout {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: #cccccc !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-link-logout:hover {
  color: #e31b23 !important;
  background-color: #222222;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  flex: 1;
  width: 100%;
}

/* --- Footer --- */
.footer {
  background-color: #000000;
  border-top: 1px solid #222222;
  color: #535353;
  font-size: 0.85rem;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

/* --- Social Links --- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #282828;
  overflow: hidden;
  transition: all 0.2s;
}

.social-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(227, 27, 35, 0.4);
}

.social-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Admin social icons */
.social-links-admin {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-icons-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-icon-admin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.social-icon-admin .social-icon-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #333;
  transition: border-color 0.2s;
}

.social-icon-admin .social-icon-img:hover {
  border-color: #e31b23;
}

.social-input {
  display: none;
  width: 200px;
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
}

.social-input-wide {
  width: 280px;
}

.site-content-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #282828;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.site-content-icon:hover {
  border-color: #e31b23;
}

/* --- Post Grid --- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.post-card {
  display: flex;
  flex-direction: column;
  background-color: #141414;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit !important;
  border: 1px solid #222222;
}

.post-card:hover {
  background-color: #222222;
  transform: translateY(-4px);
  border-color: #e31b23;
}

.post-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.post-card-meta {
  display: block;
  color: #239e42;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
  font-weight: 500;
}

.post-card-location::before {
  content: "📍 ";
}

.post-card-description {
  color: #cccccc;
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.post-card-date {
  color: #535353;
  font-size: 0.8rem;
}

/* --- Full Post --- */
.post-full {
  max-width: 800px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  color: #cccccc !important;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.back-link:hover {
  color: #ffffff !important;
}

.post-full-image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid #222222;
}

.post-full-image img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background-color: #000000;
}

.post-full-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.post-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #cccccc;
  font-size: 1rem;
}

.post-detail strong {
  color: #ffffff;
}

.post-detail-icon {
  font-size: 1.2rem;
  width: 1.5rem;
  text-align: center;
}

.post-detail .btn {
  margin-left: auto;
}

.post-full-date {
  color: #535353;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.post-full-description {
  color: #dddddd;
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-full-description img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #222222;
  margin: 1rem 0;
  display: block;
}

.post-full-description h1,
.post-full-description h2,
.post-full-description h3,
.post-full-description h4 {
  color: #ffffff;
  margin: 1.5rem 0 0.75rem;
}

.post-full-description h1 { font-size: 1.8rem; }
.post-full-description h2 { font-size: 1.4rem; }
.post-full-description h3 { font-size: 1.2rem; }

.post-full-description p {
  margin-bottom: 1rem;
}

.post-full-description ul,
.post-full-description ol {
  margin: 0 0 1rem 1.5rem;
  color: #dddddd;
}

.post-full-description li {
  margin-bottom: 0.25rem;
}

.post-full-description blockquote {
  border-left: 3px solid #239e42;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  background-color: rgba(35, 158, 66, 0.05);
  border-radius: 0 4px 4px 0;
  color: #cccccc;
}

.post-full-description code {
  background-color: #1a1a1a;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9rem;
  color: #239e42;
}

.post-full-description pre {
  background-color: #1a1a1a;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid #222222;
}

.post-full-description a {
  color: #e31b23;
  text-decoration: underline;
}

.post-full-description a:hover {
  color: #ff2a33;
}

/* --- Description Toolbar (Admin Form) --- */
.description-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.description-toolbar .btn {
  flex-shrink: 0;
}

.desc-hint {
  color: #535353;
  font-size: 0.8rem;
  line-height: 1.4;
}

.desc-hint code {
  background-color: #1a1a1a;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.8rem;
  color: #239e42;
}

/* --- Comments Section --- */
.comments-section {
  max-width: 800px;
  margin: 3rem auto;
  padding-top: 2rem;
  border-top: 1px solid #222222;
}

.comments-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.comment-form {
  margin-bottom: 2rem;
}

.comment {
  background-color: #141414;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #222222;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.comment-header strong {
  color: #ffffff;
}

.comment-date {
  color: #535353;
  font-size: 0.8rem;
}

.comment-content {
  color: #dddddd;
  line-height: 1.6;
}

/* --- Contact / Form Pages --- */
.form-page {
  max-width: 600px;
  margin: 0 auto;
}

.form-page-centered {
  max-width: 400px;
}

.form-page h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.form-page > p {
  color: #cccccc;
  margin-bottom: 2rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-three {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.form-group small {
  color: #535353;
  font-size: 0.8rem;
}

.input,
.textarea {
  background-color: #222222;
  border: 1px solid #333333;
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: #e31b23;
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

.textarea-lg {
  min-height: 250px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background-color: #e31b23;
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: #ff2a33;
  transform: scale(1.02);
}

.btn-secondary {
  background-color: #222222;
  color: #ffffff !important;
}

.btn-secondary:hover {
  background-color: #333333;
}

.btn-danger {
  background-color: #e31b23;
  color: #ffffff !important;
}

.btn-danger:hover {
  background-color: #ff2a33;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

/* --- Alerts --- */
.alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.alert-error {
  background-color: rgba(227, 27, 35, 0.15);
  border: 1px solid #e31b23;
  color: #ff6b73;
}

.alert-success {
  background-color: rgba(35, 158, 66, 0.15);
  border: 1px solid #239e42;
  color: #239e42;
}

/* --- Section Headings --- */
.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: #ffffff;
  border-bottom: 2px solid #e31b23;
  padding-bottom: 0.5rem;
}

.section-heading-past {
  border-bottom-color: #535353;
  color: #cccccc;
}

.post-card-past {
  opacity: 0.7;
}

.post-card-past:hover {
  opacity: 1;
}

.inline-link {
  color: #e31b23;
  text-decoration: underline;
}

.inline-link:hover {
  color: #ff2a33;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  color: #535353;
  padding: 3rem 0;
  font-size: 1.1rem;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}

.pagination-btn {
  background-color: #222222;
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.pagination-btn:hover {
  background-color: #e31b23;
  color: #ffffff !important;
}

.pagination-info {
  color: #535353;
  font-size: 0.9rem;
}

/* --- Admin Styles --- */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header h1 {
  font-size: 1.8rem;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: #141414;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid #222222;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #e31b23;
}

.stat-label {
  color: #cccccc;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-section {
  margin-bottom: 2rem;
}

.admin-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #141414;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #222222;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #222222;
}

.admin-table th {
  background-color: #000000;
  color: #cccccc;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.admin-table tr:hover td {
  background-color: #222222;
}

.admin-table tr.unread td {
  border-left: 3px solid #239e42;
}

.actions-cell {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.msg-preview {
  color: #cccccc;
  font-size: 0.9rem;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-top: 1rem;
}

.inline-form {
  display: inline;
}

.current-image {
  margin-bottom: 0.5rem;
}

.current-image img {
  border-radius: 4px;
  border: 1px solid #222222;
}

/* --- About Page --- */
.about-page {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.about-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.about-page h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: #e31b23;
}

.about-page p {
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

/* --- Email Generator --- */
.email-generator-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #141414;
  border: 1px solid #222222;
  border-radius: 8px;
}

.email-generator-section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.email-generator-intro {
  color: #dddddd;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.gen-status {
  margin: 0.75rem 0;
  font-size: 0.9rem;
}

.gen-success {
  color: #239e42;
}

.gen-error {
  color: #e31b23;
}

.gen-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.gen-disclaimer {
  color: #535353;
  font-size: 0.8rem;
  font-style: italic;
}

/* --- Acknowledgment Popup --- */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.popup-modal {
  background-color: #141414;
  border: 1px solid #239e42;
  border-radius: 12px;
  max-width: 650px;
  width: 100%;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  box-shadow: 0 0 40px rgba(35, 158, 66, 0.2);
}

.popup-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: #cccccc;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}

.popup-close:hover {
  color: #e31b23;
}

.popup-title {
  color: #239e42;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.popup-content p {
  color: #dddddd;
  font-size: 1rem;
  line-height: 1.8;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-inner {
    padding: 0 0.75rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: #000000;
    border-bottom: 1px solid #222222;
    padding: 0.5rem 0;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    width: 100%;
  }

  .site-logo {
    height: 32px;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* ============================================
   BDS Page Styles
   ============================================ */

/* --- BDS Hero Banner --- */
.bds-hero {
  position: relative;
  width: 100%;
  min-height: 300px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bds-hero-overlay {
  background-color: rgba(10, 10, 10, 0.8);
  padding: 3rem 2rem;
  text-align: center;
  width: 100%;
}

.bds-hero-overlay h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.bds-hero-subtitle {
  color: #cccccc;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.bds-hero-sub {
  color: #535353;
  font-size: 1rem;
}

/* --- BDS Section --- */
.bds-section {
  margin-bottom: 2rem;
}

/* --- BDS Grid (5 columns) --- */
.bds-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  padding: 1rem 0;
}

/* --- BDS Card --- */
.bds-card {
  background-color: #141414;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #222222;
  display: flex;
  flex-direction: column;
}

.bds-card:hover {
  background-color: #222222;
  transform: translateY(-3px);
  border-color: #239e42;
}

.bds-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.bds-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bds-card:hover .bds-card-image img {
  transform: scale(1.05);
}

.bds-card-name {
  padding: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  line-height: 1.3;
}

/* --- BDS Card Dropdown --- */
.bds-card-dropdown {
  display: none;
  padding: 0 0.75rem 0.75rem;
  animation: bdsFadeIn 0.3s ease;
}

.bds-card-dropdown.open {
  display: block;
}

.bds-card-expanded {
  border-color: #239e42;
}

@keyframes bdsFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bds-card-description {
  color: #dddddd;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

/* --- Alternative Section --- */
.bds-alternative {
  border-top: 1px solid #239e42;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.bds-alternative-header {
  color: #239e42;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.bds-alt-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.bds-alt-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bds-alt-name {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* --- Clickable Location Links --- */
.post-card-location-link {
  text-decoration: none;
  cursor: pointer;
}

.post-card-location-link:hover {
  text-decoration: underline;
  color: #28b84b !important;
}

.location-link {
  color: #239e42;
  text-decoration: none;
}

.location-link:hover {
  color: #28b84b;
  text-decoration: underline;
}

/* --- BDS Grid Responsive --- */
@media (max-width: 1024px) {
  .bds-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .bds-hero {
    min-height: 200px;
  }

  .bds-hero-overlay h1 {
    font-size: 1.5rem;
  }

  .bds-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .bds-card-name {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .bds-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* --- Email Links (Admin Form) --- */
#email-links-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.email-link-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.email-link-row .input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.email-link-remove {
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.3rem 0.6rem;
  flex-shrink: 0;
}

/* --- Email Links (Public Page) --- */
.email-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.email-link-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

.email-link-btn .post-detail-icon {
  font-size: 1rem;
  width: auto;
}
