/* 
Theme Name: FFC Theme
Author: Antigravity
Author URI: 
Description: Frontiers in Finance Conference (FFC) WordPress Theme. Designed for USTC.
Version: 1.8.9f8
License: GNU General Public License v2 or later
Text Domain: ffc-theme
*/

/* Core Design System & Variables */
:root {
  /* Colors from DESIGN.md */
  --primary-bg-gradient: linear-gradient(135deg, #C8E0F8 0%, #CDD6F0 100%);
  /* Light Sky Blue to Periwinkle */
  --navy-deep: #1A2244;
  /* Deep Navy Blue for brand solid content */
  --text-primary: #FFFFFF;
  /* High contrast text for dark/gradient backgrounds */
  --text-dark: #2C3C6B;
  /* Deep Navy for body text on light backgrounds */
  --text-muted: #6B7280;
  /* Light gray for secondary text */
  --text-active: #818CF8;
  /* Periwinkle/Indigo for active/highlights */

  --btn-primary: #818CF8;
  /* Periwinkle solid */
  --btn-hover: #6366F1;

  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-white: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 10px 40px rgba(31, 38, 135, 0.1);

  --font-primary: 'Manrope', 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
  --border-radius-card: 16px;
  --border-radius-pill: 999px;
  --page-title-color: var(--navy-deep);
}

body {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--text-dark);
  /* Body background: light blue-lavender for content pages.
     Only page-header-banner gets the image+gradient treatment. */
  background: #ECEFFF;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════
   Hero Background & Section Colors
   Hero: ffc-bg-upper.jpg fixed background
   with 96px gradient transition → #9AB1FF
   Sections below: solid #9AB1FF (default for all)
   ═══════════════════════════════════════════ */

.hero-section {
  position: relative;
  background-color: #9AB1FF;
  background-image: url('assets/images/ffc-bg-upper.jpg');
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-section::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, #9AB1FF 100%);
}

/* Default: all sections inside site-main get blue background */
body.home,
body.ffc-master {
  background: #9AB1FF;
}

body.home .site-main>section,
body.home .site-main>.wp-block-group,
body.ffc-master .site-main>section,
body.ffc-master .site-main>.wp-block-group {
  position: relative;
  background-color: #9AB1FF;
}

/* Typography Headings */
h1,
.h1 {
  font-weight: 200;
  text-transform: uppercase;
  font-size: 4rem;
  letter-spacing: 4px;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

h2,
.h2 {
  font-weight: 600;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--navy-deep);
}

h3,
.h3 {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--navy-deep);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius-card);
}

.glass-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius-card);
  padding: 2rem;
}

/* Layout */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

.site-main {
  width: 100%;
}

/* Page Breadcrumbs — fixed at top-left of banner, outside title flow */
.page-breadcrumbs {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: #6F7CDF;
}

.special-banner .page-breadcrumbs {
  position: absolute;
  top: 110px;
  left: max(24px, calc(50% - 526px));
  z-index: 3;
}

.page-header-banner .page-breadcrumbs {
  position: absolute;
  top: 110px;
  left: max(40px, calc(50% - 550px));
  z-index: 1;
}

.page-breadcrumbs a {
  color: #6F7CDF;
  text-decoration: none;
  transition: color 0.2s;
}

.page-breadcrumbs a:hover {
  color: #4f5bc0;
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 6px;
  opacity: 0.6;
}

.breadcrumb-current {
  color: #6F7CDF;
  font-weight: 500;
}

.page-header-banner {
  width: 100%;
  min-height: 320px;
  position: relative;
  /* Standard inner-page banner: ffc-bg-upper image + gradient, only in title area */
  background:
    url('assets/images/ffc-bg-upper.jpg') top center / cover no-repeat,
    linear-gradient(to bottom, #83a0fe, #9cb3ff);
}

.page-header-banner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: transparent;
  pointer-events: none;
}

/* Keep banner content vertically centered, left-aligned */
.page-header-banner .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

.page-header-banner__left {
  flex: 1;
}

.page-header-banner__right {
  flex: 0 0 42%;
  max-width: 42%;
  border-left: 3px solid var(--navy-deep);
  padding-left: 28px;
}

.page-header-banner__desc {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--navy-deep);
  margin: 0;
  opacity: 0.85;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 6px;
  margin: 0 0 6px;
}

