/* ============================================
   ICFAC 2026 Conference Website
   Shared Stylesheet
   ============================================ */

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

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-pink: #ED1566;
  --color-blue: #1D4BE6;
  --color-dark-purple: #620674;
  --color-navy: #343F64;
  --color-yellow: #EDE215;
  --color-yellow-btn: #F7E636;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-light-gray: #FAFAFA;
  --color-dark-text: #2F2E2E;
  --color-body-bg: #f5f0f7;

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

  --max-width: 980px;
  --header-height: auto;

  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-pill: 50px;
}

/* ---------- 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);
  color: var(--color-black);
  background-color: var(--color-body-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-white);
  text-align: center;
  padding: 20px 0 0;
  margin-bottom: 15px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header-logo {
  width: 80px;
  height: auto;
  object-fit: contain;
}

.header-title {
  text-align: center;
  flex: 1;
}

.header-title h1 {
  font-size: 28px;
  color: var(--color-pink);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.header-title h2 {
  font-size: 18px;
  color: var(--color-navy);
  font-weight: 500;
  margin-top: 4px;
}

.header-title p {
  font-size: 14px;
  color: var(--color-dark-text);
  margin-top: 2px;
}

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--color-dark-purple);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.nav-list li a {
  display: inline-block;
  padding: 8px 20px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
  background: var(--color-yellow-btn);
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-list li a:hover,
.nav-list li a.active {
  background: var(--color-yellow);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}



/* ---------- Hero / Page Banner ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #e8d5f0 0%, #d5dff7 50%, #f0e0f5 100%);
  padding: 50px 20px;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('assets/images/bg_pink_sugar.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

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

.page-hero h2 {
  font-size: 36px;
  color: var(--color-pink);
  font-weight: 700;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 16px;
  color: var(--color-navy);
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Content Sections ---------- */
.content-section {
  padding: 50px 20px;
  background: var(--color-white);
}

.content-section:nth-child(even) {
  background: var(--color-light-gray);
}

.section-title {
  font-size: 30px;
  color: var(--color-pink);
  text-align: center;
  margin-bottom: 8px;
  font-weight: 700;
}

.section-subtitle {
  font-size: 24px;
  color: var(--color-blue);
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
}

