/*
Theme Name: IPAF Summit 2026
Theme URI: https://ipaf.example/
Author: Codex
Author URI: https://openai.com/
Description: WordPress theme for the IPAF 2026 summit website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: ipaf-summit
*/

:root {
  --ipaf-blue-950: #06245d;
  --ipaf-blue-900: #07327c;
  --ipaf-blue-800: #08469d;
  --ipaf-blue-700: #0a60d5;
  --ipaf-blue-600: #4561a9;
  --ipaf-blue-100: #eaf3ff;
  --ipaf-text: #0b285c;
  --ipaf-muted: #5f7096;
  --ipaf-line: #dce7f7;
  --ipaf-surface: #ffffff;
  --ipaf-bg: #ffffff;
  --ipaf-bg-light: #f5f8fd;
  --ipaf-shadow: 0 18px 50px rgba(20, 64, 130, .13);
  --ipaf-radius: 10px;
  --ipaf-container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.ipaf-section,
.ipaf-stats,
.ipaf-speakers,
.ipaf-program,
.ipaf-guide,
.ipaf-safety-medicine,
.ipaf-organizations,
.ipaf-gallery {
  scroll-margin-top: 70px;
}

body {
  margin: 0;
  background: var(--ipaf-bg);
  color: var(--ipaf-text);
  font-family: "Inter", "Arial", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input {
  font: inherit;
}

.ipaf-container {
  width: min(100% - 48px, var(--ipaf-container));
  margin-inline: auto;
}

.ipaf-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 26px;
  background: linear-gradient(135deg, #0f72ff, #075cdb);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.ipaf-button:hover,
.ipaf-button:focus-visible {
  background: linear-gradient(135deg, #1d7dff, #064fc0);
  box-shadow: 0 12px 28px rgba(9, 91, 220, .28);
  transform: translateY(-1px);
}

.ipaf-about-button {
  background: #4561a9;
  box-shadow: 0 10px 22px rgba(69, 97, 169, .22);
}

.ipaf-about-button:hover,
.ipaf-about-button:focus-visible {
  background: #3c579e;
  box-shadow: 0 14px 28px rgba(69, 97, 169, .28);
}


.ipaf-button--outline {
  border-color: rgba(255, 255, 255, .78);
  background: rgba(4, 33, 83, .24);
}

.ipaf-button--outline:hover,
.ipaf-button--outline:focus-visible {
  background: rgba(255, 255, 255, .12);
}

.ipaf-button--ghost {
  border-color: var(--ipaf-blue-600);
  background: transparent;
  color: var(--ipaf-blue-700);
}

.ipaf-button--ghost:hover,
.ipaf-button--ghost:focus-visible {
  background: var(--ipaf-blue-600);
  color: #fff;
}

.ipaf-site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 99999 !important;
  color: #fff;
}

.ipaf-header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ipaf-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.ipaf-logo-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, .95);
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.ipaf-logo-main {
  display: block;
  font-size: 32px;
  font-weight: 900;
  line-height: .9;
}

.ipaf-logo-sub {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  opacity: .95;
}

.ipaf-logo-caption {
  display: block;
  max-width: 160px;
  border-left: 1px solid rgba(255, 255, 255, .42);
  padding-left: 12px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.ipaf-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ipaf-nav a {
  opacity: .94;
}

.ipaf-nav a:hover,
.ipaf-nav a:focus-visible {
  opacity: 1;
}

.ipaf-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 800;
}

.ipaf-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
}

.ipaf-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.ipaf-hero {
  position: relative;
  min-height: 552px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 36, 94, .99) 0%, rgba(7, 64, 146, .94) 43%, rgba(16, 113, 219, .46) 100%),
    radial-gradient(circle at 76% 25%, rgba(152, 207, 255, .68), transparent 32%),
    linear-gradient(135deg, #052154 0%, #0758bb 55%, #c4e4ff 100%);
}

.ipaf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.6), transparent 70%);
}

.ipaf-hero::after {
  content: "";
  position: absolute;
  right: max(20px, calc((100vw - var(--ipaf-container)) / 2));
  bottom: 0;
  width: min(58vw, 760px);
  height: 420px;
  background:
    linear-gradient(to top, rgba(255,255,255,.34), transparent 38%),
    url("assets/images/astana-skyline.svg") bottom right / contain no-repeat;
  opacity: .92;
}

.ipaf-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 552px;
  grid-template-columns: minmax(0, 560px) 1fr;
  align-items: center;
  padding-top: 86px;
}

.ipaf-hero-copy {
  padding-top: 32px;
}

.ipaf-hero h1 {
  margin: 0;
  font-size: clamp(40px, 5.3vw, 68px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ipaf-hero h1 span {
  display: block;
  margin-top: 8px;
  font-size: clamp(27px, 3.4vw, 44px);
}

.ipaf-hero-lead {
  max-width: 460px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 18px;
}

.ipaf-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 34px;
}

.ipaf-event-meta-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  font-weight: 800;
}

.ipaf-event-meta-date {
  font-size: var(--ipaf-hero-date-font-size, 14px);
}

.ipaf-event-meta-item--date .ipaf-icon {
  width: var(--ipaf-hero-date-icon-size, 24px);
  height: var(--ipaf-hero-date-icon-size, 24px);
}

.ipaf-event-meta-item--date .ipaf-icon svg {
  width: var(--ipaf-hero-date-icon-size, 24px);
  height: var(--ipaf-hero-date-icon-size, 24px);
}

.ipaf-event-meta-item--location .ipaf-icon {
  width: var(--ipaf-hero-location-icon-size, 24px);
  height: var(--ipaf-hero-location-icon-size, 24px);
}

.ipaf-event-meta-item--location .ipaf-icon svg {
  width: var(--ipaf-hero-location-icon-size, 24px);
  height: var(--ipaf-hero-location-icon-size, 24px);
}

.ipaf-event-meta-location-title {
  display: inline-block;
  font-size: var(--ipaf-hero-location-title-font-size, 14px);
}

.ipaf-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: currentColor;
}

.ipaf-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.ipaf-meta-sub {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .76);
  font-size: var(--ipaf-hero-location-subtitle-font-size, 12px);
  font-weight: 700;
}

.ipaf-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.ipaf-countdown-card {
  position: absolute;
  right: 40px;
  bottom: 118px;
  z-index: 4;
  box-sizing: border-box;
  width: min(var(--ipaf-hero-countdown-width, 420px), 32vw);
  border-radius: 8px;
  padding: 22px 22px 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 42px rgba(5, 28, 82, .25);
  color: var(--ipaf-blue-950);
  text-align: center;
  backdrop-filter: blur(14px);
}

.ipaf-countdown-title {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ipaf-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ipaf-countdown-value {
  display: block;
  color: var(--ipaf-blue-700);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.ipaf-countdown-label {
  display: block;
  margin-top: 7px;
  color: var(--ipaf-blue-950);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.ipaf-stats {
  position: relative;
  z-index: 8;
  margin-top: var(--ipaf-stats-overlap, -50px);
}

.ipaf-stats::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--ipaf-stats-overlap, -50px));
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 20%, #f0f5fc 0%, #f7faff 100%);
  z-index: -1;
  pointer-events: none;
}

.ipaf-stats {
  position: relative;
  z-index: 10;
  margin-top: var(--ipaf-stats-overlap, -50px);
}

.ipaf-stats-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 96px;
  align-items: center;
  border-radius: var(--ipaf-radius, 12px);
  background: #ffffff !important;
  border: 1px solid var(--ipaf-line, #e2ecfa) !important;
  box-shadow: var(--ipaf-shadow, 0 12px 30px rgba(28, 72, 128, .08)) !important;
  padding: 10px 14px !important;
  gap: 0 !important;
  box-sizing: border-box;
  width: min(100% - 48px, var(--ipaf-container, 1180px));
  max-width: var(--ipaf-container, 1180px);
  margin-inline: auto;
}

.ipaf-stats-panel.has-partner-cta {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr) !important;
}

.ipaf-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px !important;
  padding: 12px 16px;
  min-height: 76px;
  border-right: 1px solid var(--ipaf-line, #e2ecfa) !important;
  border-bottom: 0 !important;
  border-top: 0 !important;
  border-left: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-width: 0;
  box-sizing: border-box;
}

.ipaf-stat:nth-last-child(2) {
  border-right: 0 !important;
}

.ipaf-stat-divider {
  display: none !important; /* Divider line hidden on desktop */
}

.ipaf-stat-icon-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  margin-right: 24px !important;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffef8 0%, #fff7db 100%);
  border: 1px solid rgba(230, 180, 40, 0.25);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 3px 8px rgba(212, 154, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c98e00;
  flex-shrink: 0;
}

.ipaf-stat-icon-wrap .ipaf-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c98e00;
}

.ipaf-stat-icon-wrap .ipaf-icon svg {
  width: 26px !important;
  height: 26px !important;
  stroke: #c98e00;
  stroke-width: 2px;
  fill: none;
}

