/* Required Course Section */
.required {
    padding: 76px 0 70px;
}

.required-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.required .required-hub {
    max-width: 680px;
    text-align: center;
}

.required .required-hub::after {
    content: "";
    display: block;
    width: 72px;
    height: 2px;
    margin: 22px auto 0;
    background: #a68137;
    opacity: .72;
}

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

.required .required-course {
    position: relative;
    min-height: 190px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    overflow: hidden;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.required .required-course::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #a68137;
    opacity: .22;
    transition: opacity .24s ease;
}

.required .required-course:hover {
    transform: translateY(-4px);
    border-color: rgba(166, 129, 55, .48);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .09);
}

.required .required-course:hover::before {
    opacity: 1;
}

.required-course-body {
    min-width: 0;
    padding: 22px 22px 20px 24px;
}

.required-course-body h3 {
    margin: 0 0 10px;
    color: #2b3f73;
    font-size: 19px;
    font-weight: bold;
    line-height: 1.35;
}

.required-course-summary {
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(166, 129, 55, .28);
    color: #a68137;
    font-size: 15px;
    line-height: 1.55;
}

.required-course-detail {
    display: -webkit-box;
    margin: 12px 0 0;
    color: #666;
    font-size: 14px;
    line-height: 1.65;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

#showClass > .toDetail {
    margin-top: 0;
}

/* Required-style category filter (optional courses page) */
.required-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

.required-filter .post-category {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #d9d9d9;
    border-radius: 999px;
    background: #fff;
    color: #2b3f73;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.required-filter .post-category:hover {
    border-color: rgba(166, 129, 55, .55);
    color: #a68137;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .07);
}

.required-filter .post-category.active {
    border-color: #2b3f73;
    background: #2b3f73;
    color: #fff;
}

.required-empty {
    grid-column: 1 / -1;
    padding: 40px 0;
    color: #888;
    text-align: center;
    font-size: 15px;
}

div .post-category:before {
    content: "";
    position: absolute;
    top: 0;
    left: -5px;
    height: 100%;
    width: 1px;
    background-color: white !important;
}

/* Advanced Module Section */
.adv {
    position: relative;
    padding: 76px 0 88px;
}

.adv .wrap {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.adv .hub {
    position: relative;
    max-width: 680px;
    text-align: center;
}

.adv .hub::after {
    content: "";
    display: block;
    width: 72px;
    height: 2px;
    margin: 22px auto 0;
    background: #a68137;
    opacity: .72;
}

.adv .cols {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
    padding-top: 62px;
    align-items: start;
}

.adv .cols::before {
    content: "";
    position: absolute;
    top: 31px;
    left: 9%;
    right: 9%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(166, 129, 55, .5), transparent);
}

/* Submodule card — centered, compact */
.adv .card {
    position: relative;
    padding: 24px 20px 20px;
    border: 1px solid #cbcbcb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    cursor: pointer;
    overflow: visible;
    text-align: center;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.adv .card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, transparent, #a68137, transparent);
    opacity: 0;
    transition: opacity .28s ease;
}

.adv .card::after {
    content: "";
    position: absolute;
    top: -38px;
    left: 50%;
    width: 11px;
    height: 11px;
    border: 2px solid rgba(166, 129, 55, .62);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 8px #fff;
    transform: translateX(-50%);
    transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.adv .card:hover,
.adv .card.active {
    transform: translateY(-6px);
    border-color: rgba(166, 129, 55, .52);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .10);
}

.adv .card.active::before,
.adv .card:hover::before {
    opacity: 1;
}

.adv .card.active::after,
.adv .card:hover::after {
    border-color: #a68137;
    background: #a68137;
    box-shadow: 0 0 0 8px #fff, 0 0 0 12px rgba(166, 129, 55, .12);
}

.adv .card .sicon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 22px;
    border-radius: 8px;
    background: rgba(166, 129, 55, .12);
    color: #a68137;
}

.adv .card .sicon svg {
    width: 28px;
    height: 28px;
}

.adv .card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.3;
    color: #2b3f73;
}

.adv .card .tag {
    margin: 0 0 14px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.adv .card .cta {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    color: #a68137;
}

.adv .card.active .cta {
    color: #2b3f73;
}

/* Expanded course detail panel */
.adv .detail-wrap {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 28px;
    opacity: 0;
    transition: grid-template-rows .34s ease, opacity .34s ease;
}

.adv .detail-wrap.open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.adv .detail {
    overflow: hidden;
}

.adv .detail-inner {
    padding: 30px;
    border: 1px solid rgba(166, 129, 55, .28);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.adv .cat {
    margin-top: 24px;
}

.adv .cat:first-of-type {
    margin-top: 0;
}

.adv .cat-label {
    display: inline-flex;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(166, 129, 55, .36);
    color: #a68137;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.adv .courses {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.adv .course {
    padding: 18px;
    border: 1px solid rgba(166, 129, 55, .4);
    border-radius: 8px;
    background: #fff;
    transition: transform .24s ease, border-color .24s ease, background .24s ease;
}

.adv .course:hover {
    transform: translateY(-3px);
    border-color: #e0e0e0;
    background: #f7f7f7;
}

.adv .course .c-headline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.adv .course .c-headline::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-top: 8px;
    border-radius: 50%;
    background: #a68137;
}

.adv .course h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.45;
    color: #2b3f73;
}

