/* ===== TTEP 2026 Custom Styles (Bootstrap 5 companion) ===== */

:root {
  --ttep-primary: #1a3a6b;
  --ttep-secondary: #2c5aa0;
  --ttep-accent: #e63946;
  --ttep-light: #f0f4f8;
  --ttep-gold: #d4a843;
  --ttep-dark: #0d1b2a;
  --ttep-gray: #6c757d;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background: var(--ttep-light);
}

a { color: var(--ttep-secondary); transition: color 0.2s; }
a:hover { color: var(--ttep-accent); }

/* Navbar */
.navbar {
  background: linear-gradient(135deg, var(--ttep-primary), var(--ttep-secondary));
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.navbar-brand img { max-height: 60px; }
.navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500; text-transform: uppercase; font-size: 0.9rem;
  letter-spacing: 0.5px; padding: 0.6rem 1rem !important; transition: all 0.2s;
}
.navbar .nav-link:hover, .navbar .nav-link.active {
  color: #fff !important; background: rgba(255,255,255,0.12); border-radius: 4px;
}

/* Hero */
.hero-banner {
  background: linear-gradient(135deg, var(--ttep-primary) 0%, var(--ttep-secondary) 60%, #3a7bd5 100%);
  color: #fff; padding: clamp(1rem, 2vw, 2rem) 0; position: relative; overflow: hidden;
  height: clamp(170px, 18vw, 280px); display: flex; align-items: center;
}
.hero-banner .hero-left { text-align: center; }
.hero-banner .hero-left img { max-height: clamp(80px, 10vw, 140px); width: auto; }
.hero-banner .hero-center { text-align: center; }
.hero-banner .hero-center .hero-org {
  font-size: clamp(0.75rem, 1vw, 1.05rem); font-weight: 400; opacity: 0.9;
  line-height: 1.35; margin-bottom: 0.4rem; letter-spacing: 0.3px;
}
.hero-banner .hero-center h1 {
  font-size: clamp(1.15rem, 1.8vw, 2rem); font-weight: 700; margin: 0;
}
.hero-banner .hero-center .hero-subtitle {
  font-size: clamp(0.85rem, 1.1vw, 1.15rem); font-weight: 300; margin-top: 0.2rem; opacity: 0.85;
}
.hero-banner .hero-right { text-align: center; }
.hero-banner .hero-right img { max-height: clamp(45px, 6vw, 80px); width: auto; display: block; margin: 0 auto 0.3rem auto; }
@media (max-width: 767.98px) {
  .hero-banner { height: auto; min-height: 150px; padding: 1rem 0; }
  /* All logos in one row on top, text below */
  .hero-banner .row {
    display: flex !important; flex-wrap: wrap !important;
    justify-content: center; align-items: center;
    gap: 0;
  }
  .hero-banner .hero-left,
  .hero-banner .hero-right {
    order: 1; width: auto !important; flex: 0 0 auto !important; max-width: none !important;
    display: flex; align-items: center; justify-content: center;
    gap: 0.7rem; padding: 0; margin: 0;
  }
  .hero-banner .hero-left img,
  .hero-banner .hero-right img {
    max-height: clamp(22px, 6vw, 32px); width: auto; display: inline-block; margin: 0;
  }
  .hero-banner .hero-left img { max-height: clamp(45px, 12vw, 65px); }
  .hero-banner .hero-center {
    order: 3; flex: 0 0 100% !important; max-width: 100% !important;
    width: 100% !important; margin-top: 0.5rem;
  }
  .hero-banner .hero-center h1 { font-size: 1.05rem; }
  .hero-banner .hero-center .hero-org { font-size: 0.65rem; }
  .hero-banner .hero-center .hero-subtitle { font-size: 0.75rem; }
}

/* Section Titles */
.section-title {
  color: var(--ttep-primary); font-weight: 700; font-size: 1.5rem;
  border-bottom: 3px solid var(--ttep-gold); padding-bottom: 0.4rem;
  margin-bottom: 1.2rem; display: inline-block;
}

/* Cards */
.card {
  border: none; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.card-header {
  background: var(--ttep-primary); color: #fff; font-weight: 600;
  border-radius: 10px 10px 0 0 !important;
}

/* Topic badges */
.topic-badge {
  display: inline-block; background: var(--ttep-light); color: var(--ttep-primary);
  border: 1px solid #d0d8e4; border-radius: 20px; padding: 0.3rem 0.85rem;
  margin: 0.2rem; font-size: 0.85rem; font-weight: 500; transition: all 0.2s;
}
.topic-badge:hover { background: var(--ttep-secondary); color: #fff; border-color: var(--ttep-secondary); }

/* Officer cards */
.officer-card { text-align: center; padding: 1.5rem 1rem; }
.officer-card .officer-role {
  color: var(--ttep-accent); font-weight: 700; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem;
}
.officer-card .officer-name { font-size: 1.1rem; font-weight: 600; color: var(--ttep-primary); }
.officer-card .officer-affil { font-size: 0.88rem; color: var(--ttep-gray); font-style: italic; }
.officer-card .officer-email a { font-size: 0.88rem; }

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, var(--ttep-accent), #c62e3a);
  color: #fff; border-radius: 10px; padding: 1.5rem 2rem; text-align: center;
  font-size: 1.1rem; box-shadow: 0 4px 15px rgba(230,57,70,0.3);
}
.highlight-box .deadline-date { font-size: 1.6rem; font-weight: 700; display: block; margin-top: 0.3rem; }
.highlight-box .deadline-old {
  display: block;
  color: #b0b0b0;
  text-decoration: line-through;
  font-weight: 500;
  font-size: 1.1rem;
}
.highlight-box .deadline-new {
  display: block;
  color: #ff3b30;
  font-weight: 700;
  background: #fff;
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  margin-top: 0.2rem;
}

/* Conference badge */
.conf-badge {
  display: inline-block; background: var(--ttep-secondary); color: #fff;
  padding: 0.4rem 1rem; border-radius: 6px; font-weight: 600; font-size: 0.95rem; margin: 0.3rem 0;
  transition: background 0.2s, transform 0.2s;
}
a.conf-badge:hover {
  background: var(--ttep-primary); color: #fff; transform: translateY(-1px);
}

/* Tables */
.table-ttep thead { background: var(--ttep-primary); color: #fff; }
.table-ttep th, .table-ttep td { vertical-align: middle; }

/* TPC list */
.tpc-list { column-count: 2; column-gap: 2rem; }
@media (max-width: 768px) { .tpc-list { column-count: 1; } }
.tpc-member { padding: 0.3rem 0; border-bottom: 1px solid #eee; }
.tpc-member .name { font-weight: 600; color: var(--ttep-primary); }
.tpc-member .affil { font-style: italic; color: var(--ttep-gray); font-size: 0.9rem; }

/* Footer */
footer {
  background: var(--ttep-dark); color: rgba(255,255,255,0.7); padding: 1.5rem 0; font-size: 0.9rem;
}
footer a { color: var(--ttep-gold); }
footer a:hover { color: #fff; }
footer img { max-height: 65px; opacity: 0.8; }

/* Buttons */
.btn-ttep {
  background: var(--ttep-accent); color: #fff; border: none; border-radius: 6px;
  padding: 0.6rem 1.5rem; font-weight: 600; transition: all 0.2s;
}
.btn-ttep:hover {
  background: #c62e3a; color: #fff; transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230,57,70,0.3);
}
.btn-primary-ttep {
  background: var(--ttep-secondary); color: #fff; border: none; border-radius: 6px;
  padding: 0.6rem 1.5rem; font-weight: 600; transition: all 0.2s;
}
.btn-primary-ttep:hover { background: var(--ttep-primary); color: #fff; }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; background: var(--ttep-secondary);
  color: #fff; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; opacity: 0.7; transition: opacity 0.2s; z-index: 999;
}
.back-to-top:hover { opacity: 1; color: #fff; }

/* Responsive */
@media (max-width: 576px) {
  .hero-banner { padding: 1.5rem 0; }
  .hero-banner img.logo { max-width: 300px; }
  .hero-banner h1 { font-size: 1.2rem; }
  .section-title { font-size: 1.2rem; }
  .highlight-box .deadline-date { font-size: 1.3rem; }
}
