/*
Theme Name: ICCS 2027
Theme URI: https://ic-cs.net/
Author: ICCS 2027 Organizing Committee
Description: A clean multi-page WordPress theme for the 2027 International Conference on Complex Systems and Intelligent Control.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: iccs-2027
*/

:root {
  --blue: #0757b8;
  --blue-dark: #062f68;
  --navy: #071d38;
  --ink: #18283b;
  --muted: #657489;
  --soft: #f3f6fa;
  --line: #dfe6ef;
  --white: #fff;
  --container: 1180px;
  --shadow: 0 18px 50px rgba(7, 37, 74, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; top: 10px; left: 10px; padding: 10px 14px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
}
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { min-width: 180px; display: flex; align-items: center; gap: 11px; }
.brand img, .custom-logo { width: 48px; height: 48px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; gap: 2px; }
.brand strong { color: var(--navy); font-size: 18px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 20px; }
.primary-menu { display: flex; align-items: center; gap: 3px; margin: 0; padding: 0; list-style: none; }
.primary-menu > li { position: relative; }
.primary-menu > li > a { display: block; padding: 30px 10px; color: #45566a; font-size: 12px; font-weight: 700; white-space: nowrap; }
.primary-menu > li > a:hover, .primary-menu > li > a:focus-visible, .primary-menu .current-menu { color: var(--blue); }
.sub-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  min-width: 190px;
  margin: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  box-shadow: var(--shadow);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}
.menu-item-has-children:hover .sub-menu, .menu-item-has-children:focus-within .sub-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.sub-menu a { display: block; padding: 11px 12px; border-radius: 3px; color: #45566a; font-size: 12px; font-weight: 650; }
.sub-menu a:hover, .sub-menu a:focus-visible { background: var(--soft); color: var(--blue); }
.nav-button { padding: 12px 17px; border-radius: 4px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 750; white-space: nowrap; }
.menu-button { display: none; }

.home-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  color: #fff;
  background: #06182d url("assets/images/shenzhen-night.jpg") center 58% / cover no-repeat;
}
.home-hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 18, 36, .92) 0%, rgba(4, 28, 57, .72) 48%, rgba(2, 17, 34, .2) 100%);
  content: "";
}
.home-hero-inner { position: relative; z-index: 1; padding-block: 82px; }
.hero-kicker { margin: 0 0 18px; color: #b7d8ff; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.home-hero h1 { max-width: 900px; margin: 0; font-size: clamp(43px, 5.5vw, 74px); font-weight: 720; letter-spacing: -.045em; line-height: 1.03; }
.hero-location { margin: 24px 0 0; font-size: 19px; font-weight: 650; }
.hero-description { max-width: 650px; margin: 18px 0 0; color: rgba(255, 255, 255, .76); font-size: 15px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 800; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: #fff; }
.button-white { background: #fff; color: var(--blue-dark); }
.button-outline { border-color: rgba(255, 255, 255, .55); color: #fff; }
.button-outline:hover { background: rgba(255, 255, 255, .1); }

.countdown-band { position: relative; z-index: 3; margin-top: -54px; }
.countdown-panel { display: grid; grid-template-columns: 1.2fr repeat(4, .55fr); overflow: hidden; border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.countdown-label { display: flex; flex-direction: column; justify-content: center; padding: 24px 29px; background: var(--blue); color: #fff; }
.countdown-label span { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.countdown-label strong { margin-top: 7px; font-size: 18px; }
.countdown-panel > div:not(.countdown-label) { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 108px; border-right: 1px solid var(--line); }
.countdown-panel > div:last-child { border-right: 0; }
.countdown-panel b { color: var(--blue); font-size: 28px; letter-spacing: -.04em; }
.countdown-panel small { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }

.section { padding-block: 96px; }
.section-soft { background: var(--soft); }
.eyebrow { margin: 0 0 11px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h2 { margin: 0; color: var(--navy); font-size: clamp(34px, 4vw, 49px); letter-spacing: -.04em; line-height: 1.12; }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading p:last-child { margin: 15px 0 0; color: var(--muted); line-height: 1.7; }
.welcome-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 90px; }
.welcome-copy p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.welcome-copy p:first-child { color: var(--ink); font-size: 17px; }
.organizer-card { display: flex; align-items: center; gap: 18px; margin-top: 31px; padding: 22px; border-left: 3px solid var(--blue); background: var(--soft); }
.organizer-mark { width: 76px; height: 48px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #b9cde5; border-radius: 4px; color: var(--blue); font-size: 11px; font-weight: 800; }
.organizer-card span { display: block; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.organizer-card strong { display: block; margin-top: 5px; font-size: 13px; line-height: 1.45; }

.dates-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.date-card { min-height: 210px; padding: 28px 24px; border-right: 1px solid var(--line); }
.date-card:last-child { border-right: 0; }
.date-card time { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.date-card h3 { margin: 49px 0 0; color: var(--navy); font-size: 18px; line-height: 1.35; }
.date-card p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }

.home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home-feature { min-height: 320px; padding: 40px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.home-feature.blue { border: 0; background: var(--blue-dark); color: #fff; }
.home-feature .eyebrow { color: #79b8ff; }
.home-feature h2 { max-width: 490px; font-size: 36px; }
.home-feature.blue h2 { color: #fff; }
.home-feature p { margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.home-feature.blue p { color: rgba(255, 255, 255, .7); }
.home-feature .button { margin-top: 28px; }

.tracks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.track-card { min-height: 280px; padding: 31px 28px; border-top: 3px solid var(--blue); border-radius: 4px; background: #fff; box-shadow: 0 10px 30px rgba(7, 37, 74, .07); }
.track-card span { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.track-card h3 { margin: 15px 0 18px; color: var(--navy); font-size: 23px; line-height: 1.25; }
.track-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.track-card li { margin-bottom: 10px; font-size: 12px; line-height: 1.5; }
.section-action { margin-top: 31px; text-align: center; }

.page-hero {
  position: relative;
  min-height: 285px;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--navy) url("assets/images/shenzhen-night.jpg") center 52% / cover no-repeat;
}
.page-hero::before { position: absolute; inset: 0; background: rgba(3, 21, 43, .82); content: ""; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero p { margin: 0 0 11px; color: #a7cef7; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.page-hero h1 { max-width: 900px; margin: 0; font-size: clamp(39px, 5vw, 61px); letter-spacing: -.045em; line-height: 1.06; }
.conference-content { padding-block: 78px 100px; }
.conference-content > *:first-child { margin-top: 0; }
.conference-content h2 { margin: 58px 0 20px; font-size: 35px; }
.conference-content h3 { margin: 30px 0 13px; color: var(--navy); font-size: 21px; }
.conference-content p { max-width: 920px; margin: 0 0 17px; color: #526276; font-size: 14px; line-height: 1.78; }
.conference-content ul { margin: 0; padding-left: 20px; color: #526276; }
.conference-content li { margin-bottom: 9px; font-size: 14px; line-height: 1.6; }
.lead { max-width: 920px !important; color: var(--ink) !important; font-size: 18px !important; line-height: 1.75 !important; }
.content-section { margin-top: 58px; }
.content-section:first-child { margin-top: 0; }
.content-section-header { margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.content-section-header h2 { margin: 0; }
.content-section-header p { margin: 10px 0 0; }

.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person-card { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: center; min-height: 136px; padding: 22px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.person-card img, .person-placeholder { width: 88px; height: 104px; border-radius: 3px; object-fit: cover; object-position: center top; }
.person-placeholder { display: grid; place-items: center; background: var(--soft); color: var(--blue); font-size: 24px; font-weight: 800; }
.person-card h3 { margin: 0 0 6px; font-size: 17px; }
.person-card p { margin: 0; font-size: 11px; line-height: 1.55; }
.person-card small { display: block; margin-top: 6px; color: var(--blue); font-size: 9px; font-weight: 750; }
.member-list { columns: 2; column-gap: 50px; margin-top: 8px !important; padding: 0 !important; list-style: none; }
.member-list li { break-inside: avoid; margin: 0 0 11px; padding: 13px 15px; border-left: 2px solid #b8d3f3; background: var(--soft); }

.speaker-profile { display: grid; grid-template-columns: 260px 1fr; gap: 46px; margin-bottom: 70px; padding-bottom: 70px; border-bottom: 1px solid var(--line); }
.speaker-profile:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.speaker-profile img { width: 260px; height: 330px; border-radius: 5px; object-fit: cover; object-position: center top; box-shadow: var(--shadow); }
.speaker-profile h2 { margin: 0 0 7px; }
.speaker-affiliation { color: var(--blue) !important; font-weight: 700; }
.speaker-badge { display: inline-block; margin: 6px 0 18px; padding: 6px 9px; border-radius: 3px; background: #e9f2fd; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.topic-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic-panel { padding: 29px 27px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.topic-panel span { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.topic-panel h2 { margin: 13px 0 20px; font-size: 27px; }
.topic-panel ul { padding-left: 17px; }
.topic-panel li { font-size: 12px; }

.instruction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: steps; }
.instruction-card { padding: 28px; border: 1px solid var(--line); border-radius: 5px; background: #fff; counter-increment: steps; }
.instruction-card::before { display: block; margin-bottom: 18px; color: var(--blue); font-size: 11px; font-weight: 800; content: "0" counter(steps); }
.instruction-card h3 { margin: 0 0 9px; font-size: 18px; }
.instruction-card p { margin: 0; font-size: 12px; }
.notice { margin: 29px 0; padding: 24px 27px; border-left: 4px solid var(--blue); background: var(--soft); }
.notice h3 { margin: 0 0 9px; }
.notice p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 24px 0 38px; border: 1px solid var(--line); border-radius: 5px; }
.info-table { width: 100%; min-width: 650px; border-collapse: collapse; background: #fff; }
.info-table th { padding: 15px 17px; background: var(--navy); color: #fff; font-size: 10px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.info-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); color: #536377; font-size: 12px; line-height: 1.5; vertical-align: middle; }
.info-table tr:last-child td { border-bottom: 0; }
.info-table td:not(:first-child), .info-table th:not(:first-child) { text-align: center; }
.check { color: #128146; font-weight: 800; }
.cross { color: #b23a3a; font-weight: 800; }

.schedule-table td:first-child { min-width: 185px; color: var(--navy); font-weight: 700; }
.schedule-table td:nth-child(2) { min-width: 130px; white-space: nowrap; }
.guidelines-table td:first-child { min-width: 170px; color: var(--navy); font-weight: 700; }

.venue-image { width: 100%; max-height: 520px; margin-bottom: 38px; border-radius: 6px; object-fit: cover; }
.contact-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 55px; padding: 43px; border-top: 4px solid var(--blue); background: var(--soft); }
.contact-details span { display: block; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-details strong { display: block; margin-top: 8px; color: var(--navy); font-size: 30px; }
.contact-details a { display: inline-block; margin-top: 16px; color: var(--blue); font-size: 16px; font-weight: 750; }

footer { padding-block: 30px; background: var(--navy); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; }
.footer-brand strong { display: block; font-size: 15px; }
.footer-brand span, .footer-meta { display: block; margin-top: 3px; color: rgba(255, 255, 255, .53); font-size: 9px; }
.footer-meta { margin: 0; text-align: right; line-height: 1.7; }
.footer-meta a { color: rgba(255, 255, 255, .75); }

@media (max-width: 1080px) {
  .header-inner { min-height: 72px; }
  .menu-button { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
  .menu-button span { width: 18px; height: 1px; background: var(--navy); }
  .nav { position: fixed; top: 71px; right: 0; left: 0; display: none; max-height: calc(100vh - 71px); overflow-y: auto; align-items: stretch; flex-direction: column; gap: 8px; padding: 16px 24px 25px; border-bottom: 1px solid var(--line); background: #fff; }
  body.admin-bar .nav { top: 103px; }
  .nav.is-open { display: flex; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-menu > li > a { padding: 11px 0; font-size: 13px; }
  .sub-menu { position: static; min-width: 0; padding: 0 0 5px 16px; border: 0; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; }
  .sub-menu a { padding: 8px 0; }
  .nav-button { text-align: center; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .home-hero { min-height: 590px; background-position: 62% center; }
  .home-hero::before { background: rgba(3, 20, 40, .78); }
  .countdown-panel { grid-template-columns: repeat(4, 1fr); }
  .countdown-label { grid-column: 1 / -1; }
  .countdown-panel > div:not(.countdown-label) { min-height: 86px; }
  .welcome-grid, .home-split, .speaker-profile, .contact-panel { grid-template-columns: 1fr; }
  .welcome-grid { gap: 34px; }
  .dates-grid { grid-template-columns: repeat(2, 1fr); }
  .date-card:nth-child(2) { border-right: 0; }
  .date-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tracks-grid, .topic-columns, .instruction-grid { grid-template-columns: 1fr; }
  .speaker-profile { gap: 28px; }
  .speaker-profile img { width: 220px; height: 280px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 600px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .nav { top: 117px; }
  .brand img, .custom-logo { width: 43px; height: 43px; }
  .home-hero { min-height: 560px; }
  .home-hero-inner { min-width: 0; padding-block: 65px 95px; }
  .home-hero h1 { max-width: 100%; font-size: 36px; overflow-wrap: anywhere; }
  .hero-location { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .countdown-band { margin-top: -37px; }
  .countdown-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .countdown-label { grid-column: 1 / -1; }
  .countdown-panel > div:not(.countdown-label) { border-bottom: 1px solid var(--line); }
  .section { padding-block: 72px; }
  .dates-grid { grid-template-columns: 1fr; }
  .date-card { min-height: 160px; border-right: 0; border-bottom: 1px solid var(--line); }
  .date-card h3 { margin-top: 30px; }
  .home-feature { min-height: 0; padding: 30px 25px; }
  .people-grid { grid-template-columns: 1fr; }
  .member-list { columns: 1; }
  .person-card { grid-template-columns: 76px 1fr; padding: 17px; }
  .person-card img, .person-placeholder { width: 76px; height: 92px; }
  .page-hero { min-height: 235px; }
  .page-hero h1 { font-size: 38px; overflow-wrap: anywhere; }
  .conference-content { padding-block: 57px 78px; }
  .speaker-profile img { width: 185px; height: 235px; }
  .contact-panel { gap: 30px; padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