.ipaf-stat-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.ipaf-stat-value {
  display: block;
  color: var(--ipaf-stat-value-color, #06245d);
  font-size: var(--ipaf-stat-value-size, 32px);
  font-weight: var(--ipaf-stat-value-weight, 900);
  font-family: var(--ipaf-stat-value-font, inherit);
  line-height: 1.0;
  letter-spacing: -0.5px;
  margin-bottom: 3px;
}

.ipaf-stat-label {
  color: #3e4c5e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.ipaf-stats-partner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0062ff 0%, #004ee0 100%);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 58px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 85, 230, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
  margin-left: 8px !important;
  min-width: 0;
}

.ipaf-stats-partner:hover,
.ipaf-stats-partner:focus-visible {
  background: linear-gradient(135deg, #006cff 0%, #0056f0 100%);
  box-shadow: 0 12px 28px rgba(0, 85, 230, 0.35);
  transform: translateY(-1px);
  color: #ffffff;
}

.ipaf-stats-partner-left {
  display: flex;
  align-items: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.ipaf-stats-partner-left .ipaf-icon {
  width: 22px;
  height: 22px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ipaf-stats-partner-left .ipaf-icon svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #ffffff;
  stroke-width: 2.2px;
  fill: none;
}

.ipaf-stats-partner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ipaf-stats-partner-text strong {
  display: block;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ipaf-stats-partner-text small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ipaf-stats-partner-arrow {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: #ffffff;
  color: #0051e0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  margin-left: 6px;
}

.ipaf-stats-partner:hover .ipaf-stats-partner-arrow {
  transform: translateX(2px);
}

/* Mobile & Tablet Overrides (<=959px) */
@media (max-width: 959px) {
  .ipaf-stats {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  .ipaf-stats-panel,
  .ipaf-stats-panel.has-partner-cta {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: min(100% - 32px, var(--ipaf-container, 1180px)) !important;
    margin-inline: auto !important;
    box-sizing: border-box !important;
  }

  .ipaf-stat {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 8px 22px rgba(16, 42, 86, 0.04), 0 2px 6px rgba(16, 42, 86, 0.02) !important;
    padding: 18px 24px !important;
    min-height: 86px !important;
    width: 100% !important;
    border-right: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-sizing: border-box !important;
  }

  .ipaf-stat-icon-wrap {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    margin-right: 0 !important;
    border-radius: 50% !important;
  }

  .ipaf-stat-icon-wrap .ipaf-icon svg {
    width: 28px !important;
    height: 28px !important;
  }

  .ipaf-stat-divider {
    display: block !important;
    width: 1px !important;
    height: 44px !important;
    background: #eef3f9 !important;
    margin: 0 20px !important;
    flex-shrink: 0 !important;
  }

  .ipaf-stat-value {
    font-size: 34px !important;
    margin-bottom: 3px !important;
  }

  .ipaf-stat-label {
    font-size: 14px !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  .ipaf-stats-partner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: linear-gradient(135deg, #0062ff 0%, #004ee0 100%) !important;
    border-radius: 16px !important;
    padding: 18px 24px !important;
    min-height: 64px !important;
    width: 100% !important;
    margin: 0 !important;
    box-shadow: 0 10px 24px rgba(0, 85, 230, 0.28) !important;
  }

  .ipaf-stats-partner-text strong {
    font-size: 15px !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  .ipaf-stats-partner-arrow {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
}

.ipaf-section {
  padding: 85px 0;
}

.ipaf-section-title {
  margin: 0 0 22px;
  color: var(--ipaf-blue-950);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
}

.ipaf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.ipaf-section-head .ipaf-section-title {
  margin: 0;
}

.ipaf-link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ipaf-blue-700);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ipaf-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 590px);
  gap: 44px;
  align-items: stretch;
}

.ipaf-about-copy p {
  max-width: 610px;
  margin: 0 0 22px;
  color: #253d70;
  font-size: 17px;
}

.ipaf-about-title {
  font-family: var(--ipaf-about-title-font, inherit);
  font-size: var(--ipaf-about-title-size, 30px);
  font-weight: var(--ipaf-about-title-weight, 900);
}

.ipaf-info-card,
.ipaf-card {
  border: 1px solid var(--ipaf-line);
  border-radius: var(--ipaf-radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(28, 72, 128, .08);
}

.ipaf-info-card {
  display: grid;
  gap: 20px;
  padding: 28px 44px;
}

.ipaf-info-row {
  display: grid;
  grid-template-columns: var(--ipaf-about-icon-size, 24px) 175px 1fr;
  gap: 14px;
  align-items: center;
  color: var(--ipaf-text);
  font-size: 14px;
}

.ipaf-info-row .ipaf-icon {
  width: var(--ipaf-about-icon-size, 24px);
  height: var(--ipaf-about-icon-size, 24px);
  color: var(--ipaf-about-icon-color, var(--ipaf-blue-700));
}

.ipaf-info-row .ipaf-icon svg {
  width: calc(var(--ipaf-about-icon-size, 24px) * 0.8) !important;
  height: calc(var(--ipaf-about-icon-size, 24px) * 0.8) !important;
}

.ipaf-info-label {
  font-weight: 900;
  text-transform: uppercase;
}

#speakers {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: 40px 0 80px 0;
  z-index: 1;
}

#speakers .ipaf-section-title {
  color: var(--ipaf-blue-950);
  margin: 0 0 16px 0;
}

.ipaf-speakers-title {
  font-family: var(--ipaf-speakers-title-font, inherit);
  font-size: var(--ipaf-speakers-title-size, 30px);
  font-weight: var(--ipaf-speakers-title-weight, 900);
}

#speakers .ipaf-section-subtitle {
  color: var(--ipaf-muted);
  margin: 0;
  max-width: 600px;
}

.ipaf-speakers-wrap {
  overflow: hidden;
  padding: 16px 0 32px 0;
  width: 100%;
  position: relative;
  z-index: 2;
}

.ipaf-speakers-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  cursor: grab;
}

.ipaf-speakers-track.is-dragging {
  cursor: grabbing;
  transition: none !important;
}

.ipaf-speakers-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 28px;
  margin-bottom: 32px;
  border: 1px solid #eef2f6;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  gap: 16px;
}

.ipaf-speakers-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.ipaf-speakers-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: #e2e8f0;
}

.ipaf-speakers-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fffdf5;
  border: 1px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
  flex-shrink: 0;
}

.ipaf-speakers-stat-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.ipaf-speakers-stat-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.ipaf-speakers-stat-content {
  display: flex;
  flex-direction: column;
}

.ipaf-speakers-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #0c1e3c;
  line-height: 1.1;
}

.ipaf-speakers-stat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
  line-height: 1.3;
}

.ipaf-speaker-card {
  flex: 0 0 calc((100% - (3 * 20px)) / 4);
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  position: relative;
  transition: all 0.25s ease;
  padding: 0 !important;
  box-sizing: border-box;
  cursor: pointer;
  gap: 0 !important;
}

.ipaf-speaker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #1E5BBF;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  z-index: 10;
}

.ipaf-speaker-card:hover::before {
  transform: scaleX(1);
}

.ipaf-speaker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.ipaf-speaker-photo {
  position: relative;
  width: 100% !important;
  height: 280px !important;
  overflow: hidden;
  border-radius: 16px 16px 0 0 !important;
  flex-shrink: 0;
  background: #f0f4f9;
}

.ipaf-speaker-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
}

.ipaf-speaker-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #0a60d5;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(10, 96, 213, 0.3);
}

.ipaf-speaker-details {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 20px 20px 16px 20px !important;
  height: auto !important;
  min-height: 170px !important;
  flex-grow: 1;
  box-sizing: border-box;
  overflow: hidden;
}

.ipaf-speaker-info-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.ipaf-speaker-name {
  color: #0c1e3c;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.ipaf-speaker-role {
  color: #64748b;
  font-size: 13px;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ipaf-speaker-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  gap: 12px;
}

.ipaf-speaker-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.ipaf-speaker-org-logo {
  max-height: 50px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.ipaf-country-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.ipaf-flag-img {
  width: 38px;
  height: 26px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
  display: block;
}

.ipaf-flag {
  width: 38px;
  height: 26px;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.08);
  background-size: cover;
  background-position: center;
  display: inline-block;
  flex-shrink: 0;
}

.ipaf-speaker-org-text {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.ipaf-speaker-card-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ipaf-card-btn-bg, #f8fafc);
  border: 1px solid #e2e8f0;
  color: var(--ipaf-card-btn-color, #475569);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.ipaf-speaker-card:hover .ipaf-speaker-card-btn {
  background: var(--ipaf-card-btn-hover-bg, #0a60d5) !important;
  color: var(--ipaf-card-btn-hover-color, #ffffff) !important;
  border-color: var(--ipaf-card-btn-hover-bg, #0a60d5) !important;
}

.ipaf-speakers-quote-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #edf4ff;
  border-radius: 16px;
  padding: 24px 32px;
  margin-top: 40px;
  gap: 28px;
}

.ipaf-quote-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.ipaf-quote-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0a4aa6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ipaf-quote-banner-text {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.5;
  margin: 0;
}

.ipaf-quote-banner-divider {
  width: 1px;
  height: 48px;
  background: #cce0ff;
  flex-shrink: 0;
}

.ipaf-quote-banner-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.ipaf-quote-banner-author {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.ipaf-quote-author-name {
  font-size: 15px;
  font-weight: 700;
  color: #0c1e3c;
  margin-bottom: 2px;
}

.ipaf-quote-author-role {
  font-size: 12px;
  color: #64748b;
  font-weight: 400;
  max-width: 220px;
  line-height: 1.3;
}

.ipaf-quote-author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(10, 74, 166, 0.15);
  flex-shrink: 0;
}

.ipaf-speakers-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

#speakers .ipaf-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--ipaf-line);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  color: #5D6B7E;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s ease;
  line-height: 1;
}

.ipaf-slider-arrow--prev {
  left: -24px;
}

.ipaf-slider-arrow--next {
  right: -24px;
}

#speakers .ipaf-slider-arrow:hover:not(:disabled) {
  background: #F2F6FB;
  color: #1E5BBF;
  border-color: #1E5BBF;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  transform: translateY(-50%) scale(1.05);
}

#speakers .ipaf-slider-arrow:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  box-shadow: none;
}

#speakers .ipaf-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

#speakers .ipaf-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ipaf-line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

#speakers .ipaf-slider-dot.is-active {
  background: #1E5BBF;
}

/* Entrance animations */
.ipaf-animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.ipaf-animate-fade-up.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered card delays */
.ipaf-speakers-track .ipaf-speaker-card:nth-child(1) { transition-delay: 0.1s; }
.ipaf-speakers-track .ipaf-speaker-card:nth-child(2) { transition-delay: 0.2s; }
.ipaf-speakers-track .ipaf-speaker-card:nth-child(3) { transition-delay: 0.3s; }
.ipaf-speakers-track .ipaf-speaker-card:nth-child(4) { transition-delay: 0.4s; }
.ipaf-speakers-track .ipaf-speaker-card:nth-child(5) { transition-delay: 0.5s; }
.ipaf-speakers-track .ipaf-speaker-card:nth-child(6) { transition-delay: 0.6s; }
.ipaf-speakers-track .ipaf-speaker-card:nth-child(7) { transition-delay: 0.7s; }
.ipaf-speakers-track .ipaf-speaker-card:nth-child(8) { transition-delay: 0.8s; }

/* Modals Override Styles */
.ipaf-modal--speaker .ipaf-modal-dialog {
  padding: 0 !important;
  max-width: 900px;
  width: 100%;
  max-height: 90vh !important;
  border-radius: 20px;
  overflow: hidden;
}

.ipaf-speaker-modal-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  padding: 40px;
  box-sizing: border-box;
}

.ipaf-speaker-modal-photo {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #d7e4f2, #f6f9fd);
  align-self: start;
}

.ipaf-speaker-modal-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.ipaf-speaker-modal-info {
  display: flex;
  flex-direction: column;
}

.ipaf-speaker-modal-role {
  font-size: 16px;
  font-weight: 500;
  color: #5c6f84;
  margin: 0 0 6px 0;
}

.ipaf-modal-column-icon {
  display: flex !important;
  width: 44px !important;
  height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #0b347c !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
}

.ipaf-modal-column-icon svg {
  width: 22px !important;
  height: 22px !important;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.ipaf-modal-column-icon img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
}

.ipaf-speaker-modal-org {
  font-size: 16px;
  font-weight: 600;
  color: var(--ipaf-blue-900);
  margin: 0 0 20px 0;
}

.ipaf-speaker-modal-meta-section {
  margin-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 20px;
}

.ipaf-speaker-modal-meta-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8c9ba5;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.ipaf-speaker-modal-topic {
  font-size: 16px;
  font-weight: 600;
  color: var(--ipaf-blue-950);
  margin: 0;
}

.ipaf-speaker-modal-schedule {
  font-size: 15px;
  color: var(--ipaf-blue-950);
  font-weight: 500;
  margin: 0;
}

.ipaf-speaker-modal-bio {
  font-size: 15px;
  line-height: 1.6;
  color: #4a5568;
}

.ipaf-speaker-modal-bio p {
  margin: 0 0 12px 0;
}

.ipaf-speaker-modal-bio p:last-child {
  margin: 0;
}

.ipaf-speaker-modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ipaf-speaker-modal-link {
  display: inline-flex;
  align-items: center;
  background: var(--ipaf-blue-100);
  color: var(--ipaf-blue-700);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.ipaf-speaker-modal-link:hover {
  background: var(--ipaf-blue-600);
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .ipaf-speakers-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }
  .ipaf-speakers-stat-item:nth-child(2)::after {
    display: none;
  }
  .ipaf-speaker-card {
    flex: 0 0 calc((100% - (1 * 20px)) / 2);
  }
  .ipaf-slider-arrow--prev {
    left: -12px;
  }
  .ipaf-slider-arrow--next {
    right: -12px;
  }
}

