/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Main Events Section */
.events-section {
  position: relative;
  min-height: 100vh;
  padding: 1rem 2rem 1rem 2rem;
  /* Reduced bottom padding */
  background: #ffffff;
  max-width: 1700px;
  margin: 0 auto;
}

/* Background Decorative Elements */
.bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto 1.0rem auto;
  /* Reduced bottom margin */
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  padding: 2rem 0 1rem 0;
  /* Reduced bottom padding */
}

.hero-text {
  flex: 0 0 50%;
  text-align: left;
}

/* Right column to hold the description */
.hero-right {
  flex: 0 0 50%;
  display: flex;
  align-items: flex-start;
}

.subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  font-style: italic;
  color: #555;
  margin-bottom: 0rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.dot {
  color: #7a0000;
  font-size: 3rem;
  margin: 0 0.8rem;
  font-weight: bold;
  vertical-align: middle;
}

.main-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: #7a0000;
  margin-bottom: 0.8rem;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: none;
}

/* cap width so it doesn't push layout on small screens */
.accent-line {
  width: 650px;
  max-width: 100%;
  height: 3px;
  background: #C08A00;
  margin: 0 0 1.2rem 0;
  /* Slightly reduced bottom margin */
  border-radius: 2px;
}

.description {
  flex: 0 0 100%;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.8;
  font-weight: 400;
  text-align: left;
  max-width: 600px;
  margin-top: 2.5rem;
  /* Reduced top margin */
}

/* Cards Container */
.cards-container {
  position: relative;
  z-index: 1;
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  gap: 5rem;
  overflow-x: auto;
  padding: 1rem 0 2rem 0;
  /* Reduced top and bottom padding */
  scroll-behavior: smooth;
}

.cards-container::-webkit-scrollbar {
  display: none;
}

/* Event Cards */
.event-card {
  flex: 0 0 350px;
  background: #fdf2da;
  border-radius: 5px 5px 5px 5px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.event-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 2px solid rgb(255, 255, 255);
  border-radius: 5px 5px 5px 5px;
  /* Match the normal card border radius */
  pointer-events: none;
}

.event-card:hover {
  background: #7a0000;
  transform: translateY(-5px);
  border-radius: 50px 10px 10px 10px;
}

.event-card:hover::before {
  border-color: #C08A00;
  border-radius: 50px 10px 10px 10px;
  /* Reduce radius only on hover */
}

/* Featured Wedding Card */
/* .wedding-featured { background: #fdf2da; color: #333; transform: scale(1.05); }
.wedding-featured:hover { background: #7a0000; color: #fff; transform: scale(1.05) translateY(-5px); } */

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  position: relative;
  border: none;
}

/* Force remove any previous pseudo-element */
.card-header::after {
  content: none !important;
  display: none !important;
}

.card-header h3 {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #333;
  margin-bottom: -10px;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
}

.event-card:hover .card-header h3 {
  color: #fff;
}

.card-dot {
  width: 10px;
  height: 10px;
  background: #7a0000;
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: 0;
  transition: background 0.3s ease;
}

@media (max-width: 1024px) {
  .card-dot {
    width: 9px;
    height: 9px;
    top: 1px;
    right: 2px;
  }
}

@media (max-width: 768px) {
  .card-dot {
    width: 15px;
    height: 15px;
    top: 5px;
    right: 5px;
  }
}

@media (max-width: 480px) {
  .card-dot {
    width: 15px;
    height: 15px;
    top: 10px;
    right: 15px;
  }
}

.event-card:hover .card-dot {
  background: #d4a017;
}

/* Divider Line */
.card-line {
  height: 2px;
  background: #9a9a9a89;
  width: 100%;
  margin: 0rem 0 0rem 0;
  /* Add margin to separate from description */
  transition: background 0.3s ease;
}

.event-card:hover .card-line {
  background: #ffffff;
}

/* Card Description */
.card-description {
  font-size: 14px;
  line-height: 1.7;
  margin: 1.2rem 0 0 0;
  color: #555;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.event-card:hover .card-description {
  color: rgba(255, 255, 255, 0.95);
}

