/* ============================================================
   EVENT DETAIL PAGE - ENHANCED FONT & VISUAL STYLING
   ============================================================ */

/* Hero Banner */
.event-detail-hero {
  background: linear-gradient(135deg, #061938 0%, #0c2b5e 50%, #103b7b 100%);
  color: var(--white);
  padding: 64px 0 56px;
  box-shadow: inset 0 -10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.event-detail-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
  transition: all 0.25s ease;
  text-decoration: none;
}

.event-detail-hero .back-link:hover {
  color: var(--gold);
  transform: translateX(-4px);
  text-decoration: none;
}

.event-detail-hero .tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.event-detail-hero h1 {
  color: #ffffff;
  font-size: clamp(2.0rem, 4.5vw, 3.0rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.event-hero-sub {
  color: #eaf1fb;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

.event-hero-org {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0;
}

/* Event Motto Static Pill */
.event-motto-marquee-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 0 32px 0;
  padding: 0;
}

.section.event-detail-section {
  padding-top: 32px;
}

.event-motto-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  max-width: 100%;
  background: linear-gradient(135deg, #e5f0ff 0%, #b0d3fc 100%);
  color: var(--navy);
  padding: 10px 28px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(11, 31, 77, 0.12);
  border: 1.5px solid #9dc4f5;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: italic;
  text-align: center;
}

/* Page Layout */
.event-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1024px) and (min-width: 861px) {
  .event-detail-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 24px;
  }
}

@media (max-width: 860px) {
  .event-detail-layout {
    grid-template-columns: 1fr;
  }

  .event-detail-sidebar {
    order: -1;
    position: static !important;
    top: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: min(310px, 100%) !important;
    align-items: center;
    box-sizing: border-box;
    gap: 16px !important;
  }

  .sidebar-box {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: min(310px, 100%) !important;
    box-sizing: border-box;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* Facts Table - Card Wrapper & Large Typography */
.event-facts-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 42px;
  font-size: 1.3rem;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(6, 25, 56, 0.07);
  border: 1px solid rgba(6, 25, 56, 0.1);
}

.event-facts-table tr {
  transition: background-color 0.2s ease;
}

.event-facts-table tr:hover {
  background-color: rgba(12, 43, 94, 0.03);
}

.event-facts-table td {
  padding: 15px 22px;
  border-bottom: 1px solid rgba(6, 25, 56, 0.08);
  color: #000000;
  font-size: 1.3rem;
  line-height: 1.5;
}

.event-facts-table td:first-child {
  font-weight: 700;
  color: var(--navy);
  width: 36%;
  white-space: normal;
  background: rgba(6, 25, 56, 0.02);
  border-right: 1px solid rgba(6, 25, 56, 0.06);
}

.event-facts-table tr:last-child td {
  border-bottom: none;
}

/* Content Sections */
.event-section-block {
  margin-bottom: 42px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(6, 25, 56, 0.12);
}

.event-section-block:last-of-type {
  border-bottom: none;
}

.event-section-block h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 5px solid var(--blue);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.event-section-block h3 {
  font-size: 1.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: #000000;
  margin: 24px 0 12px;
}

.event-section-block p {
  color: #000000;
  font-size: 1.3rem;
  line-height: 1.85;
  margin: 0 0 16px;
  text-align: justify;
}

.event-section-block ul {
  list-style-type: disc !important;
}

.event-section-block ol {
  list-style-type: decimal !important;
}

.event-section-block ul,
.event-section-block ol {
  color: #000000;
  font-size: 1.3rem;
  line-height: 1.85;
  padding-left: 32px;
  margin: 0 0 18px;
  text-align: justify;
}

.event-section-block li {
  margin-bottom: 10px;
}

.event-section-block li::marker {
  color: var(--blue);
  font-size: 1.1em;
}

.event-section-block strong {
  color: #000000;
  font-weight: 700;
}

/* Coordinator Cards */
.coord-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 16px;
}

.coord-col {
  flex: 1 1 240px;
  height: fit-content;
  background: #f8fafc;
  border: 1px solid rgba(6, 25, 56, 0.08);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 22px 26px;
  box-shadow: 0 6px 18px rgba(6, 25, 56, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.coord-col:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(6, 25, 56, 0.08);
}

.coord-col h3 {
  font-size: 1.4rem;
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.coord-col p {
  color: #000000;
  font-size: 1.3rem;
  margin: 0 0 8px;
  line-height: 1.6;
  text-align: left;
}

.coord-col a {
  color: var(--blue);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}

.coord-col a:hover {
  text-decoration: underline;
  color: var(--navy);
}

/* Call to Action Button */
.apply-cta {
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(6, 25, 56, 0.12);
}

.apply-cta .btn {
  padding: 16px 42px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 100%);
  box-shadow: 0 8px 25px rgba(6, 25, 56, 0.25);
  transition: all 0.25s ease;
}

.apply-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(6, 25, 56, 0.35);
}

/* Upload CTA & Button */
.upload-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.upload-caption {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 !important;
  line-height: 1.2;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.03em;
  padding: 8px 24px;
  margin-left: 1.5%;
  margin-top: -4px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(20, 80, 158, 0.28);
  transition: all 0.25s ease;
}

.btn-upload:hover {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--navy-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20, 80, 158, 0.42);
  color: var(--white) !important;
  text-decoration: none;
}

