/* ═══════════════════════════════════════════
   Event Detail — Abhi Computer Institute
   Compact, premium, professional
   (uses --pg-navy / --pg-orange / --pg-muted / --pg-disp from base if present)
═══════════════════════════════════════════ */

.aci-edet-pg {
  --e-navy: var(--pg-navy, #0e2145);
  --e-navy-2: #17305f;
  --e-orange: var(--pg-orange, #f26b1d);
  --e-muted: var(--pg-muted, #5d6b82);
  --e-ink: #1b2740;
  --e-line: #e4e8f0;
  --e-bg: #f5f7fb;
  --e-disp: var(--pg-disp, Georgia, 'Times New Roman', serif);
  color: var(--e-ink);
  background: var(--e-bg);
  overflow-x: clip;
  position: relative;
}
.aci-edet-pg *, .aci-edet-pg *::before, .aci-edet-pg *::after { box-sizing: border-box; }
.aci-edet-pg a { text-decoration: none; }

.edet-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Progress bar */
.edet-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--e-orange); z-index: 10000; }

/* Reveal (single, subtle) */
.edet-up { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.edet-up.visible { opacity: 1; transform: none; }

/* ───────── HERO (compact) ───────── */
.edet-hero {
  position: relative;
  background: linear-gradient(135deg, var(--e-navy) 0%, var(--e-navy-2) 100%);
  color: #fff;
  padding: 28px 0 78px;           /* bottom room for the overlapping strip */
  overflow: hidden;
}
.edet-blob { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px); opacity: .35; }
.edet-blob1 { width: 320px; height: 320px; background: var(--e-orange); top: -140px; right: -80px; opacity: .22; }
.edet-blob2 { width: 260px; height: 260px; background: #3c6bd6; bottom: -140px; left: -60px; }
.edet-hero-inner { position: relative; z-index: 1; }

.edet-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 22px;
}
.edet-breadcrumb a { color: rgba(255,255,255,.8); transition: color .2s; }
.edet-breadcrumb a:hover { color: #fff; }
.edet-breadcrumb .bi-chevron-right { font-size: 10px; opacity: .6; }
.edet-breadcrumb span { color: #fff; font-weight: 500; }

.edet-meta-top { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.edet-type-tag, .edet-status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1);
}
.edet-tag-workshop    { color: #ffc999; border-color: rgba(255,170,100,.4); }
.edet-tag-seminar     { color: #a9c7ff; border-color: rgba(140,180,255,.4); }
.edet-tag-result      { color: #ffe08a; border-color: rgba(255,214,102,.4); }
.edet-tag-celebration { color: #f5b5ec; border-color: rgba(240,150,230,.4); }
.edet-tag-other       { color: #d3dbea; }
.pill-upcoming { color: #8ff0b5; border-color: rgba(100,230,150,.4); }
.pill-past     { color: #c4ccdb; }

.edet-title {
  font-family: var(--e-disp);
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.15; font-weight: 700; letter-spacing: -.01em;
  margin: 0 0 12px; max-width: 820px; color: #fff;
}
.edet-short-desc {
  font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.78);
  max-width: 680px; margin: 0;
}

/* ───────── META STRIP ───────── */
.edet-strip-wrap { position: relative; z-index: 3; margin-top: -46px; }
.edet-meta-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  background: #fff; border: 1px solid var(--e-line); border-radius: 16px;
  box-shadow: 0 14px 34px -18px rgba(14,33,69,.35);
  overflow: hidden;
}
.edet-meta-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px;
  border-right: 1px solid var(--e-line);
}
.edet-meta-card:last-child { border-right: 0; }
.edet-meta-card > i {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; font-size: 17px;
  color: var(--e-orange); background: rgba(242,107,29,.1);
}
.edet-mc-label { font-size: 12px; color: var(--e-muted); margin-bottom: 2px; }
.edet-mc-val { font-size: 14.5px; font-weight: 600; color: var(--e-navy); line-height: 1.35; }

/* ───────── BODY ───────── */
.edet-body-section { padding: 36px 0 48px; }
.edet-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }

.edet-content {
  background: #fff; border: 1px solid var(--e-line); border-radius: 18px;
  padding: 28px;
}

/* Banner — controlled size */
.edet-banner-img {
  margin: 0 0 26px; width: 100%;
  aspect-ratio: 16 / 8; max-height: 360px;
  border-radius: 14px; overflow: hidden; background: #e9edf5;
}
.edet-banner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.edet-section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 700; color: var(--e-orange);
  margin-bottom: 14px;
}
.edet-section-label::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--e-orange); }

.edet-description { font-size: 16px; line-height: 1.85; color: #38465f; max-width: 70ch; }
.edet-description p { margin: 0 0 1.1em; }
.edet-description p:last-child { margin-bottom: 0; }

/* ───────── SIDEBAR ───────── */
.edet-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.edet-sidebar-card {
  background: #fff; border: 1px solid var(--e-line); border-radius: 16px; padding: 20px 22px;
}
.edet-sc-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; color: var(--e-navy); margin: 0 0 14px;
}
.edet-sc-title i { color: var(--e-orange); font-size: 15px; }

.edet-register-card {
  background: linear-gradient(145deg, var(--e-navy), var(--e-navy-2));
  border: 0; color: #fff; text-align: left;
}
.edet-rc-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #ffb98c; font-size: 18px; margin-bottom: 12px;
}
.edet-register-card h4 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: #fff; }
.edet-register-card p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.75); }
.edet-register-card .edet-btn-solid { width: 100%; }

