@import url(https://fonts.googleapis.com/css?family=Abril+Fatface|Lato|Nunito+Sans:400,600);
@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css);

/* ============================================================
   CoFold Conference Theme
   Primary blue: #2f9ddb  |  Dark navy: #0d1b2a
   ============================================================ */

:root {
  --cf-blue:   #2f9ddb;
  --cf-dark:   #0d1b2a;
  --cf-navy:   #1a3a5c;
  --cf-light:  #f8f9fa;
  --cf-text:   #3a3a3a;
}

html {
  font-size: 20px;
}

body {
  font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.7;
  color: var(--cf-text);
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Abril Fatface', Times New Roman, serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--cf-dark);
}

h2::after {
  content: "";
  display: block;
  background-color: var(--cf-blue);
  height: 3px;
  margin: 15px 0 28px;
  width: 60px;
}

h2.text-center::after { margin-left: auto; margin-right: auto; }

/* ── NAVBAR ─────────────────────────────────────────── */
.navbar { box-shadow: 0 2px 10px rgba(0,0,0,.3); }

.navbar-brand .brand-name {
  color: var(--cf-blue);
  font-family: 'Abril Fatface', serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.navbar-brand .brand-year {
  color: #8ba3bc;
  font-size: 1rem;
  font-family: 'Nunito Sans', sans-serif;
}

.navbar .nav-link { color: #adb5bd !important; transition: color .2s; }
.navbar .nav-link:hover { color: var(--cf-blue) !important; }

/* ── HERO ────────────────────────────────────────────── */
.cf-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--cf-dark);
  overflow: hidden;
}

.cf-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('./assets/venue/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  opacity: 0.28;
}

.cf-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(47,157,219,.28) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(26,58,92,.6) 0%, transparent 70%);
  pointer-events: none;
}

.cf-hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 1rem;
  max-width: 820px;
  margin: 0 auto;
}

.cf-hero-badge {
  display: inline-block;
  background: rgba(47,157,219,.18);
  border: 1px solid rgba(47,157,219,.5);
  color: var(--cf-blue);
  padding: .3rem 1.1rem;
  border-radius: 50px;
  font-size: .82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.cf-hero-title {
  font-family: 'Abril Fatface', serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}

.cf-hero-title::after { display: none; }

.cf-hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,.78);
  line-height: 1.5;
  margin-bottom: .75rem;
}

.cf-hero-venue {
  color: rgba(255,255,255,.5);
  font-size: .95rem;
  margin-bottom: 2rem;
}

.cf-hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 2.5rem;
}

.cf-stat {
  padding: .75rem 2rem;
  border-left: 1px solid rgba(255,255,255,.12);
}

.cf-stat:first-child { border-left: none; }

.cf-stat-num {
  font-family: 'Abril Fatface', serif;
  font-size: 2.4rem;
  color: var(--cf-blue);
  line-height: 1;
}

.cf-stat-label {
  font-size: .78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* ── BUTTONS ─────────────────────────────────────────── */
.cf-btn {
  background: var(--cf-blue);
  border: none;
  color: #fff;
  padding: .6rem 1.6rem;
  border-radius: 5px;
  transition: background .2s, transform .15s;
}

.cf-btn:hover { background: #2589c4; color: #fff; transform: translateY(-2px); }

/* ── ABOUT ───────────────────────────────────────────── */
.about-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}

.about-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,.11);
}

.cf-accent { color: var(--cf-blue) !important; }

/* ── SPEAKER PHOTOS ──────────────────────────────────── */
.speaker-photo-lg,
.speaker-photo-md,
.speaker-photo-sm {
  border-radius: 50%;
  overflow: hidden;
  background: #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.speaker-photo-lg { width: 220px; height: 220px; box-shadow: 0 8px 30px rgba(0,0,0,.14); border: 4px solid #fff; }
.speaker-photo-md { width: 150px; height: 150px; }
.speaker-photo-sm { width: 52px;  height: 52px;  min-width: 52px; }

.speaker-photo-xs {
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.speaker-photo-lg img,
.speaker-photo-md img,
.speaker-photo-sm img,
.speaker-photo-xs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── LINKEDIN LINKS ──────────────────────────────────── */
.linkedin-link {
  color: #0077b5;
  text-decoration: none;
  font-size: 1.25rem;
  display: inline-block;
  margin-top: .4rem;
  transition: color .2s, transform .15s;
}
.linkedin-link:hover { color: #005885; transform: scale(1.1); }

/* ── SPEAKER CARDS ───────────────────────────────────── */
.speaker-card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  cursor: pointer;
}

.speaker-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0,0,0,.12);
}

