:root {
  --oc-blue: #0b4aa2;
  --oc-blue-dark: #07306f;
  --oc-blue-soft: #eaf3ff;
  --oc-yellow: #f8b932;
  --oc-yellow-soft: #fff5dc;
  --oc-teal: #0f766e;
  --oc-ink: #172033;
  --oc-muted: #5d6b82;
  --oc-line: #d8e0ed;
  --oc-bg: #f6f8fc;
  --oc-white: #ffffff;
  --oc-shadow: 0 16px 40px rgba(18, 39, 74, 0.12);
  --oc-font: "Be Vietnam Pro", "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--oc-ink);
  font-family: var(--oc-font);
  background: var(--oc-white);
  line-height: 1.5;
}

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

button,
input,
select {
  font: inherit;
}

.oc-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.oc-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.oc-topbar {
  border-bottom: 1px solid var(--oc-line);
  background: #fbfcff;
}

.oc-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  gap: 18px;
  color: var(--oc-muted);
  font-size: 13px;
}

.oc-topbar nav,
.oc-topbar__links {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.oc-topbar__inner > nav:first-child a:first-child,
.oc-topbar .oc-audience a:first-child {
  color: var(--oc-blue);
  font-weight: 800;
}

.oc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(216, 224, 237, 0.9);
  backdrop-filter: blur(12px);
}

.oc-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.oc-nav--shared {
  grid-template-columns: 230px minmax(420px, 1fr) auto;
  gap: 28px;
}

.oc-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.oc-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(11, 74, 162, 0.12);
}

.oc-logo strong {
  display: block;
  color: var(--oc-blue);
  font-size: 24px;
  line-height: 1;
}

.oc-logo span span {
  display: block;
  color: var(--oc-muted);
  font-size: 12px;
  margin-top: 3px;
}

.oc-explore {
  display: inline-grid;
  grid-template-columns: 18px auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid var(--oc-blue);
  border-radius: 6px;
  color: var(--oc-blue);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.oc-explore__icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--oc-blue-soft);
  color: var(--oc-blue);
  font-size: 13px;
  font-weight: 800;
}

.oc-main-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #2d3850;
  font-size: 14px;
}

.oc-main-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.oc-main-links a[aria-current="page"] {
  color: var(--oc-blue);
  font-weight: 800;
}

.oc-main-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--oc-blue), var(--oc-yellow));
}

.oc-menu-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.oc-menu-item--has-children > a::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  order: 2;
  transform: rotate(45deg) translateY(-2px);
}

.oc-submenu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  z-index: 30;
  display: grid;
  min-width: 210px;
  padding: 10px;
  border: 1px solid rgba(216, 224, 237, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(18, 39, 74, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.oc-submenu a {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 6px;
}

.oc-submenu a:hover {
  background: var(--oc-blue-soft);
}

.oc-submenu a[aria-current="page"]::after {
  content: none;
}

.oc-menu-item:hover .oc-submenu,
.oc-menu-item:focus-within .oc-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.oc-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
}

.oc-login {
  color: var(--oc-blue);
  font-weight: 800;
  font-size: 14px;
}

.oc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.oc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 74, 162, 0.16);
}

.oc-btn--primary {
  background: var(--oc-blue);
  color: #fff;
  border-color: var(--oc-blue);
}

.oc-btn--yellow {
  background: var(--oc-yellow);
  color: #1c2b47;
  border-color: #e3a51d;
}

.oc-btn--outline {
  background: #fff;
  color: var(--oc-blue);
  border-color: var(--oc-blue);
}

.oc-mobile-menu {
  display: none;
  width: 44px;
  height: 42px;
  border: 1px solid var(--oc-line);
  background: #fff;
  border-radius: 6px;
  color: var(--oc-blue);
  font-size: 22px;
  cursor: pointer;
}

.oc-page-hero {
  position: relative;
  padding: 64px 0 62px !important;
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.12), transparent 12%),
    radial-gradient(circle at 82% 16%, rgba(248, 185, 50, 0.34), transparent 28%),
    radial-gradient(circle at 12% 92%, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(135deg, #07306f 0%, #0b4aa2 52%, #0d61c8 100%);
  color: #fff;
  border-bottom: 6px solid var(--oc-yellow);
  overflow: hidden;
}

.oc-page-hero::before,
.oc-page-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.oc-page-hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 38%),
    radial-gradient(circle, rgba(248, 185, 50, 0.32) 0 2px, transparent 3px) 18px 24px / 92px 92px,
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 0 2px, transparent 3px) 62px 58px / 116px 116px,
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 18px);
  opacity: 0.72;
  animation: oc-hero-pattern-drift 18s linear infinite;
}

.oc-page-hero::after {
  right: -96px;
  top: 48px;
  width: 330px;
  height: 330px;
  border: 42px solid rgba(248, 185, 50, 0.22);
  border-radius: 50%;
  animation: oc-hero-ring-drift 12s ease-in-out infinite;
}

.oc-page-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: 38px;
  min-height: 0;
  padding: 0;
}

.oc-page-hero__inner::before,
.oc-page-hero__inner::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.oc-page-hero__inner::before {
  left: -84px;
  top: 44px;
  width: 168px;
  height: 168px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 28px 28px, rgba(248, 185, 50, 0.68) 0 5px, transparent 6px),
    radial-gradient(circle at 96px 52px, rgba(255, 255, 255, 0.36) 0 4px, transparent 5px),
    radial-gradient(circle at 54px 116px, rgba(255, 255, 255, 0.28) 0 3px, transparent 4px);
  opacity: 0.52;
  transform: rotate(11deg);
  animation: oc-hero-motif-float 9s ease-in-out infinite;
}