@media (max-width: 768px) {
  .ipaf-speakers-quote-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }
  .ipaf-quote-banner-left {
    gap: 16px;
  }
  .ipaf-quote-icon-circle {
    width: 42px;
    height: 42px;
  }
  .ipaf-quote-banner-divider {
    display: none;
  }
  .ipaf-quote-banner-right {
    width: 100%;
    justify-content: flex-start;
    margin-top: 8px;
    border-top: 1px solid #cce0ff;
    padding-top: 16px;
  }
  .ipaf-quote-banner-author {
    text-align: left;
  }

  .ipaf-speaker-modal-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .ipaf-speaker-modal-photo {
    max-width: 240px;
    margin: 0 auto;
  }
  .ipaf-speaker-modal-info {
    align-items: center;
    text-align: center;
  }
  .ipaf-speaker-modal-bio {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .ipaf-speakers-stats-bar {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ipaf-speakers-stat-item::after {
    display: none !important;
  }
  .ipaf-speakers-wrap {
    overflow: visible !important;
  }
  .ipaf-speakers-track {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    transform: none !important;
    gap: 16px !important;
    cursor: default !important;
  }
  .ipaf-speaker-card {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
  }
  .ipaf-speaker-photo {
    height: 240px !important;
  }
  .ipaf-speaker-details {
    padding: 16px !important;
    min-height: auto !important;
  }
  #speakers .ipaf-slider-arrow {
    display: none !important;
  }
  #speakers .ipaf-slider-dots {
    display: none !important;
  }
}

.ipaf-speakers-base-dummy {
  display: none;
}

.ipaf-country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ipaf-muted);
  font-size: 12px;
  font-weight: 700;
}

.ipaf-flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