/* Card Image */
.card-image {
  position: relative;
  border-radius: 20px 0px 0 0;
  overflow: hidden;
  margin-top: 0px;
  margin-bottom: 0;
  height: 300px;
  flex-shrink: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card:hover .card-image img {
  transform: scale(1.05);
}

/* Event Book Now Button */
.event-book-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: rgba(0, 0, 0, 0);
  color: #010101;
  border: none;
  padding: 11px 42px 11px 19px;
  border-radius: 30px;
  /* extra right padding to house the circle */
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Circle carrier */
.event-book-btn::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: #ffffff;
  border-radius: 50%;
  border: none;
}

/* Arrow inside the circle (centered) */
/* ✅ Arrow Icon Only (without circle) */
.event-book-btn::before {
  content: '→';
  position: absolute;
  right: 15px;
  top: 45%;
  transform: translateY(-50%);
  color: #7a0000;
  font-size: 1rem;
  font-weight: 900;
  z-index: 2;
  transition: color 0.3s ease;
}

/* Hover Effect - Keep mostly static */
.event-book-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  /* Very subtle darken only */
  transform: none;
  /* No movement */
}

/* Static state on card hover */
.event-card:hover .event-book-btn {
  background: rgba(0, 0, 0, 0);
  /* Keep base background */
  color: #010101;
  /* Keep base color */
  border: 1px solid rgba(255, 255, 255, 0.25);
  /* Keep base border */
}

.event-card:hover .event-book-btn::after {
  background: #ffffff;
  border: none;
}

.event-card:hover .event-book-btn::before {
  color: #7a0000;
}

.event-card:hover .event-book-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #010101;
}

/* Bottom Accent Line - Progress Bar Track */
.bottom-line {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  /* Increased height for visibility of inner bar */
  background: #f0e0b0;
  /* Light gold/beige track color */
  border-radius: 2px;
  overflow: hidden;
  /* Click scroll indicator inside */
}

/* Scroll Indicator - Moving Bar */
.scroll-indicator {
  height: 100%;
  width: 0%;
  /* JS will update this */
  background: #C08A00;
  /* Dark gold active color */
  border-radius: 2px;
  transition: width 0.1s ease-out;
  /* Smooth transition */
}

/* ============ Tablet tweaks (<=1024px) ============ */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    gap: 2.5rem;
    text-align: left;
    /* Align content left */
    font-size: 0.8rem;
    /* Increase overall content size */
    padding-left: 2.5rem;
    /* Add left padding for visual left alignment */
    padding-right: 2.5rem;
  }

  .hero-text,
  .hero-right {
    flex: 1 1 100%;
    text-align: left;
    /* Ensure these are also left-aligned */
  }

  .hero-text {
    text-align: left;
    font-size: 20px;
    /* Slightly larger for emphasis */
  }

  .description {
    max-width: 800px;
    /* Slightly widened for bigger content */
    margin: -50px 0 0 0;
    text-align: left;
    font-size: 1.08em;
    /* Larger for readability */
  }

  .accent-line {
    width: min(700px, 96%);
    margin: 0 0 1.4rem 0;
    /* Align left visually */
  }

  .main-title {
    font-size: clamp(2.3rem, 5.2vw, 2.9rem);
    /* Larger title font */
    line-height: 1.18;
    text-align: left;
  }

  .subtitle {
    font-size: clamp(1.18rem, 2.7vw, 2rem);
    /* Larger subtitle font */
    text-align: left;
  }
}

