/*
Theme Name: TIIDA 中文官方网站主题
Theme URI: https://tiida.org/
Author: TIIDA
Description: TIIDA 中文官方网站主题，包含机构介绍、使命、领导团队、认证项目、学员评价与咨询表单。
Version: 1.4.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iida-intro-zh
*/

:root {
  --iida-blue: #153860;
  --iida-ink: #172033;
  --iida-gold: #b9902e;
  --iida-cyan: #0c7f9f;
  --iida-soft: #f5f7fb;
  --iida-line: #dfe5ef;
  --iida-white: #ffffff;
  --iida-muted: #647084;
  --iida-radius: 8px;
  --iida-shadow: 0 20px 50px rgba(21, 56, 96, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--iida-ink);
  background: var(--iida-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

html {
  scroll-padding-top: 150px;
  scroll-behavior: smooth;
}

:where(#about, #leadership, #solutions, #course, #certifications, #reviews, #contact) {
  scroll-margin-top: 150px;
}

a {
  color: inherit;
}

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

.site-wrap {
  overflow: hidden;
}

.iida-container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--iida-line);
  backdrop-filter: blur(16px);
}

.header-inner {
  position: relative;
  min-height: 122px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 3px;
}

.brand-name {
  font-weight: 800;
  color: var(--iida-blue);
  font-size: 24px;
}

.brand-tagline {
  color: var(--iida-muted);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #2f3a4d;
  font-size: 17px;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
}

.nav-links li {
  list-style: none;
}

.nav-links a:hover {
  color: var(--iida-cyan);
}

.nav-links > a:not(.btn),
.nav-links > li > a {
  position: relative;
  padding: 14px 0;
}

.nav-links > a:not(.btn)::after,
.nav-links > li > a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--iida-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links > a:not(.btn):hover::after,
.nav-links > a:not(.btn):focus-visible::after,
.nav-links > li > a:hover::after,
.nav-links > li > a:focus-visible::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--iida-radius);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  color: var(--iida-white);
  background: var(--iida-blue);
}

.btn-secondary {
  color: var(--iida-blue);
  background: var(--iida-white);
  border-color: rgba(21, 56, 96, 0.22);
}

.nav-contact-button {
  min-height: 48px;
  padding: 0 20px;
  color: var(--iida-blue);
  background: var(--iida-white);
  border-color: var(--iida-blue);
  cursor: pointer;
  font: inherit;
}

.nav-contact-button:hover,
.nav-contact-button:focus-visible {
  color: var(--iida-white);
  background: var(--iida-blue);
}

.wechat-contact-panel {
  position: absolute;
  top: calc(100% - 12px);
  right: 0;
  z-index: 70;
  width: min(310px, calc(100vw - 32px));
  padding: 22px;
  color: var(--iida-ink);
  background: var(--iida-white);
  border: 1px solid var(--iida-line);
  border-radius: var(--iida-radius);
  box-shadow: 0 20px 48px rgba(21, 56, 96, 0.2);
  text-align: center;
}

.wechat-contact-close {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--iida-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.wechat-contact-close:hover,
.wechat-contact-close:focus-visible {
  color: var(--iida-blue);
  background: var(--iida-soft);
}

.wechat-contact-title {
  display: block;
  padding: 0 28px;
  color: var(--iida-blue);
  font-size: 18px;
}

.wechat-contact-panel > p {
  margin: 8px 0 16px;
  color: var(--iida-muted);
  font-size: 13px;
  line-height: 1.55;
}

.wechat-contact-qr {
  width: 188px;
  aspect-ratio: 1;
  margin: 0 auto 10px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--iida-line);
}

.wechat-contact-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wechat-contact-panel > .wechat-contact-empty {
  margin: 12px 0 16px;
  padding: 14px 10px;
  color: #8a6420;
  background: #fff8e5;
  border: 1px solid #ead8a4;
}