.section-text {
  font-size: 15px;
  color: var(--color-dark-text);
  text-align: justify;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-text+.section-text {
  margin-top: 20px;
}

/* ---------- Image Section (for speaker/committee images) ---------- */
.image-showcase {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.image-showcase img {
  width: 100%;
  max-width: 750px;
  margin: 15px auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ---------- Themed Cards ---------- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 25px auto 0;
}

.theme-card {
  background: linear-gradient(135deg, #f7e6f0, #e6eaf7);
  border-left: 4px solid var(--color-pink);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-navy);
  transition: transform 0.2s ease;
}

.theme-card:hover {
  transform: translateX(4px);
}

/* ---------- Registration Info ---------- */
.bank-details {
  background: var(--color-white);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 25px 30px;
  max-width: 600px;
  margin: 20px auto;
  box-shadow: var(--shadow);
}

.bank-details h3 {
  color: var(--color-blue);
  font-size: 20px;
  margin-bottom: 15px;
  text-align: center;
}

.bank-details table {
  width: 100%;
  border-collapse: collapse;
}

.bank-details td {
  padding: 8px 4px;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.bank-details td:first-child {
  font-weight: 600;
  color: var(--color-navy);
  width: 40%;
}

.fee-image {
  max-width: 500px;
  margin: 25px auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ---------- Committee Lists ---------- */
.committee-section {
  margin-bottom: 40px;
}

.committee-title {
  font-size: 26px;
  color: var(--color-blue);
  background: var(--color-white);
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 20px;
  font-weight: 700;
}

.committee-list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
}

.committee-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  text-align: center;
}

.committee-list li strong {
  color: var(--color-navy);
}

.organizing-list {
  columns: 2;
  column-gap: 30px;
  max-width: 700px;
  margin: 0 auto;
}

.organizing-list li {
  break-inside: avoid;
  padding: 6px 0;
  font-size: 14px;
  color: var(--color-dark-text);
  font-weight: 600;
}

/* ---------- Contact Cards ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: 30px auto;
}

.contact-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

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

.contact-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 3px solid var(--color-pink);
}

.contact-card h3 {
  font-size: 18px;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.contact-card .role {
  font-size: 14px;
  color: var(--color-pink);
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 13px;
  color: #666;
}

/* ---------- Map Preview ---------- */
.map-preview {
  max-width: 800px;
  margin: 30px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-preview iframe {
  display: block;
  width: 100%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--color-pink);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #d1135a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(237, 21, 102, 0.3);
}

.btn-secondary {
  background: var(--color-yellow-btn);
  color: var(--color-black);
}

.btn-secondary:hover {
  background: var(--color-yellow);
  transform: translateY(-2px);
}

.btn-center {
  text-align: center;
  margin-top: 25px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark-purple);
  color: var(--color-white);
  padding: 40px 20px;
  text-align: center;
}

.footer-logo {
  width: 80px;
  height: auto;
  margin: 0 auto 15px;
}

.footer-brochure {
  margin-bottom: 20px;
}

.footer-brochure a {
  color: var(--color-yellow);
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s;
}

.footer-brochure a:hover {
  color: var(--color-white);
}

.footer-address {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 15px;
  opacity: 0.9;
}

.footer-credit {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 15px;
}

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

/* ---------- Hamburger Menu Toggle ---------- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 10;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-white);
  border-radius: 3px;
  transition: all 0.3s ease;
  margin: 5px 0;
}

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

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

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

/* ---------- Responsive ---------- */

/* ---- Tablet & Small Desktop (≤768px) ---- */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px;
  }

  .header-logo {
    width: 55px;
  }

  .header-title h1 {
    font-size: 20px;
  }

  .header-title h2 {
    font-size: 14px;
  }

  .header-title p {
    font-size: 12px;
  }

  /* --- Hamburger hidden, using scrollable horizontal nav instead --- */
  .menu-toggle {
    display: none;
  }


  /* --- Marquee Animation --- */
  /* --- Fit all items in screen width (wrapping) --- */
  .site-nav {
    padding: 8px 0;
    /* Slightly tighter padding */
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-dark-purple);
    overflow-x: hidden;
    /* Disable horizontal scroll */
  }

  /* .site-nav::-webkit-scrollbar rules removed as no scroll */

  .nav-list {
    display: flex;
    flex-wrap: nowrap !important;
    /* Force single row */
    justify-content: space-between;
    /* Distribute items evenly */
    align-items: center;
    gap: 2px;
    /* Very small gap */
    padding: 0 4px;
    /* Minimal padding */
    width: 100%;
    /* Fit screen exactly */
  }

  .nav-list li {
    flex: 1;
    /* Grow/shrink equally to fill space */
    min-width: 0;
  }

  .nav-list li a {
    display: block;
    width: 100%;
    padding: 6px 2px;
    /* Very small padding */
    border-radius: 4px;
    text-align: center;
    font-size: 10px;
    /* Small font to fit text */
    font-weight: 600;
    border-bottom: none;
    background: var(--color-yellow-btn);
    color: var(--color-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list li a:hover,
  .nav-list li a.active {
    background: var(--color-yellow);
    color: var(--color-black);
    transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  /* --- Hero & Sections --- */
  .page-hero {
    padding: 35px 15px;
  }

  .page-hero h2 {
    font-size: 24px;
  }

  .page-hero p {
    font-size: 14px;
  }

  .content-section {
    padding: 35px 15px;
  }

  .section-title {
    font-size: 22px;
  }

  .section-subtitle {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .section-text {
    text-align: left;
    font-size: 14px;
    line-height: 1.7;
  }

  /* --- Grids & Lists --- */
  .theme-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-card img {
    width: 120px;
    height: 120px;
  }

  .organizing-list {
    columns: 1;
  }

  /* --- Images --- */
  .image-showcase img {
    max-width: 100%;
    border-radius: 6px;
  }

  .fee-image {
    max-width: 100%;
  }

  /* --- Bank Details Table --- */
  .bank-details {
    padding: 18px 15px;
  }

  .bank-details td {
    font-size: 13px;
    padding: 6px 2px;
  }

  .bank-details td:first-child {
    width: 38%;
  }

  /* --- Buttons --- */
  .btn {
    padding: 12px 24px;
    font-size: 15px;
    width: 100%;
    max-width: 320px;
  }

  .btn-center {
    display: flex;
    justify-content: center;
  }

  /* --- Footer --- */
  .site-footer {
    padding: 30px 15px;
  }

  .footer-logo {
    width: 60px;
  }

  /* --- Committee --- */
  .committee-title {
    font-size: 20px;
  }

  .committee-list li {
    font-size: 13px;
    padding: 8px 0;
  }
}

/* ---- Small Phones (≤480px) ---- */
@media (max-width: 480px) {
  .header-top {
    gap: 8px;
    padding: 8px 10px;
  }

  .header-logo {
    width: 45px;
  }

  .header-title h1 {
    font-size: 16px;
    letter-spacing: 0;
  }

  .header-title h2 {
    font-size: 13px;
  }

  .header-title p {
    font-size: 11px;
  }





  .page-hero {
    padding: 25px 12px;
  }

  .page-hero h2 {
    font-size: 20px;
  }

  .page-hero p {
    font-size: 13px;
  }

  .content-section {
    padding: 25px 12px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-subtitle {
    font-size: 17px;
  }

  .section-text {
    font-size: 13px;
  }

  .theme-card {
    font-size: 13px;
    padding: 12px 14px;
  }

  .bank-details {
    padding: 15px 12px;
  }

  .bank-details h3 {
    font-size: 17px;
  }

  .bank-details td {
    font-size: 12px;
    display: block;
    width: 100% !important;
    padding: 3px 0;
    border-bottom: none;
  }

  .bank-details tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .bank-details table {
    display: block;
  }

  .bank-details tbody {
    display: block;
  }

  .bank-details td:first-child {
    color: var(--color-pink);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .contact-card {
    padding: 20px 15px;
  }

  .contact-card img {
    width: 100px;
    height: 100px;
  }

  .contact-card h3 {
    font-size: 16px;
  }

  .contact-card .role {
    font-size: 12px;
  }

  .footer-address {
    font-size: 12px;
  }

  .footer-brochure a {
    font-size: 14px;
  }

  .footer-credit {
    font-size: 11px;
  }

  .organizing-list li {
    font-size: 13px;
  }

  .committee-list li {
    font-size: 12px;
    padding: 7px 0;
  }
}