/* ============================================================
   events_new.css — Events & Exhibitions Page Styles
   Design ref: home-new & about-us-new
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- Variables ---- */
:root {
  --ev-brand:       #186B6D;
  --ev-brand-light: #e8f5f5;
  --ev-brand-dark:  #114d4f;
  --ev-fg:          #111827;
  --ev-fg-muted:    #6b7280;
  --ev-border:      #e5e7eb;
  --ev-bg:          #ffffff;
  --ev-bg-subtle:   #f9fafb;
  --ev-radius:      16px;
  --ev-shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --ev-shadow-md:   0 8px 30px rgba(0,0,0,0.08);
  --ev-t:           0.3s cubic-bezier(0.4,0,0.2,1);
}

* { box-sizing: border-box; }

/* ============================================================
   SHARED & UTILS
   ============================================================ */
.ev-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.ev-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ev-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================================================
   EVENTS LISTING PAGE (view_event_new)
   ============================================================ */
/* Hero */
.ev-hero {
  background: linear-gradient(135deg, #0f4c4e 0%, #186b6d 60%, #1a8080 100%);
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.ev-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.ev-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  margin-bottom: 22px;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(4px);
}
.ev-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6ee7b7;
  animation: ev-pulse 1.8s ease-in-out infinite;
}
@keyframes ev-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.5; transform:scale(1.3); }
}
.ev-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  max-width: 900px;
}
.ev-hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 700px;
}

/* Grid */
.ev-list-section {
  padding: 80px 0;
  background: var(--ev-bg-subtle);
}
.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}
.ev-card {
  background: var(--ev-bg);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  overflow: hidden;
  transition: all var(--ev-t);
  display: flex;
  flex-direction: column;
}
.ev-card:hover {
  box-shadow: var(--ev-shadow-md);
  transform: translateY(-4px);
  border-color: rgba(24,107,109,0.2);
}

/* Card Image */
.ev-card-image {
  position: relative;
  height: 220px;
  background: #eef2f6;
  overflow: hidden;
}
.ev-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ev-card:hover .ev-card-image img {
  transform: scale(1.05);
}
.ev-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 20px; font-weight: 700; color: #9ca3af;
  background: #f3f4f6;
}
.ev-date-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 60px;
}
.ev-date-day {
  font-family: 'Inter', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--ev-brand);
  line-height: 1;
}
.ev-date-my {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600; color: var(--ev-fg-muted);
  text-transform: uppercase; margin-top: 4px; letter-spacing: 0.5px;
}

/* Card Content */
.ev-card-content {
  padding: 24px;
  flex: 1;
  display: flex; flex-direction: column;
}
.ev-meta {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px;
}
.ev-meta-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: var(--ev-fg-muted);
}
.ev-meta-item svg { color: var(--ev-brand); }
.ev-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px; font-weight: 700; color: var(--ev-fg);
  line-height: 1.35; margin-bottom: 12px;
}
.ev-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.ev-title a:hover { color: var(--ev-brand); }
.ev-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px; color: var(--ev-fg-muted);
  line-height: 1.6; margin-bottom: 24px; flex: 1;
}
.ev-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--ev-brand); text-decoration: none;
  margin-top: auto; transition: gap 0.2s;
}
.ev-card:hover .ev-read-more { gap: 10px; }

/* Empty State */
.ev-empty-state {
  text-align: center; padding: 64px 24px;
}
.ev-empty-icon {
  width: 72px; height: 72px; background: var(--ev-brand-light); color: var(--ev-brand);
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.ev-empty-state h3 {
  font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 700; color: var(--ev-fg); margin-bottom: 10px;
}
.ev-empty-state p {
  font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ev-fg-muted);
}

