/* ==========================================
   WACIIS-2026 Conference Website Styles
   ========================================== */

/* ---- Google Fonts (CDN with local fallbacks) ---- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Font Awesome ---- */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* ==========================================
   Note: Poppins & Inter are served via Google Fonts (@import above).
   To self-host later, download the woff2 files, place them in ./fonts/,
   and re-add @font-face declarations pointing to them.
   ========================================== */

/* ==========================================
   CSS Variables
   ========================================== */
:root {
  --primary: #1a237e;
  --primary-light: #283593;
  --primary-dark: #0d1642;
  --accent: #00897b;
  --accent-light: #4db6ac;
  --accent-amber: #ffc107;
  --accent-amber-dark: #ff8f00;

  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-dark: #0d1642;
  --bg-section: #f0f4f8;

  --text-primary: #1a1a2e;
  --text-secondary: #5a5a6e;
  --text-light: #ffffff;
  --text-muted: #8892a0;

  --border: #e2e8f0;
  --border-light: #edf2f7;

  --shadow-sm: 0 2px 8px rgba(26, 35, 126, 0.08);
  --shadow-md: 0 8px 30px rgba(26, 35, 126, 0.12);
  --shadow-lg: 0 12px 40px rgba(26, 35, 126, 0.16);
  --shadow-hover: 0 16px 48px rgba(26, 35, 126, 0.20);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  --container-max: 1200px;
  --nav-height: 64px;
  --topbar-height: 60px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h5 { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* Headings inside cards and special contexts keep tighter spacing */
.card-title,
.person-card .name,
.timeline-title,
.info-card h4,
.highlight-card h4,
.slide-caption h4,
.footer-title { margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* ==========================================
   Layout Utilities
   ========================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header .subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ==========================================
   Top Bar
   ========================================== */
.topbar {
  background: var(--primary-dark);
  color: var(--text-light);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
}

.topbar-logo i {
  font-size: 1.5rem;
  color: var(--accent-amber);
}

.topbar-sponsor {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
}

.topbar-sponsor a {
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-sponsor a:hover {
  color: var(--accent-amber);
}

/* ==========================================
   Navigation Bar
   ========================================== */
.navbar {
  background: var(--bg-white);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-brand i {
  font-size: 1.6rem;
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--accent);
  background: rgba(0, 137, 123, 0.06);
}

.nav-menu > li > a.active {
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Dropdown */
.dropdown-toggle::after {
  content: '\f0d7';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
  margin-left: 2px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.dropdown-menu li a:hover {
  background: rgba(0, 137, 123, 0.08);
  color: var(--accent);
}

.dropdown-menu li a.active {
  color: var(--accent);
  font-weight: 600;
  background: rgba(0, 137, 123, 0.06);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 22, 66, 0.5);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand i {
  color: var(--accent-amber);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  color: var(--accent);
  margin-top: 3px;
  width: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--text-light);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--accent-light);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-light);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--text-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--text-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: var(--text-light);
  color: var(--primary-dark);
  border-color: var(--text-light);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.05rem;
}

/* ==========================================
   Cards
   ========================================== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--border-light);
}

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

.card-body {
  padding: 24px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Person Card (committee, speakers) */
.person-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-base);
  text-align: center;
  border: 1px solid var(--border-light);
}

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

.person-card .photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.person-card .photo i {
  font-size: 3rem;
  color: var(--border);
}

.person-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card .info {
  padding: 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.person-card .name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.person-card .role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.person-card .affiliation {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================
   Hero Section with Background Image Slider
   ========================================== */
.hero {
  color: var(--text-light);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

/* Background Image Slider */
.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transform: scale(1.05);
  transition: opacity 1.2s ease-in-out, transform 8s ease-out;
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Dark overlay for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 22, 66, 0.92) 0%, rgba(26, 35, 126, 0.88) 50%, rgba(40, 53, 147, 0.85) 100%);
  z-index: 1;
}

/* Hero content sits above everything */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: var(--accent-amber);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-light);
  margin-bottom: 20px;
  max-width: 800px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-meta-item i {
  color: var(--accent-amber);
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
  min-width: 80px;
}

.countdown-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-amber);
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* ==========================================
   Scroll Reveal Animation
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================
   Page Header (non-home pages)
   ========================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--text-light);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 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");
  opacity: 0.4;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--text-light);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1.25rem;
}

.page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb a:hover {
  color: var(--accent-amber);
}

.page-header .breadcrumb i {
  font-size: 0.7rem;
}

/* ==========================================
   Grid Layouts
   ========================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }

/* Ensure person-cards stretch to same height in grid rows */
.grid-2 > .person-card,
.grid-3 > .person-card,
.grid-4 > .person-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.grid-2 > .person-card .photo,
.grid-3 > .person-card .photo,
.grid-4 > .person-card .photo {
  flex-shrink: 0;
}

/* ==========================================
   Committee grid — uniform card size across all sections.
   Cards have a fixed width (matches the 4-column Workshop Chairs look)
   and wrap+center when there are fewer members, so a 2-member row
   stays compact instead of stretching to half the container.
   ========================================== */
.committee-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.committee-grid > .person-card {
  flex: 0 0 240px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
}

