/* ── Tiger Debate Camp brand typefaces ── */
@font-face {
  font-family: 'Apercu Pro';
  src: url("../Fonts/Apercu Pro/Apercu Pro Light.otf") format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Apercu Pro';
  src: url("../Fonts/Apercu Pro/Apercu Pro Regular.otf") format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Apercu Pro';
  src: url("../Fonts/Apercu Pro/Apercu Pro Italic.otf") format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Apercu Pro';
  src: url("../Fonts/Apercu Pro/Apercu Pro Medium.otf") format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Apercu Pro';
  src: url("../Fonts/Apercu Pro/Apercu Pro Bold.otf") format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gelasio';
  src: url("../Fonts/Gelasio/Gelasio-SemiBold.ttf") format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gelasio';
  src: url("../Fonts/Gelasio/Gelasio-Bold.ttf") format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── Tiger Debate Camp brand palette ── */
:root {
  --crimson:    #b81c2e;
  --crimson-dk: #8f1522;
  --crimson-lt: #d42338;
  --black:      #111111;
  --ink:        #1a1a1a;
  --white:      #ffffff;

  --primary:    var(--crimson);
  --accent:     var(--crimson-lt);
  --bg:         var(--white);
  --surface:    #f8f4f4;
  --text:       var(--ink);
  --text-muted: #5a5050;
  --border:     #e0d0d0;

  --radius:     12px;
  --radius-pill: 999px;
  --font-body:    'Apercu Pro', 'Helvetica Neue', Arial, sans-serif;
  --font-head:    'Apercu Pro', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Gelasio', Georgia, 'Times New Roman', serif;
  --shadow:     0 8px 24px rgba(184,28,46,0.08);
  --shadow-lg:  0 16px 40px rgba(184,28,46,0.16);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Header ── */
header {
  background: var(--black);
  color: var(--white);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 4px 16px rgba(0,0,0,0.3);
  border-bottom: 3px solid var(--crimson);
  min-height: 72px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: .85rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-chapter {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  border-left: 2px solid rgba(255,255,255,.2);
  padding-left: .85rem;
}
.logo-chapter .chapter-school {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.logo-chapter .chapter-tag {
  font-size: .7rem;
  font-weight: 500;
  color: var(--crimson-lt);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}
@media (max-width: 640px) {
  .logo-chapter { display: none; }
}

nav { display: flex; gap: .25rem; align-items: center; }

nav a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  padding: .55rem 1rem;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

nav a:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
}

nav a.active {
  background: var(--crimson);
  color: var(--white);
}

nav a.nav-accent {
  background: var(--crimson);
  color: var(--white);
  font-weight: 700;
  margin-left: .5rem;
}

nav a.nav-accent:hover { background: var(--crimson-lt); color: var(--white); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--white);
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Mobile nav ── */
@media (max-width: 640px) {
  .hamburger { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 1rem;
    gap: .35rem;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 12px 28px rgba(0,0,0,.4);
  }
  nav.open { display: flex; }
  nav a { width: 100%; text-align: center; padding: .8rem; }
}

/* ── Main content ── */
main {
  flex: 1;
  opacity: 1;
  transition: opacity var(--transition);
}
main.fading { opacity: 0; }

/* ── Page container ── */
.page { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--black) 0%, #2a0a0e 60%, #1a0508 100%);
  color: var(--white);
  padding: 5.5rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(184,28,46,.22) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 80%, rgba(184,28,46,.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  width: 420px;
  height: 420px;
  background-image: url("../Media/logo-tdc.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.07;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crimson-lt);
  margin-bottom: 1.25rem;
  padding: .35rem .85rem;
  border: 1px solid rgba(184,28,46,.45);
  border-radius: var(--radius-pill);
  background: rgba(184,28,46,.1);
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--crimson-lt);
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
}

.hero h1 span { color: var(--crimson-lt); }

.hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
  max-width: 600px;
  margin: 0 auto 2.2rem;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--crimson);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(184,28,46,.38);
}
.btn-primary:hover { background: var(--crimson-lt); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-navy {
  background: var(--black);
  color: var(--white);
}
.btn-navy:hover { background: #2a2a2a; color: var(--white); }
.btn-danger { background: #dc3545; color: var(--white); }

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Sections ── */
.section { padding: 4rem 1.5rem; }
.section-alt { background: var(--surface); }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: .55rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.section-line {
  width: 56px;
  height: 4px;
  background: var(--crimson);
  border-radius: 2px;
  margin-bottom: 2rem;
}

/* ── Announcement card (homepage) ── */
.announcement-section { padding: 2.5rem 1.5rem 0; }
.announcement {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--crimson);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
}
.announcement-icon {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  background: linear-gradient(135deg, var(--crimson-dk) 0%, var(--crimson) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 6px 14px rgba(184,28,46,.22);
}
.announcement-body { min-width: 0; }
.announcement-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: .35rem;
}
.announcement-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: .3rem;
  letter-spacing: -0.01em;
}
.announcement-text {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.announcement-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--crimson);
  color: var(--white);
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.announcement-cta:hover { background: var(--crimson-lt); transform: translateY(-1px); }

@media (max-width: 720px) {
  .announcement {
    grid-template-columns: auto 1fr;
    row-gap: 1rem;
  }
  .announcement-cta { grid-column: 1 / -1; justify-self: start; }
}

/* ── Embedded calendars ── */
.embeds-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .embeds-grid.two-col { grid-template-columns: 1fr 1fr; }
}
.embed-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.embed-card-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--black);
  font-size: .95rem;
  display: flex; align-items: center; gap: .55rem;
}
.embed-card-head svg { color: var(--crimson); }
.embed-frame {
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
  background: var(--surface);
}