.ipaf-flag--kz { background: #00abc2; }
.ipaf-flag--sg { background: linear-gradient(#ed2939 0 50%, #fff 50%); }
.ipaf-flag--us { background: linear-gradient(#b22234 0 14%, #fff 14% 28%, #b22234 28% 42%, #fff 42% 56%, #b22234 56% 70%, #fff 70% 84%, #b22234 84%); }
.ipaf-flag--jp { background: radial-gradient(circle, #bc002d 0 28%, transparent 29%), #fff; }
.ipaf-flag--cn { background: #de2910; }
.ipaf-flag--kr { background: radial-gradient(circle, #c60c30 0 22%, #003478 23% 38%, transparent 39%), #fff; }
.ipaf-flag--vn { background: #da251d; }
.ipaf-flag--my { background: linear-gradient(#cc0001 0 12%, #fff 12% 24%, #cc0001 24% 36%, #fff 36% 48%, #cc0001 48% 60%, #fff 60% 72%, #cc0001 72% 84%, #fff 84%); }
.ipaf-flag--mn { background: linear-gradient(90deg, #c4272f 0 33%, #015197 33% 66%, #c4272f 66%); }
.ipaf-flag--th { background: linear-gradient(#a51931 0 17%, #fff 17% 30%, #2d2a4a 30% 70%, #fff 70% 83%, #a51931 83%); }
.ipaf-flag--id { background: linear-gradient(#ff0000 0 50%, #fff 50%); }

.ipaf-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.ipaf-slider-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #b9cdea;
  cursor: pointer;
}

.ipaf-slider-dots button.is-active {
  width: 22px;
  background: var(--ipaf-blue-600);
}

.ipaf-program {
  padding-top: 28px;
  background: linear-gradient(180deg, rgba(232, 242, 255, .75), transparent);
}

.ipaf-program-title {
  font-family: var(--ipaf-program-title-font, inherit);
  font-size: var(--ipaf-program-title-size, 30px);
  font-weight: var(--ipaf-program-title-weight, 900);
}

.ipaf-organizer-title,
.ipaf-countries-title,
.ipaf-guide-title,
.ipaf-safety-title,
.ipaf-gallery-title {
  font-family: var(--ipaf-block-title-font, inherit);
  font-weight: var(--ipaf-block-title-weight, 900);
}

.ipaf-organizer-title {
  --ipaf-block-title-font: var(--ipaf-organizer-title-font, inherit);
  --ipaf-block-title-weight: var(--ipaf-organizer-title-weight, 900);
  font-size: var(--ipaf-organizer-title-size, 30px);
}

.ipaf-countries-title {
  --ipaf-block-title-font: var(--ipaf-countries-title-font, inherit);
  --ipaf-block-title-weight: var(--ipaf-countries-title-weight, 900);
  font-size: var(--ipaf-countries-title-size, 30px);
}

.ipaf-guide-title {
  --ipaf-block-title-font: var(--ipaf-guide-title-font, inherit);
  --ipaf-block-title-weight: var(--ipaf-guide-title-weight, 900);
  font-size: var(--ipaf-guide-title-size, 30px);
}

.ipaf-safety-title {
  --ipaf-block-title-font: var(--ipaf-safety-title-font, inherit);
  --ipaf-block-title-weight: var(--ipaf-safety-title-weight, 900);
  font-size: var(--ipaf-safety-title-size, 30px);
}

.ipaf-gallery-title {
  --ipaf-block-title-font: var(--ipaf-gallery-title-font, inherit);
  --ipaf-block-title-weight: var(--ipaf-gallery-title-weight, 900);
  font-size: var(--ipaf-gallery-title-size, 30px);
}

.ipaf-organizations-kicker {
  font-family: var(--ipaf-organizations-kicker-font, inherit);
  font-size: var(--ipaf-organizations-kicker-size, 13px);
  font-weight: var(--ipaf-organizations-kicker-weight, 900);
}

.ipaf-organizations-title {
  font-family: var(--ipaf-organizations-title-font, inherit);
  font-size: var(--ipaf-organizations-title-size, 30px);
  font-weight: var(--ipaf-organizations-title-weight, 900);
}

.ipaf-organizations-lead {
  font-family: var(--ipaf-organizations-lead-font, inherit);
  font-size: var(--ipaf-organizations-lead-size, 17px);
  font-weight: var(--ipaf-organizations-lead-weight, 400);
}

.ipaf-program-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1.25fr);
  gap: 20px;
}

.ipaf-program-card {
  padding: 0 24px 24px;
}

.ipaf-tabs {
  display: grid;
  grid-template-columns: repeat(3, 134px);
  width: max-content;
  max-width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--ipaf-line);
  border-radius: 5px;
}

.ipaf-tab {
  min-height: 40px;
  border: 0;
  border-right: 1px solid var(--ipaf-line);
  background: #fff;
  color: var(--ipaf-text);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.ipaf-tab:last-child {
  border-right: 0;
}

.ipaf-tab.is-active {
  background: var(--ipaf-blue-600);
  color: #fff;
}

.ipaf-schedule {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ipaf-schedule.is-active {
  display: grid;
  gap: 9px;
}

.ipaf-schedule li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  color: #263f70;
  font-size: 14px;
}

.ipaf-schedule time {
  color: var(--ipaf-blue-950);
  font-weight: 800;
}

.ipaf-download-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 24px;
  min-height: 238px;
  padding: 44px 40px;
  border-radius: var(--ipaf-radius);
  background: linear-gradient(135deg, #06306d, #064cae);
  color: #fff;
  box-shadow: 0 18px 44px rgba(8, 56, 137, .22);
}

.ipaf-download-icon {
  width: 74px;
  height: 94px;
  background: url("assets/images/pdf-icon.svg") center / contain no-repeat;
}

.ipaf-download-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.ipaf-download-card p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .86);
}

.ipaf-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ipaf-organizer,
.ipaf-countries {
  padding: 28px 32px;
}

.ipaf-organizer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  color: #516aa0;
}

.ipaf-organizer-logo strong {
  color: #4c659d;
  font-size: 54px;
  line-height: .9;
}

.ipaf-organizer-logo span {
  max-width: 210px;
  border-left: 1px solid var(--ipaf-line);
  padding-left: 14px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.ipaf-organizer p {
  max-width: 430px;
  margin: 0 0 22px;
  color: #314b7a;
}

.ipaf-country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 34px;
  margin-bottom: 24px;
}

.ipaf-country-item {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #203a6f;
  font-size: 12px;
  font-weight: 700;
}

.ipaf-country-flag {
  width: 76px;
  height: 46px;
  border-radius: 3px;
  box-shadow: 0 8px 18px rgba(24, 66, 126, .13), inset 0 0 0 1px rgba(0,0,0,.08);
}

.ipaf-guide-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.ipaf-guide-item {
  display: grid;
  min-height: 100px;
  place-items: center;
  gap: 8px;
  padding: 14px 8px;
  text-align: center;
  color: var(--ipaf-blue-950);
  font-size: 12px;
  font-weight: 800;
}

.ipaf-guide-item .ipaf-icon {
  width: var(--ipaf-guide-icon-size, 42px);
  height: var(--ipaf-guide-icon-size, 42px);
  color: var(--ipaf-blue-700);
}

.ipaf-guide-item .ipaf-icon svg {
  width: calc(var(--ipaf-guide-icon-size, 42px) * 0.57) !important;
  height: calc(var(--ipaf-guide-icon-size, 42px) * 0.57) !important;
}

.ipaf-guide-toggle-card {
  background: #4561a9 !important;
  color: #ffffff !important;
  border: none !important;
}

.ipaf-guide-toggle-card:hover,
.ipaf-guide-toggle-card:focus-visible {
  background: #3c579e !important;
  box-shadow: 0 10px 24px rgba(69, 97, 169, 0.25) !important;
}

.ipaf-guide-toggle-card .ipaf-icon {
  color: #ffffff !important;
}

.ipaf-guide-cta {
  margin-top: 12px;
  text-align: center;
}

.ipaf-concept-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 14px;
}

.ipaf-history-card {
  padding: 24px 28px;
}

.ipaf-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #274372;
  font-size: 14px;
  font-weight: 700;
}

.ipaf-check-list li::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-right: 8px;
  vertical-align: -3px;
  background: url("assets/images/check-circle.svg") center / contain no-repeat;
}

/* ==========================================================================
   New Interactive Concept Block Styles
   ========================================================================== */

.ipaf-concept-section,
.ipaf-history-section {
  width: 100%;
  box-sizing: border-box;
  padding: 40px 0;
}

.ipaf-concept-header {
  margin-bottom: 30px;
}

.ipaf-concept-section .ipaf-section-title {
  font-family: var(--ipaf-concept-title-font, inherit);
  font-weight: var(--ipaf-concept-title-weight, 900);
  font-size: var(--ipaf-concept-title-size, 32px);
  color: #06245d;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.ipaf-concept-section .ipaf-section-description {
  font-size: 16px;
  font-weight: 500;
  color: #4a5568;
  max-width: 800px;
  line-height: 1.5;
  margin: 0;
}

.ipaf-concept-interactive-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 30px;
  align-items: start;
}

.ipaf-concept-diagram-col {
  width: 100%;
}

.ipaf-concept-diagram-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #fefefe;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ipaf-concept-diagram-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

.ipaf-concept-diagram-image.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ipaf-concept-diagram-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.ipaf-concept-tabs-col {
  width: 100%;
}

.ipaf-concept-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ipaf-concept-tab-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-align: left;
  cursor: pointer;
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  width: 100%;
  box-sizing: border-box;
}

.ipaf-concept-tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  border-color: #cbd5e1;
}

.ipaf-concept-tab-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max(44px, calc(var(--ipaf-concept-icon-size, 22px) + 20px));
  height: max(44px, calc(var(--ipaf-concept-icon-size, 22px) + 20px));
  min-width: max(44px, calc(var(--ipaf-concept-icon-size, 22px) + 20px));
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.ipaf-concept-tab-icon-badge .ipaf-icon {
  width: var(--ipaf-concept-icon-size, 22px);
  height: var(--ipaf-concept-icon-size, 22px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.ipaf-concept-tab-icon-badge svg {
  width: var(--ipaf-concept-icon-size, 22px) !important;
  height: var(--ipaf-concept-icon-size, 22px) !important;
  display: block;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2px !important;
}

.ipaf-concept-custom-icon {
  width: var(--ipaf-concept-icon-size, 22px);
  height: var(--ipaf-concept-icon-size, 22px);
  object-fit: contain;
  display: block;
}

.ipaf-concept-tab-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.ipaf-concept-tab-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1;
  transition: color 0.3s;
}

.ipaf-concept-tab-title {
  font-size: 16px;
  font-weight: 800;
  color: #06245d;
  line-height: 1.2;
}

.ipaf-concept-tab-rooms {
  font-size: 12px;
  font-weight: 600;
  color: #718096;
  line-height: 1.2;
}

/* Theme Color Presets */

/* Green theme */
.theme-color-green {
  border-left: 4px solid #4aa02c;
}
.theme-color-green .ipaf-concept-tab-icon-badge {
  background-color: rgba(74, 160, 44, 0.08);
  color: #4aa02c;
}
.theme-color-green .ipaf-concept-tab-label {
  color: #4aa02c;
}
.theme-color-green.is-active {
  background: linear-gradient(90deg, rgba(74, 160, 44, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
  border-color: rgba(74, 160, 44, 0.15);
  border-left: 4px solid #4aa02c;
  box-shadow: 0 10px 20px -5px rgba(74, 160, 44, 0.12), 0 5px 5px -5px rgba(0, 0, 0, 0.02);
}
.theme-color-green.is-active .ipaf-concept-tab-icon-badge {
  background-color: #4aa02c;
  color: #ffffff;
}

/* Blue theme */
.theme-color-blue {
  border-left: 4px solid #0f72ff;
}
.theme-color-blue .ipaf-concept-tab-icon-badge {
  background-color: rgba(15, 114, 255, 0.08);
  color: #0f72ff;
}
.theme-color-blue .ipaf-concept-tab-label {
  color: #0f72ff;
}
.theme-color-blue.is-active {
  background: linear-gradient(90deg, rgba(15, 114, 255, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
  border-color: rgba(15, 114, 255, 0.15);
  border-left: 4px solid #0f72ff;
  box-shadow: 0 10px 20px -5px rgba(15, 114, 255, 0.12), 0 5px 5px -5px rgba(0, 0, 0, 0.02);
}
.theme-color-blue.is-active .ipaf-concept-tab-icon-badge {
  background-color: #0f72ff;
  color: #ffffff;
}

/* Orange theme */
.theme-color-orange {
  border-left: 4px solid #e28a16;
}
.theme-color-orange .ipaf-concept-tab-icon-badge {
  background-color: rgba(226, 138, 22, 0.08);
  color: #e28a16;
}
.theme-color-orange .ipaf-concept-tab-label {
  color: #e28a16;
}
.theme-color-orange.is-active {
  background: linear-gradient(90deg, rgba(226, 138, 22, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
  border-color: rgba(226, 138, 22, 0.15);
  border-left: 4px solid #e28a16;
  box-shadow: 0 10px 20px -5px rgba(226, 138, 22, 0.12), 0 5px 5px -5px rgba(0, 0, 0, 0.02);
}
.theme-color-orange.is-active .ipaf-concept-tab-icon-badge {
  background-color: #e28a16;
  color: #ffffff;
}

/* Purple theme */
.theme-color-purple {
  border-left: 4px solid #8a4fca;
}
.theme-color-purple .ipaf-concept-tab-icon-badge {
  background-color: rgba(138, 79, 202, 0.08);
  color: #8a4fca;
}
.theme-color-purple .ipaf-concept-tab-label {
  color: #8a4fca;
}
.theme-color-purple.is-active {
  background: linear-gradient(90deg, rgba(138, 79, 202, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
  border-color: rgba(138, 79, 202, 0.15);
  border-left: 4px solid #8a4fca;
  box-shadow: 0 10px 20px -5px rgba(138, 79, 202, 0.12), 0 5px 5px -5px rgba(0, 0, 0, 0.02);
}
.theme-color-purple.is-active .ipaf-concept-tab-icon-badge {
  background-color: #8a4fca;
  color: #ffffff;
}

/* Circular background removal rules */
.ipaf-concept-tab-btn.no-circle-bg .ipaf-concept-tab-icon-badge {
  background-color: transparent !important;
  width: auto;
  height: auto;
  border-radius: 0;
}

.ipaf-concept-tab-btn.no-circle-bg.theme-color-green.is-active .ipaf-concept-tab-icon-badge {
  color: #4aa02c !important;
}
.ipaf-concept-tab-btn.no-circle-bg.theme-color-blue.is-active .ipaf-concept-tab-icon-badge {
  color: #0f72ff !important;
}
.ipaf-concept-tab-btn.no-circle-bg.theme-color-orange.is-active .ipaf-concept-tab-icon-badge {
  color: #e28a16 !important;
}
.ipaf-concept-tab-btn.no-circle-bg.theme-color-purple.is-active .ipaf-concept-tab-icon-badge {
  color: #8a4fca !important;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .ipaf-concept-section,
  .ipaf-history-section {
    padding: 30px 0;
  }
}

@media (max-width: 960px) {
  .ipaf-concept-interactive-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .ipaf-concept-section,
  .ipaf-history-section {
    padding: 20px 0;
  }
}

.ipaf-timeline-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 0;
  margin-top: 10px;
  overflow: visible;
}

.ipaf-timeline-track {
  position: relative;
  width: 100%;
  padding-top: 14px;
}

.ipaf-timeline-line-bg {
  position: absolute;
  top: 38px;
  left: 8.33%;
  right: 8.33%;
  height: 4px;
  background: #e2ecfa;
  border-radius: 2px;
  z-index: 1;
}

.ipaf-timeline-line-active {
  position: absolute;
  top: 38px;
  left: 8.33%;
  right: 8.33%;
  height: 4px;
  background: #2F7FFF;
  border-radius: 2px;
  z-index: 1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ipaf-timeline-track.is-animated .ipaf-timeline-line-active {
  transform: scaleX(1);
}

.ipaf-timeline-events {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  width: 100%;
}

.ipaf-timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  cursor: pointer;
}

.ipaf-timeline-icon-badge {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0051e0;
  border: 2px solid #0051e0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(0, 81, 224, 0.08), 0 4px 14px rgba(0, 81, 224, 0.25);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  transform: scale(0);
}

.ipaf-timeline-icon-badge svg {
  width: var(--ipaf-timeline-icon-size, 20px);
  height: var(--ipaf-timeline-icon-size, 20px);
  stroke: currentColor;
  stroke-width: 2.5px;
  fill: none;
  display: block;
}

.ipaf-timeline-custom-icon {
  width: var(--ipaf-timeline-icon-size, 22px);
  height: var(--ipaf-timeline-icon-size, 22px);
  object-fit: contain;
  display: block;
}

.ipaf-timeline-track.is-animated .ipaf-timeline-icon-badge {
  transform: scale(1);
}

/* Sequential delay for icon badges appearing */
.ipaf-timeline-track.is-animated .ipaf-timeline-node[data-index="0"] .ipaf-timeline-icon-badge { transition-delay: 0.1s; }
.ipaf-timeline-track.is-animated .ipaf-timeline-node[data-index="1"] .ipaf-timeline-icon-badge { transition-delay: 0.2s; }
.ipaf-timeline-track.is-animated .ipaf-timeline-node[data-index="2"] .ipaf-timeline-icon-badge { transition-delay: 0.3s; }
.ipaf-timeline-track.is-animated .ipaf-timeline-node[data-index="3"] .ipaf-timeline-icon-badge { transition-delay: 0.4s; }
.ipaf-timeline-track.is-animated .ipaf-timeline-node[data-index="4"] .ipaf-timeline-icon-badge { transition-delay: 0.5s; }
.ipaf-timeline-track.is-animated .ipaf-timeline-node[data-index="5"] .ipaf-timeline-icon-badge { transition-delay: 0.6s; }
.ipaf-timeline-track.is-animated .ipaf-timeline-node[data-index="6"] .ipaf-timeline-icon-badge { transition-delay: 0.7s; }
.ipaf-timeline-track.is-animated .ipaf-timeline-node[data-index="7"] .ipaf-timeline-icon-badge { transition-delay: 0.8s; }
.ipaf-timeline-track.is-animated .ipaf-timeline-node[data-index="8"] .ipaf-timeline-icon-badge { transition-delay: 0.9s; }
.ipaf-timeline-track.is-animated .ipaf-timeline-node[data-index="9"] .ipaf-timeline-icon-badge { transition-delay: 1.0s; }

.ipaf-timeline-node.is-special .ipaf-timeline-icon-badge {
  background: linear-gradient(135deg, #e28a16 0%, #f6a623 100%);
  border-color: #e28a16;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(226, 138, 22, 0.18), 0 4px 14px rgba(226, 138, 22, 0.35);
}

.ipaf-timeline-node[style*="--ipaf-node-color"] .ipaf-timeline-icon-badge {
  background: var(--ipaf-node-color) !important;
  border-color: var(--ipaf-node-color) !important;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

.ipaf-timeline-node[style*="--ipaf-node-color"] .ipaf-timeline-year {
  color: var(--ipaf-node-color) !important;
}

.ipaf-timeline-node.is-special .ipaf-timeline-icon-badge svg polygon {
  fill: currentColor;
}

/* Hover effects */
.ipaf-timeline-node:hover .ipaf-timeline-icon-badge {
  transform: scale(1.08) translateY(-2px);
  background-color: #0045c0;
  border-color: #0045c0;
  box-shadow: 0 0 0 6px rgba(0, 81, 224, 0.12), 0 6px 20px rgba(0, 81, 224, 0.35);
}

.ipaf-timeline-node.is-special:hover .ipaf-timeline-icon-badge {
  transform: scale(1.08) translateY(-2px);
  background: linear-gradient(135deg, #d37f12 0%, #e5991f 100%);
  border-color: #c57813;
  box-shadow: 0 0 0 6px rgba(226, 138, 22, 0.25), 0 6px 20px rgba(226, 138, 22, 0.45);
}

.ipaf-timeline-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.ipaf-timeline-node:hover .ipaf-timeline-content {
  transform: translateY(-2px);
}

.ipaf-timeline-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.ipaf-timeline-year {
  color: #0051e0;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 2px;
}

.ipaf-timeline-node.is-special .ipaf-timeline-year {
  color: #e28a16;
  font-size: 20px;
  font-weight: 800;
}

.ipaf-timeline-title {
  color: #06245d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 140px;
  line-height: 1.25;
  margin: 4px 0 6px 0;
}

.ipaf-timeline-desc {
  color: #4a5568;
  font-size: 12px;
  font-weight: 500;
  max-width: 150px;
  line-height: 1.4;
  display: block;
}

/* Tooltip styles */
.ipaf-timeline-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 220px;
  padding: 10px 12px;
  background: rgba(6, 36, 93, 0.96);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(6, 36, 93, 0.22);
  z-index: 100;
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  /* CSS variable for arrow position, controlled by JS */
  --arrow-left: 50%;
}

.ipaf-timeline-tooltip p {
  margin: 0;
}

.ipaf-timeline-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(6, 36, 93, 0.96) transparent transparent transparent;
  transition: left 0.2s ease;
}

.ipaf-timeline-node:hover .ipaf-timeline-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ipaf-gallery-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1.05fr 1.05fr 1.05fr 1.5fr;
  gap: 12px;
}

#gallery {
  background: radial-gradient(circle at 10% 80%, #f0f5fc 0%, #f7faff 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(15, 114, 255, 0.05);
  border-bottom: 1px solid rgba(15, 114, 255, 0.05);
}

#gallery.ipaf-gallery--light-blue {
  background: radial-gradient(circle at 10% 80%, #f0f5fc 0%, #f7faff 100%);
}

#gallery.ipaf-gallery--white {
  background: #fff;
  border-top-color: rgba(15, 114, 255, 0.03);
  border-bottom-color: rgba(15, 114, 255, 0.03);
}

#gallery::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 97, 169, 0.03) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  pointer-events: none;
}

#gallery.ipaf-gallery--white::before {
  display: none;
}

.ipaf-gallery-item {
  min-height: 92px;
  border-radius: 4px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 20px rgba(22, 68, 130, .12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ipaf-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(22, 68, 130, 0.18);
}


.ipaf-gallery-more {
  display: grid;
  min-height: 92px;
  place-items: center;
  border-radius: 4px;
  background: var(--ipaf-blue-600);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ipaf-gallery-more:hover {
  background: #3c579e;
  transform: translateY(-2px);
}

/* Lightbox styles */
.ipaf-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.ipaf-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ipaf-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 50, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ipaf-lightbox-dialog {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 1000px;
  height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.ipaf-lightbox-img-container {
  position: relative;
  max-width: 100%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ipaf-lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s ease;
  opacity: 0;
}

.ipaf-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 38px;
  font-weight: 300;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ipaf-lightbox-close:hover {
  color: #fff;
  transform: scale(1.1);
}

.ipaf-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  z-index: 20;
}

.ipaf-lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.05);
}

.ipaf-lightbox-arrow--prev {
  left: -64px;
}

.ipaf-lightbox-arrow--next {
  right: -64px;
}

@media (max-width: 1140px) {
  .ipaf-lightbox-arrow--prev {
    left: 10px;
  }
  .ipaf-lightbox-arrow--next {
    right: 10px;
  }
  .ipaf-lightbox-arrow {
    background: rgba(10, 25, 50, 0.6);
  }
}

.ipaf-lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
  font-weight: 500;
  max-width: 600px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ipaf-lightbox-caption:has(.ipaf-lightbox-concept-caption) {
  max-width: 800px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.ipaf-lightbox-concept-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
}

.ipaf-lightbox-concept-label {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
  display: inline-block;
  line-height: 1.4;
}

.ipaf-lightbox-concept-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.ipaf-lightbox-concept-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.ipaf-lightbox-concept-rooms {
  font-weight: 500;
  font-size: 14px;
  color: #cbd5e0;
}

.ipaf-lightbox-counter {
  position: absolute;
  bottom: -40px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 700;
}

.ipaf-lightbox-spinner {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #fff;
  animation: ipaf-spin 0.8s linear infinite;
  display: none;
}

.is-loading .ipaf-lightbox-spinner {
  display: block;
}

@keyframes ipaf-spin {
  to { transform: rotate(360deg); }
}

html.ipaf-lightbox-is-open,
body.ipaf-lightbox-is-open {
  overflow: hidden !important;
}

.ipaf-site-footer {
  margin-top: 0px;
  background: radial-gradient(circle at 80% 20%, #063d8a 0%, #021a3f 60%, #010f2b 100%);
  color: #fff;
  padding-top: 60px;
}

.ipaf-logo-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, .95);
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' stroke='rgba%28255,255,255,0.35%29' stroke-width='1.5' fill='none'%3E%3Cpath d='M50 0 A 50 50 0 0 0 50 100 A 50 50 0 0 0 50 0'/%3E%3Cpath d='M50 0 A 25 50 0 0 0 50 100 A 25 50 0 0 0 50 0'/%3E%3Cpath d='M50 0 A 10 50 0 0 0 50 100 A 10 50 0 0 0 50 0'/%3E%3Cline x1='0' y1='50' x2='100' y2='50'/%3E%3Cpath d='M6.7 25 Q 50 35 93.3 25'/%3E%3Cpath d='M6.7 75 Q 50 65 93.3 75'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.ipaf-footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .9fr .9fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.ipaf-footer-info-col .ipaf-logo {
  margin-bottom: 20px;
  min-width: unset;
}

.ipaf-footer-logo-link,
.ipaf-footer-logo-wp .custom-logo-link {
  display: inline-block;
  margin-bottom: 20px;
}

.ipaf-footer-logo-img,
.ipaf-footer-logo-wp .custom-logo {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 56px;
  width: auto;
  object-fit: contain;
}


.ipaf-footer-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  max-width: 320px;
}

.ipaf-footer-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.ipaf-footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

.ipaf-footer-contact-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.6);
}

.ipaf-footer-contacts li a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.ipaf-footer-contacts li a:hover {
  color: var(--ipaf-blue-600);
}

.ipaf-footer-contacts li strong {
  color: #fff;
  font-weight: 700;
}

.ipaf-footer-title {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}

.ipaf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.ipaf-footer-links li a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ipaf-footer-links li a:hover {
  color: #fff;
  transform: translateX(4px);
}

.ipaf-footer-links li a::before {
  content: '>';
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.ipaf-footer-links li a:hover::before {
  color: var(--ipaf-blue-600);
}

.ipaf-footer-links li a.ipaf-has-icon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.ipaf-pdf-icon {
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.ipaf-footer-newsletter-col {
  display: flex;
  flex-direction: column;
}

.ipaf-newsletter-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.ipaf-footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ipaf-newsletter-email {
  width: 100%;
  height: 46px;
  background: rgba(2, 19, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0 16px;
  color: #fff;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ipaf-newsletter-email:focus {
  outline: none;
  border-color: var(--ipaf-blue-600);
  box-shadow: 0 0 0 3px rgba(69, 97, 169, 0.2);
}

.ipaf-newsletter-email::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.ipaf-newsletter-btn {
  width: 100%;
  height: 46px;
  background: var(--ipaf-blue-600);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.ipaf-newsletter-btn:hover {
  background-color: #3c579e;
  box-shadow: 0 4px 12px rgba(69, 97, 169, 0.35);
}

.ipaf-newsletter-btn:active {
  transform: scale(0.98);
}

.ipaf-newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: 4px;
}

.ipaf-newsletter-consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--ipaf-blue-600);
}

.ipaf-newsletter-consent span {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
  user-select: none;
}

.ipaf-newsletter-consent:hover span {
  color: rgba(255, 255, 255, 0.7);
}

.ipaf-footer-middle-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}

.ipaf-footer-socials-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ipaf-footer-socials-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.5px;
}

.ipaf-social-links {
  display: flex;
  gap: 12px;
}

.ipaf-social-item {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ipaf-social-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-2px);
}

.ipaf-footer-badges-pill {
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 10px 24px;
  background: rgba(2, 19, 46, 0.3);
}

.ipaf-footer-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.ipaf-footer-badge-item svg {
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.ipaf-footer-badge-item span {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  max-width: 140px;
}

.ipaf-footer-map-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  color: #0b1f3b;
  position: relative;
}

.ipaf-map-card-pin {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(69, 97, 169, 0.08);
  color: var(--ipaf-blue-600);
  border-radius: 50%;
}

.ipaf-map-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ipaf-map-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #0a2240;
}

.ipaf-map-card-sub {
  font-size: 12px;
  color: #607289;
  font-weight: 500;
}

.ipaf-map-card-link {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  border-top: 1px solid #f0f4f8;
  padding-top: 8px;
  color: var(--ipaf-blue-600);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.ipaf-map-card-link:hover {
  color: #3c579e;
}

.ipaf-map-card-link svg {
  transition: transform 0.2s ease;
}

.ipaf-map-card-link:hover svg {
  transform: translateX(4px);
}

.ipaf-footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.ipaf-footer-copyright {
  font-weight: 500;
}

.ipaf-footer-bottom-links {
  display: flex;
  gap: 24px;
}

.ipaf-footer-bottom-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ipaf-footer-bottom-links a:hover {
  color: #fff;
}

.ipaf-page-main {
  min-height: 60vh;
  padding: 50px 0 0px;
  background: var(--ipaf-bg);
}

.ipaf-page-card {
  padding: 42px;
}

.ipaf-page-card h1 {
  margin-top: 0;
}

/* ==========================================================================
   IPAF Summit 2026 UX/UI Layout Enhancements (Desktop)
   ========================================================================== */

/* Alternating Section Backgrounds & Faint Background Circles */

.ipaf-about {
  position: relative;
  overflow: hidden;
}

.ipaf-about--light-blue {
  background: radial-gradient(circle at 10% 20%, #f0f5fc 0%, #f7faff 100%) !important;
}

.ipaf-about--white {
  background: #ffffff !important;
}

.ipaf-about::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 97, 169, 0.04) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  pointer-events: none;
}

#program {
  background: radial-gradient(circle at 90% 80%, #f0f5fc 0%, #f7faff 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(15, 114, 255, 0.05);
  border-bottom: 1px solid rgba(15, 114, 255, 0.05);
}

#program::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 114, 255, 0.03) 0%, transparent 70%);
  bottom: -200px;
  right: -200px;
  pointer-events: none;
}

#program.ipaf-program--light-blue {
  background: radial-gradient(circle at 10% 20%, #f0f5fc 0%, #f7faff 100%);
}

#program::before {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(69, 97, 169, 0.04) 0%, transparent 70%);
  top: -100px;
  right: auto;
  bottom: auto;
  left: -100px;
}

#guide {
  background: radial-gradient(circle at 10% 80%, #f0f5fc 0%, #f7faff 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(15, 114, 255, 0.05);
  border-bottom: 1px solid rgba(15, 114, 255, 0.05);
}

#guide::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 97, 169, 0.03) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  pointer-events: none;
}

#safety-medicine {
  background: radial-gradient(circle at 10% 80%, #f0f5fc 0%, #f7faff 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(15, 114, 255, 0.05);
  border-bottom: 1px solid rgba(15, 114, 255, 0.05);
}

#safety-medicine.ipaf-safety-medicine--light-blue {
  background: radial-gradient(circle at 10% 80%, #f0f5fc 0%, #f7faff 100%);
}

#safety-medicine.ipaf-safety-medicine--white {
  background: #fff;
  border-top-color: rgba(15, 114, 255, 0.03);
  border-bottom-color: rgba(15, 114, 255, 0.03);
}

#safety-medicine::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 97, 169, 0.03) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  pointer-events: none;
}