.wechat-contact-caption {
  display: block;
  color: var(--iida-blue);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  padding: 88px 0 80px;
  background: linear-gradient(120deg, rgba(247, 249, 252, 0.96), rgba(247, 249, 252, 0.74)), var(--iida-hero-image);
  background-size: cover;
  background-position: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--iida-cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  color: var(--iida-blue);
  font-size: clamp(28px, 5vw, 60px);
  line-height: 1.28;
  letter-spacing: 0;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-lead {
  margin: 24px 0 0;
  max-width: 680px;
  color: #354158;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(223, 229, 239, 0.92);
  border-radius: var(--iida-radius);
  box-shadow: var(--iida-shadow);
  padding: 28px;
}

.hero-card img {
  width: min(310px, 100%);
  margin: 0 auto 20px;
}

.hero-card p {
  margin: 0;
  color: var(--iida-muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.stats-band {
  background: var(--iida-blue);
  color: var(--iida-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 28px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.section {
  padding: 86px 0;
}

.section-soft {
  background: var(--iida-soft);
}

.mission-section {
  padding: 28px 0 44px;
  background: #f6f9fc;
}

.mission-heading {
  margin: 0 auto 14px;
  text-align: center;
}

.mission-heading h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  color: #25374f;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.mission-heading h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 32px;
  height: 2px;
  background: #356fbd;
  transform: translateX(-50%);
}

.mission-heading p {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--iida-muted);
  font-size: 14px;
}

.mission-carousel {
  position: relative;
  margin-top: 24px;
  padding: 0 54px;
}

.mission-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border: 1px solid rgba(223, 229, 239, 0.8);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(24, 52, 84, 0.08);
}

.mission-viewport::-webkit-scrollbar {
  display: none;
}

.mission-viewport:focus-visible {
  outline: 3px solid rgba(53, 111, 189, 0.28);
  outline-offset: 3px;
}

.mission-strip {
  display: flex;
  width: 100%;
  padding: 22px 0 24px;
}

.mission-item {
  display: flex;
  flex: 0 0 25%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 178px;
  padding: 0 22px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  text-align: center;
}

.mission-icon {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.mission-item p {
  margin: 14px auto 0;
  max-width: 220px;
  color: #29354b;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.38;
}

.mission-item small {
  display: block;
  margin-top: 6px;
  color: var(--iida-muted);
  font-size: 10px;
  line-height: 1.3;
}

.mission-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(21, 56, 96, 0.18);
  border-radius: 50%;
  color: var(--iida-blue);
  background: var(--iida-white);
  box-shadow: 0 8px 22px rgba(21, 56, 96, 0.14);
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.mission-nav:hover,
.mission-nav:focus-visible {
  border-color: var(--iida-gold);
  color: #0c6f91;
  box-shadow: 0 10px 26px rgba(21, 56, 96, 0.2);
}

.mission-nav:focus-visible {
  outline: 3px solid rgba(53, 111, 189, 0.24);
  outline-offset: 3px;
}

.mission-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

.mission-arrow {
  display: block;
  width: 24px;
  height: 30px;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 26px;
  text-align: center;
}

.mission-prev {
  left: 0;
}

.mission-next {
  right: 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--iida-blue);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.section-heading p {
  margin: 0;
  color: var(--iida-muted);
  font-size: 17px;
}

#course .section-heading {
  max-width: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 48px;
  align-items: center;
}

.media-panel {
  overflow: hidden;
  border-radius: var(--iida-radius);
  border: 1px solid var(--iida-line);
  background: var(--iida-white);
  box-shadow: var(--iida-shadow);
}

.media-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rich-text p {
  margin: 0 0 18px;
  color: #344057;
  line-height: 1.75;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.rich-text ul {
  margin: 20px 0 0;
  padding-left: 20px;
}

.rich-text li {
  margin: 8px 0;
}

.leadership-section {
  padding-top: 72px;
  background: #ffffff;
}

.leadership-intro {
  max-width: 840px;
  margin: 0 auto 38px;
  text-align: center;
}

.leadership-intro .eyebrow {
  margin-bottom: 8px;
  color: #0758b8;
}

.leadership-intro h2 {
  margin: 0;
  color: var(--iida-blue);
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: 1.1;
}

.leadership-intro p {
  margin: 18px auto 0;
  max-width: 720px;
  color: #45546b;
  font-size: 18px;
}

.leadership-group {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid rgba(21, 56, 96, 0.12);
}

.leadership-group:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.leadership-group-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 0.55fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
}

.leadership-group-title {
  display: flex;
  gap: 14px;
  align-items: center;
}

.leadership-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #0758b8;
  background: #eaf3ff;
}

.leadership-icon .dashicons {
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 24px;
}

.leadership-group h3 {
  margin: 0;
  color: var(--iida-blue);
  font-size: 26px;
  line-height: 1.2;
}

.leadership-count {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-left: 8px;
  padding: 3px 12px;
  border-radius: 8px;
  color: #0758b8;
  background: #eaf3ff;
  font-size: 14px;
  font-weight: 800;
}

.leadership-group-head p {
  margin: 0;
  color: #45546b;
  text-align: right;
}

.leadership-grid {
  display: grid;
  gap: 14px;
}

.leadership-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.leadership-grid.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.leadership-card {
  display: grid;
  gap: 14px;
  min-height: 192px;
  padding: 22px;
  border: 1px solid var(--iida-line);
  border-radius: var(--iida-radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(21, 56, 96, 0.08);
}

.leadership-card.wide {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
}

.leadership-card img {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  background: #edf3fa;
  box-shadow: 0 10px 22px rgba(21, 56, 96, 0.14);
}

.leadership-grid.cols-5 .leadership-card img {
  width: 96px;
  height: 96px;
  margin: 0 auto;
}

.leadership-grid.cols-5 .leadership-card {
  text-align: left;
}

.leadership-card h4 {
  margin: 0;
  color: var(--iida-blue);
  font-size: 18px;
  line-height: 1.2;
}

.leadership-card span {
  display: inline-block;
  margin-top: 3px;
  color: #0758b8;
  font-size: 14px;
  font-weight: 800;
}

.leadership-card p {
  margin: 10px 0 0;
  color: #34445c;
  font-size: 14px;
  line-height: 1.6;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--iida-line);
  border-radius: var(--iida-radius);
  background: var(--iida-white);
}

.info-card .card-kicker {
  color: var(--iida-gold);
  font-size: 13px;
  font-weight: 800;
}

.info-card h3 {
  margin: 10px 0 8px;
  color: var(--iida-blue);
  font-size: 22px;
  line-height: 1.2;
}

.info-card p {
  margin: 0;
  color: var(--iida-muted);
}

.instructors-panel,
.syllabus-panel {
  margin-top: 34px;
}

.instructors-panel > .subsection-heading {
  display: none;
}

.subsection-heading {
  display: grid;
  gap: 8px;
  max-width: 820px;
  margin-bottom: 18px;
}

.subsection-heading h3 {
  margin: 0;
  color: var(--iida-blue);
  font-size: 26px;
  line-height: 1.2;
}

.subsection-heading p {
  margin: 0;
  color: var(--iida-muted);
  font-size: 16px;
}

.teacher-carousel {
  position: relative;
  padding: 0 48px;
}

.teacher-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.teacher-viewport::-webkit-scrollbar {
  display: none;
}

.teacher-strip {
  display: flex;
  gap: 18px;
}

.teacher-card {
  display: grid;
  flex: 0 0 calc((100% - 54px) / 4);
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--iida-line);
  border-radius: var(--iida-radius);
  background: var(--iida-white);
  box-shadow: 0 12px 28px rgba(21, 56, 96, 0.06);
  scroll-snap-align: start;
}

.teacher-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(21, 56, 96, 0.12);
}

.teacher-card h4 {
  margin: 0;
  color: var(--iida-blue);
  font-size: 17px;
  line-height: 1.2;
}

.teacher-card span {
  display: block;
  margin-top: 3px;
  color: var(--iida-cyan);
  font-size: 12px;
  font-weight: 800;
}

