/* =========================================================
   AI Search Custom — main stylesheet
   Design source: Figma "AI Search Present - Final" node 3803:56351
   ========================================================= */

/* Google Sans (OFL) — self-hosted; Google Fonts serves it without Thai glyphs,
   and the design sets Thai and Latin in the same family. Variable 400–700,
   subset to Latin + Thai. */
@font-face {
  font-family: "Google Sans";
  src: url("../fonts/GoogleSans-Variable.woff2") format("woff2-variations"),
       url("../fonts/GoogleSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-brand-blue: #1c73e9;
  --color-brand-green: #2ac48b;
  --color-text: #1a202e;
  --color-text-strong: #0d0d0d;
  --color-text-muted: #6b6c7b; /* 5.18:1 on white — clears WCAG AA (was #7a7b8a, 4.18:1). */
  --color-text-faint: #959aa6;
  --color-surface: #ffffff;
  --color-surface-soft: #f4f5fc;
  --color-surface-badge: #f5f5f5;
  --color-separator: #ecf0f6;
  --color-on-gradient: #f5f5ff;

  --gradient-brand: linear-gradient(135deg, #1c73e9 38.87%, #2ac48b 88.955%);
  --gradient-brand-soft: linear-gradient(162deg, #1c73e9 46.174%, #2ac48b 95.68%);

  --shadow-card: 0 8px 12.5px #f4f5fc, 0 20px 12.5px rgba(244, 245, 252, 0.5);
  --shadow-card-lg: 0 8px 25px #f4f5fc, 0 20px 25px rgba(244, 245, 252, 0.5);
  --shadow-arrow: 0 2px 6px rgba(62, 62, 62, 0.3);

  --radius-card: 16px;
  --radius-card-lg: 24px;
  --radius-pill: 99px;

  --font-body: "Google Sans", "Inter", -apple-system, "Noto Sans Thai", sans-serif;

  --container: 1128px;
  --container-wide: 1320px;
  --space-section: clamp(4rem, 3rem + 4vw, 7.5rem);

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* Positioned so .site-bg (absolute, inset 0) spans the full page height, not just the viewport. */
  position: relative;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-surface);
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4, p {
  margin: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Decorative page background ---------- */

.site-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Full-page background artwork exported from Figma (1440x5491):
   fills the viewport width edge-to-edge, scales proportionally. */
.site-bg {
  background: url("../img/bg.png") top center / 100% auto no-repeat;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px 12px 32px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), filter var(--duration-fast) var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn:focus-visible {
  outline: 3px solid var(--color-brand-blue);
  outline-offset: 2px;
}

.btn--gradient {
  background-image: var(--gradient-brand);
  color: var(--color-on-gradient);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.btn--lg {
  padding: 20px 32px;
  font-size: 20px;
  border: 2px solid var(--color-brand-blue);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500; /* Figma: Medium, not the SemiBold of the larger buttons */
  line-height: 15px;
}

/* Layer 1: brand gradient clipped to the label; layer 2: solid white fills the pill. */
.btn--white {
  padding: 12px 26px;
  font-size: 16px;
  color: transparent;
  background-image: var(--gradient-brand), linear-gradient(#fff, #fff);
  -webkit-background-clip: text, border-box;
  background-clip: text, border-box;
}

.text-gradient {
  color: transparent;
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
}

.btn__icon {
  width: 20px;
  height: 20px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  display: flex;
  justify-content: center;
  padding: 40px 24px 0;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 16px 40px;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  filter: drop-shadow(0 8px 12.5px #f4f5fc) drop-shadow(0 20px 12.5px rgba(244, 245, 252, 0.5));
}

.nav-bar__logo {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
}

.nav-bar__logo-img--mark { width: 140px; height: 18px; }
.nav-bar__logo-img--tagline { width: 78px; height: 4px; margin: 3px 0 0 31px; }

.nav-bar__logo-img:not(.nav-bar__logo-img--mark):not(.nav-bar__logo-img--tagline) {
  max-height: 44px;
  width: auto;
}

.nav-bar__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  white-space: nowrap;
}

.nav-bar__menu a {
  transition: color var(--duration-fast) ease;
}

.nav-bar__menu a:hover {
  color: var(--color-brand-blue);
}

.nav-bar__menu .current-menu-item a {
  font-weight: 600;
  color: transparent;
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-bar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-bar__toggle span:not(.screen-reader-text) {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* ---------- Layout ---------- */

.site-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-section);
  padding-top: 80px;
}

.site-main > section {
  width: min(var(--container), calc(100% - 48px));
}

.site-main > .banner,
.site-main > .register {
  width: 100%;
}

.site-main > .cta-strip,
.site-main > .news,
.site-main > .reports,
.site-main > .events {
  width: min(var(--container-wide), calc(100% - 48px));
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* Textured headline per Figma: image clipped to text over a dark fallback. */
.hero__title {
  font-size: clamp(2.5rem, 1.5rem + 3.5vw, 3.875rem);
  font-weight: 700;
  line-height: 1.16;
  color: transparent;
  background-image: url("../img/imgAiSearchRanking.png"), linear-gradient(#1a202c, #1a202c);
  background-size: cover, auto;
  background-position: center, top left;
  background-repeat: no-repeat, repeat;
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.5rem);
  font-weight: 500;
  line-height: 0.9; /* Figma: 40px type on a 36px line */
  color: #000;
}

.hero__desc {
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.75rem);
  line-height: 1.45;
  color: var(--color-text-muted);
}

.hero__buttons,
.hero__buttons.buttons-parent {
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 0;
  border: 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--color-surface);
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  margin-top: 24px;
}

.hero__button,
.hero__button.buttons {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 32px;
  border: 2px solid transparent;
  border-radius: 100px;
  overflow: hidden;
  appearance: none;
  background-color: var(--color-brand-blue);
  background-image: var(--gradient-brand);
  background-origin: border-box;
  background-clip: border-box;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  font-family: inherit;
  font-size: inherit;
  color: var(--color-surface);
  opacity: 1;
  mix-blend-mode: normal;
  isolation: isolate;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), filter var(--duration-fast) var(--ease-out);
}

.hero__button::before,
.hero__button::after {
  display: none;
  content: none;
}

.hero__button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.hero__button:focus-visible {
  outline: 3px solid var(--color-brand-blue);
  outline-offset: 2px;
}

.hero__button-text,
.hero__button-text.text {
  position: relative;
  font-weight: 600;
  line-height: 24px;
  color: inherit;
  background: transparent;
  text-shadow: none;
  -webkit-text-fill-color: currentColor;
}

/* ---------- Banner slider (Ad V2) ---------- */

.banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.banner__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner__track {
  display: flex;
  transition: transform var(--duration-normal) var(--ease-out);
}

.banner__slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 342px;
  overflow: hidden;
  background-image: linear-gradient(160deg, #1c73e9 29.6%, #2ac48b 113.9%);
  box-shadow: 0 36px 45px rgba(28, 115, 233, 0.08);
}

.banner__bg-image,
.banner__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__blobs {
  position: absolute;
  inset: 0;
  background-image: url("../img/imgVector286.svg"), url("../img/imgVector278.svg");
  background-repeat: no-repeat;
  background-position: 80% -180px, -80px 30%;
  background-size: 42%, 18%;
  mix-blend-mode: soft-light;
  opacity: 0.6;
}

/* Right-column arc graphics (Figma vectors 4-7, hard-light 50%). */
.banner__art {
  position: absolute;
  top: -4%;
  bottom: 4.5%;
  left: 63.2%;
  right: 11%;
  pointer-events: none;
}

.banner__art-piece {
  position: absolute;
  mix-blend-mode: hard-light;
  opacity: 0.5;
  width: auto;
}

.banner__art-piece--1 { left: 0;     top: 0;     width: 57.5%; height: 57.4%; }
.banner__art-piece--2 { left: 42.5%; top: 0;     width: 39.3%; height: 45.9%; }
.banner__art-piece--3 { left: 18.2%; top: 54%;   width: 39.3%; height: 46%; }
.banner__art-piece--4 { left: 42.5%; top: 42.5%; width: 57.5%; height: 57.5%; }

.banner__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 636px;
  padding: 56px 24px 56px clamp(24px, 11vw, 159px);
  color: #fff;
}

.banner__title {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 700;
}

.banner__desc {
  display: -webkit-box;
  max-width: 480px;
  font-size: 20px;
  line-height: 1.4;
  opacity: 0.8;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.banner__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-on-gradient);
}

.banner__link:hover {
  text-decoration: underline;
}

.banner__link-icon {
  width: 20px;
  height: 20px;
}

/* ---------- Slider chrome ---------- */

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow-arrow);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform var(--duration-fast) ease;
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.slider-arrow--prev { left: clamp(12px, 4vw, 64px); }
.slider-arrow--next { right: clamp(12px, 4vw, 64px); }

.slider-arrow img {
  width: 12px;
  height: 19px;
}

.slider-dots {
  display: flex;
  gap: 16px;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 16, 16, 0.2);
  cursor: pointer;
  transition: transform var(--duration-fast) ease;
}