/* Tagline Banner / Quotation Card */
.event-tagline {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  margin-top: 48px;
  font-style: italic;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--blue-dark) 100%);
  padding: 32px 40px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(11, 31, 77, 0.22);
  position: relative;
  overflow: hidden;
}

.event-tagline::before {
  content: "“";
  position: absolute;
  top: -12px;
  left: 24px;
  font-size: 5.5rem;
  font-family: Georgia, serif;
  color: rgba(200, 161, 58, 0.25);
  line-height: 1;
  pointer-events: none;
}

.event-tagline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(200, 161, 58, 0.14), transparent 55%);
  pointer-events: none;
}

/* Sidebar */
.event-detail-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 290px;
  box-sizing: border-box;
}

.sidebar-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: repeating-linear-gradient(135deg,
      var(--navy) 0,
      var(--navy) 12px,
      var(--blue-dark) 12px,
      var(--blue-dark) 24px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(6, 25, 56, 0.12);
}

.sidebar-poster-img {
  width: 100%;
  max-width: 290px;
  height: 145px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  border: 2px solid var(--blue);
  box-shadow: 0 6px 20px rgba(6, 25, 56, 0.12);
  padding: 5px;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sidebar-poster-img:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 25px rgba(6, 25, 56, 0.18);
}

.sidebar-box {
  border: 1px solid rgba(6, 25, 56, 0.1);
  border-top: 4px solid var(--navy);
  border-radius: 12px;
  padding: 14px 18px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(6, 25, 56, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.sidebar-box h4 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(6, 25, 56, 0.08);
}

.sidebar-box p {
  color: #000000;
  font-size: 0.95rem;
  margin: 0 0 8px;
  line-height: 1.5;
  text-align: left;
}

.sidebar-box p:last-child {
  margin-bottom: 0;
}

.sidebar-box span {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
}

.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-box li {
  font-size: 0.95rem;
  color: #000000;
  margin-bottom: 7px;
  line-height: 1.45;
  position: relative;
  padding-left: 18px;
}

.sidebar-box li::before {
  content: "•";
  color: var(--blue);
  font-size: 1.1rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.sidebar-box li:last-child {
  margin-bottom: 0;
}

.sidebar-box li strong {
  color: var(--navy);
  font-weight: 700;
}

/* ============================================================
   MOBILE RESPONSIVE OVERRIDES (≤ 768 px)
   ============================================================ */
@media (max-width: 768px) {

  /* ---- Mobile sidebar position ---- */
  .event-detail-sidebar {
    position: static !important;
    top: auto !important;
  }

  /* ---- Facts table mobile typography (+5% from desktop 1.3rem) ---- */
  .event-facts-table {
    font-size: 1.37rem;
    width: 100%;
    table-layout: fixed;
    border-radius: 10px;
  }

  .event-facts-table td {
    padding: 12px 14px;
    word-break: break-word;
    font-size: 1.37rem;
  }

  .event-facts-table td:first-child {
    width: 42%;
    white-space: normal;
    font-size: 1.37rem;
  }

  /* ---- Mobile hero typography ---- */
  .event-motto-marquee-wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
    justify-content: center !important;
  }
}

.event-detail-hero {
  padding: 36px 0 30px;
}

.event-detail-hero h1 {
  font-size: clamp(1.6rem, 5.5vw, 2.2rem);
}

.event-hero-sub {
  font-size: 1.05rem;
}

.event-hero-org {
  font-size: 0.92rem;
}

.event-detail-hero .tag {
  font-size: 0.75rem;
  padding: 4px 10px;
}

/* ---- Mobile section typography (+5% from desktop values) ---- */
.event-section-block p,
.event-section-block ul,
.event-section-block ol {
  font-size: 1.37rem;
  line-height: 1.8;
}

.event-section-block h2 {
  font-size: 1.94rem;
}

.event-section-block h3 {
  font-size: 1.47rem;
}

/* ---- Mobile sidebar poster image alignment ---- */
  .sidebar-poster-img {
    height: auto !important;
    max-height: 420px !important;
    width: 100% !important;
    max-width: min(310px, 100%) !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  .sidebar-box p {
    font-size: 0.95rem;
  }

  .sidebar-box h4 {
    font-size: 0.95rem;
  }

.coord-col p,
.coord-col a {
  font-size: 1.37rem;
}

.coord-col h3 {
  font-size: 1.47rem;
}

.event-tagline {
  font-size: 1.35rem;
  padding: 22px 24px;
}

/* ---- Mobile text alignment ---- */
.event-section-block p,
.event-section-block ul,
.event-section-block ol,
.sidebar-box p,
.coord-col p {
  text-align: left !important;
}


/* ============================================================
   HACKEREARTH ONLINE PRELIMS — LIGHT BLUE CTA CARD
   ============================================================ */

.he-exam-cta {
  background: linear-gradient(135deg, #eef4fb 0%, #e3edfa 100%);
  border-radius: 12px;
  padding: 20px 24px 16px;
  margin-bottom: 28px;
  border: 1px solid rgba(20, 80, 158, 0.15);
  border-top: 4px solid var(--gold);
  box-shadow: 0 6px 20px rgba(6, 25, 56, 0.06);
  position: relative;
  overflow: hidden;
}

.he-exam-cta-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.he-exam-cta-label svg {
  flex-shrink: 0;
  color: var(--navy);
}

.he-exam-cta-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.he-exam-cta-text h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
  line-height: 1.25;
  border: none;
  padding: 0;
}

.he-exam-cta-text p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 0;
  max-width: 520px;
  text-align: left;
}

.btn-he-exam {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--gold) 0%, #d4af37 100%);
  color: var(--navy-dark) !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 11px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(200, 161, 58, 0.3);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.btn-he-exam:hover {
  background: linear-gradient(135deg, #d4af37 0%, #e0c04a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(200, 161, 58, 0.42);
  color: var(--navy-dark) !important;
  text-decoration: none !important;
}

.btn-he-exam:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.he-exam-cta-info {
  display: flex;
  gap: 28px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(6, 25, 56, 0.08);
}

.he-exam-cta-info-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.he-exam-cta-info-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.he-exam-cta-info-value {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---- HackerEarth CTA Card — Mobile ---- */
@media (max-width: 768px) {
  .he-exam-cta {
    padding: 18px 18px 16px;
    margin-bottom: 24px;
  }

  .he-exam-cta-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .he-exam-cta-text h3 {
    font-size: 1.3rem;
  }

  .he-exam-cta-text p {
    font-size: 0.98rem;
  }

  .btn-he-exam {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .he-exam-cta-info {
    gap: 20px;
  }
}

/* All 6 event pages now use the global font sizes defined above.
   No per-page overrides needed — uniformity is enforced via
   .event-facts-table (1.3rem) and .event-section-block (1.3rem). */