.talk-title {
  color: var(--cf-blue);
  font-style: italic;
  font-size: .88rem;
}

/* ── KEYNOTE CARDS ───────────────────────────────────── */
.keynote-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
  border-left: 5px solid var(--cf-blue);
}

/* ── BADGES ──────────────────────────────────────────── */
.cf-badge {
  background: var(--cf-blue);
  color: #fff;
  font-size: .72rem;
  padding: .3em .7em;
  border-radius: 4px;
  letter-spacing: .5px;
}

.badge-keynote { background: #fff3e0; color: #bf5600; }
.badge-talk    { background: #e3f2fd; color: #1565c0; }
.badge-panel   { background: #f3e5f5; color: #6a1b9a; }
.badge-break   { background: #eceff1; color: #546e7a; }

.session-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: .2em .65em;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 4px;
}

/* ── CHAIR CARDS ─────────────────────────────────────── */
.chair-card {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s;
  position: relative;
  cursor: pointer;
}

.chair-card:hover { transform: translateY(-2px); }

.cf-session-label {
  color: var(--cf-blue);
  font-size: .78rem;
  font-weight: 600;
}

/* ── SESSION SECTION HEADINGS ────────────────────────── */
.session-section-heading {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cf-dark);
  border-left: 4px solid var(--cf-blue);
  padding-left: .85rem;
}

/* ── PANEL CARDS ─────────────────────────────────────── */
.panel-card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  border-top: 4px solid var(--cf-blue);
}

.participant-chip {
  background: var(--cf-light);
  border-radius: 50px;
  padding: .3rem .7rem;
  font-size: .8rem;
}

/* ── AGENDA ──────────────────────────────────────────── */
.agenda-day-header {
  background: linear-gradient(135deg, var(--cf-dark) 0%, var(--cf-navy) 100%);
  color: #fff;
  padding: .9rem 1.4rem;
  border-radius: 9px 9px 0 0;
  margin-bottom: 0;
  font-size: 1.1rem;
}

.agenda-table { margin-bottom: 0; }

.agenda-table thead th {
  background: #f1f3f5;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid #dee2e6;
  padding: .7rem 1rem;
}

.agenda-table td { padding: .75rem 1rem; vertical-align: middle; border-bottom: 1px solid #f1f3f5; }

.row-registration td { background: #fff8e1; }
.row-opening      td { background: #e8f5e9; }
.row-keynote      td { background: #fff3e0; }
.row-break        td { background: #f5f5f5; color: #9e9e9e; font-style: italic; }
.row-talk         td { background: #fff; }
.row-panel        td { background: #fce4ec; }

/* ── GALLERY ─────────────────────────────────────────── */
.gallery-group-photo {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  box-shadow: 0 6px 30px rgba(0,0,0,.14);
}

.gallery-group-placeholder {
  width: 100%;
  height: 420px;
  border-radius: 14px;
  background: #dee2e6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  border: 2px dashed #ced4da;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  height: 220px;
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  background: #dee2e6;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform .3s;
  display: block;
  cursor: pointer;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: .8rem;
  border: 2px dashed #ced4da;
  border-radius: 9px;
}

/* ── LIGHTBOX ────────────────────────────────────────── */
.cf-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.cf-lightbox.open { display: flex; }

.cf-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  cursor: default;
}

.cf-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: .8;
  transition: opacity .15s;
}
.cf-lightbox-close:hover { opacity: 1; }

.gallery-group-photo { cursor: pointer; }

/* ── FOOTER ──────────────────────────────────────────── */
footer a { color: #8ba3bc !important; text-decoration: none; }
footer a:hover { color: var(--cf-blue) !important; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 991px) {
  .speaker-photo-lg { width: 180px; height: 180px; }
  .keynote-card { padding: 1.5rem; }
}

@media (max-width: 768px) {
  .cf-hero-title { font-size: 3.5rem; }
  .cf-stat { padding: .5rem 1rem; border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-group-placeholder { height: 280px; }
}

@media (max-width: 576px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .cf-hero-stats { flex-direction: column; }
}