.slider-dots button:hover {
  transform: scale(1.2);
}

.slider-dots button.is-active {
  background-image: var(--gradient-brand);
}

/* ---------- News section ---------- */

.section-label {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 60px;
  color: var(--color-text-strong);
}

.news {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.news__top {
  display: grid;
  grid-template-columns: minmax(0, 653fr) minmax(0, 354fr) minmax(0, 268fr);
  gap: 24px;
  align-items: stretch;
}

.featured-blog {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 19px;
  background: var(--color-surface);
  border-radius: 19px;
  filter: drop-shadow(0 6px 10px #f4f5fc) drop-shadow(0 16px 10px rgba(244, 245, 252, 0.5));
}

.featured-blog__image img {
  display: block;
  width: 100%;
  aspect-ratio: 615 / 345;
  object-fit: cover;
  border-radius: 19px;
}

.featured-blog__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 16px 8px 0;
}

.featured-blog__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.featured-blog__title a:hover {
  color: var(--color-brand-blue);
}

.featured-blog__excerpt {
  font-size: 15.6px;
  line-height: 1.6;
  color: var(--color-text-faint);
}

.featured-blog__rule,
.event-card__rule {
  width: 100%;
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--color-separator);
}

.featured-blog__date,
.listing-card__date {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-faint);
}