.oc-page-hero__inner::after {
  right: 380px;
  bottom: -40px;
  width: 142px;
  height: 80px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 22px 22px, rgba(248, 185, 50, 0.82) 0 5px, transparent 6px),
    radial-gradient(circle at 74px 18px, rgba(255, 255, 255, 0.42) 0 4px, transparent 5px),
    radial-gradient(circle at 112px 48px, rgba(248, 185, 50, 0.52) 0 4px, transparent 5px);
  opacity: 0.44;
  animation: oc-hero-motif-float 11s ease-in-out -3s infinite;
}

.oc-page-hero__inner > * {
  position: relative;
  z-index: 1;
}

.oc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  margin: 0 0 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  font-weight: 900;
  font-size: 13px;
  line-height: 1.2;
}

.oc-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--oc-yellow);
  box-shadow: 0 0 0 5px rgba(248, 185, 50, 0.18);
}

.oc-page-hero h1 {
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.oc-page-hero h1 span {
  display: inline;
  padding: 0;
  color: var(--oc-yellow);
  background: none;
  box-shadow: none;
  text-shadow: inherit;
}

.oc-page-hero h1 .oc-hero-nowrap {
  display: inline-block;
  white-space: nowrap;
}

.oc-page-hero h1::after {
  content: "";
  display: block;
  width: 112px;
  height: 5px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--oc-yellow), #fff0b8 46%, var(--oc-blue));
  box-shadow: 0 8px 20px rgba(248, 185, 50, 0.26);
}

.oc-page-hero p {
  max-width: 700px;
  margin: 18px 0 26px;
  color: #dfeaff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.68;
}

.oc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.oc-page-hero .oc-btn--yellow,
.oc-page-hero .button.oc-btn--yellow {
  border-color: #ffd56a !important;
  background: linear-gradient(135deg, var(--oc-yellow), #ffd56a 54%, #fff1bc) !important;
  color: #14213a !important;
  box-shadow: 0 16px 34px rgba(248, 185, 50, 0.24), inset 0 -4px 0 rgba(7, 48, 111, 0.16) !important;
}

.oc-page-hero .oc-btn--outline,
.oc-page-hero .button.oc-btn--outline {
  border-color: rgba(255, 255, 255, 0.78) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--oc-blue-dark) !important;
}

.oc-hero-card {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--oc-ink);
  box-shadow: 0 26px 62px rgba(2, 18, 51, 0.26);
  overflow: hidden;
}

.oc-hero-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #dbe6f5;
  background: #f7faff;
}

.oc-hero-card__top strong {
  color: var(--oc-blue);
  font-size: 18px;
}

.oc-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--oc-yellow);
  color: #1d2a44;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.oc-hero-card__body {
  padding: 20px;
}

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

.oc-stat {
  min-height: 92px;
  padding: 14px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #fff;
}

.oc-stat strong {
  display: block;
  color: var(--oc-blue);
  font-size: 26px;
  line-height: 1.1;
}

.oc-stat span {
  display: block;
  margin-top: 6px;
  color: var(--oc-muted);
  font-size: 13px;
}

.oc-section {
  padding: 64px 0;
}

.oc-section--tint {
  background: var(--oc-bg);
}

.oc-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.oc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 30px;
  margin: 0 0 12px;
  padding: 0 12px;
  border: 1px solid rgba(11, 74, 162, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--oc-blue);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.oc-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--oc-yellow);
  flex: 0 0 auto;
}

.oc-section h2 {
  margin: 0;
  max-width: 840px;
  color: var(--oc-blue-dark);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
}

.oc-section__head p,
.oc-section__intro {
  margin: 10px 0 0;
  max-width: 680px;
  color: var(--oc-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.68;
}

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

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

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

.oc-card {
  border: 1px solid var(--oc-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 39, 74, 0.08);
  overflow: hidden;
}

.oc-card__body {
  padding: 22px;
}

.oc-card h3 {
  margin: 0 0 8px;
  color: var(--oc-blue-dark);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.oc-card p {
  margin: 0;
  color: var(--oc-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.68;
}

.oc-icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--oc-blue-soft);
  color: var(--oc-blue);
  font-weight: 900;
  font-size: 20px;
}

.oc-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.oc-list li {
  display: flex;
  gap: 10px;
  color: #2d3d58;
  font-size: 14px;
}

.oc-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--oc-yellow);
  color: #16233d;
  font-weight: 900;
  flex: 0 0 auto;
}

.oc-course-card {
  min-height: 420px;
}