#safety-medicine.ipaf-safety-medicine--white::before {
  display: none;
}

/* Stripping Card Layouts for a More Section-like Vibe */

.ipaf-organizer,
.ipaf-countries,
.ipaf-concept-card,
.ipaf-history-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.ipaf-two-col .ipaf-organizer,
.ipaf-two-col .ipaf-countries,
.ipaf-concept-grid .ipaf-concept-card,
.ipaf-concept-grid .ipaf-history-card {
  padding: 0;
}

/* Align and structure Organizer & Countries block */
.ipaf-two-col {
  padding: 85px 0;
  max-width: var(--ipaf-container);
  margin-inline: auto;
  gap: 60px;
  border-bottom: 1px solid rgba(15, 114, 255, 0.05);
}

.ipaf-organizer-logo {
  margin-bottom: 24px;
}

.ipaf-organizer p {
  font-size: 15px;
  line-height: 1.6;
  color: #274372;
  margin-bottom: 28px;
}

/* Structure Spatial Concept & History of Kazakhstan block */
.ipaf-concept-grid {
  padding: 85px 0;
  max-width: var(--ipaf-container);
  margin-inline: auto;
  gap: 60px;
  border-bottom: 1px solid rgba(15, 114, 255, 0.05);
}

.ipaf-concept-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ipaf-concept-body {
  gap: 24px;
}

.ipaf-history-card {
  display: flex;
  flex-direction: column;
}