.teacher-card p {
  margin: 7px 0 0;
  color: var(--iida-muted);
  font-size: 13px;
  line-height: 1.45;
}

.teacher-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(21, 56, 96, 0.18);
  border-radius: 50%;
  color: var(--iida-blue);
  background: var(--iida-white);
  box-shadow: 0 8px 22px rgba(21, 56, 96, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
}

.teacher-nav span {
  height: 28px;
  font-family: Arial, sans-serif;
  font-size: 32px;
  line-height: 24px;
}

.teacher-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

.teacher-prev {
  left: 0;
}

.teacher-next {
  right: 0;
}

.syllabus-panel {
  margin-top: 52px;
}

.syllabus-list {
  overflow: hidden;
  border: 1px solid var(--iida-line);
  border-radius: var(--iida-radius);
  background: var(--iida-white);
  box-shadow: 0 18px 44px rgba(21, 56, 96, 0.07);
}

.syllabus-item {
  border-bottom: 1px solid var(--iida-line);
}

.syllabus-item:last-child {
  border-bottom: 0;
}

.syllabus-item summary {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 44px;
  gap: 18px;
  align-items: center;
  min-height: 106px;
  padding: 20px 28px;
  cursor: pointer;
  list-style: none;
}

.syllabus-item summary::-webkit-details-marker {
  display: none;
}

.syllabus-thumb {
  overflow: hidden;
  display: block;
  width: 96px;
  height: 60px;
  border-left: 6px solid #1d64c8;
  border-radius: 5px;
  background: #edf4fb;
}

.syllabus-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.syllabus-summary-copy strong {
  display: block;
  color: #08111f;
  font-size: 20px;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.syllabus-summary-copy small {
  display: block;
  margin-top: 5px;
  color: #4c5a70;
  font-size: 14px;
}

.syllabus-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 6px;
  color: #0056d6;
  background: #eef4ff;
  font-size: 24px;
  line-height: 1;
  transition: transform 180ms ease;
}

.syllabus-item[open] .syllabus-toggle {
  transform: rotate(180deg);
}

.syllabus-detail {
  padding: 0 28px 28px 142px;
}

.syllabus-detail h4 {
  margin: 20px 0 10px;
  color: #08111f;
  font-size: 16px;
}

.syllabus-detail ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.syllabus-detail li {
  position: relative;
  padding-left: 28px;
  color: #0f1b2c;
  font-size: 15px;
  line-height: 1.55;
}

.syllabus-detail li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #111827;
  font-weight: 800;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  color: #071427;
  background: #dfe7f2;
  font-size: 13px;
  line-height: 1.2;
}

.course-architecture {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 38px;
  align-items: stretch;
}

.course-architecture-media {
  overflow: hidden;
  min-height: 640px;
  margin: 0;
  border: 1px solid var(--iida-line);
  border-radius: var(--iida-radius);
  background: #f4f8fc;
  box-shadow: var(--iida-shadow);
}

.course-architecture-media img {
  width: 100%;
  height: 100%;
  min-height: 640px;
  object-fit: cover;
}

.course-architecture-content {
  min-width: 0;
}

.course-architecture-list {
  display: grid;
  height: 100%;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.course-architecture-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 98px;
  padding: 18px 22px;
  border: 1px solid var(--iida-line);
  border-radius: var(--iida-radius);
  background: var(--iida-white);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.course-architecture-item:hover {
  border-color: rgba(21, 56, 96, 0.34);
  box-shadow: 0 14px 30px rgba(21, 56, 96, 0.08);
  transform: translateY(-2px);
}

.course-architecture-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: var(--iida-white);
  background: var(--iida-blue);
}

.course-architecture-icon .dashicons {
  width: 28px;
  height: 28px;
  font-size: 28px;
  line-height: 28px;
}

.course-architecture-item h4 {
  margin: 0;
  color: var(--iida-blue);
  font-size: 19px;
  line-height: 1.3;
}

.course-architecture-item p {
  margin: 5px 0 0;
  color: var(--iida-muted);
  font-size: 15px;
  line-height: 1.55;
}

.cert-programs .section-heading {
  max-width: 980px;
}

.cert-programs .section-heading h2 {
  color: #050b16;
  font-size: clamp(32px, 4.5vw, 48px);
}

.cert-programs .section-heading p {
  color: #0b1020;
  font-size: clamp(19px, 2.4vw, 30px);
  line-height: 1.45;
}

.cert-category {
  margin-top: 36px;
}

.cert-category-heading {
  max-width: 920px;
  margin-bottom: 28px;
}

.cert-category-heading h3 {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  margin: 0 0 18px;
  padding: 4px 22px 8px 18px;
  border: 0;
  border-left: 4px solid var(--iida-gold);
  border-bottom: 1px solid rgba(21, 56, 96, 0.24);
  color: var(--iida-blue);
  background: rgba(255, 255, 255, 0.42);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(21, 56, 96, 0.05);
}

.cert-category-heading p {
  margin: 0;
  color: #1f2b3c;
  font-size: 18px;
}

.public-cert-layout {
  display: grid;
  gap: 26px;
}

.cert-feature {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  max-width: 1010px;
}

.cert-feature-2 {
  grid-template-columns: minmax(0, 1fr) 220px;
  margin-left: auto;
}

.cert-feature-2 .cert-logo-box {
  order: 2;
}

.cert-feature-2 .cert-copy {
  order: 1;
  text-align: right;
}

.cert-logo-box {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cert-logo-box img {
  width: auto;
  max-width: 100%;
  max-height: 176px;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(21, 56, 96, 0.14));
}

.cert-copy span {
  color: var(--iida-gold);
  font-size: 15px;
  font-weight: 900;
}

.cert-copy h4,
.cert-mini-card h4 {
  margin: 8px 0 10px;
  color: #073b70;
  font-size: 24px;
  line-height: 1.2;
}

.cert-copy p,
.cert-mini-card p {
  margin: 0;
  color: #30415a;
  font-size: 16px;
}