.committee-grid > .person-card .photo {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .committee-grid { gap: 16px; }
  .committee-grid > .person-card {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

@media (max-width: 480px) {
  .committee-grid > .person-card {
    flex: 0 0 100%;
    max-width: 320px;
  }
}

/* ==========================================
   Timeline
   ========================================== */
.timeline {
  position: relative;
  padding-left: 40px;
}

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

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  box-shadow: 0 0 0 4px var(--bg-light);
}

.timeline-dot.highlight {
  background: var(--accent-amber);
  color: var(--primary-dark);
}

.timeline-content {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ==========================================
   Tables
   ========================================== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
}

.data-table thead th {
  background: var(--primary);
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 20px;
  text-align: left;
}

.data-table tbody td {
  padding: 14px 20px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.data-table tbody tr:hover {
  background: rgba(0, 137, 123, 0.03);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================
   Forms
   ========================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================
   Gallery Grid
   ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--border) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gallery-item i {
  font-size: 2rem;
  color: var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================
   Info Cards / Feature Cards
   ========================================== */
.info-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

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

.info-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 137, 123, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.info-card-icon i {
  font-size: 1.5rem;
  color: var(--accent);
}

.info-card h4 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

/* ==========================================
   Topic List (Call for Papers)
   ========================================== */
.topic-list {
  columns: 2;
  column-gap: 40px;
}

.topic-list li {
  break-inside: avoid;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.topic-list li i {
  color: var(--accent);
  margin-top: 4px;
  font-size: 0.8rem;
}

/* ==========================================
   Sponsor Strip
   ========================================== */
.sponsor-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 0;
}

.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 16px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  min-height: 100px;
}

@media (max-width: 900px) {
  .sponsor-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .sponsor-strip { grid-template-columns: 1fr; }
}

.sponsor-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.sponsor-item i {
  font-size: 2rem;
  color: var(--primary);
}

.sponsor-logo {
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.sponsor-item span {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================
   Highlight Cards (Homepage)
   ========================================== */
.highlight-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  text-align: center;
}

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

.highlight-card .icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(0, 137, 123, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.highlight-card .icon i {
  font-size: 1.6rem;
  color: var(--accent);
}

.highlight-card h4 {
  margin-bottom: 10px;
}

.highlight-card p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* ==========================================
   Speaker Bio Expand
   ========================================== */
.bio-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.bio-expand.open {
  max-height: 500px;
}

.bio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 8px;
}

.bio-toggle:hover {
  color: var(--accent-light);
}

.bio-toggle i {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
}

.bio-toggle.open i {
  transform: rotate(180deg);
}

/* ==========================================
   Map Container
   ========================================== */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

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

/* ==========================================
   Placeholder Image
   ========================================== */
.img-placeholder {
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--border);
  font-size: 3rem;
  min-height: 200px;
}

.img-placeholder i {
  color: var(--border);
}

/* ==========================================
   Utility Classes
   ========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ==========================================
   Image Slider
   ========================================== */
.slider-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-dark);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-slow);
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 20px;
  background: linear-gradient(transparent, rgba(13, 22, 66, 0.85));
  color: var(--text-light);
  z-index: 3;
}

.slide-caption h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 4px;
}

.slide-caption p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
  background: var(--text-light);
  color: var(--accent);
  transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: var(--radius-full);
}

.dot:hover {
  background: var(--accent-light);
}

/* ==========================================
   Responsive Styles
   ========================================== */
@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .slider-wrapper { border-radius: var(--radius-md); }
  .slider-btn { width: 36px; height: 36px; font-size: 0.85rem; }
  .slider-btn.prev { left: 10px; }
  .slider-btn.next { right: 10px; }
  .slide-caption { padding: 30px 16px 16px; }
  .slide-caption h4 { font-size: 1rem; }
  .slide-caption p { font-size: 0.8rem; }
}

@media (max-width: 1199px) {
  :root {
    --topbar-height: 50px;
    --nav-height: 56px;
  }

  .section { padding: 48px 0; }
  .container { padding: 0 16px; }

  .topbar-logo { font-size: 0.75rem; }
  .topbar-logo i { font-size: 1.2rem; }
  .topbar-sponsor { font-size: 0.7rem; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 20px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-base);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu > li {
    width: 100%;
  }

  .nav-menu > li > a {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border-light);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
  }

  .dropdown.open .dropdown-menu {
    max-height: 200px;
  }

  .hamburger {
    display: flex;
  }

  .hero { padding: 48px 0 64px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .countdown { gap: 8px; }
  .countdown-item { padding: 12px 16px; min-width: 65px; }
  .countdown-value { font-size: 1.5rem; }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-auto { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .topic-list { columns: 1; }
  .sponsor-strip { gap: 16px; }

  .timeline { padding-left: 32px; }
  .timeline::before { left: 8px; }
  .timeline-dot { left: -28px; width: 22px; height: 22px; font-size: 0.6rem; }

  .hero-meta { gap: 12px; }
  .hero-meta-item { font-size: 0.85rem; }
}

/* ==========================================
   Accessibility
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-hover: none;
  }
  .card,
  .info-card,
  .highlight-card,
  .person-card {
    border: 2px solid var(--border);
  }
}