.adv .course p {
    margin: 10px 0 0 17px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Entry animation */
.adv .hub,
.adv .card,
.adv .detail-wrap {
    opacity: 0;
    transform: translateY(24px);
}

.adv.in .hub,
.adv.in .card,
.adv.in .detail-wrap.open {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .65s ease, transform .65s ease;
}

.adv.in .card:nth-child(2) { transition-delay: .08s; }
.adv.in .card:nth-child(3) { transition-delay: .16s; }
.adv.in .card:nth-child(4) { transition-delay: .24s; }

@media (max-width: 900px) {
    .required {
        padding: 50px 0 52px;
    }
    .required-wrap {
        width: calc(100% - 28px);
    }
    .required-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        margin-top: 32px;
    }
    .required .required-course {
        min-height: 172px;
    }
    .required-course-body {
        padding: 20px 18px 18px 20px;
    }
    .adv {
        padding: 50px 0 60px;
    }
    .adv .wrap {
        width: calc(100% - 28px);
    }
    .adv .cols {
        grid-template-columns: 1fr 1fr;
        padding-top: 34px;
    }
    .adv .cols::before,
    .adv .card::after {
        display: none;
    }
    .adv .courses {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .required {
        padding: 40px 0 44px;
    }
    .required-grid {
        grid-template-columns: 1fr;
    }
    .required .required-course {
        min-height: auto;
    }
    .adv {
        padding: 40px 0 50px;
    }
    .adv .cols {
        grid-template-columns: 1fr;
    }
    .adv .card {
        padding: 20px 16px 16px;
    }
    .adv .detail-inner {
        padding: 20px 16px;
    }
}

/* ============================================================
   Pearl Blueprint Design — Course Section
   ============================================================ */

/* Variables scoped to pearl */
.pearl-wrap {
  --pearl-paper: #ffffff;
  --pearl-blue: #3f6fb5;
  --pearl-gold: #9c7b33;
  --pearl-gold-bright: #b3892f;
  --pearl-ink: #2c3e57;
  --pearl-head: #21344f;
  --pearl-muted: #6b7790;
  --pearl-line: rgba(40, 64, 100, .12);
  background: var(--pearl-paper);
}

.pearl-serif { }

/* ---- Hero ---- */
.pearl-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
  background:#ffffff;
  overflow: hidden;
}

#pearlStars {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.pearl-hero-head {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-bottom: 100px;
}

.pearl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .42em;
  color: var(--pearl-gold);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}

.pearl-eyebrow::before,
.pearl-eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pearl-gold));
}

.pearl-hero-head h2 {
  font-size: clamp(22px, 3.8vw, 40px);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.2;
  background: linear-gradient(180deg, #26405f, #43678f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 12px;
}

.pearl-sub {
  color: var(--pearl-muted);
  font-size: 14px;
  letter-spacing: .16em;
  margin: 0;
}

/* ---- Stage ----
   The wrapper owns the layout: width tracks the hero's content box
   (capped at the 1080px design width) and the ::before padding-top
   reserves the 1080:760 aspect ratio in pure CSS, so the page flow
   below the hero is correct even before/without JS.
   The stage itself stays in 1080x760 design pixels and is centered
   and scaled down to the wrapper via --stage-scale (set by JS). */
.pearl-stage-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.pearl-stage-wrap::before {
  content: "";
  display: block;
  padding-top: 70.3704%; /* 760 / 1080 */
}

.pearl-stage {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -540px; /* center the 1080px design canvas */
  width: 1080px;
  height: 760px;
  transform-origin: top center;
  transform: scale(var(--stage-scale, 1));
}

/* ---- Modules (cones) ---- */
.pearl-module {
  position: absolute;
  left: var(--module-x);
  top: var(--module-y);
  width: 230px;
  text-align: center;
  cursor: pointer;
  z-index: 5;
  transform: translateX(-50%);
  animation: pearlFloat 6s ease-in-out infinite;
}

.pearl-module:nth-child(1) { animation-delay: -.6s; }
.pearl-module:nth-child(3) { animation-delay: -3.1s; }

@keyframes pearlFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-14px); }
}

.pearl-label {
  position: relative;
  display: inline-block;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--pearl-head);
  margin-bottom: 18px;
  padding-bottom: 10px;
  text-shadow: 0 1px 0 rgba(255,255,255,.85), 0 0 16px rgba(190, 220, 250, .55);
  transition: color .35s, text-shadow .35s;
}

.pearl-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 34px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pearl-gold), var(--pearl-gold-bright));
  box-shadow: 0 0 10px rgba(179, 137, 47, .55);
  transition: width .35s;
}

.pearl-module:hover .pearl-label {
  color: var(--pearl-blue);
  text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 0 22px rgba(120, 190, 240, .8);
}

.pearl-module:hover .pearl-label::after { width: 56px; }

/* ========== Holographic crystal pyramid cone ========== */
.pearl-cone {
  position: relative;
  width: 120px;
  height: 108px;
  margin: 0 auto;
}

/* Atmospheric glow pool beneath the converging tip */
.pearl-cone::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 88px;
  height: 88px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 111, 174, .50), rgba(63, 132, 194, .20) 45%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
  animation: cone-aura 5.5s ease-in-out infinite;
}

/* Holographic HUD rings orbiting the energy node */
.pearl-cone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 15px;
  width: 86px;
  height: 86px;
  transform: translateX(-50%) rotateX(66deg) rotate(0deg);
  border-radius: 50%;
  border: 1px solid rgba(42, 105, 168, .66);
  box-shadow:
    0 0 0 6px rgba(42, 105, 168, .10),
    inset 0 0 12px rgba(52, 120, 184, .36),
    0 0 14px rgba(42, 105, 168, .28);
  pointer-events: none;
  z-index: 0;
  animation: cone-ring 9s linear infinite;
}

/* Semi-transparent four-sided crystal-glass pyramid funnel */
.pearl-funnel {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 62% 78%, 50% 100%, 38% 78%);
  background:
    /* facet highlight, right edge */
    linear-gradient(112deg, transparent 48%, rgba(202, 226, 246, .52) 50%, transparent 53%),
    /* facet highlight, left edge */
    linear-gradient(68deg, transparent 47%, rgba(130, 180, 224, .48) 50%, transparent 53%),
    /* volumetric body: glassy blue-cyan refraction, brightening to the tip */
    linear-gradient(170deg,
      rgba(120, 160, 202, .58) 0%,
      rgba(76, 132, 190, .52) 30%,
      rgba(52, 112, 176, .56) 62%,
      rgba(42, 98, 160, .64) 100%);
  backdrop-filter: blur(2px) saturate(115%);
  -webkit-backdrop-filter: blur(2px) saturate(115%);
  border-top: 1px solid rgba(70, 122, 182, .64);
  filter: drop-shadow(0 12px 20px rgba(42, 86, 142, .32))
          drop-shadow(0 0 14px rgba(48, 116, 180, .42));
  transition: .4s;
}

/* Refraction sheen sweeping across the glass */
.pearl-funnel::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255,255,255,.55) 48%,
    rgba(190,230,255,.2) 54%,
    transparent 70%);
  mix-blend-mode: screen;
  opacity: .8;
  animation: cone-refract 6s ease-in-out infinite;
}

/* Inner volumetric light converging toward the bright core */
.pearl-beam {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 30px;
  height: 86%;
  transform: translateX(-50%);
  z-index: 2;
  clip-path: polygon(34% 0, 66% 0, 56% 100%, 44% 100%);
  background: linear-gradient(180deg,
    rgba(188, 222, 248, .38) 0%,
    rgba(96, 156, 210, .60) 45%,
    rgba(44, 105, 170, .86) 100%);
  filter: blur(1px);
  opacity: .9;
  animation: cone-converge 3.6s ease-in-out infinite;
}

