/* ===== CSS Variables ===== */
:root {
  --navy: #1a2e4a;
  --navy-light: #243b5e;
  --gold: #c8a84b;
  --gold-light: #d4b95f;
  --white: #ffffff;
  --off-white: #f5f6f8;
  --gray-light: #e8eaed;
  --gray: #6b7280;
  --text: #1f2937;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: 'Merriweather', serif;
  color: var(--navy);
  line-height: 1.3;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.navbar .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--gold);
}

.navbar-brand svg,
.navbar-brand img {
  flex-shrink: 0;
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(200, 168, 75, 0.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #2d4a6f 100%);
  color: var(--white);
  padding: 10rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

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

.hero h1 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero .details {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 168, 75, 0.4);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ===== Countdown ===== */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.countdown-item {
  text-align: center;
}

.countdown-item .number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  color: var(--gold);
  line-height: 1;
}

.countdown-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 1.5rem;
}

.section-alt {
  background: var(--off-white);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-top: 0.5rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 800px;
  margin-bottom: 2.5rem;
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 8rem 1.5rem 3rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* ===== Chairs Row ===== */
.chairs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
  justify-content: center;
}

.chair-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  flex: 1 1 260px;
  max-width: 340px;
}

.chair-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}

.chair-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.chair-info strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.chair-info span {
  font-size: 0.82rem;
  color: var(--gray);
}

.chair-info .chair-role {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}

/* ===== Callout Box ===== */
.callout-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 2rem 2.5rem;
  border-radius: 8px;
  margin: 3rem 0;
  box-shadow: var(--shadow-lg);
}

.callout-box h3 {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.callout-box a {
  color: var(--gold);
  text-decoration: underline;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--gold);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--gray);
}

.card .card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

/* ===== Key Dates Cards ===== */
.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.date-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 3px solid var(--gold);
  transition: transform var(--transition);
}

.date-card:hover {
  transform: translateY(-3px);
}

.date-card .date {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.date-card .desc {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ===== Logos Row ===== */
.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 220px;
  height: 220px;
  text-align: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.logo-item .logo-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.logo-item img,
.logo-item svg {
  max-height: 100px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}

.logo-item .logo-img-wrap--dark {
  background: #1a2744;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.logo-item span {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
  line-height: 1.4;
}

/* ===== Leadership Cards ===== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.leader-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  transition: transform var(--transition);
}

.leader-card:hover {
  transform: translateY(-3px);
}

.leader-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.leader-card .institution {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.leader-card .role {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
}

/* ===== Theme Cards ===== */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.theme-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--gold);
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.theme-card .theme-number {
  background: var(--navy);
  color: var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  flex-shrink: 0;
}

.theme-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.theme-card .theme-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 2rem auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
}

.timeline-item {
  position: relative;
  padding: 1.5rem 0 1.5rem 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.55rem;
  top: 1.75rem;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold);
}

.timeline-item .timeline-date {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.timeline-item .timeline-desc {
  color: var(--gray);
}

/* ===== Guidelines ===== */
.guidelines-list {
  list-style: none;
  margin: 1.5rem 0;
}

.guidelines-list li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--gray-light);
}

.guidelines-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

/* ===== Journal Cards ===== */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.journal-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 3px solid var(--gold);
}

.journal-card .journal-cover {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  background: var(--off-white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.journal-card .journal-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.journal-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.journal-card p {
  font-size: 0.85rem;
  color: var(--gray);
}

/* ===== Committee Table ===== */
.search-box {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  transition: border-color var(--transition);
  margin-bottom: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.75rem center;
}

.search-box:focus {
  outline: none;
  border-color: var(--gold);
}

.committee-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.committee-table thead {
  background: var(--navy);
  color: var(--white);
}

.committee-table th {
  padding: 1rem;
  text-align: left;
  font-family: 'Merriweather', serif;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.committee-table th:hover {
  background: var(--navy-light);
}

.committee-table th .sort-icon {
  margin-left: 0.5rem;
  opacity: 0.5;
}

.committee-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.95rem;
}

.committee-table tbody tr:hover {
  background: var(--off-white);
}

.committee-table tbody tr.hidden {
  display: none;
}

.member-count {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ===== Venue ===== */
.venue-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 8rem 1.5rem 3rem;
  text-align: center;
  position: relative;
}

.venue-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ===== Contact Card ===== */
.contact-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  border-top: 4px solid var(--gold);
}

.contact-card h3 {
  margin-bottom: 1rem;
}

.contact-card p {
  margin-bottom: 0.5rem;
}

.contact-card a {
  color: var(--navy);
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--gold);
}

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer a {
  color: var(--gold);
}

.footer .footer-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto;
  opacity: 0.5;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 8rem 1.5rem 3rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .countdown-item .number {
    font-size: 1.75rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .venue-info {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .leadership-grid,
  .theme-grid,
  .journal-grid,
  .dates-grid {
    grid-template-columns: 1fr;
  }

  .logos-row {
    gap: 2rem;
  }

  .committee-table th,
  .committee-table td {
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
  }

  .page-header {
    padding: 7rem 1.5rem 2rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.4rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .countdown {
    gap: 1rem;
  }
}