.professional-cert-grid,
.cfde-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.cert-mini-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.cert-mini-card .cert-logo-box {
  min-height: 220px;
}

.cert-mini-card .cert-logo-box img {
  max-width: min(100%, 250px);
  max-height: 210px;
}

.cert-mini-card h4 {
  margin-top: 0;
  font-size: 22px;
}

.cert-mini-card p {
  border-top: 1px solid rgba(21, 56, 96, 0.2);
  padding-top: 12px;
}

.cfde-group {
  margin-top: 12px;
}

.cfde-cert-category {
  padding-top: 4px;
}

.cert-detail-link {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  text-decoration: none;
}

.cert-detail-link img {
  transition: filter 180ms ease, transform 180ms ease;
}

.cert-detail-link:hover img,
.cert-detail-link:focus-visible img {
  filter: drop-shadow(0 16px 24px rgba(21, 56, 96, 0.22));
  transform: translateY(-4px);
}

.cert-detail-link:focus-visible,
.cert-title-link:focus-visible {
  outline: 3px solid rgba(12, 127, 159, 0.24);
  outline-offset: 4px;
}

.cert-title-link {
  color: inherit;
  text-decoration: none;
}

.cert-title-link:hover {
  color: var(--iida-cyan);
}

.cert-detail-page {
  background: #ffffff;
}

.cert-detail-hero {
  position: relative;
  padding: 58px 0 92px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef7ff 0%, #ffffff 48%, #e7f2ff 100%);
}

.cert-detail-hero::after {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  border: 76px solid rgba(63, 131, 202, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.cert-detail-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 64px;
  align-items: center;
}

.cert-detail-brand {
  margin: 0 0 26px;
  color: var(--iida-blue);
  font-size: 15px;
  font-weight: 800;
}

.cert-detail-intro h1 {
  max-width: 710px;
  margin: 0;
  color: var(--iida-blue);
  font-size: clamp(42px, 5.2vw, 66px);
  line-height: 1.08;
}

.cert-detail-lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: #34445c;
  font-size: 18px;
  line-height: 1.8;
}

.cert-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 30px;
}

.cert-detail-actions span {
  color: #26364e;
  font-size: 15px;
}

.cert-detail-visual {
  display: grid;
  min-height: 390px;
  margin: 0;
  place-items: center;
  padding: 32px;
  border: 1px solid rgba(21, 56, 96, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(21, 56, 96, 0.18);
}

.cert-detail-visual img {
  width: min(100%, 350px);
  max-height: 330px;
  object-fit: contain;
}

.cert-facts-wrap {
  position: relative;
  z-index: 3;
  margin-top: -54px;
}

.cert-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--iida-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(21, 56, 96, 0.14);
}

.cert-fact {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 106px;
  padding: 20px 18px;
  border-right: 1px solid var(--iida-line);
}

.cert-fact:last-child {
  border-right: 0;
}

.cert-fact-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #0758b8;
}

.cert-fact-icon .dashicons {
  width: 32px;
  height: 32px;
  font-size: 32px;
  line-height: 32px;
}

.cert-fact-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.cert-fact strong,
.cert-fact span {
  display: block;
}

.cert-fact strong {
  color: #16253a;
  font-size: 15px;
  line-height: 1.3;
}

.cert-fact div > span {
  margin-top: 3px;
  color: var(--iida-muted);
  font-size: 12px;
  line-height: 1.35;
}

.cert-detail-body {
  padding-top: 78px;
}

.cert-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.78fr);
  gap: 38px;
  align-items: start;
}

.cert-detail-main,
.cert-detail-sidebar {
  display: grid;
  gap: 30px;
}

.cert-detail-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.cert-detail-heading > .dashicons {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 4px;
  color: #0758b8;
  font-size: 24px;
  line-height: 24px;
}

.section-icon-image {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 4px;
  object-fit: contain;
}

.cert-detail-heading h2 {
  margin: 0;
  color: var(--iida-blue);
  font-size: 24px;
  line-height: 1.25;
}

.cert-detail-heading p {
  margin: 6px 0 0;
  color: var(--iida-muted);
}

.cfde-syllabus-list {
  border-color: #cfdceb;
  box-shadow: 0 14px 38px rgba(21, 56, 96, 0.08);
}

.cfde-syllabus-list .syllabus-item summary {
  grid-template-columns: 112px minmax(0, 1fr) 44px;
  min-height: 132px;
}

.cfde-syllabus-thumb {
  width: 112px;
  height: 88px;
  border-left-width: 5px;
  background: #f6f8fb;
}

.cfde-syllabus-thumb img {
  object-fit: contain;
}

.cfde-syllabus-list .syllabus-detail {
  padding-left: 158px;
}

.course-description {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--iida-line);
  color: #34445c;
}

.course-description > :first-child {
  margin-top: 0;
}

.course-description > :last-child {
  margin-bottom: 0;
}

.cert-empty-courses {
  padding: 28px;
  color: var(--iida-muted);
  text-align: center;
}

.cert-sidebar-card {
  padding: 24px;
  border: 1px solid #cfdceb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(21, 56, 96, 0.05);
}