@media (max-width: 1100px) {
  .ipaf-section {
    padding: 65px 0;
  }

  .ipaf-two-col,
  .ipaf-concept-grid {
    padding: 65px 0;
    gap: 30px;
  }

  .ipaf-nav,
  .ipaf-header-actions .ipaf-button {
    display: none;
  }

  .ipaf-menu-toggle {
    display: block;
  }

  .ipaf-nav.is-open {
    position: absolute;
    top: 76px;
    left: 24px;
    right: 24px;
    display: grid;
    gap: 0;
    border-radius: 8px;
    background: rgba(4, 31, 77, .97);
    box-shadow: 0 18px 44px rgba(0,0,0,.2);
  }

  .ipaf-nav.is-open a {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .ipaf-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ipaf-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ipaf-footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .ipaf-footer-info-col,
  .ipaf-footer-newsletter-col {
    grid-column: span 2;
  }

  .ipaf-footer-middle-section {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
  }

  .ipaf-footer-badges-pill {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 16px;
    gap: 16px;
    width: 100%;
    max-width: 320px;
  }

  /* Stats panel tablet rules managed cleanly */
}

@media (max-width: 860px) {
  .ipaf-container {
    width: min(100% - 28px, var(--ipaf-container));
  }

  .ipaf-logo-caption {
    display: none;
  }

  .ipaf-logo {
    min-width: 0;
  }

  .ipaf-hero,
  .ipaf-hero-inner {
    min-height: 690px;
  }

  .ipaf-hero::after {
    width: 96vw;
    height: 310px;
    opacity: .58;
  }

  .ipaf-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 130px !important;
  }

  .ipaf-countdown-card {
    right: 14px;
    bottom: 86px;
    left: 14px;
    width: auto;
  }

  .ipaf-stats {
    margin-top: 0 !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  .ipaf-stats::before {
    top: 0 !important;
  }

  .ipaf-about-grid,
  .ipaf-program-grid,
  .ipaf-two-col,
  .ipaf-concept-grid {
    grid-template-columns: 1fr;
  }

  .ipaf-info-card {
    padding: 24px;
  }

  .ipaf-info-row {
    grid-template-columns: var(--ipaf-about-icon-size, 24px) 175px 1fr;
  }

  .ipaf-country-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ipaf-timeline {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
  }

  .ipaf-timeline::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .ipaf-history-card {
    padding: 20px 16px;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .ipaf-timeline-tooltip-mobile {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(6, 36, 93, 0.95);
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    margin-bottom: 12px;
    animation: ipaf-tooltip-fadein 0.2s ease;
  }

  .ipaf-timeline-tooltip-mobile[hidden] {
    display: none;
  }

  .ipaf-timeline-tooltip {
    display: none !important;
  }

  .ipaf-timeline-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    padding-top: 10px;
    padding-bottom: 12px;
    margin-top: 0;
  }

  .ipaf-timeline-track {
    width: 760px;
    min-width: 760px;
    flex-shrink: 0;
    box-sizing: border-box;
    padding-left: 8px;
    padding-right: 8px;
  }

  .ipaf-timeline-wrapper::-webkit-scrollbar {
    height: 4px;
  }
  .ipaf-timeline-wrapper::-webkit-scrollbar-track {
    background: #f1f5fa;
    border-radius: 2px;
  }
  .ipaf-timeline-wrapper::-webkit-scrollbar-thumb {
    background: #cbdcf2;
    border-radius: 2px;
  }
  .ipaf-timeline-wrapper::-webkit-scrollbar-thumb:hover {
    background: #2F7FFF;
  }
}

@media (max-width: 560px) {
  /* About Summit block mobile adjustments to prevent label/value overlapping */
  .ipaf-info-row {
    grid-template-columns: var(--ipaf-about-icon-size, 24px) 1fr;
    row-gap: 4px;
    align-items: start;
  }

  .ipaf-info-row .ipaf-icon {
    grid-row: span 2;
    margin-top: 3px;
  }

  .ipaf-info-label,
  .ipaf-info-row > span {
    grid-column: 2;
  }

  .ipaf-section {
    padding: 45px 0;
  }

  .ipaf-two-col,
  .ipaf-concept-grid {
    padding: 45px 0;
    gap: 24px;
  }

  .ipaf-header-inner {
    min-height: 72px;
  }

  .ipaf-logo-main {
    font-size: 25px;
  }

  .ipaf-logo-mark {
    width: 44px;
    height: 44px;
  }

  .ipaf-hero h1 {
    font-size: 38px;
  }

  .ipaf-hero h1 span {
    font-size: 25px;
  }

  .ipaf-hero-lead {
    font-size: 16px;
  }

  .ipaf-hero-buttons,
  .ipaf-event-meta {
    display: grid;
  }

  .ipaf-button {
    width: 100%;
  }

  /* Stats panel mobile rules managed cleanly */

  .ipaf-section-title {
    font-size: 24px;
  }

  .ipaf-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ipaf-gallery-grid,
  .ipaf-guide-grid,
  .ipaf-footer-top-grid {
    grid-template-columns: 1fr;
  }

  .ipaf-footer-info-col,
  .ipaf-footer-newsletter-col {
    grid-column: span 1;
  }

  .ipaf-tabs {
    grid-template-columns: repeat(3, minmax(86px, 1fr));
    width: 100%;
  }

  .ipaf-schedule li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .ipaf-download-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .ipaf-concept-body,
  .ipaf-newsletter-form {
    grid-template-columns: 1fr;
  }

  .ipaf-footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .ipaf-footer-bottom-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* Hero primary CTA: warm accent from the summit mockup. */
.ipaf-hero .ipaf-button:not(.ipaf-button--ghost),
.ipaf-editor-hero-preview .ipaf-button:not(.ipaf-button--ghost) {
  background: linear-gradient(135deg, #d85f34 0%, #b94124 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 30px rgba(120, 43, 24, 0.34);
}

.ipaf-hero .ipaf-button:not(.ipaf-button--ghost):hover,
.ipaf-hero .ipaf-button:not(.ipaf-button--ghost):focus-visible,
.ipaf-editor-hero-preview .ipaf-button:not(.ipaf-button--ghost):hover,
.ipaf-editor-hero-preview .ipaf-button:not(.ipaf-button--ghost):focus-visible {
  background: linear-gradient(135deg, #e46a3e 0%, #a9361e 100%);
  box-shadow: 0 16px 34px rgba(120, 43, 24, 0.42);
}

.ipaf-hero .ipaf-button--ghost,
.ipaf-editor-hero-preview .ipaf-button--ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.ipaf-hero .ipaf-button--ghost:hover,
.ipaf-hero .ipaf-button--ghost:focus-visible,
.ipaf-editor-hero-preview .ipaf-button--ghost:hover,
.ipaf-editor-hero-preview .ipaf-button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.62) !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

.ipaf-hero a.ipaf-button.ipaf-button--ghost,
.ipaf-hero .ipaf-hero-actions .ipaf-button.ipaf-button--ghost,
.ipaf-editor-hero-preview a.ipaf-button.ipaf-button--ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.ipaf-hero .ipaf-button + .ipaf-button,
.ipaf-hero a.ipaf-button:nth-of-type(2),
.ipaf-editor-hero-preview .ipaf-button + .ipaf-button,
.ipaf-editor-hero-preview a.ipaf-button:nth-of-type(2) {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.ipaf-hero .ipaf-button + .ipaf-button:hover,
.ipaf-hero .ipaf-button + .ipaf-button:focus-visible,
.ipaf-hero a.ipaf-button:nth-of-type(2):hover,
.ipaf-hero a.ipaf-button:nth-of-type(2):focus-visible,
.ipaf-editor-hero-preview .ipaf-button + .ipaf-button:hover,
.ipaf-editor-hero-preview .ipaf-button + .ipaf-button:focus-visible,
.ipaf-editor-hero-preview a.ipaf-button:nth-of-type(2):hover,
.ipaf-editor-hero-preview a.ipaf-button:nth-of-type(2):focus-visible {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.62) !important;
  box-shadow: none !important;
}

/* Button system: Primary / Secondary / Outline. */
.ipaf-button {
  --ipaf-button-bg: linear-gradient(135deg, #0f72ff, #075cdb);
  --ipaf-button-bg-hover: linear-gradient(135deg, #1d7dff, #064fc0);
  --ipaf-button-color: #fff;
  --ipaf-button-border: transparent;
  --ipaf-button-shadow: 0 12px 28px rgba(9, 91, 220, .24);
  --ipaf-button-shadow-hover: 0 14px 30px rgba(9, 91, 220, .3);
  background: var(--ipaf-button-bg) !important;
  border-color: var(--ipaf-button-border) !important;
  color: var(--ipaf-button-color) !important;
  box-shadow: var(--ipaf-button-shadow) !important;
}

.ipaf-button:hover,
.ipaf-button:focus-visible {
  background: var(--ipaf-button-bg-hover) !important;
  border-color: var(--ipaf-button-border) !important;
  color: var(--ipaf-button-color) !important;
  box-shadow: var(--ipaf-button-shadow-hover) !important;
}

.ipaf-button--primary {
  --ipaf-button-bg: linear-gradient(135deg, #0f72ff, #075cdb);
  --ipaf-button-bg-hover: linear-gradient(135deg, #1d7dff, #064fc0);
  --ipaf-button-color: #fff;
  --ipaf-button-border: transparent;
}

.ipaf-button--secondary {
  --ipaf-button-bg: #4561a9;
  --ipaf-button-bg-hover: #3c579e;
  --ipaf-button-color: #fff;
  --ipaf-button-border: transparent;
  --ipaf-button-shadow: 0 10px 22px rgba(69, 97, 169, .22);
  --ipaf-button-shadow-hover: 0 14px 28px rgba(69, 97, 169, .28);
}

.ipaf-button--outline,
.ipaf-button--ghost,
.ipaf-button.ipaf-countries-btn {
  --ipaf-button-bg: transparent;
  --ipaf-button-bg-hover: rgba(15, 114, 255, .08);
  --ipaf-button-color: var(--ipaf-blue-700);
  --ipaf-button-border: rgba(15, 114, 255, .38);
  --ipaf-button-shadow: none;
  --ipaf-button-shadow-hover: none;
}

.ipaf-hero .ipaf-button--primary,
.ipaf-hero .ipaf-button:not(.ipaf-button--secondary):not(.ipaf-button--outline):not(.ipaf-button--ghost),
.ipaf-editor-hero-preview .ipaf-button--primary,
.ipaf-editor-hero-preview .ipaf-button:not(.ipaf-button--secondary):not(.ipaf-button--outline):not(.ipaf-button--ghost) {
  --ipaf-button-bg: linear-gradient(135deg, #d85f34 0%, #b94124 100%);
  --ipaf-button-bg-hover: linear-gradient(135deg, #e46a3e 0%, #a9361e 100%);
  --ipaf-button-color: #fff;
  --ipaf-button-border: rgba(255, 255, 255, .18);
  --ipaf-button-shadow: 0 14px 30px rgba(120, 43, 24, .34);
  --ipaf-button-shadow-hover: 0 16px 34px rgba(120, 43, 24, .42);
}

.ipaf-hero .ipaf-button--outline,
.ipaf-hero .ipaf-button--ghost,
.ipaf-hero .ipaf-button + .ipaf-button,
.ipaf-editor-hero-preview .ipaf-button--outline,
.ipaf-editor-hero-preview .ipaf-button--ghost,
.ipaf-editor-hero-preview .ipaf-button + .ipaf-button {
  --ipaf-button-bg: rgba(255, 255, 255, .06);
  --ipaf-button-bg-hover: rgba(255, 255, 255, .12);
  --ipaf-button-color: #fff;
  --ipaf-button-border: rgba(255, 255, 255, .42);
  --ipaf-button-shadow: none;
  --ipaf-button-shadow-hover: none;
}

/* Hero premium microinteractions */
.ipaf-hero {
  --ipaf-ease-standard: cubic-bezier(.2, .8, .2, 1);
  --ipaf-ease-emphasized: cubic-bezier(.16, 1, .3, 1);
  isolation: isolate;
}

.ipaf-hero-depth {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ipaf-hero-layer,
.ipaf-hero-light {
  position: absolute;
  inset: -18px;
  pointer-events: none;
  transform: translate3d(var(--ipaf-hero-parallax-x, 0), var(--ipaf-hero-parallax-y, 0), 0) scale(var(--ipaf-hero-layer-scale, 1));
  transform-origin: center;
  will-change: transform, opacity;
}

.ipaf-hero-layer--far {
  opacity: .24;
  background:
    radial-gradient(circle at 72% 30%, rgba(130, 196, 255, .24), transparent 34%),
    linear-gradient(135deg, rgba(5, 24, 70, .42), rgba(15, 109, 210, .14));
}

.ipaf-hero-layer--map {
  opacity: .2;
  background-image: var(--ipaf-hero-map-layer,
    radial-gradient(ellipse at 77% 19%, rgba(255,255,255,.22), transparent 0 10%, rgba(255,255,255,.06) 10.5%, transparent 37%),
    radial-gradient(ellipse at 78% 22%, rgba(177, 215, 255, .18), transparent 39%));
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  animation: ipafHeroMapBreath 22s var(--ipaf-ease-standard) infinite;
}

.ipaf-hero-layer--city {
  opacity: .24;
  background-image: var(--ipaf-hero-city-layer, var(--ipaf-hero-bg-image));
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  mask-image: linear-gradient(to top, rgba(0,0,0,.68), transparent 58%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.68), transparent 58%);
}

.ipaf-hero-layer--mountains {
  opacity: .18;
  background-image: var(--ipaf-hero-mountains-layer, var(--ipaf-hero-bg-image));
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  mask-image: linear-gradient(105deg, transparent 0 56%, rgba(0,0,0,.46) 68%, transparent 100%);
  -webkit-mask-image: linear-gradient(105deg, transparent 0 56%, rgba(0,0,0,.46) 68%, transparent 100%);
}

.ipaf-hero-layer--front {
  opacity: .16;
  background-image: var(--ipaf-hero-front-layer,
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px));
  background-position: center;
  background-repeat: repeat;
  background-size: 96px 96px;
}

.ipaf-hero-light {
  inset: -28%;
  opacity: .09;
  background: radial-gradient(circle at 18% 56%, rgba(255,255,255,.95), rgba(168,213,255,.5) 20%, transparent 46%);
  animation: ipafHeroLightDrift 30s var(--ipaf-ease-standard) infinite;
  mix-blend-mode: screen;
}

.ipaf-hero-inner {
  z-index: 2;
}

.ipaf-hero::before {
  z-index: 1;
}

.ipaf-hero-motion-ready h1,
.ipaf-hero-motion-ready .ipaf-hero-lead,
.ipaf-hero-motion-ready .ipaf-event-meta,
.ipaf-hero-motion-ready .ipaf-hero-buttons,
.ipaf-hero-motion-ready .ipaf-countdown-card,
.ipaf-hero-stat-ready {
  opacity: 0;
  transform: translate3d(0, var(--ipaf-hero-enter-y, 12px), 0);
}

.ipaf-hero-motion-ready .ipaf-countdown-card {
  transform: translate3d(0, 0, 0) scale(calc(var(--ipaf-hero-countdown-scale, .9) * .97));
}

.ipaf-hero-motion-ready h1 { --ipaf-hero-enter-y: 18px; }
.ipaf-hero-motion-ready .ipaf-hero-lead { --ipaf-hero-enter-y: 16px; }
.ipaf-hero-motion-ready .ipaf-event-meta { --ipaf-hero-enter-y: 12px; }
.ipaf-hero-motion-ready .ipaf-hero-buttons,
.ipaf-hero-stat-ready { --ipaf-hero-enter-y: 10px; }

.ipaf-hero-motion-ready.is-visible h1,
.ipaf-hero-motion-ready.is-visible .ipaf-hero-lead,
.ipaf-hero-motion-ready.is-visible .ipaf-event-meta,
.ipaf-hero-motion-ready.is-visible .ipaf-hero-buttons,
.ipaf-hero-motion-ready.is-visible .ipaf-countdown-card,
.ipaf-hero-stat-ready.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 620ms var(--ipaf-ease-emphasized),
    transform 620ms var(--ipaf-ease-emphasized);
}

.ipaf-hero-motion-ready.is-visible h1 { transition-delay: 70ms; }
.ipaf-hero-motion-ready.is-visible .ipaf-hero-lead { transition-delay: 160ms; }
.ipaf-hero-motion-ready.is-visible .ipaf-event-meta { transition-delay: 250ms; }
.ipaf-hero-motion-ready.is-visible .ipaf-hero-buttons { transition-delay: 340ms; }
.ipaf-hero-motion-ready.is-visible .ipaf-countdown-card { transition-delay: 430ms; }
.ipaf-hero-stat-ready.is-visible { transition-delay: 520ms; }

.ipaf-hero-motion-ready.is-visible .ipaf-countdown-card {
  transform: translate3d(0, 0, 0) scale(var(--ipaf-hero-countdown-scale, .9));
}

.ipaf-hero .ipaf-countdown-card {
  transform: scale(var(--ipaf-hero-countdown-scale, .9));
  transform-origin: center;
  background:
    linear-gradient(
      135deg,
      rgba(10, 72, 145, var(--ipaf-hero-countdown-glass-top, .74)),
      rgba(3, 28, 82, var(--ipaf-hero-countdown-glass-bottom, .78))
    ),
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 255, 255, .18),
      rgba(255, 255, 255, 0) 42%
    ) !important;
  background-color: transparent !important;
  border: 1px solid rgba(186, 220, 255, var(--ipaf-hero-countdown-glass-border, .52));
  border-radius: 13px;
  padding: 22px 26px 24px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 -42px 70px rgba(4, 32, 88, .18),
    0 24px 60px rgba(3, 18, 54, .28);
  color: #fff;
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  backdrop-filter: blur(22px) saturate(120%);
}

.ipaf-hero .ipaf-countdown-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.16), rgba(255,255,255,0)),
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.3), transparent 34%);
  opacity: var(--ipaf-hero-countdown-glass-sheen, .54);
  pointer-events: none;
}

