:root{
  --primary:#3f72a6;
  --accent:#f4c92c;
  --bg:#f7f3ec;

  --text:#0f172a;
  --muted:#475569;
  --card:#ffffff;

  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 8px 18px rgba(15, 23, 42, 0.08);

  --radius-sm: 8px;
  --radius-md: 10px;

  --container: 1180px;
}

*{ box-sizing:border-box; }
html, body { height: 100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

img{ max-width: 100%; display:block; }

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

.container{
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.skip-link{
  position:absolute;
  top:0.5rem; left:0.5rem;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  transform: translateY(-200%);
  transition: transform .18s ease;
  z-index: 9999;
}
.skip-link:focus{ transform: translateY(0); }

.eyebrow{
  margin:0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: .02em;
}

.section-head{
  margin: 2.25rem 0 1.25rem;
}
.section-head h2{
  margin:0;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  letter-spacing: -0.02em;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: .5rem;
  border-radius: var(--radius-sm);
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  font-weight: 650;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
  user-select: none;
}
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(63, 114, 166, 0.25);
}
.btn:hover{ transform: translateY(-1px); }

.btn-primary{
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover{ box-shadow: var(--shadow); }

.btn-accent{
  background: var(--accent);
  color: #1f2a37;
  box-shadow: var(--shadow-soft);
}
.btn-accent:hover{ box-shadow: var(--shadow); }

.btn-ghost{
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover{
  border-color: rgba(63,114,166,0.45);
  box-shadow: var(--shadow-soft);
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand-logo{
  height: 50px;
  width: auto;
}

/* AI search bar */
.header-actions{
  display:flex;
  align-items:center;
  gap: 0.75rem;
}

.ai-search{
  display:flex;
  align-items:center;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow:visible;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.ai-search input{
  width: min(460px, 56vw);
  padding: 0.7rem 0.95rem;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}
.ai-search input::placeholder{
  color: rgba(71, 85, 105, 0.85);
}
.ai-search:focus-within{
  border-color: rgba(63,114,166,0.55);
  box-shadow: 0 0 0 4px rgba(63,114,166,0.18), 0 12px 26px rgba(15, 23, 42, 0.10);
}
.ai-search-btn{
  border:0;
  background: transparent;
  padding: 0.65rem 0.9rem;
  cursor:pointer;
  color: var(--primary);
}
.ai-search-btn svg{ fill: currentColor; }
.ai-search-btn:focus-visible{
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(63,114,166,0.35);
}
/* AI search popover (GitBook-like) */
.ai-search{
  position: relative; /* NEW: anchor popover to the bar */
}

.ai-search-popover{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 200;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.ai-search-popover__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ai-search-popover__title{
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 700;
}

.ai-search-popover__close{
  border: 0;
  background: transparent;
  color: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
}
.ai-search-popover__close:hover{
  background: rgba(63,114,166,0.08);
}

.ai-search-popover__list{
  max-height: 340px;
  overflow: auto;
}

.ai-search-popover__empty{
  padding: 14px 12px;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.55);
}

.ai-search-popover__item{
  display: block;
  padding: 12px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.ai-search-popover__item:hover{
  background: rgba(63,114,166,0.08);
}
.ai-search-popover__item:last-child{
  border-bottom: 0;
}

.ai-search-popover__item-title{
  margin: 0 0 2px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.ai-search-popover__item-desc{
  margin: 0;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.65);
}

/* Hamburger */
.menu-btn{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.menu-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(63,114,166,0.25);
}
.menu-btn-bars{
  display:block;
  width: 18px;
  height: 12px;
  margin: 0 auto;
  position: relative;
}
.menu-btn-bars::before,
.menu-btn-bars::after{
  content:"";
  position:absolute;
  left:0;
  width:100%;
  height:2px;
  background: var(--primary);
  border-radius: 2px;
}
.menu-btn-bars::before{ top:0; }
.menu-btn-bars::after{ bottom:0; }

/* Nav */
.site-nav{
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.nav-inner{ padding: 0.35rem 0 0.9rem; }

.nav-list{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 0.45rem;
  padding:0;
  margin:0;
  flex-wrap: wrap;
}

.nav-link{
  display:inline-flex;
  align-items:center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: var(--text);
  font-weight: 620;
  cursor: pointer;
  background: transparent;

  /* add these lines */
  font-size: 1rem;
  font-family: inherit;
}
.dropdown-toggle{
  font: inherit;        /* 這行最關鍵：字體、字級、粗細都繼承 */
}
.nav-link:hover{
  border-color: rgba(63,114,166,0.25);
  background: rgba(63,114,166,0.06);
}
.nav-link:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(63,114,166,0.20);
}
.dropdown-toggle{
  border: 1px solid transparent;
}

.chev{
  width: 10px; height: 10px;
  display:inline-block;
  border-right: 2px solid rgba(15, 23, 42, 0.6);
  border-bottom: 2px solid rgba(15, 23, 42, 0.6);
  transform: rotate(45deg);
  margin-top: -2px;
}

/* Dropdown panels */
.has-dropdown{ position: relative; }

.dropdown-panel{
  position:absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 0.45rem;
  display:none;
  z-index: 60;
}
.dropdown-panel.open{ display:block; }

.dropdown-panel a{
  display:flex;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  color: var(--text);
  border: 1px solid transparent;
  font-weight: 560;
}
.dropdown-panel a:hover{
  background: rgba(63,114,166,0.07);
  border-color: rgba(63,114,166,0.18);
}
.dropdown-panel a:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(63,114,166,0.18);
}

/* Hero */
.hero{
  position: relative;
  min-height: 360px;
  display:grid;
  place-items: center;
  overflow:hidden;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.hero-media{
  position:absolute;
  inset: 0;
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.hero-overlay{
  position:absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 50% 35%, rgba(244,201,44,0.16), transparent 60%),
    linear-gradient(180deg, rgba(15,23,42,0.55), rgba(15,23,42,0.30));
}
.hero-content{
  position: relative;
  text-align:center;
  padding: 4.5rem 0 4.2rem;
}
.hero h1{
  margin:0 auto;
  max-width: 22ch;
  color:#fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-size: clamp(1.9rem, 3.8vw, 3.3rem);
  text-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
.hero p{
  margin:30px auto;
  max-width: 180ch;
  color:#fff;
  letter-spacing: -0.03em;
  line-height: 1.5;
  text-shadow: 0 10px 28px rgba(0,0,0,0.35);
  font-size: clamp(0.8rem, 3vw, 1.35rem);
}
.btn-empower{
  background: #3e72a6;
  color: #fff;
}

.btn-empower:hover{
  filter: brightness(0.95);
}
/* Search results */
.search-results{
  margin-top: 1.5rem;
  padding: 1.1rem;
  background: rgba(255,255,255,0.70);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.results-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.results-title{
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.results-sub{
  margin: 0.25rem 0 0;
  color: var(--muted);
}
.results-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.result-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.result-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(63,114,166,0.35);
}
.result-card h3{
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.result-card p{
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.result-link{
  color: var(--primary);
  font-weight: 650;
}
.result-link:hover{ text-decoration: underline; }

/* CTA strip */
.cta-strip{
  margin-top: 1.7rem;
  padding: 1.4rem 0;
}
.cta-strip-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.25rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.cta-strip h2{
  margin:0;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
}

/* Cards */
.three-col{ padding-bottom: 0.75rem; }

.cards-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  align-items: center;
  text-align: center;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(63,114,166,0.35);
}
.card-icon{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  background: rgba(63,114,166,0.10);
  border: 1px solid rgba(63,114,166,0.20);
  margin-bottom: 0.8rem;
}
.card-icon svg{ fill: var(--primary); }
.card h3{
  margin:0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.card p{
  margin:0;
  color: var(--muted);
}
.item-icon{
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  height: 200px;
  width: auto;
}
.card .item-icon{
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* Programmes grid (4x4 on desktop) */
.programmes{ padding-bottom: 0.75rem; }

.programme-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.programme-item{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow:hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display:block;
}
.programme-item:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(63,114,166,0.35);
}
.programme-item:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(63,114,166,0.22), var(--shadow);
}
.programme-item img{
  width: 100%;
  height: auto;
  display: block;
}
.whatsapp-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;

  width: 56px;   /* control button size here */
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 9999px;
  background: transparent; /* or #25D366 if you want a circle behind */
  text-decoration: none;
}

.whatsapp-float img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.whatsapp-float:hover{
  transform: translateY(-2px);
}
/* Blogs layout */
.blogs{ padding-bottom: 0.75rem; }

.blogs-layout{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

/* Make both columns match height */
.blogs-col{
  display:flex;
  flex-direction: column;
  gap: 1rem;
}

.blogs-row-two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.blogs-row-one{
  display:block;
}

/* Blog cards */
.blog-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow:hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  height: 100%;
}
.blog-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(63,114,166,0.35);
}
.blog-link{
  display:flex;
  flex-direction: column;
  height: 100%;
}
.blog-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Small & wide cards: image top, body bottom */
.blog-card-small .blog-media{ height: 150px; }
.blog-card-wide .blog-media{ height: 210px; }

/* Tall featured: image 80% height, body 20% */
.blog-card-tall{
  height: 100%;
  min-height: 100%;
}
.blog-media-80{
  flex: 0 0 80%;
  min-height: 340px; /* helps in desktop view */
}
.blog-body-20{
  flex: 1 1 20%;
}

.blog-body{
  padding: 0.85rem 0.95rem 0.95rem;
}
.blog-body h3{
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.blog-body p{
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.blog-more{
  color: var(--primary);
  font-weight: 650;
}
.blog-link:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(63,114,166,0.20);
}

/* Advisor CTA */
.advisor-cta{
  margin: 2.2rem 0 0;
  padding: 2.2rem 0;
  background:
    radial-gradient(700px 260px at 30% 20%, rgba(244,201,44,0.20), transparent 70%),
    radial-gradient(900px 320px at 80% 70%, rgba(63,114,166,0.18), transparent 65%);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.advisor-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.25rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.advisor-inner h2{
  margin:0;
  letter-spacing: -0.02em;
}
.advisor-inner p{
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-weight: 560;
}

/* Footer */
.site-footer{
  background: rgba(15, 23, 42, 0.92);
  color: rgba(255,255,255,0.92);
  padding: 2.2rem 0 1.25rem;
}
.footer-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}
.footer-col h3{
  margin: 0 0 0.75rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.footer-col ul{
  list-style:none;
  padding:0;
  margin:0;
}
.footer-col li{ margin: 0.4rem 0; }
.footer-col a{
  color: rgba(255,255,255,0.78);
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.footer-col a:hover{
  color: #fff;
  border-color: rgba(244,201,44,0.7);
}
.footer-col a:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(244,201,44,0.22);
  border-radius: 6px;
}
.social-icons{
  display: flex;
  flex-wrap: wrap;      /* allows a 2nd line on small screens */
  gap: 20px;            /* space between icons (both row + column) */
  align-items: center;
  margin-top: 10px;
  margin-bottom: 14px;
}
.footer-bottom{
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-bottom p{
  margin:0;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 980px){
  .results-grid{ grid-template-columns: repeat(2, 1fr); }
  .cards-3{ grid-template-columns: 1fr; }
  .programme-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: repeat(2, 1fr); }

  .cta-strip-inner{
    flex-direction: column;
    align-items: flex-start;
  }

  .advisor-inner{
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px){
  .ai-search input{ width: 52vw; }

  .menu-btn{ display:inline-flex; align-items:center; justify-content:center; }

  /* Collapse nav by default on mobile */
  .site-nav{ display:none; }
  body.nav-open .site-nav{ display:block; }

  .nav-inner{ padding: 0.55rem 0 0.95rem; }
  .nav-list{
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .nav-link{
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-panel{
    position: static;
    min-width: auto;
    margin-top: 0.2rem;
    box-shadow: none;
    background: rgba(255,255,255,0.65);
  }

  .blogs-layout{
    grid-template-columns: 1fr;
  }
  .blogs-row-two{
    grid-template-columns: 1fr;
  }

  .footer-grid{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 768px){
  footer *{
    display: none !important;
  }

  footer .container footer-bottom{
    display: block !important;
    text-align: center;     /* optional */
    margin: 0;              /* optional */
    padding: 14px 12px;     /* optional */
  }
}
/* ==============================
   Certificate detail pages
   Scope: only pages with <body class="page-certificate">
   ============================== */

.page-certificate .doc-layout{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.page-certificate .doc-sidenav__inner{
  position: sticky;
  top: 92px; /* adjust if header height changes */
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.page-certificate .doc-sidenav__title{
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 14px;
  opacity: .8;
}

.page-certificate .doc-sidenav__nav{
  display: grid;
  gap: 8px;
}

.page-certificate .doc-sidenav__nav a{
  text-decoration: none;
  color: inherit;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.2;
  opacity: .9;
}

.page-certificate .doc-sidenav__nav a:hover{
  background: rgba(0,0,0,0.04);
  opacity: 1;
}

.page-certificate .doc-sidenav__meta{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.page-certificate .doc-sidenav__backtotop{
  font-size: 13px;
  text-decoration: none;
  opacity: .8;
}

.page-certificate .doc-sidenav__backtotop:hover{
  opacity: 1;
}

.page-certificate .doc-content{
  min-width: 0;
}

.page-certificate .doc-hero{
  margin: 6px 0 14px;
}

.page-certificate .doc-hero__logo{
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 8px;
}

.page-certificate .doc-header h1{
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-certificate .doc-lead{
  margin: 0 0 20px;
  font-size: 16px;
  opacity: .9;
  max-width: 70ch;
}

.page-certificate .doc-section{
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.page-certificate .doc-section h2{
  margin: 0 0 10px;
  font-size: 20px;
}

.page-certificate .doc-section h3{
  margin: 14px 0 8px;
  font-size: 16px;
}

.page-certificate .doc-section h4{
  margin: 12px 0 6px;
  font-size: 14px;
  opacity: .9;
}

.page-certificate .doc-section p,
.page-certificate .doc-section li{
  line-height: 1.6;
  max-width: 80ch;
}

.page-certificate .doc-steps{
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.page-certificate .doc-step{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}

.page-certificate .doc-step h3{
  margin-top: 0;
}

.page-certificate .doc-accordion{
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.page-certificate .doc-accordion details{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.page-certificate .doc-accordion summary{
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-weight: 700;
}

.page-certificate .doc-accordion summary::-webkit-details-marker{
  display: none;
}

.page-certificate .doc-accordion__panel{
  padding: 0 14px 12px;
  opacity: .95;
}

.page-certificate .doc-callout{
  margin-top: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
  border-radius: 14px;
  padding: 12px 14px;
  max-width: 80ch;
}

.page-certificate .doc-callout h4{
  margin: 0 0 6px;
}

.page-certificate .doc-media-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
  max-width: 900px;
}

.page-certificate .doc-figure{
  margin: 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.page-certificate .doc-figure img{
  display: block;
  width: 100%;
  height: auto;
}

.page-certificate .doc-figure figcaption{
  padding: 10px 12px;
  font-size: 13px;
  opacity: .85;
}

.page-certificate .doc-cta-row{
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 960px){
  .page-certificate .doc-layout{
    grid-template-columns: 1fr;
  }
  .page-certificate .doc-sidenav__inner{
    position: relative;
    top: 0;
  }
  .page-certificate .doc-media-grid{
    grid-template-columns: 1fr;
  }
}
/* Alt links: only inside these certificate sections */
.page-certificate #available a,
.page-certificate #stackable a,
.page-certificate #badges a{
  color: #0b5bd3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-certificate #available a:hover,
.page-certificate #stackable a:hover,
.page-certificate #badges a:hover{
  color: #0846a3;
}

.doc-figure #credly-figure {
  height: 250px;
  width: auto;
  padding-top: 10px;
}
.doc-figure {
  align-items:center;
  justify-content:center;
  text-align: center;
  place-items:center;
}