/* Pagination */
.ev-pagination {
  margin-top: 56px; text-align: center;
}
.ev-pagination ul {
  display: inline-flex; gap: 6px; padding: 0; margin: 0; list-style: none;
}
.ev-pagination li a, .ev-pagination li span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  background: var(--ev-bg); border: 1px solid var(--ev-border); color: var(--ev-fg);
  transition: all 0.2s; text-decoration: none;
}
.ev-pagination li a:hover { background: var(--ev-bg-subtle); border-color: #d1d5db; }
.ev-pagination li.active span {
  background: var(--ev-brand); color: #fff; border-color: var(--ev-brand);
}

/* ============================================================
   EVENT DETAILS PAGE (view_event_detail_new)
   ============================================================ */
/* Detail Hero */
.ev-detail-hero {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #0f4c4e 0%, #186b6d 60%, #1a8080 100%);
  display: flex; align-items: flex-end;
}
.ev-detail-hero-inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%;
}
.ev-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.8); font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  text-decoration: none; margin-bottom: 24px; transition: color 0.2s;
}
.ev-back-link:hover { color: #fff; }
.ev-hero-badges {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.ev-date-pill, .ev-location-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; padding: 6px 14px; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  backdrop-filter: blur(4px);
}
.ev-detail-hero h1 {
  font-family: 'Inter', sans-serif; font-size: clamp(32px, 4vw, 48px);
  font-weight: 800; color: #fff; line-height: 1.2; letter-spacing: -0.5px;
  max-width: 900px; margin: 0;
}

/* Content Layout */
.ev-detail-content {
  padding: 80px 0; background: var(--ev-bg);
}
.ev-detail-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 64px;
}

/* Banner Image inside content */
.ev-content-banner {
  margin-bottom: 40px;
}
.ev-content-banner img {
  width: 100%; height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: block;
}

/* Rich Text */
.ev-rich-text {
  font-family: 'Inter', sans-serif; color: var(--ev-fg); line-height: 1.8; font-size: 16px;
}
.ev-rich-text h2, .ev-rich-text h3 {
  font-family: 'Inter', sans-serif; font-weight: 700; color: var(--ev-fg);
  margin: 32px 0 16px;
}
.ev-rich-text p { margin-bottom: 20px; color: var(--ev-fg-muted); }
.ev-rich-text ul, .ev-rich-text ol { margin-bottom: 24px; padding-left: 20px; color: var(--ev-fg-muted); }
.ev-rich-text li { margin-bottom: 8px; }
.ev-rich-text img, .ev-rich-text iframe {
  max-width: 100%; border-radius: 12px; margin: 24px 0;
}

/* Gallery */
.ev-gallery {
  margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--ev-border);
}
.ev-gallery h3 {
  font-family: 'Inter', sans-serif; font-size: 24px; font-weight: 700;
  margin-bottom: 24px; color: var(--ev-fg);
}
.ev-gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.ev-gallery-item {
  display: block; border-radius: 12px; overflow: hidden; height: 160px;
}
.ev-gallery-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
}
.ev-gallery-item:hover img { transform: scale(1.05); }

/* Sidebar */
.ev-sidebar-widget {
  background: var(--ev-bg-subtle); border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius); padding: 32px;
  position: sticky; top: 100px;
}
.ev-sidebar-widget h3 {
  font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 700;
  margin-bottom: 24px; color: var(--ev-fg);
}
.ev-info-list {
  list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px;
}
.ev-info-list li {
  display: flex; gap: 16px;
}
.ev-info-list svg {
  color: var(--ev-brand); flex-shrink: 0; margin-top: 2px;
}
.ev-info-list div { display: flex; flex-direction: column; gap: 4px; }
.ev-info-list strong {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: var(--ev-fg-muted); text-transform: uppercase; letter-spacing: 0.5px;
}
.ev-info-list span {
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; color: var(--ev-fg); line-height: 1.5;
}