.ipaf-hero .ipaf-countdown-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 47px;
  z-index: 0;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 14px rgba(255, 255, 255, .46);
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}

.ipaf-hero .ipaf-countdown-card > * {
  position: relative;
  z-index: 1;
}

.ipaf-hero .ipaf-countdown-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 19px;
  color: var(--ipaf-countdown-text-color, #fff);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-shadow: 0 1px 14px rgba(255, 255, 255, .18);
}

.ipaf-hero .ipaf-countdown-title::before,
.ipaf-hero .ipaf-countdown-title::after {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38));
}

.ipaf-hero .ipaf-countdown-title::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .38), transparent);
}

.ipaf-hero .ipaf-countdown-grid {
  gap: 0;
}

.ipaf-hero .ipaf-countdown-grid > span {
  position: relative;
  padding: 0 17px;
}

.ipaf-hero .ipaf-countdown-grid > span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 0;
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .28), transparent);
}

.ipaf-countdown-value {
  transition: opacity 220ms var(--ipaf-ease-standard), transform 220ms var(--ipaf-ease-standard);
  will-change: opacity, transform;
}

.ipaf-countdown-value.is-changing {
  opacity: .32;
  transform: translate3d(0, 3px, 0);
}

.ipaf-hero .ipaf-countdown-value {
  color: var(--ipaf-countdown-value-color, #fff);
  font-size: 36px;
  font-weight: var(--ipaf-countdown-font-weight, 800);
  letter-spacing: .01em;
  text-shadow: 0 2px 18px rgba(255, 255, 255, .2);
}

.ipaf-hero .ipaf-countdown-label {
  margin-top: 8px;
  color: var(--ipaf-countdown-text-color, rgba(255, 255, 255, .88));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}

.ipaf-hero .ipaf-button {
  transition:
    transform 220ms var(--ipaf-ease-standard),
    background 220ms var(--ipaf-ease-standard),
    box-shadow 220ms var(--ipaf-ease-standard),
    border-color 220ms var(--ipaf-ease-standard);
}

.ipaf-hero .ipaf-button:hover,
.ipaf-hero .ipaf-button:focus-visible {
  transform: translateY(-2px);
}

@keyframes ipafHeroLightDrift {
  0%, 100% { transform: translate3d(-4%, 2%, 0); opacity: .065; }
  42% { transform: translate3d(6%, 0, 0); opacity: .105; }
  70% { transform: translate3d(2%, -5%, 0); opacity: .08; }
}

@keyframes ipafHeroMapBreath {
  0%, 100% { opacity: .16; transform: translate3d(var(--ipaf-hero-parallax-x, 0), var(--ipaf-hero-parallax-y, 0), 0) scale(1); }
  50% { opacity: .28; transform: translate3d(var(--ipaf-hero-parallax-x, 0), var(--ipaf-hero-parallax-y, 0), 0) scale(1.012); }
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .ipaf-hero-layer,
  .ipaf-hero-light {
    animation: none !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ipaf-hero-motion-ready h1,
  .ipaf-hero-motion-ready .ipaf-hero-lead,
  .ipaf-hero-motion-ready .ipaf-event-meta,
  .ipaf-hero-motion-ready .ipaf-hero-buttons,
  .ipaf-hero-motion-ready .ipaf-countdown-card,
  .ipaf-hero-stat-ready {
    transition-duration: 350ms !important;
  }
}

/* ==========================================================================
   IPAF Registration Form Custom Styles
   ========================================================================== */

/* Base container */
.ipaf-registration {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--ipaf-form-max-width, 840px);
  margin: 0 auto;
  padding: 0 16px;
  border: none;
  background: transparent;
  box-shadow: none;
  font-family: var(--ipaf-body-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: var(--ipaf-text, #1a202c);
}

/* Subtitle (Kicker) */
.ipaf-registration__subtitle {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ipaf-accent, #0066cc);
  margin-bottom: 8px;
  display: block;
}

/* Main Form Title */
.ipaf-registration__title {
  text-align: center;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: #002855; /* Premium dark navy */
  margin: 0 0 40px 0;
  line-height: 1.25;
  display: block;
}

/* Progress Steps */
.ipaf-registration__progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 auto 48px auto;
  max-width: 720px;
  width: 100%;
  box-sizing: border-box;
}

/* Connecting Line */
.ipaf-registration__progress::before {
  content: "";
  position: absolute;
  top: 16px; /* Center of the 32px circle */
  left: 40px;
  right: 40px;
  height: 2px;
  background-color: var(--ipaf-border, #e2e8f0);
  z-index: 1;
  display: block;
}

.ipaf-registration__progress-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0; /* Allow the step to shrink below content size */
  z-index: 2;
  text-decoration: none;
  box-sizing: border-box;
}

.ipaf-registration__progress-step span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ipaf-border, #e2e8f0);
  border-radius: 50%;
  background: var(--ipaf-surface, #ffffff);
  color: var(--ipaf-text-muted, #a0aec0);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 10px 0;
  padding: 0;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.ipaf-registration__progress-step small {
  font-size: 12px;
  font-weight: 500;
  color: var(--ipaf-text-muted, #718096);
  text-align: center;
  max-width: 140px;
  line-height: 1.35;
  transition: color 0.25s ease;
  display: block;
  box-sizing: border-box;
  word-wrap: break-word;
  word-break: break-word;
}

/* Active & Completed States */
.ipaf-registration__progress-step.is-active span {
  border-color: var(--ipaf-accent, #0066cc);
  background: var(--ipaf-accent, #0066cc);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
}

.ipaf-registration__progress-step.is-active small {
  color: var(--ipaf-text, #1a202c);
  font-weight: 600;
}

.ipaf-registration__progress-step.is-complete span {
  border-color: var(--ipaf-accent, #0066cc);
  background: var(--ipaf-accent, #0066cc);
  color: #ffffff;
}

.ipaf-registration__progress-step.is-complete small {
  color: var(--ipaf-text, #1a202c);
}

/* Form Layout */
.ipaf-registration__form {
  display: grid;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.ipaf-registration__page {
  display: grid;
  gap: 32px;
  width: 100%;
  box-sizing: border-box;
}

.ipaf-registration__page[hidden] {
  display: none !important;
}

.ipaf-registration__page-header h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 700;
  color: #002855;
  display: block;
}

.ipaf-registration__page-header p {
  margin: 0;
  color: var(--ipaf-text-muted, #718096);
  font-size: 14px;
  line-height: 1.5;
  display: block;
}

/* Sections & Dividers */
.ipaf-registration__section {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 0 32px 0;
  border: 0;
  border-bottom: 1px solid var(--ipaf-border, #f0f4f8);
  border-radius: 0;
  background: none;
  box-shadow: none;
  box-sizing: border-box;
}

.ipaf-registration__section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Section Header (Legend) */
.ipaf-registration__section legend {
  display: block;
  position: relative;
  width: 100%;
  padding: 0 0 0 32px;
  margin: 0 0 24px 0;
  box-sizing: border-box;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #002855;
  line-height: 20px;
  float: none;
  border: none;
  background: transparent;
}

/* Section Icons via CSS Mask */
.ipaf-registration__section legend::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: var(--ipaf-accent, #0066cc);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* 1. Personal Info Icon */
.ipaf-registration__section--index-0 legend::before,
.ipaf-registration__section--section-participant legend::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M7.5 6a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM3.751 20.105a8.25 8.25 0 0116.498 0 .75.75 0 01-.437.695A18.683 18.683 0 0112 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 01-.437-.695z' clip-rule='evenodd'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M7.5 6a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM3.751 20.105a8.25 8.25 0 0116.498 0 .75.75 0 01-.437.695A18.683 18.683 0 0112 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 01-.437-.695z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* 2. Organization Icon */
.ipaf-registration__section--index-1 legend::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M19 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 18H7v-2h10v2zm0-4H7v-2h10v2zm0-4H7V8h10v2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M19 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 18H7v-2h10v2zm0-4H7v-2h10v2zm0-4H7V8h10v2z'/%3E%3C/svg%3E");
}

/* 3. Contact Details Icon */
.ipaf-registration__section--index-2 legend::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.ipaf-registration__section-description {
  margin: -12px 0 20px 0;
  color: var(--ipaf-text-muted, #718096);
  font-size: 14px;
  width: 100%;
  display: block;
}

/* Fields Grid Layout */
.ipaf-registration__fields {
  display: grid;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .ipaf-registration__fields {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
  }

  .ipaf-registration__field {
    grid-column: span 2;
  }

  .ipaf-registration__field[data-ipaf-field-key="last_name"],
  .ipaf-registration__field[data-ipaf-field-key="first_name"],
  .ipaf-registration__field[data-ipaf-field-key="middle_name"],
  .ipaf-registration__field[data-ipaf-field-key="patronymic"],
  .ipaf-registration__field[data-ipaf-field-key="gender"],
  .ipaf-registration__field[data-ipaf-field-key="residency"],
  .ipaf-registration__field[data-ipaf-field-key="org_type"],
  .ipaf-registration__field[data-ipaf-field-key="position"] {
    grid-column: span 1;
  }
}

/* Field styling */
.ipaf-registration__field {
  display: block;
  width: 100%;
  margin: 0 0 16px 0;
  padding: 0;
  box-sizing: border-box;
  float: none;
}

/* Visually hide labels for text-like inputs */
.ipaf-registration__field:not(.ipaf-registration__field--radio):not(.ipaf-registration__field--checkbox) > label {
  display: none !important;
}

/* Keep labels visible for radio and checkboxes */
.ipaf-registration__field--radio > .ipaf-registration__field-label,
.ipaf-registration__field--checkbox > .ipaf-registration__field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ipaf-text, #2d3748);
  margin-bottom: 8px;
  display: block;
  float: none;
  width: 100%;
}

/* Input Fields & Textareas */
.ipaf-registration__field input[type="text"],
.ipaf-registration__field input[type="email"],
.ipaf-registration__field input[type="tel"],
.ipaf-registration__field input[type="number"],
.ipaf-registration__field input[type="date"],
.ipaf-registration__field input[type="datetime-local"],
.ipaf-registration__field select,
.ipaf-registration__field textarea {
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--ipaf-control-border, #e2e8f0);
  border-radius: var(--ipaf-radius, 6px);
  background-color: var(--ipaf-surface, #ffffff);
  color: var(--ipaf-text, #1a202c);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  display: block;
  float: none;
}

.ipaf-registration__field textarea {
  height: auto;
  min-height: 100px;
  resize: vertical;
}

/* Placeholders */
.ipaf-registration__field input::placeholder,
.ipaf-registration__field textarea::placeholder {
  color: var(--ipaf-text-muted, #a0aec0);
  opacity: 1;
}

/* Focus state */
.ipaf-registration__field input:focus,
.ipaf-registration__field select:focus,
.ipaf-registration__field textarea:focus {
  border-color: var(--ipaf-accent, #0066cc);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.08);
}

/* Custom Select dropdown chevron */
.ipaf-registration select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a0aec0' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
}

/* File uploads */
.ipaf-registration__field input[type="file"] {
  box-sizing: border-box;
  padding: 10px;
  height: auto;
  border: 1px dashed var(--ipaf-control-border, #cbd5e1);
  border-radius: var(--ipaf-radius, 6px);
  background: #f8fafc;
  cursor: pointer;
  display: block;
  width: 100%;
}

.ipaf-registration__field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border: 1px solid var(--ipaf-control-border, #cbd5e1);
  border-radius: 4px;
  background: #ffffff;
  color: var(--ipaf-text, #2d3748);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

/* Custom Radio & Checkbox Choices */
.ipaf-registration__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 4px;
  width: 100%;
  box-sizing: border-box;
}

.ipaf-registration__choices label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ipaf-text, #4a5568);
  cursor: pointer;
  user-select: none;
  float: none;
  width: auto;
  margin: 0;
}

/* Custom Radio style */
.ipaf-registration__choices input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ipaf-control-border, #cbd5e1);
  border-radius: 50%;
  outline: none;
  background-color: #ffffff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.ipaf-registration__choices input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: scale(0);
  transition: 0.15s transform ease-in-out;
  background-color: var(--ipaf-accent, #0066cc);
}

.ipaf-registration__choices input[type="radio"]:checked {
  border-color: var(--ipaf-accent, #0066cc);
}

.ipaf-registration__choices input[type="radio"]:checked::before {
  transform: scale(1);
}

/* Custom Checkbox style */
.ipaf-registration__choices input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ipaf-control-border, #cbd5e1);
  border-radius: 4px;
  outline: none;
  background-color: #ffffff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.ipaf-registration__choices input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 8px;
  transform: scale(0);
  transition: 0.15s transform ease-in-out;
  background-color: var(--ipaf-accent, #0066cc);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.ipaf-registration__choices input[type="checkbox"]:checked {
  border-color: var(--ipaf-accent, #0066cc);
}

.ipaf-registration__choices input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/* Custom fields (dependent fields) */
.ipaf-registration__custom-field {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  border-left: 3px solid var(--ipaf-accent, #0066cc);
  border-radius: 0 var(--ipaf-radius, 6px) var(--ipaf-radius, 6px) 0;
  background-color: var(--ipaf-surface-muted, #f8fafc);
  box-sizing: border-box;
}

/* Navigation Buttons */
.ipaf-registration__navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ipaf-border, #f0f4f8);
  width: 100%;
  box-sizing: border-box;
}

.ipaf-registration__submit,
.ipaf-registration__secondary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--ipaf-radius, 6px);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

/* Primary Button (Continue/Submit) */
.ipaf-registration__submit {
  border: 0;
  background-color: #002855; /* Dark navy */
  color: #ffffff;
  margin-left: auto; /* Push to the right */
}

.ipaf-registration__submit:hover:not(:disabled) {
  background-color: #001f42;
  box-shadow: 0 4px 12px rgba(0, 40, 85, 0.15);
}

.ipaf-registration__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Sliding arrow animation for Continue button */
.ipaf-registration__submit[data-ipaf-next]::after {
  content: "a??";
  margin-left: 8px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ipaf-registration__submit[data-ipaf-next]:hover:not(:disabled)::after {
  transform: translateX(4px);
}

/* Secondary Button (Back) */
.ipaf-registration__secondary {
  border: 1px solid var(--ipaf-control-border, #cbd5e1);
  background-color: var(--ipaf-surface, #ffffff);
  color: var(--ipaf-text, #4a5568);
}

/* Captcha & Notices */
.ipaf-registration__captcha {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--ipaf-border, #f0f4f8);
  border-radius: var(--ipaf-radius, 6px);
  background-color: var(--ipaf-surface-muted, #f8fafc);
  margin-top: 24px;
  width: 100%;
  box-sizing: border-box;
}

.ipaf-registration__captcha label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ipaf-text, #2d3748);
}

.ipaf-registration__captcha input {
  width: 100px !important;
  text-align: center;
}

.ipaf-registration__notice {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: var(--ipaf-radius, 6px);
  font-size: 15px;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  /* Force containers to be responsive and not overflow */
  .ipaf-container,
  .ipaf-page-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 16px !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

@media (max-width: 640px) {
  /* Force containers to be responsive and not overflow */
  .ipaf-container,
  .ipaf-page-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 16px !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .ipaf-registration {
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .ipaf-registration__progress {
    margin-bottom: 32px;
  }

  .ipaf-registration__progress::before {
    top: 14px; /* Center of the 28px circle */
    left: 30px;
    right: 30px;
  }

  .ipaf-registration__progress-step span {
    width: 28px;
    height: 28px;
    font-size: 12px;
    border-width: 1px;
  }

  .ipaf-registration__progress-step small {
    font-size: 10px;
  }

  .ipaf-registration__section {
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .ipaf-registration__navigation {
    margin-top: 24px;
    padding-top: 16px;
  }

  /* Scale down the logo on mobile to prevent collision with the menu toggle */
  .ipaf-logo {
    gap: 8px !important;
  }

  .ipaf-logo .custom-logo {
    max-width: 180px !important;
  }

  .ipaf-logo-mark {
    width: 40px !important;
    height: 40px !important;
    border-width: 2px !important;
    font-size: 16px !important;
  }

  .ipaf-logo-main {
    font-size: 24px !important;
  }

  .ipaf-logo-sub {
    font-size: 8px !important;
    margin-top: 1px !important;
  }
}

@media (max-width: 480px) {
  .ipaf-registration__progress-step small {
    display: none !important;
  }

  .ipaf-registration__progress {
    margin-bottom: 24px;
  }

  .ipaf-registration__progress::before {
    left: 20px;
    right: 20px;
  }
}

@media (max-width: 375px) {
  /* Further scale down on very small screens */
  .ipaf-logo .custom-logo {
    max-width: 140px !important;
  }

  .ipaf-logo-mark {
    width: 34px !important;
    height: 34px !important;
    border-width: 2px !important;
    font-size: 14px !important;
  }

  .ipaf-logo-main {
    font-size: 20px !important;
  }

  .ipaf-logo-sub {
    font-size: 7px !important;
  }
}

/* Custom Logo Sizing and Responsiveness */
.ipaf-logo .custom-logo {
  max-width: 320px;
  height: auto;
  display: block;
}

/* Footer Event Info Block (Variant 8 - Card Box) */
.ipaf-footer-card-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.ipaf-footer-card-title-main {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.5px;
}

.ipaf-footer-card-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ipaf-footer-card-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ipaf-footer-card-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 114, 255, 0.15);
  border: 1px solid rgba(15, 114, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f72ff;
  flex-shrink: 0;
}

.ipaf-footer-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ipaf-footer-card-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.ipaf-footer-card-item-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}

.ipaf-footer-card-cta-wrap {
  margin-top: 4px;
}

.ipaf-footer-card-button {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  background: #0f72ff;
  border: none;
  box-shadow: 0 4px 15px rgba(15, 114, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.ipaf-footer-card-button:hover {
  background: #1d7dff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 114, 255, 0.4);
}