/* ============ Mobile (<=768px) ============ */
@media (max-width: 768px) {
  .events-section {
    padding-top: 24px;
    padding-bottom: 24px;
    padding-left: 5px;
    padding-right: 5px;
    margin: 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .hero-content {
    gap: 1.75rem;
    padding: 1.5rem 0;
    flex-direction: column;
    text-align: left;
    /* Align all content to left */
    padding-left: 2.5rem;
    /* Padding to align with tablet view */
    padding-right: 2.5rem;
    margin-left: 0;
    /* Reset margin for full section control */
    margin-right: 0;
  }

  .hero-text {
    text-align: left !important;
    /* Ensure left alignment */
    font-size: 1.05em;
    margin: 0;
    /* Reset margins if any */
  }

  .accent-line {
    width: min(700px, 96%);
    margin: 0 0 0.1rem 0;
    /* Align line to the left */
  }

  .main-title {
    font-size: 1.8rem;
    text-align: left;
    line-height: 1.18;
    margin: 0 0 8px 0;
    /* Add bottom margin for spacing (optional) */
  }

  .subtitle {
    font-size: 1.5rem;
    text-align: left;
    margin: 0 0 -40px 0;
    /* Add bottom margin for spacing (optional) */
    padding: 10px 5px 20px 5px;
    /* Add padding: top, right, bottom, left */
  }

  .description {
    font-size: 0.8rem;
    max-width: 800px;
    padding-top: 0;
    text-align: left;
    margin: 0 0 0 0;
  }

  .cards-container {
    gap: 2rem;
    margin: 0;
    /* Remove default margin if present */
  }

  .event-card {
    flex: 0 0 320px;
    padding-top: 19.2px;
    padding-bottom: 19.2px;
    padding-left: 19.2px;
    padding-right: 19.2px;
    margin-bottom: 24px;
    /* Add spacing between cards on small screens */
  }

  /* .wedding-featured { transform: none; }
  .wedding-featured:hover, .event-card:hover { transform: translateY(-5px); } */
}

/* ============ Small Mobile (<=480px) ============ */
@media (max-width: 480px) {
  .hero-content {
    flex-direction: column;
    padding: 0 15px;
    gap: 1.2rem;
  }

  .main-title {
    font-size: 20px;
    text-align: left;
    line-height: 1.2;
    margin-bottom: 6px;
    word-break: break-word;
    font-weight: 400;
    /* Reduced font weight */
  }

  .subtitle {
    font-size: 22px;
    text-align: left;
    margin: 0 0 -10px 0;
    padding: 1px 2px 1px 2px;
  }

  .accent-line {
    width: 100%;
    margin: 0 0 0.08rem 0;
  }

  .description {
    font-size: 12px;
    padding: 0 2px;
    text-align: left;
    margin: 0 0 8px 0;
    line-height: 1.4;
    max-width: 100%;
    word-break: break-word;
  }

  .cards-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .event-card {
    flex: 1 1 96%;
    width: 98%;
    max-width: 350px;
    margin: 0 auto 18px auto;
    padding: 0.8rem 0.7rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px 0 rgba(212, 160, 23, 0.07);
  }

  .card-header h3 {
    font-size: 1.08rem;
    margin: 10px 20px 3px 10px;
    word-break: break-word;
  }

  .card-description {
    font-size: 0.80rem;
    margin: 10px 20px 12px 10px;
    line-height: 1.42;
    word-break: break-word;
  }

  .card-image {
    height: 200px;
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
  }

  .card-image img {
    width: 90%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }

  .event-book-btn {
    width: 50%;
    padding-top: 12px;
    padding-right: 22px;
    padding-bottom: 12px;
    padding-left: 10px;
    font-size: 1rem;
    border-radius: 8px;
    margin-top: 4px;
  }
}


.events-decorative-circle {
  position: absolute;
  top: 300px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: #FFF4D7;
  border-radius: 50%;
  z-index: 0;
  transform: translate(-40%, -18%);
  box-shadow: none;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
}

@media (max-width: 1024px) {
  .events-decorative-circle {
    top: 350px;
    left: -85px;
    width: 320px;
    height: 320px;
    transform: translate(-30%, -15%);
    opacity: 0.85;
  }
}

@media (max-width: 768px) {
  .events-decorative-circle {
    top: 350px;
    left: -65px;
    width: 300px;
    height: 300px;
    opacity: 0.75;
    transform: translate(-20%, -10%);
  }
}

@media (max-width: 480px) {
  .events-decorative-circle {
    top: 215px;
    left: -35px;
    width: 120px;
    height: 120px;
    opacity: 0.65;
    transform: translate(-10%, -7%);
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* WebKit scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #d4a017;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b8941f;
}

/* Entrance animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-card {
  animation: slideInUp 0.6s ease-out;
}

.event-card:nth-child(1) {
  animation-delay: 0.1s;
}

.event-card:nth-child(2) {
  animation-delay: 0.2s;
}

.event-card:nth-child(3) {
  animation-delay: 0.3s;
}

.event-card:nth-child(4) {
  animation-delay: 0.4s;
}