/* styles.css — Hack4Health (logo-matched light healthcare theme)
   Drop this in as your FULL styles.css (replaces everything). */

:root{
  /* Logo-matched palette */
  --bg0:#f7fcff;        /* page base */
  --bg1:#eef9fd;        /* gradient layer */

  --panel: rgba(255,255,255,.86);
  --panel2: rgba(255,255,255,.68);
  --line: rgba(76,195,230,.28);

  --text:#0f2a3a;       /* readable dark blue */
  --muted:#4f7f94;

  --accent:#7fd7f5;     /* logo blue */
  --accent2:#4cc3e6;    /* stronger medical blue */
  --accent3:#aee9fa;    /* soft highlight */

  --max: 980px;
  --shadow: 0 18px 45px rgba(76,195,230,.18);
  --shadow2: 0 10px 26px rgba(15,42,58,.08);
  --r: 18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(900px 600px at 20% 0%, rgba(127,215,245,.35), transparent 60%),
    radial-gradient(900px 600px at 80% 10%, rgba(174,233,250,.45), transparent 60%),
    radial-gradient(900px 700px at 50% 95%, rgba(76,195,230,.18), transparent 65%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}

.page{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px 46px;
}

/* Top nav */
.top{
  position: sticky;
  top: 0;
  z-index: 20;
  /* integrate with page: transparent background */
  background: transparent;
  backdrop-filter: none;
  padding-top: 6px;
}

.nav{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.navContent{
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}

.navLink{
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
}

.navLink:hover{
  color: var(--accent);
  background: rgba(72, 214, 201, 0.1);
}

.navTicket{
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  color: #041027;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(72, 214, 201, 0.2);
}

.navTicket:hover{
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(72, 214, 201, 0.3);
}
.nav{
  pointer-events: auto;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand img{
  height: 54px;
  width: auto;
  display: block;
}

.navContent{
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 0;
}

.navLink{
  color: rgba(234, 240, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.18s ease, background 0.18s ease;
}

.navLink:hover{
  color: var(--accent);
  background: rgba(72, 214, 201, 0.06);
}

.navTicket{
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  color: #041027;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(72, 214, 201, 0.12);
}

.navTicket:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(72, 214, 201, 0.16);
}

.navTicket{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #ffffff !important;
  border: 0;
  box-shadow: 0 14px 28px rgba(76,195,230,.20);
}

/* HERO */
.hero{
  padding: 36px 0 10px;
  text-align:center;
}

.heroInner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
}

/* Logo */
.logoWrap{
  display:flex;
  align-items:center;
  justify-content:center;
}

.heroIcon{
  width: min(260px, 70vw);
  height: auto;
  max-height: 200px;
  object-fit: contain;
  display:block;
  filter:
    drop-shadow(0 12px 24px rgba(127,215,245,.45))
    drop-shadow(0 0 32px rgba(174,233,250,.35));
  image-rendering: -webkit-optimize-contrast;
}

.heroMeta{
  margin-top: 8px;
  display:flex;
  flex-direction:column;
  gap: 6px;
  align-items:center;
}

.heroDate{
  font-size: 28px;
  font-weight: 950;
  letter-spacing:-.01em;
}

.heroVenue{
  font-size: 13px;
  color: var(--muted);
  font-weight: 650;
}

.heroSub{
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 700;
}

/* Organiser logos row */
.organiserLogos{
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin: 12px auto 0;
  flex-wrap: wrap;
  width: 100%;
  max-width: 720px;
  padding: 6px 12px;
}

.organiserLogos > *{
  display:flex;
  align-items:center;
  justify-content:center;
}

.organiserLogo{
  height: 30px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  opacity: .98;
  filter: drop-shadow(0 6px 12px rgba(15,42,58,.08));
  margin: 0 8px;
}

/* Slightly larger HackUK (second image) for emphasis */
.organiserLogos > a:nth-child(2) .organiserLogo{
  height: 44px;
}

@media (max-width: 520px){
  .organiserLogos{ flex-direction: column; gap: 12px; max-width: 92%; }
  .organiserLogo{ height: 42px; }
  .organiserLogos > a:nth-child(2) .organiserLogo{ height: 56px; }
}

/* Sections */
.block{ margin-top: 26px; }

.h2{
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -.01em;
  color: #0b2230;
}

.center{ text-align:center; }

.lead{
  margin: 0;
  max-width: 80ch;
  color: rgba(15,42,58,.86);
  font-size: 15px;
  line-height: 1.7;
}

.muted{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.rule{
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76,195,230,.35), transparent);
  margin: 22px 0;
}

/* Ticket bar */
.bar{
  margin-top: 18px;
  padding: 16px 16px;
  background: linear-gradient(135deg, rgba(127,215,245,.35), rgba(174,233,250,.45));
  border: 1px solid rgba(76,195,230,.25);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.barTitle{
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 6px;
  letter-spacing: -.01em;
  color: #0b2230;
}

.barIcon{ margin-right: 8px; }

.barText{
  color: rgba(15,42,58,.78);
  font-size: 13px;
  line-height: 1.5;
  max-width: 70ch;
  font-weight: 650;
}

.barBtn{
  background: var(--accent2);
  color: #ffffff;
  text-decoration:none;
  font-weight: 950;
  font-size: 16px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 0;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  white-space:nowrap;
  box-shadow: 0 8px 20px rgba(76,195,230,.12);
}

.barBtn:hover{ filter: brightness(0.98); transform: translateY(-1px); }
.arrow{ font-size: 18px; }

/* Grids */
.grid{
  margin-top: 16px;
  display:grid;
  gap: 18px;
  justify-items:center;
  align-items:center;
}

.sponsorsGrid{ grid-template-columns: repeat(3, 1fr); }

@media (max-width: 760px){
  .sponsorsGrid{ grid-template-columns: repeat(2, 1fr); }
}

/* Sponsor tiles */
.tile{
  width: 100%;
  max-width: 220px;
  min-height: 90px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(127,215,245,.35);
  border-radius: 18px;
  box-shadow: var(--shadow2);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
  text-decoration:none;
  color: rgba(15,42,58,.80);
  backdrop-filter: blur(10px);
}

.tile img{
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(15,42,58,.10));
}

.tile.textOnly{
  font-weight: 950;
  letter-spacing:.02em;
  color: rgba(79,127,148,.95);
}

/* Wider tile variant used for the sponsorship contact box */
.tile.wide{
  max-width: 720px;
  padding: 18px 20px;
  text-align: center;
}

/* Replace the grid with a centered single contact box */
.sponsorsContact{
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* Schedule */
.schedule{
  margin-top: 14px;
  border: 1px solid rgba(127,215,245,.35);
  border-radius: 18px;
  background: rgba(255,255,255,.85);
  overflow:hidden;
  box-shadow: var(--shadow2);
}

.row{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(127,215,245,.25);
}

.row:last-child{ border-bottom: 0; }

.time{
  color: rgba(79,127,148,.95);
  font-weight: 950;
}

.what{
  color: rgba(15,42,58,.92);
  font-weight: 800;
}

/* FAQs */
.faqList{ margin-top: 14px; }

.faqItem{
  width: 100%;
  text-align:left;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(127,215,245,.35);
  padding: 18px 16px;
  border-radius: 18px;
  color: rgba(15,42,58,.95);
  font: 900 16px/1.2 ui-sans-serif, system-ui, -apple-system, Segoe UI;
  cursor:pointer;
  margin-bottom: 12px;
  display:flex;
  align-items:center;
  gap: 10px;
  box-shadow: var(--shadow2);
}

.faqItem:hover{ filter: brightness(1.01); }

.chev{
  display:inline-flex;
  width: 28px; height: 28px;
  border-radius: 999px;
  align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #ffffff;
  border: 0;
  transform-origin: 55% 55%;
}

.faqPanel{
  margin: -6px 0 14px;
  padding: 14px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(127,215,245,.30);
  background: rgba(255,255,255,.95);
  color: rgba(79,127,148,.98);
  font-size: 14px;
  line-height: 1.65;
  box-shadow: var(--shadow2);
  border-left: 4px solid var(--accent);
}

/* Footer */
.footer{
  margin-top: 34px;
  padding: 20px 18px;
  border-top: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(244,252,255,0.72));
  border: 1px solid rgba(127,215,245,.18);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(15,42,58,.04);
  color: rgba(79,127,148,.92);
  font-size: 13px;
}

.footerInner{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.dotSep{ opacity: .6; margin: 0 6px; }

.footer a{
  color: rgba(15,42,58,.9);
  text-decoration: none;
  font-weight: 700;
}

.footer a:hover{
  color: var(--accent2);
  text-decoration: underline;
}

.footer .footerRight{
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 760px){
  .footerInner{ flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .footer .footerRight{ justify-content: center; }
}

/* Mobile */
@media (max-width: 760px){
  .heroIcon{
    width: min(240px, 78vw);
    max-height: 190px;
  }

  .heroDate{ font-size: 24px; }
}

/* Mobile-specific adjustments (stack ticket bar, full-width button, spacing tweaks) */
@media (max-width: 520px){
  .page{ padding-left: 12px; padding-right: 12px; }

  .bar{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .barLeft{ text-align: left; }

  .barBtn{
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(76,195,230,.10);
  }

  .heroDate{ font-size: 22px; }
  .heroVenue{ font-size: 12px; }

  .organiserLogos{ gap: 12px; }

  .footer{ padding: 14px; }
  .footerInner{ gap: 8px; }

  .h2{ font-size: 24px; }
}

/* Extra footer mobile fit tweaks */
@media (max-width: 420px){
  .footer{ font-size: 12px; padding: 10px; }
  .footer .footerRight{ flex-wrap: wrap; gap: 6px; justify-content: center; }
  .footerInner > div:first-child{ width: 100%; }
  .footer .dotSep{ display: none; }
  .footer a{ font-size: 13px; }
}