/* Bright energy core at the bottom tip */
.pearl-node {
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  z-index: 3;
  background:
    radial-gradient(circle at 50% 42%, #d8ebfb 0%, #9ec5e6 35%, #6aa3d1 70%, #3478b5 100%);
  border: 1.5px solid rgba(48, 102, 160, .84);
  display: grid;
  place-items: center;
  box-shadow:
    0 0 18px rgba(48,112,174,.62),
    0 0 38px rgba(48,112,174,.42),
    0 10px 24px rgba(34,74,124,.28),
    inset 0 1px 3px rgba(255,255,255,.75),
    inset 0 -4px 10px rgba(38,90,150,.48);
  transition: .4s;
  animation: cone-core 4s ease-in-out infinite;
}

/* Pulsing holographic halo around the core */
.pearl-node::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(179,137,47,.55);
  box-shadow: 0 0 10px rgba(120,200,245,.45);
  opacity: 0;
  transition: .4s;
}

.pearl-node svg {
  width: 26px;
  height: 26px;
  stroke: #85631f;
  fill: none;
  stroke-width: 1.6;
}

.pearl-module:hover .pearl-funnel {
  background:
    linear-gradient(112deg, transparent 47%, rgba(214, 234, 250, .62) 50%, transparent 53%),
    linear-gradient(68deg, transparent 46%, rgba(148, 194, 232, .56) 50%, transparent 54%),
    linear-gradient(170deg,
      rgba(142, 184, 220, .64) 0%,
      rgba(90, 150, 204, .56) 30%,
      rgba(56, 118, 182, .58) 62%,
      rgba(42, 98, 160, .72) 100%);
  filter: drop-shadow(0 16px 28px rgba(42,86,142,.40))
          drop-shadow(0 0 20px rgba(48,116,180,.56));
}

.pearl-module:hover .pearl-node {
  transform: translateX(-50%) scale(1.12);
  box-shadow:
    0 0 24px rgba(48,112,174,.74),
    0 0 50px rgba(48,112,174,.50),
    0 14px 32px rgba(34,74,124,.30),
    inset 0 1px 3px rgba(255,255,255,.76),
    inset 0 -4px 10px rgba(38,90,150,.52);
}

.pearl-module:hover .pearl-node::after {
  opacity: 1;
  inset: -7px;
}

.pearl-module:hover .pearl-cone::after {
  border-color: rgba(52,118,184,.72);
  box-shadow:
    0 0 0 7px rgba(42,105,168,.12),
    inset 0 0 16px rgba(52,120,184,.46),
    0 0 22px rgba(42,105,168,.38);
}

/* ---- Cone holographic animations (subtle & premium) ---- */
@keyframes cone-aura {
  0%, 100% { opacity: .65; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}
@keyframes cone-ring {
  0%   { transform: translateX(-50%) rotateX(66deg) rotate(0deg); }
  100% { transform: translateX(-50%) rotateX(66deg) rotate(360deg); }
}
@keyframes cone-refract {
  0%, 100% { transform: translateX(-12%); opacity: .4; }
  50%      { transform: translateX(12%);  opacity: .85; }
}
@keyframes cone-converge {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; }
}
@keyframes cone-core {
  0%, 100% { box-shadow: 0 0 18px rgba(48,112,174,.62), 0 0 38px rgba(48,112,174,.42), 0 10px 24px rgba(34,74,124,.28), inset 0 1px 3px rgba(255,255,255,.75), inset 0 -4px 10px rgba(38,90,150,.48); }
  50%      { box-shadow: 0 0 24px rgba(48,112,174,.74), 0 0 52px rgba(48,112,174,.52), 0 10px 24px rgba(34,74,124,.28), inset 0 1px 3px rgba(255,255,255,.75), inset 0 -4px 10px rgba(38,90,150,.48); }
}

@media (prefers-reduced-motion: reduce) {
  .pearl-cone::before,
  .pearl-cone::after,
  .pearl-funnel::before,
  .pearl-beam,
  .pearl-node {
    animation: none;
  }
}

/* ============================================================
   Dome — massive semi-transparent glass dome (tier 2)
   Realistic shell thickness, blue rim lighting, internal
   refraction, volumetric glow, hovering above the platform.
   ============================================================ */
.pearl-dome {
  position: absolute;
  left: 50%;
  top: 210px;
  transform: translateX(-50%);
  width: 520px;
  height: 330px;
  cursor: pointer;
  z-index: 4;
  animation: pearlDomeFloat 7s ease-in-out infinite;
  animation-delay: -1.4s;
}

@keyframes pearlDomeFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-12px); }
}

/* ---- Tier-2 floating platform (the dome rests on this) ---- */
.pearl-domeplat {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 470px;
  height: 120px;
  pointer-events: none;
}

.pearl-domeplat-glow {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 340px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(68, 126, 188, .50), rgba(52, 110, 174, .20) 55%, transparent 72%);
  filter: blur(16px);
  animation: pearlPlatGlow 6s ease-in-out infinite;
  animation-delay: -1.4s;
}

.pearl-domeplat-layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(188, 207, 228, .94) 0%, rgba(146, 176, 208, .90) 42%, rgba(104, 144, 188, .92) 100%);
  border: 1px solid rgba(76, 122, 176, .64);
}

.pearl-domeplat-layer.dpl3 {
  width: 420px;
  height: 92px;
  bottom: 4px;
  background: linear-gradient(180deg, rgba(148, 178, 210, .92), rgba(92, 134, 184, .94));
  box-shadow:
    0 28px 64px rgba(52, 88, 144, .30),
    inset 0 -10px 24px rgba(56, 96, 152, .36),
    inset 0 8px 18px rgba(230,240,250,.46);
}

.pearl-domeplat-layer.dpl2 {
  width: 360px;
  height: 80px;
  bottom: 16px;
  box-shadow:
    inset 0 -6px 16px rgba(120, 160, 205, .3),
    inset 0 6px 14px rgba(255,255,255,.75);
}

.pearl-domeplat-layer.dpl1 {
  width: 310px;
  height: 70px;
  bottom: 26px;
  background: linear-gradient(180deg, rgba(202, 220, 238, .94), rgba(132, 168, 206, .88));
  box-shadow:
    inset 0 -5px 13px rgba(130, 170, 215, .28),
    inset 0 8px 18px rgba(255,255,255,.9);
}