/* Buttons & Social */
.ev-map-wrap { margin-top: 32px; }
.ev-map-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ev-brand); color: #fff; text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  padding: 14px 24px; border-radius: 12px; transition: background 0.2s;
}
.ev-map-btn:hover { background: var(--ev-brand-dark); }
.ev-share-wrap {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid #d1d5db;
}
.ev-share-wrap strong {
  display: block; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: var(--ev-fg); margin-bottom: 12px;
}
.ev-share-links {
  display: flex; gap: 12px;
}
.ev-share-links a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #e5e7eb; color: #4b5563; transition: all 0.2s;
}
.ev-share-links a:hover {
  background: var(--ev-brand); color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ev-detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .ev-sidebar-widget { position: static; }
}
@media (max-width: 768px) {
  .ev-hero { padding: 64px 0 56px; }
  .ev-list-section { padding: 56px 0; }
  .ev-grid { grid-template-columns: 1fr; }
  .ev-detail-hero { padding: 90px 0 50px; min-height: auto; }
}
@media (max-width: 480px) {
  .ev-hero h1 { font-size: 28px; }
  .ev-hero-desc { font-size: 15px; }
  .ev-card-image { height: 200px; }
  .ev-detail-hero h1 { font-size: 26px; }
}
/* =========================================================
   CONTACT SECTION & FORM BASE (view_event_detail)
   ========================================================= */
.cn-contact-section {
  padding: 80px 0;
  background: var(--ev-bg-subtle);
  border-top: 1px solid var(--ev-border);
}
.cn-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.cn-contact-inner {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* =========================================================
   RESPONSIVE OVERRIDES: Events (Tablet & Mobile Only)
   ========================================================= */
@media (max-width: 1024px) {
  .ev-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
  .ev-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .ev-sidebar-widget {
    position: static !important;
    padding: 28px 24px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }
  .ev-info-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  .ev-info-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  .ev-map-wrap {
    margin-top: 26px !important;
  }
  .ev-map-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 14px 24px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }
  .ev-share-wrap {
    margin-top: 28px !important;
    padding-top: 20px !important;
  }
  .ev-container {
    padding: 0 20px !important;
  }
  .cn-container {
    padding: 0 20px !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  .cn-contact-section {
    padding: 60px 0 70px !important;
  }
  .cn-contact-section .form-card,
  .form-card {
    padding: 32px 28px !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 800px !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 768px) {
  .ev-hero {
    padding: 48px 0 40px !important;
  }
  .ev-hero h1 {
    font-size: clamp(26px, 6vw, 36px) !important;
  }
  .ev-hero-desc {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
  .ev-list-section {
    padding: 40px 0 !important;
  }
  .ev-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .ev-card-image {
    height: 190px !important;
  }
  .ev-container {
    padding: 0 16px !important;
  }
  .ev-detail-content {
    padding: 40px 0 !important;
  }
  .ev-detail-hero {
    padding: 60px 0 40px !important;
    min-height: auto !important;
  }
  .ev-sidebar-widget {
    padding: 22px 18px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }
  .ev-info-list {
    gap: 18px !important;
  }
  .ev-info-list li {
    gap: 14px !important;
  }
  .ev-map-wrap {
    margin-top: 22px !important;
  }
  .ev-map-btn {
    width: 100% !important;
    padding: 13px 20px !important;
    font-size: 14.5px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }
  .ev-share-wrap {
    margin-top: 22px !important;
    padding-top: 18px !important;
  }
  .cn-container {
    padding: 0 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .cn-contact-section {
    padding: 40px 0 50px !important;
  }
  .cn-contact-section .form-card,
  .form-card {
    padding: 24px 18px !important;
    border-radius: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 480px) {
  .ev-hero h1 {
    font-size: 24px !important;
  }
  .ev-hero-desc {
    font-size: 14px !important;
  }
  .ev-card-image {
    height: 180px !important;
  }
  .ev-detail-hero h1 {
    font-size: 24px !important;
  }
  .ev-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .ev-sidebar-widget {
    padding: 20px 16px !important;
  }
  .cn-contact-section .form-card,
  .form-card {
    padding: 22px 16px !important;
  }
}