/* Main title — large + vertical gradient */
.page-header-banner .entry-title {
  font-family: 'FFCFont', serif;
  font-size: 5.6rem !important;
  font-weight: 350 !important;
  background: linear-gradient(to bottom, #3b3491, #4f48a5) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  margin: -0.5rem 0 0 !important;
  line-height: 1.15 !important;
  text-transform: none !important;
}

/* ═══════════════════════════════════════════
   Bio Card Patterns
   ═══════════════════════════════════════════ */

/* ── Shared card base ── */
.card-large,
.card-small,
.card-small-nophoto,
.card-small-desc {
  background: #fff;
  border-radius: 24px;
  padding: 28px 18px;
  box-shadow: 0 2px 12px rgba(27, 42, 74, 0.06);
}

/* ── Large Bio Card ── */

.card-large__inner {
  gap: 40px;
  margin-bottom: 32px;
  align-items: stretch !important;
}

.card-large__photo {
  flex: 0 0 220px;
}

.card-large__img {
  width: 220px;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
}

.card-large__img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.card-large__content,
.card-large__content>.wp-block-group__inner-container {
  flex: 1 1 0% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: stretch !important;
  max-height: none !important;
}

.card-large__content>.wp-block-group__inner-container {
  padding-top: 0;
}

.card-large__name {
  font-family: 'Newsreader', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-deep, #1B2A4A);
  margin: 0 0 16px;
  text-transform: none;
  line-height: 1.2;
}

.card-large__content {
  text-align: justify;
}

.card-large__bio {
  font-family: 'Manrope', sans-serif;
  font-size: 1.0625rem;
  color: #001F87;
  line-height: 1.7;
  margin-top: auto;
  font-weight: 600;
  text-align: justify;
}

.card-large__body {
  width: 100%;
}

.card-large__text {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9375rem;
  color: #001F87;
  line-height: 1.7;
  margin: 0 0 16px;
  text-align: justify;
}

.card-large__text:last-child {
  margin-bottom: 0;
}

/* ── Small Bio Card ── */
.card-small__inner {
  gap: 16px;
  align-items: stretch !important;
}

.card-small__inner>* {
  align-self: stretch !important;
}

.card-small__photo {
  flex: 0 0 140px;
}

.card-small__img {
  width: 140px;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
}

.card-small__img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.card-small__content,
.card-small__content>.wp-block-group__inner-container {
  flex: 1 1 0% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: stretch !important;
  max-height: none !important;
}

.card-small__content>.wp-block-group__inner-container {
  padding-top: 0;
}

.card-small__title {
  font-size: 0.75rem;
  color: var(--navy-deep, #1B2A4A);
  opacity: 0.6;
  margin: 24px 0 8px;
  font-style: italic;
}

.card-small__name {
  font-family: 'Newsreader', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-deep, #1B2A4A);
  margin: 0;
  text-transform: none;
  line-height: 1.2;
}

.card-small__affiliation {
  font-size: 9px;
  color: var(--navy-deep, #1B2A4A);
  opacity: 0.6;
  margin-top: auto;
  font-style: italic;
}

/* ── Small Bio Card (No Photo) ── */
.card-small-nophoto__inner {
  padding: 8px 0;
}

.card-small-nophoto__title {
  font-size: 0.875rem;
  color: var(--navy-deep, #1B2A4A);
  opacity: 0.6;
  margin: 0 0 8px;
  font-style: italic;
}

.card-small-nophoto__name {
  font-family: 'Newsreader', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy-deep, #1B2A4A);
  margin: 0 0 12px;
  text-transform: none;
  line-height: 1.2;
}

.card-small-nophoto__desc {
  font-size: 0.8125rem;
  color: var(--navy-deep, #1B2A4A);
  opacity: 0.6;
  margin: 0;
  font-style: italic;
}

/* ── Small Bio Card (with Description) ── */

.card-small-desc__inner {
  gap: 16px;
  align-items: stretch !important;
}

.card-small-desc__inner>* {
  align-self: stretch !important;
}

.card-small-desc__photo {
  flex: 0 0 140px;
}

.card-small-desc__img {
  width: 140px;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
}

.card-small-desc__img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.card-small-desc__content,
.card-small-desc__content>.wp-block-group__inner-container {
  flex: 1 1 0% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: stretch !important;
  max-height: none !important;
}

.card-small-desc__content>.wp-block-group__inner-container {
  padding-top: 0;
}

.card-small-desc__title {
  font-size: 0.75rem;
  color: var(--navy-deep, #1B2A4A);
  opacity: 0.6;
  margin: 24px 0 8px;
  font-style: italic;
}

.card-small-desc__name {
  font-family: 'Newsreader', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-deep, #1B2A4A);
  margin: 0;
  text-transform: none;
  line-height: 1.2;
}

.card-small-desc__desc {
  font-size: 0.8125rem;
  color: var(--navy-deep, #1B2A4A);
  opacity: 0.6;
  margin: 0;
  line-height: 1.5;
  font-style: italic;
}

.card-small-desc__affiliation {
  font-size: 9px;
  color: var(--navy-deep, #1B2A4A);
  opacity: 0.6;
  margin-top: auto;
  font-style: italic;
}

/* ── Bio Card responsive ── */
@media (max-width: 768px) {

  .card-large,
  .card-small,
  .card-small-nophoto,
  .card-small-desc {
    padding: 20px 12px;
    border-radius: 16px;
  }

  .card-large__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .card-large__photo {
    flex: none;
  }

  .card-large__img {
    width: 160px;
  }

  .card-large__name {
    font-size: 1.5rem;
  }

  .card-small__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .card-small__photo {
    flex: none;
  }

  .card-small__img {
    width: 120px;
  }

  .card-small__name {
    font-size: 1.5rem;
  }

  .card-small-nophoto__name {
    font-size: 1.5rem;
  }

  .card-small-desc__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .card-small-desc__photo {
    flex: none;
  }

  .card-small-desc__img {
    width: 120px;
  }

  .card-small-desc__title {
    margin: 0 0 8px;
  }
}

.card-small-desc__name {
  font-size: 1.5rem;
}
}

/* ═══════════════════════════════════════════
   Banner Patterns (for Special Banner pages)
   ═══════════════════════════════════════════ */

/* ── Banner Title ── */
.banner-title-section {
  width: 100%;
}

.banner-title-section__inner {
  align-items: center;
  gap: 64px;
  min-height: 280px;
}

.banner-title-section__left {
  flex: 0 0 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-title-section__visual {
  width: 280px;
  height: auto;
  margin: 0;
  filter: drop-shadow(0 8px 32px rgba(255, 255, 255, 0.2));
}

.banner-title-section__visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.banner-title-section__right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.banner-title-section__title {
  font-family: 'FFCFont', serif;
  font-size: 5.5rem;
  color: #fff;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  text-transform: none;
}

.banner-title-section__subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: none;
}

/* ── Banner Conference ── */
.banner-conference-section {
  width: 100%;
}

.banner-conference-section__inner {
  align-items: center;
  gap: 64px;
  min-height: 280px;
}

.banner-conference-section__left {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.banner-conference-section__date {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  margin: 0 0 12px;
  letter-spacing: 0.5px;
  text-transform: none;
}

.banner-conference-section__title {
  font-family: 'FFCFont', serif;
  font-size: 6rem;
  color: #fff;
  font-weight: 700;
  margin: 0;
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  text-transform: none;
}

.banner-conference-section__right {
  flex: 0 0 auto;
}

.banner-conference-section__logo {
  width: 260px;
  height: auto;
  margin: 0;
}

.banner-conference-section__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ── Banner Patterns responsive ── */
@media (max-width: 1024px) {

  .banner-title-section__inner,
  .banner-conference-section__inner {
    gap: 40px;
  }

  .banner-title-section__title {
    font-size: 4rem;
  }

  .banner-conference-section__title {
    font-size: 4.5rem;
  }

  .banner-conference-section__logo {
    width: 200px;
  }
}

@media (max-width: 768px) {

  .banner-title-section__inner,
  .banner-conference-section__inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 20px 0;
  }

  .banner-title-section__left,
  .banner-conference-section__right {
    flex: none;
  }

  .banner-title-section__visual {
    width: 180px;
  }

  .banner-title-section__title {
    font-size: 2.8rem;
  }

  .banner-conference-section__title {
    font-size: 3rem;
  }

  .banner-conference-section__logo {
    width: 160px;
  }
}

/* ═══════════════════════════════════════════
   Special Banner Page Template
   First Gutenberg block rendered as banner
   ═══════════════════════════════════════════ */

.special-banner {
  width: 100%;
  position: relative;
  background:
    url('assets/images/ffc-bg-upper.jpg') top center / cover no-repeat,
    linear-gradient(to bottom, #83a0fe, #9cb3ff);
  padding: 144px 0 80px;
  overflow: visible;
}

.special-banner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent 0%, #ECEFFF 100%);
  pointer-events: none;
}

.special-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Reset Gutenberg block styles inside the special banner */
.special-banner .glass-panel {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 20px;
  padding: 48px 56px;
}

.special-banner .about-section {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.special-banner h1,
.special-banner h2,
.special-banner h3 {
  font-family: 'FFCFont', serif;
  font-weight: 350;
  color: #fff;
  text-transform: none;
}

.special-banner p {
  color: rgba(255, 255, 255, 0.9);
}

.special-banner a {
  color: #fff;
}

/* Hide sidebar when special banner page has no sub-headings */
.special-banner+.page-content-wrapper {
  margin-top: -160px;
}

/* Hide sidebar when special banner page has no sub-headings */
.special-banner+.page-content-wrapper .sidebar-nav {
  display: none;
}

.special-banner+.page-content-wrapper .sidebar-layout:not(.has-sidebar) .content-area {
  max-width: 100%;
  flex: 1;
}

/* Special Banner responsive */
@media (max-width: 1024px) {
  .special-banner {
    padding: 80px 0 60px;
  }
}

@media (max-width: 768px) {
  .special-banner {
    padding: 64px 0 48px;
  }

  .special-banner .glass-panel {
    padding: 24px;
  }
}

.page-content-wrapper {
  width: 100%;
  position: relative;
  margin-top: -224px;
  z-index: 2;
  background: linear-gradient(to bottom, transparent 0px, #ECEFFF 224px);
}

/* ═══════════════════════════════════════════
   Auto Section Numbering (CSS Counters)
   Format: _01_ | Section Title
   Targets: page h2 + UM register .um-row-heading
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   @font-face — FFCFont
   ═══════════════════════════════════════════ */
@font-face {
  font-family: 'FFCFont';
  src: url('assets/FFCFont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body:not(.home) .site-main {
  counter-reset: section-number;
}

/* Page h2/h3 headings — numbered prefix (non-home pages only)
   Exclude: Pattern section titles (hero/about/events/committees) */
body:not(.home) .site-main h2:not(.events-section__title):not(.about-section__title):not(.committees-section__title) {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.5rem !important;
}

body:not(.home) .site-main h2:not(.events-section__title):not(.about-section__title):not(.committees-section__title)::before {
  counter-increment: section-number;
  content: counter(section-number, decimal-leading-zero);
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  order: -2;
}

body:not(.home) .site-main h2:not(.events-section__title):not(.about-section__title):not(.committees-section__title)::after {
  content: "|";
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  color: #999;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  order: -1;
}

/* Sections template: suppress CSS counter (JS handles numbering) */
.page-section h2::before {
  counter-increment: none !important;
  content: none !important;
}

.page-section h2::after {
  content: none !important;
}

.section-number {
  font-weight: 700;
  color: #999;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Ultimate Member – row headings */
.um-form .um-row-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.um-form .um-row-heading::before {
  counter-increment: um-section-number;
  content: counter(um-section-number, decimal-leading-zero) " |";
  font-style: italic;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.um-form .um-row-heading::after {
  display: none;
}

.um-form {
  counter-reset: um-section-number;
}

/* ── Registration Page: UM Form Section Headings ── */

/* Section headings — "01 | Name and Mailing Address" */
.um-form .um-row-heading {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  font-size: 2rem !important;
  font-weight: 600 !important;
  color: #0051ad !important;
  padding: 32px 0 18px !important;
  margin: 20px 0 10px !important;
  border-top: 1px solid #e2e6f0 !important;
}

.um-form .um-row-heading:first-of-type {
  border-top: none !important;
  padding-top: 8px !important;
}

/* ── UM Field Labels & Inputs ── */
.um-form .um-field-label label {
  color: #0051ad !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
}

.um-form input[type="text"],
.um-form input[type="email"],
.um-form input[type="tel"],
.um-form input[type="password"],
.um-form input[type="url"] {
  font-size: 1rem !important;
}

.um-form select {
  font-size: 1rem !important;
}

/* ═══════════════════════════════════════════
   Unified Form Field Styles
   Shared by UM Registration & Privacy page
   ═══════════════════════════════════════════ */

/* ── Blue bullet ● before each label ── */
.um-form .um-field-label {
  position: relative !important;
  padding-left: 18px !important;
}

.um-form .um-field-label::before {
  content: '' !important;
  position: absolute !important;
  top: 8px !important;
  left: 0 !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #0051ad !important;
}

.um-form .um-field-label .um-clear {
  display: none;
}

/* ── UM inputs: full-width box border (match privacy page) ── */
.um-form .um-field-area {
  padding-left: 18px !important;
}

.um-form input[type="text"].um-form-field,
.um-form input[type="email"].um-form-field,
.um-form input[type="tel"].um-form-field,
.um-form input[type="password"].um-form-field,
.um-form input[type="url"].um-form-field,
.um-form .um-field-area select,
.um-form textarea.um-form-field {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 9px 14px !important;
  border: 1px solid #c8cde0 !important;
  border-radius: 4px !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  color: var(--text-dark, #2C3C6B) !important;
  background: #fff !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
  box-sizing: border-box !important;
}

.um-form input[type="text"].um-form-field:focus,
.um-form input[type="email"].um-form-field:focus,
.um-form input[type="tel"].um-form-field:focus,
.um-form input[type="password"].um-form-field:focus,
.um-form .um-field-area select:focus,
.um-form textarea.um-form-field:focus {
  outline: none !important;
  border-color: var(--btn-blue, #7b9df4) !important;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, .15) !important;
}

.um-form .um-field-area select {
  appearance: auto !important;
  cursor: pointer !important;
}

.um-form textarea.um-form-field {
  resize: vertical !important;
  min-height: 60px !important;
}

/* UM field spacing */
.um-form .um-field {
  margin-bottom: 20px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* ── UM Submit button (match privacy page) ── */
.um-form .um-button {
  padding: 13px 36px !important;
  background: var(--btn-blue, #5c85f6) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: all .25s ease !important;
  white-space: nowrap !important;
}

.um-form .um-button:hover {
  background: #4a6fdc !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(92, 133, 246, .35) !important;
}

.um-form .um-button.um-alt {
  background: transparent !important;
  color: var(--btn-blue, #5c85f6) !important;
  border: 2px solid var(--btn-blue, #5c85f6) !important;
}

.um-form .um-button.um-alt:hover {
  background: rgba(92, 133, 246, .08) !important;
  transform: none !important;
  box-shadow: none !important;
}

.um-form .um-col-alt {
  border-top: 1px solid #e2e6f0 !important;
  padding-top: 28px !important;
  margin-top: 40px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.um-form .um-col-alt .um-half {
  float: none !important;
  width: auto !important;
}

/* ── Privacy Page Form Styles ── */

/* Sidebar nav — shared by Privacy & Registration pages */
.sidebar-nav__title {
  font-size: 1.75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 1px;
  color: var(--navy-deep);
  opacity: 0.7;
  margin-bottom: 24px;
}

#privacy-toc-list,
.reg-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#privacy-toc-list a,
.reg-toc-list a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0.7;
  transition: all .2s ease;
}

#privacy-toc-list a:hover,
#privacy-toc-list a.active,
.reg-toc-list a:hover,
.reg-toc-list a.active {
  opacity: 1;
  color: var(--navy-deep);
  background: rgba(132, 162, 248, .10);
}

/* Section headings */
.privacy-section-heading {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  font-size: 2rem !important;
  font-weight: 600 !important;
  color: #0051ad !important;
  padding: 32px 0 18px !important;
  margin: 20px 0 16px !important;
  border-top: 1px solid #e2e6f0 !important;
  line-height: 1.3 !important;
}

.privacy-section-heading:first-of-type {
  border-top: none !important;
  padding-top: 8px !important;
}

#ffc-privacy-form {
  counter-reset: privacy-sec;
}

.privacy-section-heading::before {
  counter-increment: privacy-sec;
  content: counter(privacy-sec, decimal-leading-zero) ' |';
  font-style: italic;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Field rows */
.privacy-field-row {
  margin-bottom: 20px;
}

.privacy-field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #0051ad;
  cursor: pointer;
  position: relative;
  padding-left: 18px;
}

.privacy-field-label::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0051ad;
}

.privacy-field-label input[type="text"],
.privacy-field-label input[type="email"],
.privacy-field-label input[type="tel"],
.privacy-field-label select,
.privacy-field-label textarea {
  display: block;
  width: 100%;
  max-width: 540px;
  padding: 9px 14px;
  border: 1px solid #c8cde0;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark, #2C3C6B);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}

.privacy-field-label input:focus,
.privacy-field-label select:focus,
.privacy-field-label textarea:focus {
  outline: none;
  border-color: var(--btn-blue, #7b9df4);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, .15);
}

.privacy-field-label select {
  appearance: auto;
  cursor: pointer;
}

.privacy-field-label textarea {
  resize: vertical;
  min-height: 60px;
}

/* Submit bar */
.privacy-submit-bar {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #e2e6f0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.privacy-btn-submit {
  padding: 13px 36px;
  background: var(--btn-blue, #5c85f6);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}

.privacy-btn-submit:hover:not(:disabled) {
  background: #4a6fdc;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(92, 133, 246, .35);
}

.privacy-btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.encrypt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted, #6B7280);
}

.encrypt-badge svg {
  opacity: 0.65;
}

/* Status messages */
.privacy-status {
  padding: 14px 20px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 0.93rem;
  display: none;
}

.privacy-status.success {
  display: block;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.privacy-status.error {
  display: block;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.privacy-status.loading {
  display: block;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

/* Privacy page responsive */
@media (max-width: 1024px) {

  #privacy-layout,
  #privacy-layout.has-sidebar {
    grid-template-columns: 1fr;
  }

  #privacy-sidebar {
    position: static;
    display: block !important;
    margin-bottom: 30px;
  }
}

@media (max-width: 600px) {
  .privacy-submit-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .privacy-btn-submit {
    width: 100%;
  }

  .um-form .um-col-alt {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .um-form .um-col-alt .um-half {
    width: 100% !important;
  }

  .um-form .um-button {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Header Redesign */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: var(--navy-deep);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Vertical center of logo vs menu-utility-area */
  gap: 72px;
}

.logo-area {
  flex-shrink: 0;
}

.logo-area a {
  display: flex;
  align-items: center;
  color: #fff !important;
}

.logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

/* Right Section - Split Top/Bottom */
.menu-utility-area {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.top-utility-row {
  display: flex;
  justify-content: flex-end;
  /* Utility Right Aligned */
  align-items: center;
  gap: 32px;
}

.lang-switch ul {
  display: flex !important;
  gap: 12px;
  list-style: none !important;
  padding: 0;
  margin: 0;
}

.lang-switch li {
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  opacity: 0.6;
}

.lang-switch li.current-lang,
.lang-switch li a.active {
  opacity: 1;
  font-weight: 700;
}

.lang-switch li:not(:last-child)::after {
  content: '|';
  margin-left: 12px;
  opacity: 0.3;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions .search-icon {
  margin-left: 16px;
}

.btn-register {
  color: #fed86b !important;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-separator {
  color: #fed86b;
  opacity: 0.7;
  font-size: 0.9375rem;
  font-weight: 600;
}

.search-icon {
  color: #fff;
  opacity: 0.7;
}

.header-row-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  /* Visible line */
  margin: 10px 0;
}

.bottom-nav-row {
  display: flex;
  justify-content: flex-start;
  /* Menu Left Aligned in Right Block */
}

/* Navigation Menu */
.nav-menu>ul {
  display: flex;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu>ul>li {
  position: relative;
}

.nav-menu>ul>li>a {
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-menu>ul>li>a:hover {
  opacity: 1;
}

/* Dropdown arrow for items with children */
.nav-menu>ul>li.menu-item-has-children>a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s;
}

.nav-menu>ul>li.menu-item-has-children:hover>a::after {
  transform: rotate(180deg);
}

/* Sub-menu dropdown */
.nav-menu .sub-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: rgba(26, 34, 68, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 1000;
}

.nav-menu>ul>li:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li a {
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
  padding: 10px 20px;
  display: block;
  white-space: nowrap;
}

.nav-menu .sub-menu li a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* Buttons (Restored from Duplicates) */
.btn-primary {
  background: var(--btn-primary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: var(--border-radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(129, 140, 248, 0.3);
}

.btn-primary:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
}

.btn-text {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-section--front {
  text-align: center;
  padding-top: 180px;
}

.hero-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-section__title {
  font-size: 3rem;
  letter-spacing: 6px;
  margin-bottom: 40px;
  font-weight: 300;
  color: #fff;
}

.hero-section__cta {
  padding: 16px 60px;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-brand-logo__digit {
  font-size: 10rem;
  font-weight: 200;
  color: #fff;
  line-height: 1;
}

.hero-brand-logo__orbus {
  width: 140px;
  height: 140px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-brand-logo__dot {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.8;
}

.hero-info-specs {
  color: #fff;
  opacity: 0.8;
  font-size: 0.9375rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-divider {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  opacity: 0.3;
}

/* CFP Section */
.cfp-section {
  padding: 100px 0;
}

.cfp-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 60px;
}

.cfp-card__body {
  max-width: 600px;
}

.cfp-card__title {
  font-size: 4.5rem;
  color: #fff;
  margin-bottom: 40px;
  font-weight: 600;
}

.cfp-card__desc {
  font-size: 1.125rem;
  color: #fff;
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.6;
}

.cfp-card__action {
  padding-bottom: 10px;
}

.btn-primary--outline {
  background: transparent;
  border: 1.5px solid #fff;
  box-shadow: none;
}

/* Dates Section */
.dates-section {
  padding: 100px 0;
}

.dates-section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 16px;
  margin-bottom: 48px;
}

.dates-section__header .btn-text {
  font-size: 0.8125rem;
}

.dates-section__title {
  font-size: 3rem;
  color: var(--navy-deep);
  margin: 0;
}

.timeline-card--glass {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.timeline-title {
  font-size: 1.5rem;
  margin: 20px 0;
}

.timeline-date--link {
  color: var(--text-active);
  text-decoration: underline;
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   Master Layout – Hero (left-aligned + cloud)
   ═══════════════════════════════════════════ */

.hero-section--master {
  text-align: left;
  padding-top: 140px;
  padding-bottom: 40px;
}

.hero-section--master__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-section--master__content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-section--master__title-zh {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif CN', '思源宋体', serif;
  font-size: 3rem; /* 48px */
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.2;
  color: #fff;
  margin-top: 0;
  margin-bottom: 12px; /* 与下方英文标题保持 12px 间距 */
}

.hero-section--master__title-en {
  font-family: 'FFCFont', serif;
  font-size: 3.5rem;
  letter-spacing: 4px;
  line-height: 1.15;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 0;
  margin-bottom: 40px; /* 默认没有描述文本时，与按钮保持 40px 的优雅间距 */
}

.hero-section--master__title-en:has(+ .hero-section--master__desc) {
  margin-bottom: 24px; /* 有描述文本时，自动缩减为 24px 以防过空 */
}

.hero-section--master__desc {
  font-size: 1rem;
  color: #fff;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
  min-height: 5.1em;
}

.hero-section--master__date {
  margin-top: 16px;
  font-size: 0.875rem;
  color: #fff;
  opacity: 0.7;
  text-decoration: underline;
}

/* Hero visual — flower image */
.hero-section--master__visual {
  flex: 0 0 auto;
  position: relative;
  width: auto;
  max-width: 420px;
  height: auto;
  max-height: 420px;
  opacity: 0.9;
}

.hero-section--master__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(99, 102, 241, 0.25));
}

/* ═══════════════════════════════════════════
   Centered Layout – Hero (year + cloud + title)
   ═══════════════════════════════════════════ */

.hero-section--centered {
  text-align: center;
  padding-top: 120px;
  padding-bottom: 60px;
}

.hero-section--centered__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}

/* Year row: "2" + cloud icon + "26" */
.hero-section--centered__year {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
}

p.hero-section--centered__digit,
p.hero-section--centered__digit strong {
  font-family: 'Inter', sans-serif;
}

.hero-section--centered__icon {
  max-width: 256px;
  max-height: 256px;
  flex-shrink: 0;
  margin: 0 4px !important;
  filter: drop-shadow(0 4px 16px rgba(99, 102, 241, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section--centered__icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero-section--centered__title {
  font-family: 'FFCFont', serif;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 8px;
  color: #fff;
  margin: 0 0 32px;
  text-transform: none;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(99, 102, 241, 0.1);
}

.hero-section--centered__cta {
  margin-top: 8px;
}

.hero-section--centered__btn {
  padding: 14px 56px;
  font-size: 1rem;
  border-radius: var(--border-radius-pill);
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.hero-section--centered__btn:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

/* Centered Hero responsive */
@media (max-width: 1024px) {
  .hero-section--centered {
    padding-top: 100px;
    padding-bottom: 48px;
  }

  p.hero-section--centered__digit {
    font-size: 7rem;
  }

  .hero-section--centered__icon {
    width: 90px;
    height: 90px;
  }

  .hero-section--centered__title {
    font-size: 2rem;
    letter-spacing: 5px;
  }
}

@media (max-width: 768px) {
  .hero-section--centered {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  p.hero-section--centered__digit {
    font-size: 4.5rem;
  }

  .hero-section--centered__icon {
    width: 60px;
    height: 60px;
  }

  .hero-section--centered__title {
    font-size: 1.25rem;
    letter-spacing: 3px;
  }

  .hero-section--centered__btn {
    padding: 12px 40px;
    font-size: 0.875rem;
  }
}

/* ═══════════════════════════════════════════
   Master Layout – About FFC (glass-panel card)
   ═══════════════════════════════════════════ */

.about-section {
  padding: 80px 0;
}

.about-section__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 48px 56px;
  border-radius: 20px;
}

.about-section__left {
  flex: 0 0 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-section__visual {
  width: 360px;
  height: auto;
  margin: 0;
  filter: drop-shadow(0 8px 32px rgba(99, 102, 241, 0.15));
}

.about-section__visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about-section__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-section__title {
  font-size: 4rem;
  color: #001F87;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.15;
}

.about-section__founded {
  font-size: 2rem;
  color: #001F87;
  font-weight: 400;
  margin: 0 0 24px;
}

.about-section__desc {
  font-size: 1.05rem;
  color: #001F87;
  font-style: italic;
  line-height: 1.8;
  opacity: 0.85;
}

/* About FFC – LEARN MORE (top-right corner, ~2em from edges) */
.about-section__link {
  position: absolute;
  top: 40px;
  right: 40px;
  margin: 0;
}

.about-section__link a.btn-text,
.about-section__right .btn-text {
  text-decoration: none;
  color: #001F87;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.about-section__link a.btn-text:hover,
.about-section__right .btn-text:hover {
  color: var(--text-active);
}

/* ═══════════════════════════════════════════
   Spotlight Card (generic glass-panel content)
   ═══════════════════════════════════════════ */

.spotlight-section {
  padding: 80px 0;
}

.spotlight-card {
  position: relative;
  padding: 48px 56px 56px;
  border-radius: 20px;
}

/* Spotlight – LEARN MORE (top-right corner, ~2em from edges) */
.spotlight-card__top {
  position: absolute;
  top: 40px;
  right: 40px;
  margin-bottom: 0;
}

.spotlight-card__link a.btn-text {
  text-decoration: none;
  color: #001F87;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.spotlight-card__link a.btn-text:hover {
  color: var(--text-active);
}

.spotlight-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spotlight-card__icon {
  width: 180px;
  height: auto;
  margin: 0 auto 32px;
  filter: drop-shadow(0 8px 32px rgba(99, 102, 241, 0.15));
}

.spotlight-card__icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.spotlight-card__title {
  font-family: 'FFCFont', serif;
  font-size: 4.5rem;
  color: #001F87;
  font-weight: 700;
  margin: 0 0 24px;
  line-height: 1.15;
}

.spotlight-card__desc {
  font-size: 1.05rem;
  color: #001F87;
  line-height: 1.8;
  max-width: 780px;
  margin: 0 auto 40px;
  opacity: 0.85;
}

.spotlight-card__desc strong {
  font-weight: 700;
}

.spotlight-card__cta {
  margin-top: 0;
}

.spotlight-card__btn {
  padding: 16px 48px !important;
  font-size: 1rem !important;
  border-radius: var(--border-radius-pill) !important;
}

/* Spotlight responsive */
@media (max-width: 768px) {
  .spotlight-card {
    padding: 32px 24px 40px;
  }

  .spotlight-card__title {
    font-size: 2.5rem;
  }

  .spotlight-card__icon {
    width: 140px;
  }

  .spotlight-card__desc {
    font-size: 0.95rem;
  }
}

/* ═══════════════════════════════════════════
   Multiple Vertical Cards (Important Dates)
   ═══════════════════════════════════════════ */

.mvc-section {
  padding: 80px 0;
}

.mvc-section__header {
  margin-bottom: 48px;
}

.mvc-section__title {
  font-family: 'FFCFont', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #001F87;
  margin: 0;
  line-height: 1.1;
  text-transform: none;
}

.mvc-section__link a {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-deep);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.mvc-section__link a:hover {
  color: var(--text-active);
}

/* Grid */
.mvc-grid {
  gap: 24px;
}

/* Card */
.mvc-card {
  padding: 48px 32px 40px;
  border-radius: 20px;
  text-align: center;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 360px;
}

/* Override Gutenberg constrained layout inner container */
.mvc-card>.wp-block-group__inner-container,
.mvc-card>.wp-block-group__inner-container>.wp-block-group__inner-container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: contents;
}

.mvc-card__icon-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Override Gutenberg inner container on icon-wrap */
.mvc-card__icon-wrap>.wp-block-group__inner-container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: contents;
}

.mvc-card__icon {
  width: 120px !important;
  height: 120px !important;
  margin: 0 !important;
}

.mvc-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mvc-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #001F87;
  margin: 0;
  line-height: 1.3;
  text-transform: none;
}

.mvc-card__date {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #3439DE;
  margin: 0;
  text-transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .mvc-section__title {
    font-size: 2.5rem;
  }

  .mvc-card {
    padding: 40px 24px 32px;
    min-height: 320px;
  }

  .mvc-card__icon-wrap {
    width: 100px;
    height: 100px;
  }

  .mvc-card__icon {
    width: 100px !important;
    height: 100px !important;
  }

  .mvc-card__title {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .mvc-section {
    padding: 48px 0;
  }

  .mvc-section__title {
    font-size: 2rem;
  }

  .mvc-grid {
    flex-wrap: wrap !important;
  }

  .mvc-card {
    flex: 0 0 calc(50% - 12px);
    padding: 32px 20px 28px;
    min-height: 280px;
  }

  .mvc-card__icon-wrap {
    width: 80px;
    height: 80px;
  }

  .mvc-card__icon {
    width: 80px !important;
    height: 80px !important;
  }

  .mvc-card__title {
    font-size: 1.125rem;
  }

  .mvc-card__date {
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .mvc-card {
    flex: 0 0 100%;
  }
}

/* ═══════════════════════════════════════════
   Invited Speakers
   ═══════════════════════════════════════════ */

.speakers-section {
  padding: 80px 0;
}

.speakers-card {
  position: relative;
  padding: 28px 56px;
  border-radius: 20px;
}

.speakers-section__header {
  margin-bottom: 32px;
  text-align: center;
  position: relative;
}

/* Speakers – LEARN MORE (top-right corner) */
.speakers-section__link {
  position: absolute;
  top: 0;
  right: 0;
}

.speakers-section__title {
  font-family: 'FFCFont', serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: #001F87;
  margin: 0;
  line-height: 1.1;
  text-transform: none;
  text-align: center;
}

.speakers-section__desc {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.45);
  margin: 12px 0 0;
  text-align: center;
}

.speakers-section__link a {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-deep);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.speakers-section__link a:hover {
  color: var(--text-active);
}

/* Grid – 3 columns */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Override Gutenberg inner container */
.speakers-grid>.wp-block-group__inner-container {
  max-width: none !important;
  display: contents;
}

/* Speaker Card */
.speaker-card {
  text-align: center;
  padding: 0;
}

/* Override Gutenberg inner container */
.speaker-card>.wp-block-group__inner-container {
  max-width: none !important;
  display: contents;
}

.speaker-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
  border-radius: 16px;
  margin: 0 0 16px;
}

.speaker-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-card__name {
  font-family: 'Manrope', sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: #11224E;
  margin: 0 0 4px;
  line-height: 1.3;
}

.speaker-card__affiliation {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #001F87;
  margin: 0;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
  .speakers-section__title {
    font-size: 2.5rem;
  }

  .speaker-card__name {
    font-size: 1.125rem;
  }

  .speaker-card__affiliation {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .speakers-section {
    padding: 40px 0;
  }

  .speakers-section__title {
    font-size: 2rem;
  }

  .speakers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .speakers-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   Deadline Card
   ═══════════════════════════════════════════ */

.deadline-card {
  background: #ffffff;
  border: 1px solid #D6DEFF;
  border-radius: 8px;
  padding: 24px 32px 28px;
}

/* Override Gutenberg inner container */
.deadline-card>.wp-block-group__inner-container {
  max-width: none !important;
  width: 100% !important;
  display: contents;
}

.deadline-card__top {
  margin-bottom: 16px;
}

.deadline-card__left {
  gap: 14px;
}

.deadline-card__badge {
  background: var(--navy-deep);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Override Gutenberg inner container */
.deadline-card__badge>.wp-block-group__inner-container {
  max-width: none !important;
  display: contents;
}

.deadline-card__number {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0;
  line-height: 1;
}

.deadline-card__title {
  font-family: 'Newsreader', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0;
}

.deadline-card__date {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #3439DE;
  margin: 0;
  white-space: nowrap;
}

.deadline-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .deadline-card {
    padding: 20px 24px 24px;
  }

  .deadline-card__title {
    font-size: 1.25rem;
  }

  .deadline-card__top {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .deadline-card {
    padding: 16px 20px 20px;
  }

  .deadline-card__title {
    font-size: 1.125rem;
  }

  .deadline-card__date {
    font-size: 0.8125rem;
  }
}

/* ═══════════════════════════════════════════
   Master Layout – Previous Events
   ═══════════════════════════════════════════ */

.events-section {
  padding: 80px 0;
}

.events-section__title {
  font-size: 3rem;
  color: var(--navy-deep);
  margin: 0 0 24px;
  border-bottom: 2px solid rgba(26, 34, 68, 0.15);
  padding-bottom: 12px;
}

/* Event Card — glass panel style */
.event-card {
  display: flex;
  gap: 32px;
  padding: 32px;
  margin-bottom: 24px;
}

.event-card__photo {
  width: auto;
  min-width: 200px;
  max-width: 320px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

/* Let Gutenberg size classes override default */
.event-card__photo.size-thumbnail {
  max-width: 150px;
}

.event-card__photo.size-small {
  max-width: 220px;
}

.event-card__photo.size-medium {
  max-width: 280px;
}

.event-card__photo.size-large {
  max-width: 360px;
}

.event-card__photo.size-full {
  max-width: 100%;
}

.event-card__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.event-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.event-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.event-card__date {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.event-card__title {
  font-size: 1.85rem;
  color: var(--navy-deep);
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.event-card__desc {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════
   Master Layout – Committees
   ═══════════════════════════════════════════ */

.committees-section {
  padding: 100px 0;
}

.committees-section__header {
  display: flex;
  justify-content: center;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 16px;
  margin-bottom: 60px;
  position: relative;
}

.committees-section__title {
  font-size: 3rem;
  color: #fff;
  margin: 0;
  font-weight: 500;
}

.committees-section__more {
  position: absolute;
  right: 0;
  bottom: 16px;
  font-size: 0.8125rem;
  color: #fff;
}

.committees-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.committee-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  align-items: center;
}

.committee-card__photo {
  width: 120px;
  height: 140px;
  background: #eee;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.committee-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.committee-card__role {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  opacity: 0.6;
  margin-bottom: 4px;
}

.committee-card__name {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  padding-bottom: 4px;
}

.committee-card__affiliation {
  font-size: 0.8125rem;
  color: #fff;
  opacity: 0.7;
  margin: 0;
  line-height: 1.4;
}

.committees-progress {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin-top: 60px;
  position: relative;
}

.committees-progress__bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 25%;
  height: 100%;
  background: #fff;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-primary);
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-highlight {
  font-size: 0.875rem;
  color: var(--text-primary);
  opacity: 0.7;
  margin-top: 24px;
}

.hero-visual {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.abstract-symbol {
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  backdrop-filter: blur(8px);
  animation: morph 15s linear infinite;
}

@keyframes morph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  34% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }

  67% {
    border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
  }

  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
}

/* Stats Section */
.stats-section {
  padding: 80px 0;
  display: flex;
  justify-content: center;
}

.stats-grid {
  display: flex;
  gap: 64px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -32px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 4rem;
  font-weight: 200;
  color: var(--navy-deep);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 8px;
  letter-spacing: 1px;
}

/* Timeline / Important Dates */
.timeline-section {
  padding: 100px 0;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.timeline-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--border-radius-card);
  box-shadow: var(--glass-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-8px);
}

.timeline-step {
  font-size: 2rem;
  font-weight: 200;
  color: var(--text-active);
  margin-bottom: 16px;
}

.timeline-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--navy-deep);
}

.timeline-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   Placeholder Image Fallbacks
   ═══════════════════════════════════════════ */

.event-card__photo img[src*="data:image"],
.committee-card__photo img[src*="data:image"],
.event-card__photo:has(img[src$=".svg"]),
.event-card__photo:has(> img:not([srcset])) {
  background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card__photo img,
.committee-card__photo img {
  object-fit: cover;
}

/* When no thumbnail, show a visual placeholder */
.event-card__photo:empty::after,
.event-card__photo>img[src=""]:after {
  content: '📷';
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #6366F1 100%);
  color: rgba(255, 255, 255, 0.5);
}

.committee-card__photo:empty::after {
  content: '';
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--btn-primary) 0%, #A78BFA 100%);
}

/* Event Card – LEARN MORE link fix */
.event-card__meta .wp-block-button {
  margin-bottom: 0;
}

.event-card__meta .wp-block-button__link.btn-text,
.event-card__link {
  text-decoration: none;
  color: var(--navy-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-card__meta .wp-block-button__link.btn-text:hover,
.event-card__link:hover {
  color: var(--text-active);
}

/* Gutenberg Block Compatibility */
/* ── 顶层 section 全宽（背景色铺满） ── */
body.home .site-main>section,
body.home .site-main>.wp-block-group,
body.ffc-master .site-main>section,
body.ffc-master .site-main>.wp-block-group {
  max-width: none !important;
  width: 100%;
}

/* ── Master 模板：entry-content 内所有 Gutenberg block 全宽 ── */
body.ffc-master .entry-content,
body.ffc-master .entry-content>.wp-block-group,
body.ffc-master .entry-content>.wp-block-group__inner-container,
body.ffc-master .entry-content>section {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ── 内部容器居中：覆盖 Gutenberg constrained inline styles ── */
/* Gutenberg constrained layout 给 .wp-block-group 注入内联 max-width，
   必须用 !important + 高优先级覆盖 */
.hero-section>.hero-section--master__inner,
.about-section>.container>.about-section__card,
.events-section>.container,
.committees-section>.container {
  max-width: min(1180px, calc(100% - 80px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Gutenberg inner-container 也要兜底 */
.wp-block-group__inner-container {
  max-width: none;
}

/* ── 关键修复：constrained inner-container 必须居中 ── */
.hero-section>.wp-block-group__inner-container,
.about-section>.wp-block-group__inner-container,
.events-section>.wp-block-group__inner-container,
.committees-section>.wp-block-group__inner-container {
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.site-main .wp-block-columns.is-not-stacked-on-mobile {
  flex-wrap: nowrap !important;
}

.site-main .wp-block-column.committee-card {
  flex: 1;
}

/* Committees section more link as button */
.committees-section__more.wp-block-button__link {
  padding: 0;
  background: none;
  box-shadow: none;
  border: none;
  color: #fff;
  font-size: 0.8125rem;
  min-height: auto;
  line-height: 1.5;
}

.committees-section__more.wp-block-button__link:hover {
  transform: none;
  box-shadow: none;
}

/* ── UM Account Page Customizations ── */
/* Hide Privacy tab (fallback in case filter misses edge cases) */
.um-account-side li:has(> a[data-tab="privacy"]),
.um-account-nav a[data-tab="privacy"],
.um-account-tab-privacy {
  display: none !important;
}

/* Buttons row: Update Account + Privacy Collection + Logout */
.um-account-tab-general .um-col-alt .um-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

/* Hero CTA wrapper */
.hero-cta-wrapper .wp-block-button {
  margin-bottom: 0;
}

/* Global Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--text-primary);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-logo .logo-img {
  height: 56px;
  width: auto;
}

.footer-links h4 {
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  opacity: 0.6;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  opacity: 0.8;
  font-size: 0.875rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--text-active);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.5;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0.6;
}

.scroll-indicator span {
  width: 12px;
  height: 12px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(45deg);
  }

  40% {
    transform: translateY(-10px) rotate(45deg);
  }

  60% {
    transform: translateY(-5px) rotate(45deg);
  }
}

/* Sidebar Layout */
.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 60px 0;
}

.sidebar-layout.has-sidebar {
  grid-template-columns: 280px 1fr;
}

.sidebar-nav {
  display: none;
  position: sticky;
  top: 130px;
  background: rgba(233, 236, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 32px;
  border-radius: var(--border-radius-card);
  border: 1px solid rgba(233, 236, 255, 0.6);
  box-shadow: -6px -6px 24px rgba(51, 147, 255, 0.18),
    -2px -2px 8px rgba(51, 147, 255, 0.10);
}

.sidebar-layout.has-sidebar .sidebar-nav {
  display: block;
  align-self: start;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
}

.sidebar-nav li {
  margin-bottom: 16px;
}

.sidebar-nav a {
  color: var(--text-dark);
  font-weight: 500;
  opacity: 0.6;
  font-size: 0.9375rem;
}

.sidebar-nav li.current-page-item a,
.sidebar-nav a:hover {
  opacity: 1;
  color: var(--navy-deep);
}

/* Section nav — active state (for FFC Sections Page) */
.section-nav__link {
  color: var(--text-dark) !important;
  font-weight: 500;
  opacity: 0.6;
  font-size: 0.9375rem;
  text-decoration: none;
  display: block;
  padding: 0;
  transition: opacity 0.2s, color 0.2s;
}

.section-nav__link:hover {
  opacity: 1;
  color: var(--navy-deep) !important;
}

.section-nav__link--active {
  opacity: 1;
  color: var(--navy-deep) !important;
  font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  .page-header-banner .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .page-header-banner__right {
    max-width: 100%;
    border-left: none;
    border-top: 2px solid var(--navy-deep);
    padding-left: 0;
    padding-top: 16px;
  }

  .hero-visual {
    display: none;
  }

  .stats-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cfp-card__title {
    font-size: 3rem;
  }

  .sidebar-layout,
  .sidebar-layout.has-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-nav {
    display: block;
    position: static;
    margin-bottom: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Master layout responsive */
  .hero-section--master {
    text-align: center;
    padding-top: 100px;
    padding-bottom: 32px;
  }

  .hero-section--master__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-cta-wrapper,
  .hero-cta-wrapper .wp-block-buttons {
    justify-content: center !important;
  }

  .hero-section--master__content {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-section--master__title {
    font-size: 2.5rem;
  }

  .hero-section--master__visual {
    max-width: 280px;
    max-height: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-section__card {
    flex-direction: column;
    text-align: center;
    padding: 32px;
    gap: 32px;
  }

  .about-section__left {
    flex: none;
  }

  .about-section__visual {
    width: 240px;
  }

  .about-section__title {
    font-size: 2.5rem;
  }

  .committees-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    flex-direction: column;
  }

  .event-card__photo {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero-brand-logo__digit {
    font-size: 5rem;
  }

  .hero-brand-logo__orbus {
    width: 80px;
    height: 80px;
  }

  .hero-brand-logo__dot {
    width: 36px;
    height: 36px;
  }

  .hero-section__title {
    font-size: 1.75rem;
    letter-spacing: 3px;
  }

  .cfp-card {
    flex-direction: column;
    padding: 32px;
  }

  .cfp-card__title {
    font-size: 2.5rem;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
  }

  /* Master layout responsive (768px) */
  .hero-section--master {
    padding-top: 80px;
  }

  .hero-section--master__title-zh {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .hero-section--master__title-en {
    font-size: 1.85rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
  }

  .hero-section--master__visual {
    width: 200px;
    height: 200px;
  }

  .hero-section--master__visual {
    max-width: 200px;
    max-height: 200px;
  }

  .about-section__title {
    font-size: 2rem;
  }

  .about-section__founded {
    font-size: 1.125rem;
  }

  .committees-section__title,
  .events-section__title {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Chinese Typography: Noto Serif SC (思源宋体)
   Targeting pages with zh-CN / zh-TW languages set by Polylang.
   - Homepage (主页): uses 600 (Regular/Medium) and 900 (Bold/Black) weights.
   - Other pages (其他页): uses 400 (Regular) and 700 (Bold) weights.
   ========================================================================== */
html[lang^="zh"] {
  --font-primary: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif CN', '思源宋体', 'Songti SC', 'SimSun', serif;
}

/* 1. Base fonts for Chinese pages */
html[lang^="zh"] body {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif CN', '思源宋体', 'Songti SC', 'SimSun', serif !important;
}

/* 2. Homepage (主页) font weight rules: 600 (body) & 900 (headings) */
html[lang^="zh"] body.home {
  font-weight: 600;
}
html[lang^="zh"] body.home :is(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, strong, b, th, .page-header-banner .entry-title, [class*="__name"], [class*="__title"]):not([style*="font-family"]):not(.custom-font):not(.ignore-zh-font):not(.hero-section--master__title-en):not(.hero-section--centered__title):not(.hero-section__title) {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif CN', '思源宋体', 'Songti SC', 'SimSun', serif !important;
  font-weight: 900 !important;
}

/* 3. Other pages (其他页) font weight rules: 400 (body) & 700 (headings) */
html[lang^="zh"] body:not(.home) {
  font-weight: 400;
}
html[lang^="zh"] body:not(.home) :is(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, strong, b, th, .page-header-banner .entry-title, [class*="__name"], [class*="__title"]):not([style*="font-family"]):not(.custom-font):not(.ignore-zh-font):not(.hero-section--master__title-en):not(.hero-section--centered__title):not(.hero-section__title) {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif CN', '思源宋体', 'Songti SC', 'SimSun', serif !important;
  font-weight: 700 !important;
}

/* 不要覆盖 Master、Centered 和 Conference 布局 Hero 标题的字体与字重，使其在所有页面（主页、内页、自定义落地页等）均保持原有大字极细无衬线风格 */
html[lang^="zh"] body.home h1.hero-section--master__title-en,
html[lang^="zh"] body:not(.home) h1.hero-section--master__title-en,
html[lang^="zh"] body.home .hero-section--master__title-en,
html[lang^="zh"] body:not(.home) .hero-section--master__title-en,

html[lang^="zh"] body.home h1.hero-section--master__title,
html[lang^="zh"] body:not(.home) h1.hero-section--master__title,
html[lang^="zh"] body.home .hero-section--master__title,
html[lang^="zh"] body:not(.home) .hero-section--master__title,

html[lang^="zh"] body.home h1.hero-section--centered__title,
html[lang^="zh"] body:not(.home) h1.hero-section--centered__title,
html[lang^="zh"] body.home .hero-section--centered__title,
html[lang^="zh"] body:not(.home) .hero-section--centered__title,

html[lang^="zh"] body.home h1.hero-section__title,
html[lang^="zh"] body:not(.home) h1.hero-section__title,
html[lang^="zh"] body.home .hero-section__title,
html[lang^="zh"] body:not(.home) .hero-section__title,

html[lang^="zh"] .hero-section--master__title-en,
html[lang^="zh"] .hero-section--master__title,
html[lang^="zh"] .hero-section--centered__title,
html[lang^="zh"] .hero-section__title {
  font-family: 'FFCFont', serif !important;
  font-weight: 200 !important;
}

/* 4. Speaker affiliation: non-italic, Noto Serif SC (思源宋体) for Chinese pages */
html[lang^="zh"] .speaker-card__affiliation {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif CN', '思源宋体', 'SimSun', serif !important;
  font-style: normal !important;
}