.edet-sc-list { list-style: none; margin: 0; padding: 0; }
.edet-sc-list li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--e-line); }
.edet-sc-list li:first-child { padding-top: 0; }
.edet-sc-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.edet-sc-list li > i { color: var(--e-muted); font-size: 14px; margin-top: 3px; width: 16px; text-align: center; }
.edet-sc-lbl { display: block; font-size: 12px; color: var(--e-muted); }
.edet-sc-val { display: block; font-size: 14px; font-weight: 600; color: var(--e-navy); }
.text-upcoming { color: #1fa463 !important; font-size: 10px !important; }
.text-past { color: #9aa5b8 !important; font-size: 10px !important; }

.edet-share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.edet-share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 8px; border-radius: 10px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--e-line); background: #fff; color: var(--e-navy);
  cursor: pointer; font-family: inherit; transition: background .2s, border-color .2s, color .2s;
}
.share-wa { color: #128c4a; border-color: rgba(18,140,74,.3); background: rgba(18,140,74,.06); }
.share-wa:hover { background: #128c4a; color: #fff; }
.share-copy:hover { background: var(--e-navy); color: #fff; border-color: var(--e-navy); }

.edet-back-link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 13.5px; font-weight: 600; color: var(--e-muted); padding: 4px 2px; transition: color .2s;
}
.edet-back-link:hover { color: var(--e-orange); }

/* ───────── BUTTONS ───────── */
.edet-btn-solid, .edet-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 11px; font-size: 14.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s, border-color .2s;
}
.edet-btn-solid { background: var(--e-orange); color: #fff; border: 1px solid var(--e-orange); box-shadow: 0 8px 18px -10px var(--e-orange); }
.edet-btn-solid:hover { transform: translateY(-1px); background: #e25d10; border-color: #e25d10; color: #fff; }
.edet-btn-solid:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.edet-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.edet-btn-outline:hover { background: #fff; color: var(--e-navy); border-color: #fff; }

/* ───────── GALLERY ───────── */
.edet-gallery-section { padding: 8px 0 52px; }
.edet-gallery-head { margin-bottom: 20px; }
.edet-sec-title { font-family: var(--e-disp); font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--e-navy); margin: 0; }

.edet-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.edet-gphoto {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: #e9edf5; cursor: pointer; border: 1px solid var(--e-line);
}
.edet-gphoto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.edet-gphoto:hover img { transform: scale(1.05); }
.edet-gphoto-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(14,33,69,.45); color: #fff; font-size: 24px; opacity: 0; transition: opacity .25s;
}
.edet-gphoto:hover .edet-gphoto-overlay { opacity: 1; }
.edet-gphoto-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px;
  font-size: 12.5px; color: #fff; background: linear-gradient(transparent, rgba(8,16,32,.8));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Lightbox */
.edet-lightbox {
  position: fixed; inset: 0; z-index: 9998; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; padding: 24px;
  background: rgba(8,16,32,.92);
}
.edet-lightbox.active { display: flex; }
.edet-lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 10px; object-fit: contain; }
.edet-lb-cap { color: rgba(255,255,255,.85); font-size: 14px; text-align: center; }
.edet-lb-cap:empty { display: none; }
.edet-lb-close {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 16px; cursor: pointer;
}
.edet-lb-close:hover { background: rgba(255,255,255,.28); }

/* ───────── CTA ───────── */
.edet-cta { padding: 0 0 56px; }
.edet-cta-inner {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, var(--e-navy), var(--e-navy-2));
  border-radius: 22px; padding: 44px 24px;
}
.edet-cta-inner::after {
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: var(--e-orange); opacity: .16; filter: blur(60px); top: -120px; right: -60px; pointer-events: none;
}
.edet-cta-title { position: relative; font-family: var(--e-disp); font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; color: #fff; margin: 0 0 10px; }
.edet-cta-text { position: relative; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 24px; }
.edet-cta-btns { position: relative; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ───────── BOOKING MODAL ───────── */
.edet-bk-overlay {
  position: fixed; inset: 0; background: rgba(10,20,40,.62); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; z-index: 9999; padding: 16px;
}
.edet-bk-overlay.active { display: flex; }
.edet-bk-modal {
  position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 18px; padding: 0 26px 26px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.5);
  animation: bkIn .25s ease;
}
@keyframes bkIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.edet-bk-head {
  margin: 0 -26px 6px; padding: 24px 56px 18px 26px;
  background: linear-gradient(135deg, var(--e-navy), var(--e-navy-2)); color: #fff;
}
.edet-bk-head h3 { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: #fff; }
.edet-bk-sub { margin: 0; font-size: 13px; color: rgba(255,255,255,.75); }
.edet-bk-x {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; border: 0; font-size: 14px; cursor: pointer; z-index: 2;
}
.edet-bk-x:hover { background: rgba(255,255,255,.28); }
.edet-bk-modal label { display: block; font-size: 13px; font-weight: 600; color: var(--e-navy); margin: 14px 0 5px; }
.edet-bk-modal input, .edet-bk-modal select, .edet-bk-modal textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #d5dbe7; border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--e-ink); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.edet-bk-modal input:focus, .edet-bk-modal select:focus, .edet-bk-modal textarea:focus {
  outline: none; border-color: var(--e-orange); box-shadow: 0 0 0 3px rgba(242,107,29,.15);
}
.bk-friend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.bk-err { color: #d93025; font-size: 12px; margin-top: 3px; }
.bk-err:empty { display: none; }
.bk-err-main { font-size: 13px; margin-top: 12px; }
.bk-ok { color: #188038; }
.edet-bk-submit { width: 100%; margin-top: 16px; }

/* Focus visibility */
.aci-edet-pg a:focus-visible, .aci-edet-pg button:focus-visible { outline: 2px solid var(--e-orange); outline-offset: 2px; }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 991px) {
  .edet-body-grid { grid-template-columns: 1fr; gap: 20px; }
  .edet-sidebar { position: static; }
  .edet-meta-card { border-right: 0; border-bottom: 1px solid var(--e-line); }
  .edet-meta-card:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  .edet-hero { padding: 20px 0 64px; }
  .edet-strip-wrap { margin-top: -38px; }
  .edet-meta-row { grid-template-columns: 1fr 1fr; }
  .edet-meta-card { padding: 14px; gap: 10px; border-right: 1px solid var(--e-line); }
  .edet-meta-card:nth-child(2n) { border-right: 0; }
  .edet-meta-card > i { width: 34px; height: 34px; font-size: 15px; }
  .edet-content { padding: 18px; border-radius: 14px; }
  .edet-banner-img { aspect-ratio: 16 / 10; max-height: 240px; margin-bottom: 20px; }
  .edet-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .edet-cta-inner { padding: 34px 18px; border-radius: 18px; }
  .edet-cta-btns .edet-btn-solid, .edet-cta-btns .edet-btn-outline { width: 100%; }
  .bk-friend { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .edet-up { opacity: 1; transform: none; transition: none; }
  .edet-gphoto img, .edet-btn-solid, .edet-bk-modal { transition: none; animation: none; }
}