.pearl-domeplat-top {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  width: 270px;
  height: 60px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(230,240,248,.86), transparent 60%),
    radial-gradient(ellipse at 50% 60%, rgba(96, 150, 206, .52), transparent 70%),
    linear-gradient(180deg, rgba(166, 194, 222, .86), rgba(90, 142, 194, .66));
  border: 1px solid rgba(62, 116, 176, .74);
  box-shadow:
    inset 0 0 40px rgba(58, 120, 182, .34),
    inset 0 6px 16px rgba(235,245,252,.52);
}

.pearl-domeplat-ring {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(46, 106, 168, .68);
  box-shadow:
    inset 0 2px 5px rgba(42, 82, 136, .38),
    0 0 12px rgba(46, 112, 176, .34);
}

.pearl-domeplat-ring.dpr1 {
  width: 190px;
  height: 44px;
  bottom: 50px;
  animation: pearlRingPulse 4.5s ease-in-out infinite .4s;
}

.pearl-domeplat-spin {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 410px;
  height: 88px;
  border-radius: 50%;
  border: 1px dashed rgba(46, 106, 168, .38);
  animation: pearlSpin 26s linear infinite;
}

.pearl-dome:hover .pearl-domeplat-layer.dpl3 {
  box-shadow:
    0 28px 64px rgba(52, 88, 144, .40),
    inset 0 -8px 18px rgba(56, 96, 152, .38),
    inset 0 6px 14px rgba(230,240,250,.54);
}

.pearl-dome:hover .pearl-domeplat-ring {
  border-color: rgba(52, 118, 184, .78);
}

/* Wrapper for the glass dome geometry */
.pearl-glassdome {
  position: absolute;
  left: 50%;
  bottom: 66px;
  transform: translateX(-50%);
  width: 380px;
  height: 220px;
  filter: drop-shadow(0 30px 46px rgba(46, 84, 136, .28));
  transition: filter .45s ease;
}

/* Outer glass shell — smooth curvature + visible shell thickness */
.pearl-glassdome-shell {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 235px 235px 18px 18px;
  background:
    /* top crown highlight */
    radial-gradient(170px 120px at 50% 4%, rgba(226,239,250,.82), transparent 70%),
    /* glassy body, brighter toward the rim */
    linear-gradient(180deg,
      rgba(135, 176, 216, .48) 0%,
      rgba(96, 150, 202, .40) 42%,
      rgba(66, 124, 186, .42) 78%,
      rgba(48, 106, 168, .54) 100%);
  border: 1px solid rgba(58, 116, 176, .76);
  /* shell thickness: dual inset rings read as inner + outer glass walls */
  box-shadow:
    inset 0 0 0 6px rgba(232,242,250,.26),
    inset 0 10px 34px rgba(235,245,252,.52),
    inset 0 -18px 40px rgba(46, 104, 168, .36),
    inset 0 0 60px rgba(52, 112, 176, .28);
  backdrop-filter: blur(3px) saturate(118%);
  -webkit-backdrop-filter: blur(3px) saturate(118%);
  transition: box-shadow .45s ease, border-color .45s ease;
}

/* Inner refraction layer + volumetric internal glow */
.pearl-glassdome-inner {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 78%;
  height: 80%;
  border-radius: 200px 200px 10px 10px;
  background:
    radial-gradient(120px 150px at 50% 78%, rgba(56, 124, 190, .42), transparent 72%),
    linear-gradient(180deg, rgba(225,240,252,.18), rgba(76, 140, 200, .14) 60%, transparent);
  filter: blur(4px);
  opacity: .85;
  pointer-events: none;
  animation: pearlDomeGlow 6s ease-in-out infinite;
}

/* Subtle blue rim lighting hugging the dome edge */
.pearl-glassdome-rim {
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: 238px 238px 20px 20px;
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, rgba(32,95,164,0), rgba(52, 112, 176, .64) 70%, rgba(34, 86, 146, .78)) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .9;
  transition: opacity .45s ease;
}

/* Refraction sheen sweeping across the glass */
.pearl-glassdome-sheen {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 235px 235px 18px 18px;
  overflow: hidden;
  pointer-events: none;
}

.pearl-glassdome-sheen::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -40%;
  width: 50%;
  height: 120%;
  background: linear-gradient(105deg,
    transparent 20%,
    rgba(255,255,255,.55) 48%,
    rgba(210,235,255,.25) 56%,
    transparent 78%);
  transform: skewX(-12deg);
  mix-blend-mode: screen;
  animation: pearlDomeSheen 7.5s ease-in-out infinite;
}

/* Soft contact shadow cast onto the platform below */
.pearl-glassdome-floor {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  width: 84%;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(44, 82, 136, .36), transparent 70%);
  filter: blur(9px);
  pointer-events: none;
  animation: pearlDomeContact 7s ease-in-out infinite;
  animation-delay: -1.4s;
}

@keyframes pearlDomeGlow {
  0%, 100% { opacity: .7; }
  50%      { opacity: 1; }
}
@keyframes pearlDomeSheen {
  0%   { transform: translateX(0) skewX(-12deg); opacity: 0; }
  18%  { opacity: .9; }
  50%  { transform: translateX(420%) skewX(-12deg); opacity: .9; }
  62%  { opacity: 0; }
  100% { transform: translateX(420%) skewX(-12deg); opacity: 0; }
}
@keyframes pearlDomeContact {
  0%, 100% { opacity: .8; transform: translateX(-50%) scale(1); }
  50%      { opacity: .55; transform: translateX(-50%) scale(.92); }
}

.pearl-dome-lbl {
  position: absolute;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  pointer-events: none;
  width: 100%;
}

.pearl-dome-lbl b {
  position: relative;
  display: inline-block;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: .12em;
  color: linear-gradient(180deg, #26405f, #43678f);
  padding-bottom: 14px;
  text-shadow: 0 2px 2px rgba(255,255,255,.8), 0 0 26px rgba(150, 200, 245, .75);
  transition: text-shadow .4s;
}

.pearl-dome-lbl b::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 48px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--pearl-gold-bright), transparent);
  box-shadow: 0 0 12px rgba(179, 137, 47, .6);
}

.pearl-dome:hover .pearl-dome-lbl b {
  text-shadow: 0 2px 2px rgba(255,255,255,.9), 0 0 34px rgba(120, 190, 240, .95);
}