.oc-course-thumb {
  min-height: 130px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0b4aa2 0%, #2c7bd4 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.oc-course-thumb--gold {
  color: #172033;
  background: linear-gradient(135deg, #c48309 0%, #f8b932 100%);
}

.oc-course-thumb--teal {
  background: linear-gradient(135deg, #0f766e 0%, #27a7a0 100%);
}

.oc-course-thumb--ink {
  background: linear-gradient(135deg, #20304d 0%, #4e638c 100%);
}

.oc-course-thumb small {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  width: fit-content;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 900;
}

.oc-course-thumb strong {
  font-size: 38px;
  line-height: 1;
}

.oc-course-info {
  display: grid;
  gap: 8px;
  margin: 14px 0 16px;
  padding: 12px;
  border-radius: 8px;
  background: #f7faff;
  border: 1px solid #dce8f8;
  color: #31415f;
  font-size: 13px;
}

.oc-course-info span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.oc-course-info b {
  color: var(--oc-blue);
}

.oc-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  width: fit-content;
  padding: 0 8px;
  border-radius: 999px;
  background: #e8f7ed;
  color: #18763c;
  font-weight: 900;
  font-size: 12px;
  font-style: normal;
}

.oc-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.oc-filterbar button,
.oc-filterbar select {
  min-height: 42px;
  border: 1px solid var(--oc-line);
  border-radius: 999px;
  background: #fff;
  color: #31415f;
  padding: 0 14px;
  font-weight: 800;
}

.oc-filterbar button.is-active {
  background: var(--oc-blue);
  border-color: var(--oc-blue);
  color: #fff;
}

.oc-teacher-card {
  overflow: hidden;
}

.oc-teacher-cover {
  min-height: 122px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0b4aa2 0%, #f8b932 100%);
  color: #fff;
}

.oc-teacher-avatar {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff;
  color: var(--oc-blue);
  font-weight: 900;
  font-size: 22px;
  border: 4px solid rgba(255, 255, 255, 0.55);
}

.oc-teacher-rating {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 900;
}

.oc-teacher-facts {
  display: grid;
  gap: 8px;
  margin: 14px 0 16px;
  color: #31415f;
  font-size: 13px;
}

.oc-teacher-facts span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.oc-teacher-facts b {
  color: var(--oc-blue);
}

.oc-steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.oc-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--oc-line);
  border-radius: 8px;
  background: #fff;
}

.oc-step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--oc-blue);
  color: #fff;
  font-weight: 900;
}

.oc-step h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.oc-step p {
  margin: 0;
  color: var(--oc-muted);
  font-size: 14px;
}

.oc-cta {
  padding: 42px;
  border-radius: 8px;
  background: var(--oc-blue);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.oc-cta h2 {
  color: #fff;
}

.oc-cta p {
  margin: 10px 0 0;
  color: #d9e7ff;
  max-width: 760px;
}

.oc-featured-article {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
  border: 1px solid var(--oc-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--oc-shadow);
}

.oc-article-visual {
  min-height: 310px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, #0b4aa2 0%, #0f766e 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.oc-article-visual--gold {
  color: #172033;
  background: linear-gradient(135deg, #f8b932 0%, #ffdc7a 100%);
}

.oc-article-mark {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 42px;
  font-weight: 900;
}

.oc-article-visual--gold .oc-article-mark {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(11, 74, 162, 0.15);
  color: var(--oc-blue);
}

.oc-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.oc-article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--oc-blue-soft);
  color: #245384;
  font-size: 12px;
  font-weight: 800;
}

.oc-article-body {
  padding: 28px;
}

.oc-article-body h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.oc-article-body p {
  margin: 0 0 18px;
  color: var(--oc-muted);
  font-size: 16px;
}

.oc-blog-card {
  min-height: 360px;
}

.oc-blog-thumb {
  min-height: 132px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0b4aa2 0%, #2c7bd4 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.oc-blog-thumb--gold {
  color: #172033;
  background: linear-gradient(135deg, #c48309 0%, #f8b932 100%);
}

.oc-blog-thumb--teal {
  background: linear-gradient(135deg, #0f766e 0%, #27a7a0 100%);
}

.oc-blog-thumb strong {
  font-size: 34px;
  line-height: 1;
}

.oc-blog-thumb small {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 900;
}

.oc-resource-card {
  min-height: 330px;
}

.oc-resource-top {
  min-height: 118px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0b4aa2 0%, #20304d 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.oc-resource-top--gold {
  color: #172033;
  background: linear-gradient(135deg, #f8b932 0%, #ffdc7a 100%);
}

.oc-resource-top--teal {
  background: linear-gradient(135deg, #0f766e 0%, #27a7a0 100%);
}

.oc-resource-type {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 20px;
  font-weight: 900;
}

.oc-resource-top--gold .oc-resource-type {
  background: rgba(255, 255, 255, 0.48);
  color: var(--oc-blue);
}

.oc-resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}

.oc-resource-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--oc-blue-soft);
  color: #245384;
  font-size: 12px;
  font-weight: 800;
}

.oc-download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--oc-line);
}

.oc-download-row small {
  color: var(--oc-muted);
  font-size: 12px;
}

.oc-footer {
  background: #10213d;
  color: #dbe6f5;
  padding: 48px 0 28px;
}

.oc-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.oc-footer h3,
.oc-footer h4 {
  color: #fff;
  margin: 0 0 14px;
}

.oc-footer p {
  margin: 0;
  color: #b7c6dc;
}

.oc-footer a {
  display: block;
  color: #cdd9ea;
  margin: 8px 0;
  font-size: 14px;
}

.oc-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.oc-footer__brand img {
  width: min(190px, 100%);
  height: auto;
  max-height: 76px;
  padding: 7px 10px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.oc-footer__brand h3 {
  display: none;
}

.oc-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #9fb0c8;
  font-size: 13px;
}