.tag-read {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tag-read__tag {
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  color: transparent;
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
}

.tag-read__badge {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--color-surface-badge);
  font-size: 12px;
  color: var(--color-text-muted);
}

.news__latest,
.news__sidebar {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.news__latest-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.listing-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  filter: drop-shadow(0 8px 12.5px #f4f5fc) drop-shadow(0 20px 12.5px rgba(244, 245, 252, 0.5));
  transition: transform var(--duration-fast) var(--ease-out);
}

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

.listing-card__thumb {
  flex-shrink: 0;
}

.listing-card__thumb img {
  display: block;
  width: 104px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

.listing-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.listing-card__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.listing-card__title a:hover {
  color: var(--color-brand-blue);
}

.news__sidebar {
  gap: 16px;
  justify-content: space-between;
}

.news__ad {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.news__ad-img,
.news__ad img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 736 / 1308;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-card);
}

.subscribe-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-height: 221px;
  padding: 16px;
  border-radius: var(--radius-card);
  background-image: linear-gradient(112deg, #1c73e9 46.174%, #2ac48b 95.68%);
  color: var(--color-surface-soft);
  text-align: center;
}

.subscribe-card__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

.subscribe-card__text {
  font-size: 14px;
  line-height: 1.45;
}

/* ---------- Subscribe forms ---------- */

.subscribe-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: var(--color-surface-soft);
  border-radius: var(--radius-pill);
}

.subscribe-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 4px 10px 18px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  color: var(--color-text);
}

.subscribe-form input:focus {
  outline: none;
}

.subscribe-form--compact {
  padding: 4px;
}

.subscribe-form--pill {
  max-width: 600px;
  padding: 6px 6px 6px 16px;
  background: #fff;
}

.subscribe-form--pill input {
  font-size: 18px;
}

.subscribe-form .is-success {
  font-size: 14px;
}

/* ---------- CTA strip ---------- */

.cta-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 29px 49px;
  border-radius: var(--radius-card-lg);
  background-image: var(--gradient-brand-soft);
  color: #fff;
  filter: drop-shadow(0 8px 12.5px #f4f5fc) drop-shadow(0 20px 12.5px rgba(244, 245, 252, 0.5));
}

.cta-strip__icon {
  position: relative;
  flex-shrink: 0;
  width: 82px;
  height: 82px;
}

.cta-strip__icon-ring {
  width: 82px;
  height: 82px;
}

.cta-strip__icon-mark {
  position: absolute;
  top: 29px;
  left: 29px;
  width: 25px;
  height: 25px;
}