.pearl-dome-lbl small {
  display: block;
  font-size: 13px;
  letter-spacing: .34em;
  color: var(--pearl-gold);
  margin-top: 12px;
  text-transform: uppercase;
}

.pearl-dome:hover .pearl-glassdome {
  filter: drop-shadow(0 38px 60px rgba(25, 62, 114, .48));
}

.pearl-dome:hover .pearl-glassdome-shell {
  border-color: rgba(30, 95, 160, .92);
  box-shadow:
    inset 0 0 0 6px rgba(232,242,250,.32),
    inset 0 10px 38px rgba(235,245,252,.62),
    inset 0 -18px 46px rgba(22, 82, 146, .52),
    inset 0 0 70px rgba(28, 91, 154, .46);
}

.pearl-dome:hover .pearl-glassdome-rim {
  opacity: 1;
}

/* ---- Arrows ---- */
.pearl-arrows {
  position: absolute;
  left: 50%;
  top: 440px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pearl-arrows i {
  display: block;
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 20px solid rgba(95,140,200,0);
  filter: drop-shadow(0 4px 6px rgba(95,140,200,.25));
  animation: pearlRise 2.4s ease-in-out infinite;
}

.pearl-arrows i:nth-child(1) { animation-delay: 0s; }
.pearl-arrows i:nth-child(2) { animation-delay: .4s; }
.pearl-arrows i:nth-child(3) { animation-delay: .8s; }

@keyframes pearlRise {
  0%   { border-bottom-color: rgba(120,160,210,.12); transform: translateY(8px); }
  50%  { border-bottom-color: rgba(95,140,200,.7); }
  100% { border-bottom-color: rgba(120,160,210,.12); transform: translateY(-8px); }
}

/* ============================================================
   Base (foundation) — futuristic floating circular platform
   (tier 3). Substantial thickness, layered architecture,
   beveled edges, crystal + metallic-white surfaces, concentric
   recessed energy rings, glowing holographic core.
   ============================================================ */
.pearl-base {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 900px;
  height: 230px;
  cursor: pointer;
  z-index: 2;
  animation: pearlPlatFloat 8s ease-in-out infinite;
}

@keyframes pearlPlatFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

.pearl-platform {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 840px;
  height: 210px;
}

/* Volumetric light scattering pooling under the platform */
.pearl-plat-glow {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 620px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(68, 126, 188, .50), rgba(52, 110, 174, .20) 55%, transparent 72%);
  filter: blur(22px);
  pointer-events: none;
  animation: pearlPlatGlow 6s ease-in-out infinite;
}

@keyframes pearlPlatGlow {
  0%, 100% { opacity: .8; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* Stacked beveled layers — each disc is one slab of the platform body,
   offset upward + inset to read as substantial thickness. */
.pearl-plat-layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(188, 207, 228, .94) 0%, rgba(146, 176, 208, .90) 42%, rgba(104, 144, 188, .92) 100%);
  border: 1px solid rgba(76, 122, 176, .64);
}

/* bottom slab — widest + darkest, carries the main contact shadow */
.pearl-plat-layer.pl3 {
  width: 760px;
  height: 168px;
  bottom: 6px;
  background: linear-gradient(180deg, rgba(148, 178, 210, .92), rgba(92, 134, 184, .94));
  box-shadow:
    0 28px 64px rgba(52, 88, 144, .30),
    inset 0 -10px 24px rgba(56, 96, 152, .36),
    inset 0 8px 18px rgba(230,240,250,.46);
}

/* mid slab — beveled step */
.pearl-plat-layer.pl2 {
  width: 660px;
  height: 146px;
  bottom: 26px;
  box-shadow:
    inset 0 -8px 20px rgba(120, 160, 205, .3),
    inset 0 8px 18px rgba(255,255,255,.75);
}

/* upper slab — crystal/metallic-white deck base */
.pearl-plat-layer.pl1 {
  width: 580px;
  height: 128px;
  bottom: 44px;
  background: linear-gradient(180deg, rgba(202, 220, 238, .94), rgba(132, 168, 206, .88));
  box-shadow:
    inset 0 -6px 16px rgba(130, 170, 215, .28),
    inset 0 10px 22px rgba(255,255,255,.9);
}

/* Top deck surface — transparent crystal with metallic-white sheen */
.pearl-plat-top {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  width: 520px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(230,240,248,.86), transparent 60%),
    radial-gradient(ellipse at 50% 60%, rgba(96, 150, 206, .52), transparent 70%),
    linear-gradient(180deg, rgba(166, 194, 222, .86), rgba(90, 142, 194, .66));
  border: 1px solid rgba(62, 116, 176, .74);
  box-shadow:
    inset 0 0 40px rgba(58, 120, 182, .34),
    inset 0 6px 16px rgba(235,245,252,.52);
}

/* Concentric recessed energy rings carved into the deck */
.pearl-plat-energyring {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(46, 106, 168, .68);
  box-shadow:
    inset 0 2px 5px rgba(42, 82, 136, .38),
    0 0 12px rgba(46, 112, 176, .34);
  pointer-events: none;
}

.pearl-plat-energyring.er1 { width: 360px; height: 84px; bottom: 78px; animation: pearlRingPulse 4.5s ease-in-out infinite; }
.pearl-plat-energyring.er2 { width: 250px; height: 60px; bottom: 90px; animation: pearlRingPulse 4.5s ease-in-out infinite .8s; }

@keyframes pearlRingPulse {
  0%, 100% { opacity: .55; box-shadow: inset 0 2px 5px rgba(42,82,136,.38), 0 0 12px rgba(46,112,176,.34); }
  50%      { opacity: 1;   box-shadow: inset 0 2px 5px rgba(42,82,136,.46), 0 0 20px rgba(46,112,176,.52); }
}

/* Glowing holographic core at the platform centre */
.pearl-plat-core {
  position: absolute;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%);
  width: 120px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, #edf5fb 0%, #9cc8e8 40%, #5c9ccc 78%, rgba(44,105,170,0) 100%);
  box-shadow:
    0 0 24px rgba(46,112,176,.66),
    0 0 50px rgba(46,112,176,.44);
  pointer-events: none;
  animation: pearlCorePulse 3.6s ease-in-out infinite;
}