.cert-sidebar-title {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cert-sidebar-title .dashicons {
  width: 23px;
  height: 23px;
  color: #0758b8;
  font-size: 23px;
  line-height: 23px;
}

.cert-sidebar-title img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.cert-sidebar-title h3 {
  margin: 0;
  color: #0758b8;
  font-size: 19px;
}

.cert-sidebar-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.cert-sidebar-card li,
.cert-sidebar-card p {
  color: #26364e;
  font-size: 14px;
  line-height: 1.6;
}

.cert-exam-card .btn {
  width: 100%;
  margin-top: 12px;
}

.cert-about-band {
  padding: 28px 0;
  background: #eaf4ff;
}

.cert-about-band .iida-container {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.cert-about-band strong {
  color: var(--iida-blue);
  font-size: 18px;
}

.cert-about-band p {
  margin: 0;
  color: #43516a;
}

.contact-band {
  background: var(--iida-blue);
  color: var(--iida-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: center;
}

.contact-copy {
  max-width: 520px;
}

.contact-band h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
}

.contact-band p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-logo {
  width: min(280px, 72%);
  margin-top: 34px;
  opacity: 0.92;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.22));
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--iida-radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(3, 13, 30, 0.18);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.contact-form label.full,
.contact-form .form-message {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
  color: #0f2846;
  background: #ffffff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
}

.contact-form .btn {
  justify-self: start;
  min-width: 150px;
  border: 0;
}

.btn-light {
  background: #ffffff;
  color: var(--iida-blue);
}

.btn-light:hover,
.btn-light:focus-visible {
  background: #eef5ff;
}

.form-message {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.form-message.success {
  color: #123c24;
  background: #e7f7ed;
}

.form-message.error {
  color: #6d1d1d;
  background: #ffe8e8;
}

.site-footer {
  padding: 24px 0;
  background: #0f2846;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.wp-editable-content {
  padding: 52px 0;
}

.elementor-front-page,
.elementor-full-width-main,
.elementor-canvas-main {
  width: 100%;
}

.elementor-full-width-main {
  min-height: 60vh;
}

.wp-editable-content :where(h1, h2, h3) {
  color: var(--iida-blue);
}

.fde-column {
  background: #f4f7fc;
}

.fde-column .iida-container {
  max-width: 1120px;
}

.fde-column-title {
  margin: 0 0 22px;
  color: #12355f;
  font-size: 34px;
  line-height: 1.15;
}

.fde-feature-card,
.fde-assessment-form {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #e1e9f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 65, 107, 0.06);
}

.fde-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  min-height: 230px;
  padding: 26px 30px;
}

.fde-feature-copy {
  min-width: 0;
}

.fde-feature-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.fde-feature-heading h2,
.fde-feature-heading h3,
.fde-assessment-header h2,
.fde-assessment-header h3 {
  margin: 0;
  color: #153860;
  font-size: 21px;
  line-height: 1.3;
}

.fde-step,
.fde-question-number {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: #153860;
  font-size: 15px;
  font-weight: 800;
}

.fde-feature-text {
  max-width: 620px;
  color: #344861;
  font-size: 15px;
  line-height: 1.8;
}

.fde-feature-text p {
  margin: 0 0 12px;
}

.fde-feature-text p:last-child {
  margin-bottom: 0;
}

.fde-card-button {
  margin-top: 18px;
  min-height: 40px;
  padding: 0 18px;
}

.fde-card-button.is-coming-soon,
.fde-card-button.is-coming-soon:hover {
  cursor: default;
  opacity: 0.82;
  color: #fff;
  background: #153860;
}

.fde-feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  margin: 0;
}

.fde-feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fde-book-visual img {
  transform: scale(1.14);
}

.fde-assessment-visual img {
  transform: scale(1.04);
}

.fde-cert-card {
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
}

.fde-certificates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 20px;
}

.fde-certificate-link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #153860;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, color 180ms ease;
}

.fde-certificate-link:hover,
.fde-certificate-link:focus-visible {
  color: #0c6d93;
  transform: translateY(-4px);
}

.fde-certificate-link img {
  width: 100%;
  max-width: 150px;
  height: 130px;
  object-fit: contain;
}

.fde-certificate-link strong {
  font-size: 14px;
}

.fde-assessment-form {
  margin-bottom: 0;
  padding: 24px 30px 28px;
}

.fde-assessment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}

.fde-assessment-header span {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: #153860;
  font-size: 13px;
  font-weight: 700;
}

.fde-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 222px;
  align-items: center;
  gap: 24px;
  min-width: 0;
  margin: 0;
  min-height: 44px;
  padding: 7px 8px;
  border: 0;
  border-bottom: 1px solid #e6edf6;
}

.fde-question-copy {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: #243b58;
  font-size: 14px;
  line-height: 1.5;
}

.fde-question-number {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.fde-rating {
  display: grid;
  grid-template-columns: repeat(5, 38px);
  gap: 8px;
  justify-content: end;
}

.fde-rating label {
  position: relative;
  cursor: pointer;
}

.fde-rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fde-rating span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 26px;
  border: 1px solid #d8e3f0;
  border-radius: 4px;
  color: #425b78;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.fde-rating input:checked + span {
  border-color: #153860;
  color: #fff;
  background: #153860;
}

.fde-rating input:focus-visible + span {
  outline: 3px solid rgba(12, 127, 159, 0.3);
  outline-offset: 2px;
}

.fde-question.is-missing {
  background: #fff7f5;
}

.fde-form-error {
  margin: 16px 0 0;
  color: #a12f25;
  font-weight: 700;
}

.fde-result-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 24px;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #e6edf6;
  border-radius: 8px;
  background: #fbfdff;
}

