/* Events — modern listing & detail pages */

.event-hero {
  background: linear-gradient(135deg, #1a0a2e 0%, var(--webiste-primary-color, #1e407f) 50%, #0d4f4f 100%);
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-top: 120px !important;
}
.event-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 90% 10%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(13, 79, 79, 0.5) 0%, transparent 45%);
  pointer-events: none;
}
.event-hero .container {
  position: relative;
  z-index: 1;
}
.event-hero h1 {
  font-family: "Chakra Petch", "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: #fff !important;
}
.event-hero-lead {
  opacity: 0.9;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
.event-breadcrumb {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  opacity: 0.85;
  margin-bottom: 15px !important;
}
.event-breadcrumb a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}
.event-breadcrumb a:hover {
  text-decoration: underline;
}

.event-page {
  padding: 2.5rem 0 4.5rem;
  background: #f4f6f9;
}

.event-layout {
  display: grid;
  grid-template-columns: 1fr min(300px, 28%);
  gap: 28px;
  align-items: start;
}

.event-filters {
  margin-bottom: 1.75rem;
}
.event-filters-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 12px;
}
.event-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.event-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.event-pill:hover {
  border-color: var(--webiste-primary-color);
  color: var(--webiste-primary-color);
  box-shadow: 0 4px 14px rgba(30, 64, 127, 0.1);
}
.event-pill.is-active {
  background: var(--webiste-primary-color);
  border-color: var(--webiste-primary-color);
  color: #fff;
  box-shadow: 0 6px 20px rgba(30, 64, 127, 0.25);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e8eef4;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(30, 64, 127, 0.12);
  border-color: rgba(30, 64, 127, 0.15);
  color: inherit;
}
.event-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #1e293b;
  overflow: hidden;
}
.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.event-card:hover .event-card-media img {
  transform: scale(1.04);
}
.event-card-date {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
  min-width: 52px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  line-height: 1.1;
}
.event-card-date-day {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--webiste-primary-color);
  font-family: "Chakra Petch", sans-serif;
}
.event-card-date-month {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.event-card-cat {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  backdrop-filter: blur(4px);
}
.event-card-body {
  flex: 1;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}
.event-card-title {
  font-family: "Chakra Petch", "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.35;
  color: #0f172a !important;
}
.event-card-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}
.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--webiste-primary-color);
}
.event-card-footer i {
  font-size: 0.85rem;
  transition: transform 0.2s;
}
.event-card:hover .event-card-footer i {
  transform: translateX(4px);
}
.event-tag-past {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  margin-left: 8px;
  vertical-align: middle;
}

.event-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}
.event-pagination {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.event-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.event-sidebar-block {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8eef4;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.event-sidebar-head {
  padding: 16px 20px;
  background: linear-gradient(160deg, var(--webiste-primary-color) 0%, #0d4f4f 100%);
  color: #fff;
}
.event-sidebar-head h3 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff !important;
}
.event-cat-list {
  list-style: none;
  margin: 0;
  padding: 12px;
}
.event-cat-list li a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.event-cat-list li a:hover,
.event-cat-list li a.is-active {
  background: rgba(30, 64, 127, 0.08);
  color: var(--webiste-primary-color);
}

/* Detail page */
.event-detail-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  padding-top: 100px !important;
  padding-bottom: 0;
  overflow: hidden;
}
.event-detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1e293b;
}
.event-detail-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.55) 100%);
}
.event-detail-hero .container {
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
  width: 100%;
}
.event-detail-hero h1 {
  font-family: "Chakra Petch", "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin: 12px 0 0;
  line-height: 1.2;
  color: #fff !important;
  max-width: 800px;
}
.event-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}
.event-detail-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}
.event-detail-badge--date i {
  margin-right: 6px;
}
.event-detail-badge--past {
  background: rgba(100, 116, 139, 0.5);
}