.cta-strip__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.cta-strip__title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
}

.cta-strip__desc {
  font-size: 16px;
}

.cta-strip .btn--white {
  flex-shrink: 0;
  font-size: 16px;
}

/* ---------- Section heading row ---------- */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading__title {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--color-text-strong);
}

/* Figma sets this heading Bold in Reports but SemiBold in Events. */
.reports .section-heading__title {
  font-weight: 700;
  letter-spacing: -0.0225em;
}

.section-heading__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 0 16px;
  font-size: 18px;
  font-weight: 500;
  color: #757575;
  transition: color var(--duration-fast) ease;
}

.section-heading__more:hover {
  color: var(--color-brand-blue);
}

.section-heading__more img {
  width: 20px;
  height: 20px;
}

/* ---------- Reports ---------- */

.reports {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.reports__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.report-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-card-lg);
  background: var(--color-surface-soft);
  transition: transform var(--duration-fast) var(--ease-out);
}

.report-card:hover {
  transform: translateY(-4px);
}

.report-card__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
}

.report-card__title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  color: #000;
}

.report-card__desc {
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.report-card__media {
  position: relative;
  height: 397px;
}

.report-card__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-card__download {
  position: absolute;
  bottom: 28px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  font-size: 16px;
  font-weight: 600;
  color: #1e1e1e;
  transition: transform var(--duration-fast) ease;
}

.report-card__download:hover {
  transform: translateY(-2px);
}

.report-card__download img {
  width: 24px;
  height: 24px;
}

/* ---------- Events ---------- */

/* Figma keeps this block at 1128px so the arrows have gutter to sit in. */
.events {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: 1128px;
  margin-inline: auto;
}

.events .section-heading {
  width: 100%;
}

/* Arrows live on the slider, outside the viewport, so the viewport's overflow
   clip (needed for the track) doesn't cut them or the card shadow off. */
.events__slider {
  position: relative;
  width: 100%;
}

.events__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card-lg);
}

.events__track {
  display: flex;
  transition: transform var(--duration-normal) var(--ease-out);
}

.event-card {
  display: flex;
  flex: 0 0 100%;
  min-height: 335px;
  background: var(--color-surface);
  border-radius: var(--radius-card-lg);
}

.event-card__image {
  position: relative;
  flex: 0 0 47.7%;
  min-width: 0;
  min-height: 335px;
}

.event-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 24px 28px 24px 67px;
}

/* Figma: arrows sit 36px clear of the card, i.e. 92px past its edge. Below
   1320px there is no gutter left for them, so they move back over the card. */
@media (min-width: 1320px) {
  .events__slider .slider-arrow--prev { left: -92px; }
  .events__slider .slider-arrow--next { right: -92px; }
}

.event-card__avatar {
  position: absolute;
  top: 50%;
  left: -49px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  transform: translateY(-50%);
}


.event-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.event-card__title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #000;
}

.event-card__title a:hover {
  color: var(--color-brand-blue);
}

.event-card__desc {
  font-size: 22px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.event-card__date {
  font-size: 16px;
  font-weight: 400; /* Figma: Regular 16, unlike the Medium 12 on listing cards */
  color: var(--color-text-faint);
}

/* ---------- Register ---------- */

.register {
  position: relative;
  overflow: hidden;
  padding: 117px 24px;
  background-image: linear-gradient(130deg, #1c73e9 38.87%, #2ac48b 88.955%);
}

.register__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: luminosity;
}

/* Figma: two 465.8x461.3 arc groups, bleeding off the top-left and bottom-right
   edges. The SVG uses preserveAspectRatio="none", so both axes must be sized. */
.register__pattern-img {
  position: absolute;
  width: 32.35%;
  height: 95.11%;
}

.register__pattern-img--left { top: -26.8%; left: -1.39%; }
.register__pattern-img--right { top: 30.31%; left: 67.64%; }

.register__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-surface-soft);
}