.fde-result-intro,
.fde-score-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.fde-result-intro img {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.fde-result-intro h4,
.fde-score-copy strong {
  margin: 0 0 7px;
  color: #153860;
  font-size: 16px;
}

.fde-result-intro p,
.fde-score-copy p {
  margin: 0 0 12px;
  color: #5a6b81;
  font-size: 13px;
  line-height: 1.65;
}

.fde-result-intro .btn {
  min-height: 38px;
  padding: 0 16px;
}

.fde-score-ring {
  --score-progress: 0deg;
  display: grid;
  flex: 0 0 auto;
  place-content: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: conic-gradient(#2c83d3 var(--score-progress), #dce8f5 0);
  color: #153860;
  text-align: center;
  transition: background 400ms ease;
}

.fde-score-ring::before {
  content: "";
  position: absolute;
}

.fde-score-ring strong,
.fde-score-ring span {
  position: relative;
  z-index: 1;
}

.fde-score-ring strong {
  font-size: 28px;
  line-height: 1;
}

.fde-score-ring span {
  margin-top: 4px;
  font-size: 12px;
}

.fde-score-ring {
  box-shadow: inset 0 0 0 14px #fff;
}

.fde-score-wrap.has-result .fde-score-ring,
.fde-score-wrap.has-result .fde-score-copy {
  animation: fde-result-enter 420ms ease both;
}

.fde-exam-entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 14px;
  padding: 24px 30px;
  border: 1px solid #d8e3f0;
  border-left: 4px solid #b9902e;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 65, 107, 0.06);
}

.fde-exam-entry-card > div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.fde-exam-entry-card h2 {
  margin: 0 0 6px;
  color: #153860;
  font-size: 22px;
  line-height: 1.3;
}

.fde-exam-entry-card p {
  margin: 0;
  color: #5a6b81;
  font-size: 14px;
  line-height: 1.65;
}

.fde-exam-entry-card .btn {
  flex: 0 0 auto;
}

.fde-exam-entry-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.fde-exam-page {
  color: #172033;
  background: #f5f7fb;
}

.fde-exam-hero {
  padding: 54px 0 42px;
  border-bottom: 1px solid #dfe5ef;
  background: #fff;
}

.fde-exam-back {
  display: inline-block;
  margin-bottom: 28px;
  color: #48617d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.fde-exam-back:hover,
.fde-exam-back:focus-visible {
  color: #0c7f9f;
}

.fde-exam-hero .eyebrow {
  margin: 0 0 8px;
}

.fde-exam-hero h1 {
  max-width: 860px;
  margin: 0;
  color: #153860;
  font-size: 44px;
  line-height: 1.18;
}

.fde-exam-intro {
  max-width: 880px;
  margin-top: 18px;
  color: #52667e;
  font-size: 16px;
  line-height: 1.8;
}

.fde-exam-intro p {
  margin: 0;
}

.fde-exam-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 26px;
  color: #52667e;
  font-size: 14px;
}

.fde-exam-facts span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.fde-exam-facts strong {
  color: #153860;
  font-size: 21px;
}

.fde-exam-workspace {
  padding: 42px 0 84px;
}

.fde-exam-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: start;
  gap: 30px;
}

.fde-exam-form {
  min-width: 0;
}

.fde-exam-section {
  margin-bottom: 26px;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #fff;
}

.fde-exam-section-header {
  padding: 24px 26px 20px;
  border-bottom: 1px solid #dfe5ef;
}

.fde-exam-section-header h2 {
  margin: 0 0 6px;
  color: #153860;
  font-size: 24px;
  line-height: 1.3;
}

.fde-exam-section-header p {
  margin: 0;
  color: #647084;
  font-size: 14px;
  line-height: 1.6;
}

.fde-exam-question {
  padding: 26px;
  border-bottom: 1px solid #e5ebf3;
  scroll-margin-top: 118px;
}

.fde-exam-question:last-child {
  border-bottom: 0;
}

.fde-exam-question.is-missing {
  background: #fff7f5;
  box-shadow: inset 4px 0 #c84f45;
}

.fde-exam-question.is-correct {
  box-shadow: inset 4px 0 #27866b;
}

.fde-exam-question.is-incorrect {
  box-shadow: inset 4px 0 #c84f45;
}

.fde-exam-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.fde-exam-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: #153860;
  font-weight: 800;
}

.fde-exam-points {
  color: #647084;
  font-size: 13px;
  font-weight: 700;
}

.fde-exam-prompt {
  color: #223a57;
  font-size: 16px;
  line-height: 1.8;
}

.fde-exam-prompt p {
  margin: 0 0 10px;
}

.fde-exam-options {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.fde-exam-option {
  display: grid;
  grid-template-columns: 20px 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 13px;
  border: 1px solid #dce5ef;
  border-radius: 6px;
  color: #344861;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.fde-exam-option:hover {
  border-color: #8ba5bf;
  background: #f8fbfe;
}

.fde-exam-option:has(input:checked) {
  border-color: #153860;
  background: #f0f5fb;
}

.fde-exam-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #153860;
}

.fde-option-key {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  color: #153860;
  background: #edf3f9;
  font-size: 13px;
  font-weight: 800;
}

.fde-essay-field {
  display: block;
  margin-top: 18px;
}

.fde-essay-field > span {
  display: block;
  margin-bottom: 8px;
  color: #344861;
  font-weight: 700;
}

.fde-essay-field textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  padding: 15px;
  border: 1px solid #cfdbe8;
  border-radius: 6px;
  color: #172033;
  background: #fff;
  font: inherit;
  line-height: 1.7;
}

.fde-essay-field textarea:focus,
.fde-exam-option:has(input:focus-visible) {
  outline: 3px solid rgba(12, 127, 159, 0.22);
  outline-offset: 2px;
}

.fde-answer-review {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 4px solid #b9902e;
  background: #f7f9fc;
}

.fde-answer-review h3,
.fde-answer-review p {
  margin: 0 0 10px;
}

.fde-answer-review p:last-child {
  margin-bottom: 0;
}

.fde-reference-list {
  margin: 12px 0 18px;
  padding-left: 22px;
  color: #344861;
  line-height: 1.75;
}

.fde-essay-note {
  color: #8a5a11;
  font-size: 13px;
  font-weight: 700;
}

.fde-rubric-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.fde-rubric-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e0e7f0;
  cursor: pointer;
}

.fde-rubric-item:last-child {
  border-bottom: 0;
}

.fde-rubric-item input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #153860;
}

.fde-rubric-item strong,
.fde-rubric-item small {
  display: block;
}

.fde-rubric-item small {
  margin-top: 4px;
  color: #647084;
  font-size: 13px;
  line-height: 1.55;
}

.fde-exam-submit,
.fde-exam-result {
  margin-top: 26px;
  padding: 26px;
  border: 1px solid #d8e3f0;
  border-radius: 8px;
  background: #fff;
}

.fde-exam-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.fde-exam-submit h2,
.fde-exam-result h2 {
  margin: 0 0 6px;
  color: #153860;
  font-size: 22px;
}

