/* ============================================================
   EVENT SINGLE PAGE — QAS MODERN STYLES
   ============================================================ */

/* ── EVENT HERO (no background, simple heading) ── */
.event-hero {
  padding: 80px 0 40px;
  text-align: center;
}
.event-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
}
.event-hero .event-description {
  font-size: 18px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── EVENT STATS ── */
.event-stats {
  background: white;
  border-radius: var(--radius-xl);
  padding: 30px;
  margin: 40px 0 60px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item {
  padding: 10px;
}
.stat-item:not(:last-child) {
  border-right: 1px solid var(--light-gray);
}
.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.stat-label {
  font-size: 13px;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

/* ── SECTION HEADERS ── */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.section-header .section-tag::before,
.section-header .section-tag::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.section-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 15px;
}
.section-header h2 em {
  color: var(--red);
  font-style: normal;
}
.section-header p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── GALLERY GRID ── */
.gallery-section {
  background: var(--off-white);
  padding: 40px 0 80px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 40px 0;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31,66,138,0.06);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  cursor: pointer;
  aspect-ratio: 1/1;
}
.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover img {
  transform: scale(1.08);
}
/* Gradient border on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--navy-light), var(--red), var(--navy-light));
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover::after {
  opacity: 1;
}
/* Overlay with info */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,30,66,0.9), rgba(21,45,97,0.4) 50%, transparent 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}
.gallery-item-overlay h4 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-item-overlay h4 {
  transform: translateY(0);
}
.gallery-item-overlay p {
  font-size: 13px;
  opacity: 0.8;
  transform: translateY(10px);
  transition: transform 0.3s ease 0.1s;
}
.gallery-item:hover .gallery-item-overlay p {
  transform: translateY(0);
}
.gallery-item-overlay .zoom-icon {
  position: absolute;
  top: 15px; right: 15px;
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-spring);
}
.gallery-item:hover .gallery-item-overlay .zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* ── INFO CARDS (JSON data) ── */
.info-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31,66,138,0.06);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  height: 100%;
}
.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.info-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.info-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.info-card:hover .info-card-image img {
  transform: scale(1.05);
}
/* Gradient border for info cards */
.info-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(135deg, var(--navy-light), var(--red), var(--navy-light));
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.info-card:hover .info-card-image::after {
  opacity: 1;
}
.info-card-content {
  padding: 20px;
}
.info-card-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.info-card-content .designation {
  display: inline-block;
  background: var(--navy-pale);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.info-card-content p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

/* ── NAVIGATION BUTTONS ── */
.event-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 50px 0;
  flex-wrap: wrap;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.35s var(--ease-out);
}
.nav-btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.nav-btn-secondary:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.nav-btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white;
}
.nav-btn-primary:hover {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

/* ── ERROR STATE ── */
.error-state {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  padding: 100px 30px;
  margin: 50px 0;
}
.error-state i {
  font-size: 64px;
  color: var(--red);
  margin-bottom: 24px;
}
.error-state h2 {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  color: var(--text);
  margin-bottom: 12px;
}
.error-state p {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 30px;
}
.error-state .nav-btn {
  display: inline-flex;
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .event-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 10px;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .nav-btn {
    width: 100%;
    justify-content: center;
  }
}