.register__title {
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

.register__subtitle {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  line-height: 1.5;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 0;
  padding: 120px 24px 83px;
  background: var(--color-surface-soft);
}

.site-footer__inner {
  display: flex;
  gap: clamp(48px, 10vw, 158px);
  align-items: stretch;
  min-height: 310px;
  max-width: var(--container-wide);
  margin: 0 auto;
}

.site-footer__brand {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 24px;
}

/* Logo + tagline take the free space so the CTA pill sits on the footer baseline,
   aligned with the copyright row in the nav column. */
.site-footer__brand > .site-footer__desc {
  flex: 1;
}

.site-footer__logo {
  position: relative;
  display: inline-flex;
  flex-direction: column;
}

.site-footer__logo-img--mark { width: 233px; height: 30px; }
.site-footer__logo-img--tagline { width: 130px; height: 6px; margin: 6px 0 0 52px; }

.site-footer__logo-img:not(.site-footer__logo-img--mark):not(.site-footer__logo-img--tagline) {
  max-height: 60px;
  width: auto;
}

.site-footer__desc {
  max-width: 391px;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #000;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-width: 203px;
  padding: 12px 16px;
  border-radius: 48px;
  background-image: linear-gradient(155deg, #1c73e9 31%, #2ac48b 79.4%);
  color: #fff;
  font-size: 18px;
  transition: transform var(--duration-fast) ease;
}

.site-footer__social:hover {
  transform: translateY(-2px);
}

.site-footer__social-icon {
  width: 20px;
  height: 20px;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  width: min(548px, 100%);
}

.site-footer__menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #000;
}

.site-footer__menu a:hover {
  color: var(--color-brand-blue);
}

.site-footer__legal {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  white-space: nowrap;
  font-family: "Inter", var(--font-body);
  font-size: 15.6px;
  line-height: 25.6px;
  color: var(--color-text-muted);
}

.site-footer__legal a:hover {
  color: var(--color-brand-blue);
}

/* --color-separator (#ecf0f6) disappears on the footer's #f4f5fc surface. */
.site-footer__divider {
  flex: none;
  width: 1px;
  height: 17px;
  background: #c9ccd6;
}

/* ---------- Archive / single ---------- */

.archive-listing,
.single-post {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.archive-listing__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.single-post__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.single-post__title {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  line-height: 1.25;
}

.single-post__thumb img {
  width: 100%;
  border-radius: var(--radius-card-lg);
}

.single-post__content {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.8;
}

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

@media (max-width: 1200px) {
  .news__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .news__sidebar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (max-width: 1024px) {
  .nav-bar {
    gap: 24px;
    padding: 12px 24px;
  }

  .nav-bar__menu {
    gap: 18px;
    font-size: 15px;
  }

  .news__popular-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reports__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-strip {
    flex-wrap: wrap;
  }
}

.news__popular {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news__popular-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.news__popular-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

@media (max-width: 768px) {
  .site-header {
    padding-top: 24px;
  }

  .nav-bar {
    position: relative;
    width: 100%;
    justify-content: space-between;
  }

  .nav-bar__toggle {
    display: flex;
  }

  .nav-bar__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px;
    background: var(--color-surface);
    border-radius: 24px;
    box-shadow: var(--shadow-card-lg);
  }

  .nav-bar__menu.is-open {
    display: flex;
  }

  .nav-bar__menu li {
    width: 100%;
    padding: 8px 0;
  }

  .news__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .news__sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .reports__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-card__media {
    height: 300px;
  }

  .event-card {
    flex-direction: column;
  }

  .event-card__image {
    flex-basis: auto;
    max-height: 240px;
  }

  .event-card__body {
    padding: 24px;
  }

  .event-card__avatar {
    position: static;
    width: 64px;
    height: 64px;
    transform: none;
  }

  .event-card__desc {
    font-size: 18px;
  }

  .banner__content {
    padding: 40px 24px;
  }

  .hero__buttons {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .hero__button {
    flex: 1 1 260px;
  }

  .cta-strip {
    padding: 24px;
  }

  .archive-listing__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    padding: 64px 24px;
  }

  .site-footer__inner {
    flex-direction: column;
    min-height: 0;
  }

  .site-footer__brand > .site-footer__desc {
    flex: none;
  }

  .site-footer__legal {
    flex-wrap: wrap;
    white-space: normal;
  }

  .site-footer__menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__desc {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .hero__buttons {
    flex-direction: column;
  }

  .hero__button {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }

  .hero__buttons {
    font-size: 17px;
  }

  .listing-card {
    padding: 14px;
    gap: 14px;
  }

  .listing-card__thumb img {
    width: 84px;
    height: 84px;
  }

  .subscribe-form--pill {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 24px;
  }

  .subscribe-form--pill input {
    width: 100%;
    text-align: center;
  }

  .subscribe-form--pill .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