.fde-exam-submit p,
.fde-exam-result > p {
  margin: 0;
  color: #647084;
  font-size: 14px;
  line-height: 1.65;
}

.fde-exam-error {
  margin: 0 0 16px;
  padding: 13px 16px;
  border-left: 4px solid #c84f45;
  color: #912d25;
  background: #fff7f5;
  font-weight: 700;
}

.fde-exam-result {
  border-top: 4px solid #153860;
}

.fde-exam-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.fde-exam-result-heading .eyebrow {
  margin: 0 0 6px;
}

.fde-exam-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 18px;
  border-top: 1px solid #dfe5ef;
  border-bottom: 1px solid #dfe5ef;
}

.fde-exam-score-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 14px;
  border-right: 1px solid #dfe5ef;
  text-align: center;
}

.fde-exam-score-grid > div:last-child {
  border-right: 0;
}

.fde-exam-score-grid strong {
  color: #153860;
  font-size: 34px;
  line-height: 1;
}

.fde-exam-score-grid span {
  margin-top: 7px;
  color: #647084;
  font-size: 13px;
}

.fde-exam-navigator {
  position: sticky;
  top: 106px;
  padding: 20px;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #fff;
}

.fde-exam-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #153860;
}

.fde-exam-progress-copy span {
  color: #647084;
  font-size: 13px;
}

.fde-exam-progress {
  overflow: hidden;
  height: 7px;
  margin: 13px 0 18px;
  border-radius: 4px;
  background: #e5edf6;
}

.fde-exam-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #0c7f9f;
  transition: width 180ms ease;
}

.fde-exam-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.fde-exam-nav-grid a {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid #d8e3f0;
  border-radius: 4px;
  color: #52667e;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.fde-exam-nav-grid a.is-answered {
  border-color: #0c7f9f;
  color: #fff;
  background: #0c7f9f;
}

.fde-exam-nav-grid a.is-review {
  border-color: #153860;
  color: #fff;
  background: #153860;
}

.fde-exam-navigator > p {
  margin: 16px 0 0;
  color: #647084;
  font-size: 12px;
  line-height: 1.7;
}

.fde-nav-key {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 4px 0 8px;
  border-radius: 2px;
  background: #0c7f9f;
}

.fde-nav-key:first-child {
  margin-left: 0;
}

.fde-nav-key.is-review {
  background: #153860;
}

.fde-exam-empty {
  grid-column: 1 / -1;
  padding: 48px;
  border: 1px solid #dfe5ef;
  background: #fff;
  text-align: center;
}

