/* ============================================================
   GLOBAL VARIABLES & THEME SYSTEM
   ============================================================ */

:root {
    /* Core palette */
    --color-bg: #ffffff;
    --color-bg-transp: #ffffff66;
    --color-surface: #d3dee3; /*#f6f8f9;*/
    --color-text: #0a1a22;
    --color-text-light: #1c2a35;

    /* Accents */
    --color-accent: #0aa6c9;
    --color-accent-strong: #0077a8;

    /* Lines / borders */
    --color-line: #d9e2ec;

    /* Hero gradient (light theme) */
    --gradient-hero: radial-gradient(
        circle at 20% 10%,
        #eef6f8 0%,
        #ffffff 70%
    );

    /* Hero wave background (light theme uses dark wave) */
    --hero-wave: url("images/metallic-wave-dark.png");
}

[data-theme="dark"] {
    /* Dark palette */
    --color-bg: #050b10; /*#040A2D;*/
    --color-bg-transp: #050b1066;
    --color-surface: #1f3d4f; /* #0d1a22; */
    --color-text: #ffffff;
    --color-text-light: #d9e2ec;

    /* Accents tuned for dark mode */
    --color-accent: #0bc6ff;
    --color-accent-strong: #39d0ce;

    /* Lines */
    --color-line: #1c2a35;

    /* Hero gradient (dark theme) */
    --gradient-hero: radial-gradient(
        circle at 40% 0%,
        #0a141d 0%,
        #04070e 70%
    );

    /* Hero wave (dark theme uses lighter wave) */
    --hero-wave: url("images/metallic-wave-light.png");
}


/* ============================================================
   GLOBAL RESET & BASICS
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Montserrat", Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ============================================================
   NAVIGATION BAR
   ============================================================ */

@font-face {
  font-family: "swis721bt";
  src: url("./fonts/Swiss721bt.woff2") format("woff2"),
       url("./fonts/Swiss721bt.woff") format("woff");
  font-weight: 400 700;
}

header {
    position: sticky;
    top: 0;
    background: var(--color-bg-transp);
    border-bottom: 1px solid var(--color-line);
    backdrop-filter: blur(10px);
    z-index: 50;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav {
    max-width: 1120px;
    margin: auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-left img {
  height: 48px;
}

.nav-title {
    /*font-family: "Swis721 BT", sans-serif;*/
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
}

.nav-links a {
    opacity: 0.75;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-cta {
    background: linear-gradient(
        135deg,
        var(--color-accent),
        var(--color-accent-strong)
    );
    color: #fff;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 600;
}


/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */

.theme-toggle {
    background: none;
    border: 1px solid transparent;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.65;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
    opacity: 1;
    border-color: var(--color-line);
}

.theme-toggle:focus {
    outline: none;
    border-color: var(--color-accent);
}

.theme-icon {
    display: inline-block;
    width: 18px;
    text-align: center;
}


/* ============================================================
   PAGE MAIN TITLE
   ============================================================ */

.page-main-title {
    text-align: center;
    /*font-family: "Swis721 BT", sans-serif;*/
    margin-top: 30px;
    font-size: 2.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--color-accent);
}


/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    /* background-image: var(--gradient-hero), var(--hero-wave); */
    background-image: var(--hero-wave);
    background-size: cover;
    /* background-size: cover, 1920px 450px; */
    background-repeat: no-repeat, repeat-x;
    background-position: top center, bottom center;
    padding: 80px 0 100px;
    /* padding: 60px 0 80px; */
    border-bottom: 1px solid var(--color-line);
    transition: background-image 0.3s ease;
}

.hero-inner {
    max-width: 1140px;
    margin: auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Ensure left content reads like a unified block */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero h1 {
    color: var(--color-accent-strong);
}

.hero-subtitle {
  font-size: 1.13rem;
  max-width: 580px;
  margin-top: 6px;
  color: var(--color-text);
}

/* Meta area spacing */
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 8px;
  margin-bottom: 12px;
}

.meta-pill {
  border-left: 6px solid var(--color-accent);
  padding: 12px;
  /* padding-left: 12px; */
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  background-color: var(--color-bg-transp);
}

.meta-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 3px;
  color: var(--color-text-light);
}

.meta-value {
  font-size: 0.96rem;
  font-weight: 600;
}

/* HERO CARD */
.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
}

.ag-section {
  padding-top: 4;
  border-top: 1px solid var(--color-accent-strong);
}

.ag-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.ag-title {
  padding-top: 10px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-accent-strong);
  margin-bottom: 6px;
}

.ag-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.ag-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.ag-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 6px;
}

.badge-outline {
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  border: 1px solid var(--color-text-light);
  background: var(--color-surface);
  color: var(--color-text-light);
}



/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-points {
  font-size: 1rem;
  list-style: none;
  padding: 0;
}

.about-points li {
  margin-bottom: 16px;
  padding-left: 20px;
  position: relative;
}

.about-points li::before {
  content: "•";
  color: var(--color-accent);
  margin-right: 0.4rem;
}