@keyframes pearlCorePulse {
  0%, 100% { opacity: .85; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}

.pearl-base-lbl {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  pointer-events: none;
  z-index: 3;
}

.pearl-base-lbl b {
  position: relative;
  display: inline-block;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: .14em;
  color: var(--pearl-head);
  padding-bottom: 16px;
  text-shadow: 0 2px 2px rgba(255,255,255,.85), 0 0 30px rgba(150, 200, 245, .8);
  transition: text-shadow .4s;
}

.pearl-base-lbl b::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--pearl-gold-bright), transparent);
  box-shadow: 0 0 14px rgba(179, 137, 47, .65);
}

.pearl-base:hover .pearl-base-lbl b {
  text-shadow: 0 2px 2px rgba(255,255,255,.95), 0 0 40px rgba(120, 190, 240, 1);
}

.pearl-base-lbl small {
  display: block;
  font-size: 14px;
  letter-spacing: .36em;
  color: var(--pearl-gold);
  margin-top: 12px;
  text-transform: uppercase;
}

/* Slowly rotating holographic interface ring around the platform edge */
.pearl-plat-spin {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 800px;
  height: 178px;
  border-radius: 50%;
  border: 1px dashed rgba(46, 106, 168, .38);
  animation: pearlSpin 26s linear infinite;
  pointer-events: none;
}

@keyframes pearlSpin { to { transform: translateX(-50%) rotate(360deg); } }

.pearl-base:hover .pearl-plat-layer.pl3 {
  box-shadow:
    0 42px 100px rgba(52, 88, 144, .40),
    inset 0 -10px 24px rgba(56, 96, 152, .38),
    inset 0 8px 18px rgba(230,240,250,.54);
}

.pearl-base:hover .pearl-plat-core {
  box-shadow:
    0 0 32px rgba(46,112,176,.78),
    0 0 64px rgba(46,112,176,.56);
}

.pearl-base:hover .pearl-plat-energyring {
  border-color: rgba(52, 118, 184, .78);
}

@media (prefers-reduced-motion: reduce) {
  .pearl-dome,
  .pearl-base,
  .pearl-glassdome-inner,
  .pearl-glassdome-sheen::before,
  .pearl-glassdome-floor,
  .pearl-plat-glow,
  .pearl-plat-energyring,
  .pearl-plat-core,
  .pearl-plat-spin,
  .pearl-circuit-flow,
  .pearl-circuit-node {
    animation: none;
  }
}

/* ---- SVG connector lines ---- */
.pearl-connectors {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

/* ---- Neon circuit pathways ---- */
.pearl-circuit { filter: url(#pearlCircuitGlow); }

/* Base track — thin faint glowing conduit */
.pearl-circuit-track {
  fill: none;
  stroke: url(#pearlCircuitGrad);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .8;
}

/* Energy-flow pulse channelling into the dome shell */
.pearl-circuit-flow {
  fill: none;
  stroke: #6aa5d6;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20 150;
  filter: drop-shadow(0 0 4px rgba(54, 124, 194, .78));
  animation: pearlCircuitFlow 2.6s linear infinite;
}

.pearl-circuit:nth-of-type(2) .pearl-circuit-flow { animation-delay: -.9s; }
.pearl-circuit:nth-of-type(3) .pearl-circuit-flow { animation-delay: -1.7s; }

@keyframes pearlCircuitFlow { to { stroke-dashoffset: 170; } }

/* Circular holographic node at the cone end */
.pearl-circuit-node {
  fill: rgba(214, 241, 255, .9);
  stroke: #5fb8f5;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(95, 184, 245, .9));
  animation: pearlNodePulse 3s ease-in-out infinite;
}

.pearl-circuit:nth-of-type(2) .pearl-circuit-node { animation-delay: -1s; }
.pearl-circuit:nth-of-type(3) .pearl-circuit-node { animation-delay: -2s; }

@keyframes pearlNodePulse {
  0%, 100% { opacity: .82; filter: drop-shadow(0 0 6px rgba(95, 184, 245, .8)); }
  50%      { opacity: 1;   filter: drop-shadow(0 0 13px rgba(120, 200, 255, 1)); }
}

/* Angular-bend joints — subtle */
.pearl-circuit-joint {
  fill: #cfecff;
  stroke: #5fb8f5;
  stroke-width: 1;
  filter: drop-shadow(0 0 3px rgba(95, 184, 245, .7));
}

@keyframes pearlDash { to { stroke-dashoffset: -300; } }

/* ---- Scroll cue ---- */
.pearl-cue {
  position: relative;
  z-index: 3;
  margin-top: 28px;
  color: var(--pearl-muted);
  font-size: 12px;
  letter-spacing: .3em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: pearlCueFloat 3s ease-in-out infinite;
}

@keyframes pearlCueFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

.pearl-cue span {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, var(--pearl-gold), transparent);
}

/* ---- Click ripple ---- */
.pearl-ripple {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 60;
  border: 2px solid var(--pearl-gold-bright);
  transform: translate(-50%, -50%);
  animation: pearlRip .7s ease-out forwards;
}

@keyframes pearlRip {
  0%   { width: 0; height: 0; opacity: .9; }
  100% { width: 240px; height: 240px; opacity: 0; }
}

/* ---- Content sections ---- */
.pearl-sect {
  max-width: 1500px;
  margin: 0 auto;
  padding: 90px 28px 80px;
  position: relative;
}

.pearl-section-anchor { scroll-margin-top: 40px; }

.pearl-sect-top {
  display: flex;
  /*grid-template-columns: 1.1fr .9fr;*/
  gap: 40px;
  align-items: center;
  margin-bottom: 44px;
}

.pearl-sect-tag {
  font-size: 12px;
  letter-spacing: .4em;
  color: var(--pearl-gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pearl-sect-tag::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--pearl-gold);
}

.pearl-sect h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  letter-spacing: .04em;
  margin: 0 0 8px;
  color: var(--pearl-head);
}

.pearl-lead {
  color: var(--pearl-muted);
  font-size: 15px;
  line-height: 1.9;
  width: auto;
  margin: 0;
}

.pearl-bignum {
  font-size: clamp(60px, 8vw, 120px);
  font-weight: 900;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(156, 123, 51, .5);
  opacity: .85;
  text-align: right;
}

/* ---- Cards grid ---- */
.pearl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
}

.pearl-cat-header.pearl-grid-full {
  grid-column: 1 / -1;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--pearl-gold);
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--pearl-line);
  margin-top: 8px;
}

.pearl-card {
  position: relative;
  padding: 30px 26px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f6f8fc);
  border: 1px solid var(--pearl-line);
  overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
  box-shadow: 0 2px 10px rgba(70, 105, 160, .05);
  min-height: 400px;
  min-width: 400px;
}