@keyframes fde-result-enter {
  from { opacity: 0.35; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 920px) {
  .fde-exam-entry-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .fde-exam-entry-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .fde-exam-layout {
    grid-template-columns: 1fr;
  }

  .fde-exam-navigator {
    position: static;
    order: -1;
  }

  .fde-exam-nav-grid {
    grid-template-columns: repeat(11, minmax(30px, 1fr));
  }

  .fde-exam-nav-grid a {
    aspect-ratio: auto;
    min-height: 34px;
  }

  .fde-feature-card,
  .fde-cert-card {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .fde-result-panel {
    grid-template-columns: 1fr;
  }

  .fde-question {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .fde-rating {
    margin-left: 35px;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 12px 0 10px;
  }

  .brand-logo {
    width: 60px;
    height: 60px;
  }

  .brand-name {
    font-size: 21px;
  }

  .nav-links {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 24px;
    padding-bottom: 2px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero-grid,
  .split,
  .course-architecture,
  .contact-grid,
  .cert-detail-hero-grid,
  .cert-detail-layout,
  .leadership-group-head {
    grid-template-columns: 1fr;
  }

  .leadership-group-head p {
    text-align: left;
  }

  .leadership-grid.cols-3,
  .leadership-grid.cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cert-detail-hero-grid {
    gap: 38px;
  }

  .cert-detail-visual {
    min-height: 330px;
  }

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

  .cert-fact {
    border-right: 1px solid var(--iida-line);
    border-bottom: 1px solid var(--iida-line);
  }

  .cert-fact:nth-child(2n) {
    border-right: 0;
  }

  .cert-fact:nth-child(5) {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .stats-grid,
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-item {
    flex-basis: 50%;
  }

  .teacher-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .mission-item p {
    max-width: 260px;
    font-size: 14px;
  }

  .course-architecture-media,
  .course-architecture-media img {
    min-height: 460px;
  }

  .course-architecture-list {
    height: auto;
    grid-template-rows: none;
  }

  .cert-feature,
  .cert-feature-2,
  .professional-cert-grid,
  .cfde-levels {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .cert-feature-2 .cert-logo-box,
  .cert-feature-2 .cert-copy {
    order: initial;
    text-align: left;
  }

  .syllabus-detail {
    padding-left: 28px;
  }

  .cfde-syllabus-list .syllabus-detail {
    padding-left: 28px;
  }
}

@media (max-width: 620px) {
  .wechat-contact-panel {
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    width: auto;
    margin: 0;
  }

  .fde-exam-entry-card,
  .fde-exam-submit,
  .fde-exam-result-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .fde-exam-entry-card {
    padding: 20px 18px;
  }

  .fde-exam-entry-card > div {
    align-items: flex-start;
  }

  .fde-exam-entry-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .fde-exam-hero {
    padding: 34px 0 30px;
  }

  .fde-exam-back {
    margin-bottom: 20px;
  }

  .fde-exam-hero h1 {
    font-size: 32px;
  }

  .fde-exam-workspace {
    padding: 24px 0 54px;
  }

  .fde-exam-layout {
    gap: 18px;
  }

  .fde-exam-navigator {
    padding: 16px;
  }

  .fde-exam-nav-grid {
    grid-template-columns: repeat(8, minmax(30px, 1fr));
    gap: 6px;
  }

  .fde-exam-section-header,
  .fde-exam-question,
  .fde-exam-submit,
  .fde-exam-result {
    padding: 20px 16px;
  }

  .fde-exam-section-header h2 {
    font-size: 21px;
  }

  .fde-exam-prompt {
    font-size: 15px;
  }

  .fde-exam-option {
    grid-template-columns: 18px 27px minmax(0, 1fr);
    padding: 9px 10px;
  }

  .fde-exam-score-grid {
    grid-template-columns: 1fr;
  }

  .fde-exam-score-grid > div {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid #dfe5ef;
  }

  .fde-exam-score-grid > div:last-child {
    border-bottom: 0;
  }

  .fde-column-title {
    font-size: 29px;
  }

  .fde-feature-card,
  .fde-cert-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px 18px;
  }

  .fde-feature-heading h3,
  .fde-assessment-header h3 {
    font-size: 18px;
  }

  .fde-feature-visual {
    height: 165px;
    margin-top: 14px;
  }

  .fde-certificates {
    gap: 8px;
    margin-top: 18px;
  }

  .fde-certificate-link img {
    height: 94px;
  }

  .fde-assessment-form {
    padding: 20px 14px;
  }

  .fde-assessment-header {
    align-items: flex-start;
  }

  .fde-question {
    padding: 12px 4px;
  }

  .fde-rating {
    grid-template-columns: repeat(5, minmax(36px, 1fr));
    gap: 6px;
    margin-left: 0;
  }

  .fde-rating span {
    width: 100%;
  }

  .fde-result-panel {
    padding: 16px;
  }

  .fde-result-intro,
  .fde-score-wrap {
    align-items: flex-start;
  }

  .fde-result-intro img {
    width: 72px;
    height: 72px;
  }

  .fde-score-ring {
    width: 96px;
    height: 96px;
    box-shadow: inset 0 0 0 12px #fff;
  }

  .iida-container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    position: relative;
  }

  html {
    scroll-padding-top: 24px;
  }

  :where(#about, #leadership, #solutions, #course, #certifications, #reviews, #contact) {
    scroll-margin-top: 24px;
  }

  .header-inner {
    min-height: 0;
    padding-top: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tagline {
    max-width: 230px;
    font-size: 11px;
    line-height: 1.3;
  }

  .nav-links {
    gap: 20px;
    font-size: 14px;
  }

  .nav-links .btn {
    min-height: 38px;
    padding: 0 14px;
  }

  .hero {
    min-height: auto;
    padding: 58px 0;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 42px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .cert-detail-hero {
    padding: 42px 0 86px;
  }

  .cert-detail-brand {
    margin-bottom: 20px;
    font-size: 13px;
  }

  .cert-detail-intro h1 {
    font-size: 38px;
  }

  .cert-detail-lead {
    font-size: 16px;
  }

  .cert-detail-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .cert-detail-visual {
    min-height: 270px;
    padding: 22px;
  }

  .cert-detail-visual img {
    max-height: 240px;
  }

  .cert-facts-wrap {
    margin-top: -54px;
  }

  .cert-fact {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    min-height: 98px;
    padding: 15px 12px;
  }

  .cert-fact-icon,
  .cert-fact-icon .dashicons {
    width: 28px;
    height: 28px;
    font-size: 28px;
    line-height: 28px;
  }

  .cert-detail-body {
    padding-top: 58px;
  }

  .cfde-syllabus-list .syllabus-item summary {
    grid-template-columns: 80px minmax(0, 1fr) 34px;
    min-height: 108px;
  }

  .cfde-syllabus-thumb {
    width: 80px;
    height: 70px;
  }

  .cert-about-band .iida-container {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .stats-grid,
  .cards-grid,
  .leadership-grid.cols-2,
  .leadership-grid.cols-3,
  .leadership-grid.cols-5 {
    grid-template-columns: 1fr;
  }

  .leadership-card,
  .leadership-card.wide {
    grid-template-columns: 1fr;
  }

  .leadership-card img,
  .leadership-grid.cols-5 .leadership-card img {
    width: 88px;
    height: 88px;
  }

  .mission-carousel {
    padding: 0 44px;
  }

  .mission-item {
    flex-basis: 100%;
    min-height: 196px;
    padding: 0 20px;
  }

  .mission-nav {
    width: 36px;
    height: 36px;
  }

  .teacher-carousel {
    padding: 0 42px;
  }

  .teacher-card {
    flex-basis: 100%;
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 142px;
    padding: 16px;
  }

  .teacher-card img {
    width: 64px;
    height: 64px;
  }

  .teacher-nav {
    width: 34px;
    height: 34px;
  }

  .syllabus-item summary {
    grid-template-columns: 76px minmax(0, 1fr) 34px;
    gap: 12px;
    min-height: 96px;
    padding: 16px 14px;
  }

  .syllabus-thumb {
    width: 76px;
    height: 52px;
  }

  .syllabus-summary-copy strong {
    font-size: 16px;
  }

  .syllabus-toggle {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .syllabus-detail {
    padding: 0 16px 24px;
  }

  .course-architecture-media,
  .course-architecture-media img {
    min-height: 420px;
  }

  .course-architecture-item {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 16px;
  }

  .course-architecture-icon {
    width: 46px;
    height: 46px;
  }

  .cert-category-heading h3 {
    width: 100%;
    min-height: 0;
    padding: 8px 12px 10px 14px;
    font-size: 24px;
  }

  .cert-mini-card .cert-logo-box {
    min-height: 190px;
  }

  .cert-mini-card .cert-logo-box img {
    max-height: 180px;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .section {
    padding: 62px 0;
  }
}
.cert-intro-text {
    max-width: 920px;
    margin: 18px auto 44px;
    font-size: 18px;
    line-height: 1.85;
    color: #243b5a;
text-align: justify;
text-align-last: left;
hyphens: auto;
}

.cert-intro-text p {
    margin: 0 0 22px;
}

.cert-intro-text p:last-child {
    margin-bottom: 0;
}
/* Certification introduction fills the full content width */
.cert-programs .section-heading {
    width: 100%;
    max-width: none;
}

.cert-programs .cert-intro-text {
    width: 100%;
    max-width: none;
}
