/* =========================================================
   PORTFOLIO COMPONENT STYLES & MODAL OVERLAY
   ========================================================= */
.events-section {
  padding: 80px 0;
  background: #FFFFFF;
}

.events-header {
  text-align: center;
  margin-bottom: 40px;
}

.events-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 5px;
  color: var(--gold, #D99A00);
  font-weight: 600;
  margin-bottom: 0px;
  text-transform: uppercase;
}

.events-title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text, #222222);
  margin-bottom: 8px;
}

.events-title em {
  color: var(--gold, #D99A00);
  font-style: normal;
}

.events-sub {
  font-size: 0.9rem;
  color: var(--muted, #777777);
}

.slider-viewport-wrapper {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.slider-scroll-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 4px;
  scrollbar-width: none;
}

.slider-scroll-container::-webkit-scrollbar {
  display: none;
}

/* ===== PORTFOLIO CARD (80% IMAGE / 20% TEXT RATIO & VISIBLE TEXT) ===== */
.event-item-card {
  flex: 0 0 320px;
  height: 350px; /* Fixed height container to strictly enforce 80/20 proportion */
  background: var(--card, #FFFFFF);
  border: 1px solid var(--border, #E5E5E0);
  border-radius: 0; /* Square edges as requested */
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.event-item-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold, #D99A00);
  box-shadow: 0 16px 32px rgba(217, 154, 0, 0.15);
}

.event-card-thumbnail {
  flex: 0 0 80%; /* Exactly 80% height for the image */
  height: auto !important;
  background-size: cover;
  background-position: center;
  position: relative;
}

.event-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: var(--gold-light, #FFE08A);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 0;
  text-transform: uppercase;
}

.event-card-details {
  flex: 0 0 20%; /* Exactly 20% height for the text area */
  padding: 10px 16px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 1;
  visibility: visible;
}

.event-card-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222222;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  visibility: visible;
}

.event-card-details p {
  font-size: 0.78rem;
  color: #777777;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  visibility: visible;
}

/* Slider Navigation Buttons */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--gold, #D99A00);
  color: var(--gold, #D99A00);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.slider-nav-btn:hover {
  background: var(--gold, #D99A00);
  color: #000000;
}

.btn-prev {
  left: -10px;
}

.btn-next {
  right: -10px;
}

/* ===== EVENT POPUP MODAL OVERLAY STYLES (UNTOUCHED) ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  background: rgba(10, 10, 10, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--card, #FFFFFF);
  border: 1px solid var(--border, #E5E5E0);
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.modal-card::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, Edge */
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: background 0.2s;
}

.modal-close:hover {
  background: #FFFFFF;
}

.modal-imgs {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #000;
}

.modal-img-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.modal-img-track .mimg {
  min-width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
}

.modal-img-prev,
.modal-img-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-img-prev:hover,
.modal-img-next:hover {
  background: rgba(0, 0, 0, 0.85);
}

.modal-img-prev {
  left: 12px;
}

.modal-img-next {
  right: 12px;
}

.modal-img-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.modal-img-dots .mdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.modal-img-dots .mdot.active {
  background: var(--gold, #D99A00);
}

.modal-body {
  padding: 28px;
}

.modal-badge {
  display: inline-block;
  background: var(--gold, #D99A00);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.modal-title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 2rem;
  color: var(--text, #222);
  margin-bottom: 4px;
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--muted, #777);
  margin-bottom: 16px;
}

.modal-desc {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 20px;
}

.modal-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted, #777);
}

.meta-icon {
  font-size: 1rem;
}

.modal-testimonial {
  background: rgba(250, 201, 88, 0.08);
  border-left: 3px solid var(--gold, #D99A00);
  padding: 20px;
  border-radius: 0 12px 12px 0;
}

.quote-mark {
  font-size: 3rem;
  color: var(--gold, #D99A00);
  line-height: 0.5;
  margin-bottom: 8px;
}

.quote-text {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #222222;
  margin-bottom: 12px;
}

.quote-author {
  font-size: 0.82rem;
  color: var(--gold, #D99A00);
  font-weight: 600;
}

/* ===== RESPONSIVE TWEAKS (MOBILE OPTIMIZED) ===== */
@media (max-width: 768px) {
  .events-section {
    padding: 36px 0;
  }

  .events-header {
    margin-bottom: 20px;
  }

  .slider-viewport-wrapper {
    padding: 0 12px;
  }

  .slider-scroll-container {
    gap: 10px;
    padding: 10px 4px;
  }

  .event-item-card {
    flex: 0 0 210px;
    height: 250px;
    border-radius: 12px;
  }

  .event-card-thumbnail {
    flex: 0 0 80%;
    height: auto !important;
  }

  .event-card-details {
    flex: 0 0 20%;
    padding: 8px 10px;
  }

  .event-card-details h4 {
    font-size: 0.8rem;
    margin-bottom: 1px;
  }

  .event-card-details p {
    font-size: 0.68rem;
  }

  .slider-nav-btn {
    display: none;
  }

  .modal-overlay {
    padding: 10px;
  }

  .modal-card {
    max-height: 82vh;
  }

  .modal-imgs,
  .modal-img-track .mimg {
    height: 210px;
  }

  .modal-body {
    padding: 12px 14px;
  }

  .modal-badge {
    font-size: 0.58rem;
    padding: 2px 8px;
    margin-bottom: 6px;
  }

  .modal-title {
    font-size: 1.35rem;
    margin-bottom: 2px;
  }

  .modal-sub {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }

  .modal-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .modal-meta {
    gap: 14px;
    margin-bottom: 10px;
  }

  .meta-item {
    font-size: 0.75rem;
    gap: 5px;
  }

  .modal-testimonial {
    padding: 10px 12px;
  }

  .quote-mark {
    font-size: 1.6rem;
    margin-bottom: 2px;
  }

  .quote-text {
    font-size: 0.76rem;
    line-height: 1.4;
    margin-bottom: 6px;
  }

  .quote-author {
    font-size: 0.7rem;
  }
}