/* Course image revealed on hover as semi-transparent background */
.pearl-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .45s ease;
  z-index: 0;
  pointer-events: none;
}

.pearl-card:hover .pearl-card-img {
  opacity: 0.7;
}

/* Overlay to keep text readable when image shows */
.pearl-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.82), rgba(238,242,248,.75));
  z-index: 1;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}

.pearl-card:hover::after {
  opacity: 1;
}

.pearl-card-content {
  position: relative;
  z-index: 2;
}

.pearl-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--pearl-blue), var(--pearl-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
  z-index: 3;
}

.pearl-card:hover {
  transform: translateY(-6px);
  border-color: rgba(95, 140, 200, .45);
  box-shadow: 0 26px 54px rgba(70, 105, 160, .18);
}

.pearl-card:hover::before { transform: scaleX(1); }

.pearl-idx {
  font-size: 14px;
  color: var(--pearl-gold);
  letter-spacing: .2em;
  margin-bottom: 14px;
  opacity: .9;
}

.pearl-card h3 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: .03em;
  color: var(--pearl-head);
}

/* Summary with gold underline — inspired by old design */
.pearl-card-summary {
  display: block;
  color: var(--pearl-gold);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(156, 123, 51, .45);
}

.pearl-card p {
  color: var(--pearl-muted);
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
}

.pearl-card .pearl-detail {
  margin-top: 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Submodule sections (always visible) ---- */
.pearl-submodules {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.pearl-submod {
  position: relative;
  padding: 36px 32px 36px 40px;
  border-left: 3px solid rgba(63, 111, 181, .18);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(242,246,252,.85));
  margin-bottom: 12px;
  transition: border-color .3s, box-shadow .3s;
}

.pearl-submod:last-child { margin-bottom: 0; }

.pearl-submod:hover {
  border-left-color: var(--pearl-blue);
  box-shadow: -2px 0 0 0 var(--pearl-blue), 0 8px 32px rgba(40, 64, 100, .08);
}

/* Number + name header row */
.pearl-submod-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.pearl-submod-index {
  flex: 0 0 auto;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(63, 111, 181, .35);
  padding-top: 2px;
  min-width: 40px;
}

.pearl-submod-meta {
  flex: 1;
}

.pearl-submod-name {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--pearl-head);
  margin: 0 0 6px;
  line-height: 1.2;
}

.pearl-submod-desc {
  color: var(--pearl-muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
  max-width: 680px;
}

/* Category header */
.pearl-submod-cat {
  margin-bottom: 14px;
  margin-top: 20px;
}

.pearl-submod-cat:first-child { margin-top: 0; }

.pearl-submod-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--pearl-gold);
}

.pearl-submod-cat-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--pearl-gold);
  opacity: .6;
}

.pearl-submod-cat-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--pearl-gold), transparent);
  opacity: .3;
  min-width: 60px;
}

/* Courses grid within a submodule */
.pearl-submod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 4px;
}

.pearl-submod-card {
  position: relative;
  padding: 20px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f6f8fc);
  border: 1px solid var(--pearl-line);
  box-shadow: 0 2px 10px rgba(40, 64, 100, .05);
  transition: transform .35s, border-color .35s, box-shadow .35s;
  overflow: hidden;
  min-height: 400px;
  min-width: 400px;
}

/* Course image revealed on hover */
.pearl-submod-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .45s ease;
  z-index: 0;
  pointer-events: none;
}

.pearl-submod-card:hover .pearl-submod-card-img {
  opacity: 0.7;
}

.pearl-submod-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.86), rgba(242,246,252,.78));
  z-index: 1;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}

.pearl-submod-card:hover .pearl-submod-card-overlay {
  opacity: 1;
}

.pearl-submod-card-content {
  position: relative;
  z-index: 2;
}

.pearl-submod-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--pearl-blue), var(--pearl-gold));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s;
  z-index: 3;
}

.pearl-submod-card:hover {
  transform: translateY(-6px);
  border-color: rgba(95, 140, 200, .45);
  box-shadow: 0 26px 54px rgba(70, 105, 160, .18);
}

.pearl-submod-card:hover::before { transform: scaleY(1); }

.pearl-submod-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--pearl-head);
  margin: 0 0 12px;
  line-height: 1.35;
  letter-spacing: .03em;
}

/* Summary gold underline style — matches pearl-card-summary */
.pearl-submod-card-summary {
  display: block;
  color: var(--pearl-gold);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.65;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(156, 123, 51, .45);
}

.pearl-submod-card p {
  color: var(--pearl-muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.pearl-submod-detail {
  margin-top: 6px !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Actions row ---- */
.pearl-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.pearl-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--pearl-head);
  color: #fff;
  font-size: 14px;
  letter-spacing: .1em;
  text-decoration: none;
  transition: background .25s, box-shadow .25s;
}

.pearl-btn:hover {
  background: var(--pearl-blue);
  box-shadow: 0 8px 22px rgba(63, 111, 181, .35);
  color: #fff;
  text-decoration: none;
}

.pearl-backtop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pearl-gold-bright);
  font-size: 13px;
  letter-spacing: .2em;
  text-decoration: none;
  border: 1px solid rgba(179, 137, 47, .45);
  padding: 10px 22px;
  border-radius: 30px;
  transition: background .25s, border-color .25s;
}

.pearl-backtop:hover {
  background: rgba(179, 137, 47, .1);
  border-color: var(--pearl-gold);
  text-decoration: none;
  color: var(--pearl-gold);
}

/* ---- Divider ---- */
.pearl-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pearl-line), transparent);
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- Reveal animations ---- */
#pearl-advanced .pearl-submod {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .55s ease, transform .55s ease;
}

#pearl-advanced.pearl-in .pearl-submod {
  opacity: 1;
  transform: none;
}