/* ── Cards grid ── */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(184,28,46,.25);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--crimson-dk) 0%, var(--crimson) 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 12px rgba(184,28,46,.22);
}
.card-icon svg { fill: var(--white); }

.card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  margin-bottom: .5rem;
}

.card p {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--crimson);
  text-decoration: none;
  transition: color var(--transition), gap var(--transition);
}
.card a.card-link:hover { color: var(--crimson-dk); gap: .55rem; }

/* ── Officers ── */
.officers {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.officer {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.officer:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.officer-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson-dk) 0%, var(--crimson) 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .85rem;
  font-family: var(--font-head);
  font-size: 1.45rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 16px rgba(184,28,46,.25);
  overflow: hidden;
}
.officer-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.officer h4 {
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: .15rem;
}
.officer span {
  font-size: .76rem;
  color: var(--text-muted);
  letter-spacing: .02em;
}

/* ── CTA banner ── */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--black) 0%, #2a0a0e 100%);
  color: var(--white);
  border-radius: 18px;
  padding: 3rem 2.5rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.cta-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 240px;
  height: 240px;
  background-image: url("../Media/logo-tdc.png");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
}

.cta-banner h2 {
  position: relative;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: .85rem;
}

.cta-banner p {
  position: relative;
  color: rgba(255,255,255,.82);
  margin-bottom: 1.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.cta-banner .hero-actions { position: relative; }

/* ── Events ── */
.events-list {
  max-height: 360px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.events-list::-webkit-scrollbar { width: 8px; }
.events-list::-webkit-scrollbar-thumb {
  background: rgba(184,28,46,.2);
  border-radius: 4px;
}
.events-list::-webkit-scrollbar-thumb:hover { background: rgba(184,28,46,.35); }

.event-item {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: .7rem .25rem;
  border-bottom: 1px solid var(--border);
}
.event-item:last-child { border-bottom: none; }

.event-date {
  color: var(--crimson);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  flex-shrink: 0;
  min-width: 92px;
  line-height: 1.3;
}

.event-info { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; flex: 1; }
.event-info h4 {
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  color: var(--black);
}
.event-info p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── Format table ── */
.format-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.format-table th {
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  text-align: left;
  padding: .7rem 1rem;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.format-table th:first-child { border-radius: 10px 0 0 0; }
.format-table th:last-child { border-radius: 0 10px 0 0; text-align: right; }
.format-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.format-table td:last-child { text-align: right; font-weight: 600; color: var(--crimson); }
.format-table tr:last-child td { border-bottom: none; }
.format-table tr:nth-child(even) td { background: var(--surface); }
.format-table .round-divider td {
  background: rgba(184,28,46,.06);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--crimson-dk);
  padding: .4rem 1rem;
  border-bottom: 1px solid rgba(184,28,46,.15);
}

/* ── Spinner ── */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-left: .3rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-full { width: 100%; justify-content: center; }

/* ── Footer ── */
footer {
  background: var(--black);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.footer-logo {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: .25rem;
}

.footer-divider {
  width: 40px;
  height: 2px;
  background: var(--crimson);
  border-radius: 2px;
  opacity: .7;
  margin: .25rem 0;
}

.insta-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: color var(--transition);
}
.insta-link:hover { color: var(--white); }

.footer-tag {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .45;
}

.footer-admin {
  font-size: .7rem;
  color: rgba(255,255,255,.15);
  text-decoration: none;
  margin-top: .5rem;
  transition: color var(--transition);
}
.footer-admin:hover { color: rgba(255,255,255,.4); }

/* ── Info stats strip ── */
.stats-strip {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2.5rem 1.5rem;
  background: var(--black);
  border-top: 3px solid var(--crimson);
}
.stat-item {
  text-align: center;
  color: var(--white);
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--crimson-lt);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .6;
}

/* ── About page ── */
.about-founder {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.about-founder-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson-dk) 0%, var(--crimson) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  color: var(--white);
  font-weight: 700;
  flex: 0 0 100px;
  box-shadow: 0 8px 20px rgba(184,28,46,.28);
}
.about-founder-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: .15rem;
}
.about-founder-info .role-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: .75rem;
}
.about-founder-info p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
}

/* ── Mission strip ── */
.mission-strip {
  background: linear-gradient(135deg, var(--black) 0%, #2a0a0e 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.mission-strip .motto {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  font-style: italic;
  color: var(--white);
  margin-bottom: .5rem;
}
.mission-strip .motto-latin {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crimson-lt);
  opacity: .85;
}

/* ── Flyer section ── */
.flyer-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}
.flyer-wrap img {
  max-width: 480px;
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