@media (hover: hover) {
  .oc-main-links a,
  .oc-topbar a,
  .oc-footer a,
  .oc-explore,
  .oc-login,
  .oc-card-link {
    transition: color 180ms ease, opacity 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  }

  .oc-main-links a:hover,
  .oc-topbar a:hover,
  .oc-login:hover,
  .oc-card-link:hover {
    color: var(--oc-yellow);
  }

  .oc-explore:hover {
    color: var(--oc-blue);
    background: var(--oc-blue-soft);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(11, 74, 162, 0.12);
  }

  .oc-footer a:hover {
    color: #fff;
    transform: translateX(3px);
  }

  .oc-logo img,
  .oc-course-thumb,
  .oc-teacher-cover,
  .oc-blog-thumb,
  .oc-resource-top,
  .oc-article-visual,
  .oc-icon-box,
  .oc-resource-type,
  .oc-teacher-avatar,
  .oc-article-mark {
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
  }

  .oc-card,
  .oc-course-card,
  .oc-teacher-card,
  .oc-featured-article,
  .oc-blog-card,
  .oc-resource-card,
  .oc-step,
  .oc-hero-card,
  .oc-filterbar button,
  .oc-filterbar select,
  .oc-cta {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
  }

  .oc-card:hover,
  .oc-course-card:hover,
  .oc-teacher-card:hover,
  .oc-featured-article:hover,
  .oc-blog-card:hover,
  .oc-resource-card:hover,
  .oc-step:hover,
  .oc-hero-card:hover {
    transform: translateY(-5px);
    border-color: rgba(11, 74, 162, 0.28);
    box-shadow: 0 18px 42px rgba(18, 39, 74, 0.14);
  }

  .oc-course-card:hover .oc-course-thumb,
  .oc-blog-card:hover .oc-blog-thumb,
  .oc-resource-card:hover .oc-resource-top,
  .oc-featured-article:hover .oc-article-visual {
    transform: scale(1.025);
    filter: saturate(1.08);
  }

  .oc-card:hover .oc-icon-box,
  .oc-resource-card:hover .oc-resource-type,
  .oc-teacher-card:hover .oc-teacher-avatar,
  .oc-featured-article:hover .oc-article-mark {
    transform: translateY(-2px) scale(1.06);
  }

  .oc-logo:hover img {
    transform: rotate(-3deg) scale(1.04);
  }

  .oc-btn {
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
  }

  .oc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(11, 74, 162, 0.2);
  }

  .oc-btn--outline:hover {
    background: var(--oc-blue-soft);
  }

  .oc-btn--yellow:hover {
    box-shadow: 0 14px 28px rgba(248, 185, 50, 0.26);
  }

  .oc-filterbar button:hover,
  .oc-filterbar select:hover {
    border-color: var(--oc-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(18, 39, 74, 0.1);
  }

  .oc-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(11, 74, 162, 0.2);
  }
}

@keyframes oc-hero-pattern-drift {
  0% {
    background-position: 0 0, 18px 24px, 62px 58px, 0 0;
  }

  100% {
    background-position: 0 0, 110px 116px, 178px 174px, 72px 72px;
  }
}

@keyframes oc-hero-ring-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-18px, 14px, 0) scale(1.04);
  }
}

@keyframes oc-hero-motif-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(11deg);
  }

  50% {
    transform: translate3d(14px, -12px, 0) rotate(15deg);
  }
}

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