/* ============================================================
   SPONSOR
   ============================================================ */
.sponsor-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  /*box-shadow: 0 18px 45px rgba(4, 54, 71, 0.1);*/
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sponsor-logo-wrapper {
  display: flex;
  justify-content: center;
}

.sponsor-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-accent-strong);
  text-align: center;
  margin: 0;
}

.sponsor-name {
  text-align: center;
  margin-top: -8px;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

/* ============================================================
   PARTNERS
   ============================================================ */
   
/* Subtitle styling */
.partner-subtitle {
  margin-top: 30px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-dark);
}

/* Leading partner logos (large) */
.partner-leaders {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.partner-leader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;        /* larger height */
  padding: 10px;
}

.partner-leader-logo img {
  height: 90px;        /* adjust size of leader logos */
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

/* Standard partner logo grid */
.partner-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  justify-content: flex-start;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;        /* standard height */
  padding: 4px;
}

.partner-logo img {
  max-height: 45px;     /* current size */
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.partner-leader-logo:hover img,
.partner-logo:hover img{
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 6px 12px rgba(4, 54, 71, 0.15));
  opacity: 1;
}


/* ============================================================
   PROGRAM
   ============================================================ */
.program-wrapper {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
  gap: 2rem;
}

/* Collapsible container */
.program-collapsible {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.45s ease;
}

/* Expanded state */
.program-collapsible.open {
  max-height: 2000px; /* big enough to contain the whole table */
  opacity: 1;
}

/* Toggle button styling */
.toggle-program-btn {
  /* background: #fff !important; */
  /* color: var(--teal) !important; */
  border: 1px solid var(--color-line);
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.toggle-program-btn:hover {
  transform: translateY(-2px);
}

.program-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.program-table th,
.program-table td {
  padding: 0.55rem 0.4rem;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}

.program-table th {
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(color-text-light);
}

.program-time {
  font-weight: 600;
  white-space: nowrap;
}

.program-topic {
  font-weight: 600;
}

.program-speaker {
  font-size: 0.8rem;
  opacity: 0.85;
}

.program-note {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 0.3rem;
}


/* ============================================================
   BUTTONS
   ============================================================ */
button {
    font-family: inherit;
}
   
.btn-primary {
    background: linear-gradient(
        135deg,
        var(--color-accent),
        var(--color-accent-strong)
    );
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 190, 255, 0.2);
}

.btn-secondary {
    border: 1px solid var(--color-text-light);
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-text-light);
}

.btn-secondary:hover {
  transform: translateY(-2px);
}


/* ============================================================
   GENERIC SECTION STYLES
   ============================================================ */

section {
    padding: 3.2rem 1.5rem;
}

.section-inner {
    max-width: 1120px;
    margin: auto;
}

.section-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-accent);
    letter-spacing: 0.15em;
    margin-bottom: 0.4rem;
}

.section-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-accent-strong);
}

.section-lead {
    max-width: 46rem;
    opacity: 0.9;
    margin-bottom: 1.2rem;
}


/* ============================================================
   CARDS (Hero card, Sponsor card, Program sidecard)
   ============================================================ */

.hero-card,
.sponsor-card,
.program-sidecard {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 18px;
    padding: 1.7rem 1.6rem;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
    transition: background 0.3s ease, border-color 0.3s ease;
}


/* ============================================================
   PARTNERS, SPEAKERS, PROGRAM TABLE
   (your existing styling can remain mostly unchanged)
   ============================================================ */

/* Only structural cleanup shown here */

.partner-grid,
.speaker-grid {
    display: grid;
    gap: 1.5rem;
}

/* ============================================================
   REGISTER SECTION
   ============================================================ */

.register {
  /*background: radial-gradient(circle at top, #e6f5f6, #ffffff 55%);*/
  /* border-top: 3px solid var(--color-line); */
  /* border-bottom: 3px solid var(--color-line); */
}

.register {
  background: var(--color-surface);
  /*border: 3px solid var(--color-line);*/
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 12px 32px rgba(4, 54, 71, 0.08);
  /* display: flex; */
  /* flex-wrap: wrap; */
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.register-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  min-width: 240px;
}

.register-note {
  font-size: 0.8rem;
  opacity: 0.8;
  margin: 0;
  max-width: 240px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--color-text-light);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    background: #050b10;
    color: #d9e2ec;
    padding: 2rem 1.25rem;
}

.footer-inner {
    max-width: 1120px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.8rem;
}

.footer-col-title {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
}

.footer-links a {
  display: block;
  opacity: 0.75;
  margin-bottom: 0.25rem;
}

.footer-links a:hover {
    opacity: 1;
}

/* ============================================================
   RESPONSIVE BEHAVIOR
   ============================================================ */
   
@media (max-width: 900px) {
  .hero-inner,
  .about-grid,
  .program-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }
  
  .hero-inner {
    padding-top: 2.4rem;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .partner-leaders {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
  }
}

@media (max-width: 500px) {
  .hero {
    padding: 50px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-meta {
    gap: 18px;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
  }
}