.event-detail-wrap {
  background: #f4f6f9;
  padding: 2rem 0 4rem;
}
.event-detail-layout {
  display: grid;
  grid-template-columns: 1fr min(380px, 36%);
  gap: 32px;
  align-items: start;
}
.event-info-block {
  background: #fff;
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 20px;
  border: 1px solid #e8eef4;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.event-info-block h2 {
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
}
.event-info-text {
  color: #475569;
  line-height: 1.75;
  font-size: 0.95rem;
}
.event-info-text p {
  margin-bottom: 1rem;
}
.event-info-text p:last-child {
  margin-bottom: 0;
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.event-gallery-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8eef4;
  background: #e2e8f0;
}
.event-gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s;
}
.event-gallery-item a:hover {
  transform: scale(1.05);
}

.event-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
}
.event-share-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.event-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.event-share-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}
.event-share-links a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  color: #fff;
}
.event-share-links .facebookbg { background: #1877f2; }
.event-share-links .twitterbg { background: #1da1f2; }
.event-share-links .linkedinbg { background: #0a66c2; }
.event-share-links .whatsappbg { background: #25d366; }
.event-share-links .telegrambg { background: #0088cc; }
.event-share-links .emailbg { background: #64748b; }
.event-share-links .pinterestbg { background: #e60023; }

.event-booking-panel {
  position: sticky;
  top: 100px;
}
.event-booking-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e8eef4;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.event-booking-head {
  padding: 22px 24px;
  background: linear-gradient(160deg, var(--webiste-primary-color) 0%, #0d4f4f 100%);
  color: #fff;
}
.event-booking-head h3 {
  margin: 0 0 6px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff !important;
}
.event-booking-head p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}
.event-booking-body {
  padding: 24px;
}
.event-places-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.event-places-badge i {
  font-size: 1.1rem;
}
.event-places-badge--full {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.event-places-badge--past {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

.event-form-field {
  margin-bottom: 14px;
}
.event-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.event-form-label .req {
  color: #dc2626;
}
.event-form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.event-form-input:focus {
  outline: none;
  border-color: var(--webiste-primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 127, 0.12);
}
.event-form-textarea {
  min-height: 100px;
  resize: vertical;
}
.event-btn-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 12px;
  background: var(--webiste-primary-color);
  color: #fff;
  cursor: pointer;
  margin-top: 8px;
  font-family: "Montserrat", sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(30, 64, 127, 0.35);
  color: #fff;
}

.event-booking-success {
  text-align: center;
  padding: 20px 0;
}
.event-booking-success i {
  font-size: 2.5rem;
  color: #059669;
  margin-bottom: 12px;
}
.event-booking-success p {
  margin: 0;
  color: #065f46;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.5;
}

.event-related-block {
  margin-top: 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8eef4;
  overflow: hidden;
}
.event-related-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.event-related-item a {
  display: flex;
  gap: 12px;
  text-decoration: none;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s, background 0.2s;
}
.event-related-item a:hover {
  border-color: var(--webiste-primary-color);
  background: rgba(30, 64, 127, 0.04);
}
.event-related-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
  background-size: cover;
  background-position: center;
}
.event-related-body h4 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.event-related-body span {
  font-size: 0.75rem;
  color: #64748b;
}
.event-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--webiste-primary-color);
  text-decoration: none;
}
.event-back-link:hover {
  text-decoration: underline;
}

.event-apply-form .hp-field,
.event-booking-body .hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
.event-booking-body .alert {
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 0.875rem;
}

@media (max-width: 991px) {
  .event-layout,
  .event-detail-layout {
    grid-template-columns: 1fr;
  }
  .event-sidebar,
  .event-booking-panel {
    position: static;
  }
  .event-grid {
    grid-template-columns: 1fr;
  }
  .event-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 760px) {
  .event-hero,
  .event-detail-hero {
    padding-top: 70px !important;
  }
  .event-detail-hero {
    min-height: 280px;
  }
  .event-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .event-gallery {
    grid-template-columns: 1fr 1fr;
  }
}