@media (max-width: 1080px) {
  .oc-nav {
    grid-template-columns: auto 1fr auto;
  }

  .oc-nav--shared {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .oc-explore,
  .oc-main-links,
  .oc-login {
    display: none;
  }

  .oc-mobile-menu {
    display: inline-grid;
    place-items: center;
  }

  .oc-page-hero__inner,
  .oc-grid-2,
  .oc-featured-article {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .oc-container {
    width: min(100% - 24px, 1180px);
  }

  .oc-topbar {
    display: none;
  }

  .oc-logo img {
    width: 42px;
    height: 42px;
  }

  .oc-logo strong {
    font-size: 20px;
  }

  .oc-logo span span {
    display: none;
  }

  .oc-actions .oc-btn {
    display: none;
  }

  .oc-page-hero {
    padding: 38px 0 44px !important;
  }

  .oc-page-hero::after {
    right: -190px;
    top: 120px;
    width: 300px;
    height: 300px;
    border-width: 38px;
  }

  .oc-page-hero__inner {
    min-height: auto;
    padding: 0;
  }

  .oc-page-hero__inner::before {
    left: auto;
    right: -72px;
    top: 80px;
    width: 130px;
    height: 130px;
    opacity: 0.38;
  }

  .oc-page-hero__inner::after {
    right: 24px;
    bottom: auto;
    top: 710px;
    opacity: 0.28;
  }

  .oc-page-hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .oc-hero-actions .oc-btn {
    width: 100%;
  }

  .oc-stat-grid,
  .oc-grid-3,
  .oc-grid-4 {
    grid-template-columns: 1fr;
  }

  .oc-section {
    padding: 46px 0;
  }

  .oc-section__head {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .oc-cta {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .oc-cta .oc-btn {
    width: 100%;
  }

  .oc-article-visual {
    min-height: 220px;
  }

  .oc-download-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .oc-footer__grid {
    grid-template-columns: 1fr;
  }

  .oc-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Vietnamese typography normalization for static subpages. */
.oc-page,
.oc-page h1,
.oc-page h2,
.oc-page h3,
.oc-page h4,
.oc-page p,
.oc-page a,
.oc-page span,
.oc-page button,
.oc-page input,
.oc-page select,
.oc-page textarea,
.oc-page .oc-btn,
.oc-page .button {
  font-family: var(--oc-font) !important;
  letter-spacing: 0 !important;
}

.oc-page {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.oc-page h1,
.oc-page h2,
.oc-page h3,
.oc-page h4 {
  font-weight: 800 !important;
}

.oc-page .oc-btn,
.oc-page .button,
.oc-page button {
  font-weight: 700 !important;
}

/* Section rhythm for Builder pages. UX Builder sections use padding="0px";
   this keeps section titles from sitting against the previous section edge. */
.oc-native-page-section.oc-section,
.onchinese-page-shell .entry-content > .section.oc-section {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}

.oc-native-page-section.oc-section .oc-section__head,
.oc-native-page-section.oc-section .oc-native-page-heading,
.onchinese-page-shell .entry-content > .section.oc-section .oc-section__head,
.onchinese-page-shell .entry-content > .section.oc-section .oc-native-page-heading {
  margin-top: 0 !important;
  margin-bottom: 30px !important;
}

/* Shared page typography system for existing Builder pages and future pages. */
.onchinese-page-shell .entry-content,
.onchinese-page-shell .page-inner,
.oc-page,
.oc-native-page-section {
  font-family: var(--oc-font) !important;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.oc-page .oc-eyebrow,
.oc-native-page-section .oc-eyebrow,
.onchinese-page-shell .entry-content .oc-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  min-height: 30px !important;
  margin: 0 0 12px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(11, 74, 162, 0.14) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--oc-blue) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

.oc-page .oc-eyebrow::before,
.oc-native-page-section .oc-eyebrow::before,
.onchinese-page-shell .entry-content .oc-eyebrow::before {
  content: "" !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--oc-yellow) !important;
  flex: 0 0 auto !important;
}

.oc-page .oc-cta .oc-eyebrow,
.oc-native-page-section .oc-cta .oc-eyebrow,
.onchinese-page-shell .entry-content .oc-cta .oc-eyebrow {
  border-color: rgba(248, 185, 50, 0.42) !important;
  background: rgba(248, 185, 50, 0.14) !important;
  color: #ffd978 !important;
}

.oc-page .oc-section h2,
.oc-page .oc-section__head h2,
.oc-page .oc-cta h2,
.oc-native-page-section h2,
.onchinese-page-shell .entry-content .oc-section h2,
.onchinese-page-shell .entry-content > h2 {
  max-width: 840px !important;
  margin: 0 !important;
  color: var(--oc-blue-dark) !important;
  font-family: var(--oc-font) !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  line-height: 1.16 !important;
  letter-spacing: 0 !important;
}

.oc-page .oc-cta h2,
.oc-native-page-section .oc-cta h2,
.onchinese-page-shell .entry-content .oc-cta h2 {
  color: #fff !important;
}

.oc-page .oc-section h2::after,
.oc-page .oc-section__head h2::after,
.oc-native-page-section h2::after,
.onchinese-page-shell .entry-content .oc-section h2::after,
.onchinese-page-shell .entry-content > h2::after {
  content: "" !important;
  display: block !important;
  width: 96px !important;
  height: 5px !important;
  margin-top: 12px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, var(--oc-blue), #2f75d1 54%, var(--oc-yellow)) !important;
  box-shadow: 0 8px 20px rgba(248, 185, 50, 0.22) !important;
}

.oc-page .oc-cta h2::after,
.oc-native-page-section .oc-cta h2::after,
.onchinese-page-shell .entry-content .oc-cta h2::after {
  background: linear-gradient(90deg, var(--oc-yellow), #fff0b8 56%, rgba(255, 255, 255, 0.72)) !important;
}

.oc-page .oc-section h2 span,
.oc-page .oc-section h3 span,
.oc-page .oc-page-hero h1 span,
.oc-native-page-section h1 span,
.oc-native-page-section h2 span,
.oc-native-page-section h3 span,
.onchinese-page-shell .entry-content h1 span,
.onchinese-page-shell .entry-content h2 span,
.onchinese-page-shell .entry-content h3 span {
  color: var(--oc-yellow) !important;
  background: none !important;
  box-shadow: none !important;
  text-shadow: inherit;
}

.oc-page .oc-section__head p,
.oc-page .oc-section__intro,
.oc-page .oc-section p,
.oc-native-page-section p,
.onchinese-page-shell .entry-content .oc-section p,
.onchinese-page-shell .entry-content > p {
  max-width: 700px;
  color: var(--oc-muted) !important;
  font-family: var(--oc-font) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.68 !important;
  letter-spacing: 0 !important;
}

.oc-page .oc-cta p,
.oc-native-page-section .oc-cta p,
.onchinese-page-shell .entry-content .oc-cta p {
  color: #d9e7ff !important;
}

.oc-page .oc-card h3,
.oc-native-page-section .oc-card h3,
.onchinese-page-shell .entry-content .oc-card h3 {
  margin: 0 0 8px !important;
  color: var(--oc-blue-dark) !important;
  font-family: var(--oc-font) !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

.oc-page .oc-card p,
.oc-native-page-section .oc-card p,
.onchinese-page-shell .entry-content .oc-card p {
  max-width: none !important;
  margin: 0 !important;
  color: var(--oc-muted) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.68 !important;
}

.oc-page .oc-page-hero .oc-kicker,
.oc-native-page-section.oc-page-hero .oc-kicker,
.onchinese-page-shell .entry-content .oc-page-hero .oc-kicker {
  margin: 0 0 24px !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.13) !important;
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12) !important;
}

.oc-page .oc-page-hero p:not(.oc-kicker),
.oc-native-page-section.oc-page-hero p:not(.oc-kicker),
.onchinese-page-shell .entry-content .oc-page-hero p:not(.oc-kicker) {
  max-width: 700px !important;
  margin: 18px 0 26px !important;
  color: #dfeaff !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.68 !important;
}

.oc-page .oc-page-hero .oc-hero-card p,
.oc-native-page-section.oc-page-hero .oc-hero-card p,
.onchinese-page-shell .entry-content .oc-page-hero .oc-hero-card p {
  max-width: none !important;
  margin: 0 !important;
  color: var(--oc-muted) !important;
  font-size: 16px !important;
}

/* Flatsome UX Builder version of subpages.
   These rules make generated section/row/col shortcodes keep the same public
   layout while still exposing each section, row, card, CTA, and footer column
   as editable Builder nodes. */
.oc-native-page-section,
.oc-native-page-section h1,
.oc-native-page-section h2,
.oc-native-page-section h3,
.oc-native-page-section h4,
.oc-native-page-section p,
.oc-native-page-section a,
.oc-native-page-section span,
.oc-native-page-section button,
.oc-native-page-section .button {
  font-family: var(--oc-font) !important;
  letter-spacing: 0 !important;
}

.oc-native-page-section {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.oc-native-page-section .section-content {
  position: relative;
  z-index: 1;
}

.oc-native-page-section .row {
  margin-left: auto !important;
  margin-right: auto !important;
}

.oc-native-page-section .row::before,
.oc-native-page-section .row::after,
.oc-native-page-section br {
  content: none !important;
  display: none !important;
}

.oc-native-page-section .col {
  min-width: 0;
}

.oc-native-page-section .col-inner {
  min-width: 0;
  height: 100%;
}

.oc-native-page-section .text,
.oc-native-page-section .ux-html {
  width: 100%;
}

.oc-anchor-target {
  display: block;
  scroll-margin-top: 120px;
}

.oc-page-hero.oc-native-page-section .oc-page-hero__inner,
.oc-native-page-section .oc-grid-2,
.oc-native-page-section .oc-grid-3,
.oc-native-page-section .oc-grid-4,
.oc-native-page-footer .oc-footer__grid {
  display: grid !important;
  align-items: stretch;
}

.oc-page-hero.oc-native-page-section .oc-page-hero__inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
}

.oc-native-page-section .oc-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oc-native-page-section .oc-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oc-native-page-section .oc-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.oc-native-page-footer .oc-footer__grid {
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
}

.oc-page-hero.oc-native-page-section .oc-page-hero__inner > .col,
.oc-native-page-section .oc-grid-2 > .col,
.oc-native-page-section .oc-grid-3 > .col,
.oc-native-page-section .oc-grid-4 > .col,
.oc-native-page-footer .oc-footer__grid > .col {
  width: auto !important;
  max-width: none !important;
  flex-basis: auto !important;
  padding: 0 !important;
}

.oc-page-hero.oc-native-page-section .oc-hero-card > .col-inner {
  height: auto;
}

.oc-page-hero.oc-native-page-section .oc-hero-card .ux-html,
.oc-page-hero.oc-native-page-section .oc-hero-card aside.oc-hero-card {
  height: 100%;
}

.oc-native-page-grid > .oc-card {
  height: auto;
}

.oc-native-page-grid > .oc-card > .col-inner {
  display: flex;
  flex-direction: column;
}

.oc-native-page-grid > .oc-card .ux-html,
.oc-native-page-grid > .oc-card .oc-native-page-card-html {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.oc-native-page-heading {
  margin-bottom: 24px !important;
}

.oc-native-page-heading > .col {
  padding: 0 !important;
}

.oc-native-page-buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px;
  margin-top: 24px !important;
}

.oc-native-page-buttons > .col {
  width: auto !important;
  max-width: none !important;
  flex-basis: auto !important;
  padding: 0 !important;
}

.oc-native-page-buttons .button {
  margin: 0 !important;
}

.oc-native-page-section .button.oc-btn--yellow,
.oc-native-page-section .oc-btn.oc-btn--yellow {
  background: var(--oc-yellow) !important;
  border-color: var(--oc-yellow) !important;
  color: var(--oc-ink) !important;
}

.oc-native-page-section .button.oc-btn--outline,
.oc-native-page-section .oc-btn.oc-btn--outline {
  background: transparent !important;
  border-color: currentColor !important;
  color: inherit !important;
}

.oc-native-page-section .button.oc-btn--primary,
.oc-native-page-section .oc-btn.oc-btn--primary {
  background: var(--oc-blue) !important;
  border-color: var(--oc-blue) !important;
  color: #fff !important;
}

.oc-native-page-cta-row > .col,
.oc-native-page-featured-row > .col,
.oc-native-page-filter-row > .col,
.oc-native-page-content-row > .col,
.oc-native-page-footer-bottom > .col {
  padding: 0 !important;
}

/* Flatsome column wrappers can share the same semantic class as the editable
   HTML inside them. Keep the wrapper neutral so the actual featured article
   is the only grid/card rendered on the Blog page. */
.oc-native-page-featured-row > .col.oc-featured-article {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  transform: none !important;
}

.oc-native-page-featured-row > .col.oc-featured-article > .col-inner {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.oc-native-page-featured-row > .col.oc-featured-article .oc-featured-article {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) !important;
  gap: 0 !important;
  border: 1px solid var(--oc-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 20px 50px rgba(18, 39, 74, 0.08) !important;
  overflow: hidden !important;
}

.oc-native-page-footer {
  padding: 48px 0 28px !important;
}

.oc-native-page-footer .section-bg {
  background: #10213d !important;
}

.oc-native-page-footer .oc-footer__bottom {
  margin-top: 34px !important;
}

@media (max-width: 1080px) {
  .oc-page-hero.oc-native-page-section .oc-page-hero__inner,
  .oc-native-page-section .oc-grid-2,
  .oc-native-page-section .oc-featured-article {
    grid-template-columns: 1fr !important;
  }

  .oc-native-page-featured-row > .col.oc-featured-article .oc-featured-article {
    grid-template-columns: 1fr !important;
  }

  .oc-native-page-section .oc-grid-4,
  .oc-native-page-footer .oc-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .oc-native-page-section .row {
    width: min(100% - 24px, 1180px) !important;
  }

  .oc-native-page-section .oc-grid-3,
  .oc-native-page-section .oc-grid-4,
  .oc-native-page-footer .oc-footer__grid {
    grid-template-columns: 1fr !important;
  }

  .oc-native-page-buttons {
    grid-template-columns: 1fr;
  }

  .oc-native-page-buttons .button {
    width: 100%;
  }
}

/* Mobile hardening for all UX Builder subpages. */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .oc-page,
  .oc-native-page-section,
  .oc-native-page-footer,
  .oc-native-page-section .section-content,
  .oc-native-page-footer .section-content {
    max-width: 100%;
    overflow-x: clip;
  }

  .oc-native-page-section .row,
  .oc-native-page-footer .row,
  .oc-page-hero.oc-native-page-section .oc-page-hero__inner,
  .oc-native-page-section .oc-grid-2,
  .oc-native-page-section .oc-grid-3,
  .oc-native-page-section .oc-grid-4,
  .oc-native-page-section .oc-featured-article,
  .oc-native-page-footer .oc-footer__grid,
  .oc-native-page-footer .oc-footer__bottom {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    min-width: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .oc-page-hero.oc-native-page-section .oc-page-hero__inner,
  .oc-native-page-section .oc-grid-2,
  .oc-native-page-section .oc-grid-3,
  .oc-native-page-section .oc-grid-4,
  .oc-native-page-section .oc-featured-article,
  .oc-native-page-footer .oc-footer__grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .oc-page-hero.oc-native-page-section .oc-page-hero__inner {
    min-height: auto !important;
    padding: 0 !important;
  }

  .oc-page-hero.oc-native-page-section .oc-page-hero__inner > .col,
  .oc-native-page-section .oc-grid-2 > .col,
  .oc-native-page-section .oc-grid-3 > .col,
  .oc-native-page-section .oc-grid-4 > .col,
  .oc-native-page-section .oc-featured-article > .col,
  .oc-native-page-footer .oc-footer__grid > .col,
  .oc-native-page-footer .oc-footer__bottom > .col {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .oc-page-hero h1 {
    max-width: 100% !important;
    font-size: clamp(30px, 8.4vw, 36px) !important;
    line-height: 1.13 !important;
    overflow-wrap: anywhere;
  }

  .oc-section h2,
  .oc-page h2,
  .oc-native-page-section h2 {
    max-width: 100% !important;
    font-size: clamp(26px, 7.4vw, 34px) !important;
    line-height: 1.16 !important;
    overflow-wrap: anywhere;
  }

  .oc-page-hero p,
  .oc-section__head p,
  .oc-section__intro,
  .oc-page p,
  .oc-native-page-section p {
    max-width: 100% !important;
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .oc-kicker,
  .oc-pill,
  .oc-status,
  .oc-article-meta span,
  .oc-resource-meta span {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25 !important;
  }

  .oc-hero-actions,
  .oc-native-page-buttons,
  .oc-filterbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .oc-hero-actions .oc-btn,
  .oc-native-page-buttons .button,
  .oc-filterbar button,
  .oc-filterbar select {
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
    white-space: normal !important;
    text-align: center;
    line-height: 1.2 !important;
  }

  .oc-hero-card,
  .oc-card,
  .oc-course-card,
  .oc-teacher-card,
  .oc-blog-card,
  .oc-resource-card,
  .oc-featured-article,
  .oc-step,
  .oc-cta {
    width: 100%;
    min-width: 0;
  }

  .oc-hero-card__top,
  .oc-resource-top,
  .oc-teacher-cover,
  .oc-download-row,
  .oc-cta,
  .oc-section__head,
  .oc-footer__bottom {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .oc-card__body,
  .oc-article-body,
  .oc-hero-card__body {
    padding: 18px !important;
  }

  .oc-stat-grid,
  .oc-grid-2,
  .oc-grid-3,
  .oc-grid-4,
  .oc-footer__grid {
    grid-template-columns: 1fr !important;
  }

  .oc-section {
    padding: 42px 0 !important;
  }

  .oc-native-page-section.oc-section,
  .onchinese-page-shell .entry-content > .section.oc-section {
    padding-top: 48px !important;
    padding-bottom: 52px !important;
  }

  .oc-course-card,
  .oc-blog-card,
  .oc-resource-card,
  .oc-hero-card {
    min-height: auto !important;
  }

  .oc-course-thumb,
  .oc-blog-thumb,
  .oc-resource-top,
  .oc-teacher-cover,
  .oc-article-visual {
    min-height: 112px !important;
  }

  .oc-article-mark {
    width: 76px !important;
    height: 76px !important;
    font-size: 34px !important;
  }

  .oc-step {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  .oc-step::before {
    width: 40px !important;
    height: 40px !important;
  }

  .oc-cta {
    display: flex !important;
    gap: 16px !important;
    padding: 24px 18px !important;
  }

  .oc-cta .oc-btn {
    width: 100% !important;
  }

  .oc-footer__grid,
  .oc-footer__bottom {
    display: grid !important;
    gap: 22px !important;
  }
}

@media (max-width: 420px) {
  .oc-page-hero h1 {
    font-size: 31px !important;
  }

  .oc-section h2,
  .oc-page h2,
  .oc-native-page-section h2 {
    font-size: 28px !important;
  }
}

.oc-policy-page {
  background: #f6f9fd;
  color: var(--oc-ink);
}

.oc-policy-hero {
  border-bottom: 1px solid rgba(11, 74, 162, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  padding: 64px 0 40px;
}

.oc-policy-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #62708a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.oc-policy-breadcrumb a {
  color: var(--oc-blue);
  text-decoration: none;
}

.oc-policy-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  border: 1px solid rgba(11, 74, 162, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: var(--oc-blue);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.oc-policy-hero h1 {
  max-width: 860px;
  margin: 0 0 14px;
  color: var(--oc-blue-dark);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
}

.oc-policy-hero__lead {
  max-width: 820px;
  margin: 0;
  color: #44536c;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.75;
}

.oc-policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.oc-policy-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(11, 74, 162, 0.12);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: #30415f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.oc-policy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.oc-policy-summary__item {
  border: 1px solid rgba(11, 74, 162, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(18, 39, 74, 0.06);
}

.oc-policy-summary__item strong {
  display: block;
  margin-bottom: 7px;
  color: var(--oc-blue-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.oc-policy-summary__item p {
  margin: 0;
  color: #56647b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.oc-policy-body {
  padding: 42px 0 72px;
}

.oc-policy-layout {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.oc-policy-toc {
  position: sticky;
  top: 108px;
  border: 1px solid rgba(11, 74, 162, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(18, 39, 74, 0.06);
}

.oc-policy-toc p {
  margin: 0 0 12px;
  color: var(--oc-blue-dark);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.oc-policy-toc a {
  display: block;
  border-top: 1px solid rgba(11, 74, 162, 0.08);
  padding: 10px 0;
  color: #43526a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.oc-policy-toc a:hover {
  color: var(--oc-blue);
}

.oc-policy-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.oc-policy-block,
.oc-policy-contact {
  border: 1px solid rgba(11, 74, 162, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 14px 34px rgba(18, 39, 74, 0.06);
}

.oc-policy-block h2,
.oc-policy-contact h2 {
  margin: 0 0 14px;
  color: var(--oc-blue-dark);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}

.oc-policy-block h3 {
  margin: 22px 0 10px;
  color: #1f3557;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
}

.oc-policy-block p,
.oc-policy-contact p,
.oc-policy-block li {
  color: #43526a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.72;
}

.oc-policy-block p,
.oc-policy-contact p {
  margin: 0 0 12px;
}

.oc-policy-block p:last-child,
.oc-policy-contact p:last-child {
  margin-bottom: 0;
}

.oc-policy-block ul,
.oc-policy-block ol {
  display: grid;
  gap: 8px;
  margin: 0 0 14px 20px;
  padding: 0;
}

.oc-policy-block li::marker {
  color: var(--oc-blue);
  font-weight: 900;
}

.oc-policy-list,
.oc-policy-steps,
.oc-policy-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.oc-policy-card,
.oc-policy-step,
.oc-policy-info {
  border: 1px solid rgba(11, 74, 162, 0.1);
  border-radius: 8px;
  background: #f8fbff;
  padding: 16px;
}

.oc-policy-card strong,
.oc-policy-step strong,
.oc-policy-info strong {
  display: block;
  margin-bottom: 6px;
  color: var(--oc-blue-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.oc-policy-card p,
.oc-policy-step p,
.oc-policy-info p {
  margin: 0;
  color: #526078;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.oc-policy-table {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid rgba(11, 74, 162, 0.1);
  border-radius: 8px;
  background: #fff;
}

.oc-policy-table table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.oc-policy-table th,
.oc-policy-table td {
  border-bottom: 1px solid rgba(11, 74, 162, 0.08);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.oc-policy-table th {
  background: #eff5fc;
  color: var(--oc-blue-dark);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.oc-policy-table td {
  color: #43526a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.oc-policy-note {
  margin-top: 16px;
  border-left: 4px solid var(--oc-yellow);
  padding: 12px 0 12px 16px;
  color: #526078;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.oc-policy-contact {
  display: grid;
  gap: 14px;
  background: #10213d;
  color: #fff;
}

.oc-policy-contact h2,
.oc-policy-contact p {
  color: #fff;
}

.oc-policy-contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.oc-policy-contact__links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

@media (max-width: 900px) {
  .oc-policy-layout {
    grid-template-columns: 1fr;
  }

  .oc-policy-toc {
    position: static;
  }
}

@media (max-width: 760px) {
  .oc-policy-hero {
    padding: 42px 0 30px;
  }

  .oc-policy-hero h1 {
    font-size: 32px;
  }

  .oc-policy-hero__lead {
    font-size: 16px;
  }

  .oc-policy-summary,
  .oc-policy-list,
  .oc-policy-steps,
  .oc-policy-info-grid {
    grid-template-columns: 1fr;
  }

  .oc-policy-body {
    padding: 28px 0 48px;
  }

  .oc-policy-block,
  .oc-policy-contact {
    padding: 20px;
  }

  .oc-policy-block h2,
  .oc-policy-contact h2 {
    font-size: 22px;
  }
}