#pearl-advanced.pearl-in .pearl-submod:nth-child(2) { transition-delay: .1s; }
#pearl-advanced.pearl-in .pearl-submod:nth-child(3) { transition-delay: .2s; }
#pearl-advanced.pearl-in .pearl-submod:nth-child(4) { transition-delay: .3s; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .pearl-sect-top { grid-template-columns: 1fr; gap: 0; }
  .pearl-bignum { display: none; }
  .pearl-sect { padding: 60px 20px 60px; }
  .pearl-submod { padding: 28px 20px 28px 26px; }
  .pearl-submod-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .pearl-hero { min-height: 50vh; padding: 60px 16px 40px; }
  .pearl-grid { grid-template-columns: 1fr; }
  .pearl-card {
    padding: 22px 20px;
    min-width: 0;        /* allow card to shrink to column width — fixes sideways scroll */
    min-height: auto;    /* height follows content instead of a fixed 400px */
  }
  .pearl-card h3 { font-size: 21px; margin-bottom: 12px; }
  .pearl-card-summary { font-size: 15px; }
  .pearl-card p { font-size: 14px; line-height: 1.7; }
  .pearl-submod { padding: 22px 16px 22px 20px; }
  .pearl-submod-grid { grid-template-columns: 1fr; }
  .pearl-submod-card {
    padding: 22px 20px;
    min-width: 0;        /* allow card to shrink to column width — fixes sideways scroll */
    min-height: auto;    /* height follows content instead of a fixed 400px */
  }
  .pearl-submod-card h4 { font-size: 18px; }
  .pearl-submod-index { font-size: 28px; }
  .pearl-submod-head { gap: 14px; }
}

/* ============================================================
   Faculty Cards — 方案二·變化B
   ============================================================ */
#courseTeacher {
    background: #fff;
    position: relative;
    padding: 56px 0 64px;
}
#courseTeacher.course-teacher-old {
    padding: 0 0 10px;
}
#courseTeacher .ct-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
#courseTeacher .ct-head {
    text-align: center;
    margin-bottom: 40px;
}
#courseTeacher .ct-head h3 {
    font-size: 26px;
    font-weight: 600;
    color: #002E5D;
    margin: 0 0 10px;
    display: inline-block;
    position: relative;
    padding-bottom: 14px;
}
#courseTeacher .ct-head h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #B08D57;
}
#courseTeacher .ct-head p {
    font-size: 14px;
    color: #5c6470;
    max-width: 620px;
    margin: 8px auto 0;
    line-height: 1.75;
}
#courseTeacher .fc2-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
#courseTeacher .fc2-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #002E5D;
    border-radius: 22px;
    box-shadow: 0 2px 10px rgba(15,30,55,.12);
    transition: box-shadow .4s ease;
    cursor: pointer;
}
#courseTeacher .fc2-card:hover {
    box-shadow: 0 16px 40px rgba(15,30,55,.22);
}
#courseTeacher .fc2-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    z-index: 2;
    transition:
        top .65s cubic-bezier(.16,.84,.34,1),
        left .65s cubic-bezier(.16,.84,.34,1),
        width .65s cubic-bezier(.16,.84,.34,1),
        height .65s cubic-bezier(.16,.84,.34,1),
        border-radius .55s ease,
        box-shadow .55s ease;
}
#courseTeacher .fc2-card:hover .fc2-photo {
    top: 22px;
    left: 22px;
    width: 76px;
    height: 76px;
    border-radius: 16px;
    box-shadow: 0 0 0 2px rgba(176,141,87,.95), 0 8px 18px rgba(0,0,0,.4);
}
#courseTeacher .fc2-grad {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,16,36,.94) 4%, rgba(0,16,36,.45) 48%, transparent 100%);
    transition: opacity .5s ease;
}
#courseTeacher .fc2-card:hover .fc2-grad {
    opacity: 0;
}
#courseTeacher .fc2-name {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 292px;
    z-index: 4;
    transition:
        top .6s cubic-bezier(.16,.84,.34,1),
        left .6s cubic-bezier(.16,.84,.34,1);
}
#courseTeacher .fc2-card:hover .fc2-name {
    top: 34px;
    left: 112px;
    right: 18px;
}
#courseTeacher .fc2-name .nm {
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 10px rgba(0,0,0,.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#courseTeacher .fc2-name .gold-bar {
    width: 28px;
    height: 2px;
    background: #B08D57;
    margin: 8px 0;
}
#courseTeacher .fc2-name .cr {
    font-size: 16px;
    color: rgba(255,255,255,.9);
    margin: 4px 0 0;
    line-height: 1.5;
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
    transition: color .4s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#courseTeacher .fc2-card:hover .fc2-name .cr {
    color: #c8a76e;
}
#courseTeacher .fc2-desc {
    position: absolute;
    left: 22px;
    right: 22px;
    top: 136px;
    z-index: 4;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .45s ease .14s, transform .55s cubic-bezier(.16,.84,.34,1) .14s;
}
#courseTeacher .fc2-card:hover .fc2-desc {
    opacity: 1;
    transform: none;
}
#courseTeacher .fc2-desc .rule {
    width: 28px;
    height: 2px;
    background: #B08D57;
    margin: 0 0 12px;
}
#courseTeacher .fc2-desc .lbl {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin: 0 0 6px;
}
#courseTeacher .fc2-desc .sub {
    font-size: 18px;
    color: #fcd34d;
    margin: 0;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#courseTeacher .fc2-photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 220px;
    z-index: 2;
    background: linear-gradient(135deg, #0a3a6b, #012a52);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.75);
    font-size: 28px;
    transition:
        top .65s cubic-bezier(.16,.84,.34,1),
        left .65s cubic-bezier(.16,.84,.34,1),
        width .65s cubic-bezier(.16,.84,.34,1),
        height .65s cubic-bezier(.16,.84,.34,1),
        border-radius .55s ease,
        box-shadow .55s ease;
}
#courseTeacher .fc2-card:hover .fc2-photo-placeholder {
    top: 22px;
    left: 22px;
    width: 76px;
    height: 76px;
    border-radius: 16px;
    box-shadow: 0 0 0 2px rgba(176,141,87,.95), 0 8px 18px rgba(0,0,0,.4);
    font-size: 14px;
}
@media (max-width: 991px) {
    #courseTeacher .fc2-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
    #courseTeacher .fc2-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    #courseTeacher .fc2-card { height: 320px; border-radius: 16px; }
    #courseTeacher .fc2-photo,
    #courseTeacher .fc2-photo-placeholder { height: 176px; }
    #courseTeacher .fc2-name { top: 188px; }
    #courseTeacher .fc2-desc { top: 116px; }
}
@media (max-width: 400px) {
    #courseTeacher .fc2-grid { grid-template-columns: 1fr; }
    #courseTeacher .fc2-card { height: 340px; }
    #courseTeacher .fc2-photo,
    #courseTeacher .fc2-photo-placeholder { height: 190px; }
    #courseTeacher .fc2-name { top: 202px; }
}
