/* =====================================================
   KANRAUL PORTAL — LIGHT PROFESSIONAL THEME
   Inspired by clean enterprise sites (deep indigo nav,
   white content, royal-blue accents, card-based layout)

   Palette:
   - Nav / headers: indigo gradient  #26246f → #3a37a8
   - Accent (links, buttons):         #2f5cff  (hover #1e46d6)
   - Ink text:                        #161a22
   - Muted text:                      #5c6673
   - Page background:                 #ffffff
   - Soft surface:                    #f4f6fa
   - Hairline border:                 #e3e8ef
   - Footer:                          #111528
   ===================================================== */

/* The hidden attribute must always win, even over display rules like
   `form { display: flex }` (author styles beat the UA's [hidden] rule). */
[hidden] { display: none !important; }

:root {
  --nav-a: #26246f;
  --nav-b: #3a37a8;
  --accent: #2f5cff;
  --accent-d: #1e46d6;
  --ink: #161a22;
  --ink-soft: #2a3340;
  --muted: #5c6673;
  --paper: #ffffff;
  --soft: #f4f6fa;
  --soft-2: #eef1f7;
  --line: #e3e8ef;
  --footer: #111528;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .06);
  --shadow-md: 0 12px 34px rgba(16, 24, 40, .12);
  --wrap: 1180px;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ===================== RESET ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ===================== NAVBAR ===================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--nav-a), var(--nav-b));
  box-shadow: 0 2px 14px rgba(20, 22, 60, .18);
}

/* index / about / contact use .navbar-container */
.navbar-container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar-logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.navbar-logo::before {
  content: "";
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #7aa2ff, #ffffff);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  flex: none;
}

.navbar-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.navbar-links li { list-style: none; }
.navbar-links a {
  color: #dfe3f5;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .18s ease, color .18s ease;
}
.navbar-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  text-decoration: none;
}

/* subsidiary pages use a bare <nav><ul> */
nav > ul {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
nav > ul li { list-style: none; }
nav > ul a {
  color: #dfe3f5;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .18s ease, color .18s ease;
}
nav > ul a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  text-decoration: none;
}

/* ===================== HERO (home) ===================== */
.hero {
  position: relative;
  overflow: hidden;
  max-width: none;
  margin: 0;
  padding: 5.5rem 24px 6rem;
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(122,162,255,.35), transparent 60%),
    linear-gradient(120deg, var(--nav-a), var(--nav-b));
  color: #fff;
  text-align: center;
  min-height: 0;
  display: block;
}
/* Large faded corporate-seal watermark on the left of the banner */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  max-width: 60vw;
  background: url("/images/uploads/logo-watermark.png") no-repeat center center;
  background-size: contain;
  opacity: .34;
  pointer-events: none;
  z-index: 0;
}
.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-copy { flex: 1; text-align: center; }

/* Executive profile on the right of the banner */
.hero-profile {
  flex: none;
  margin: 0;
  width: 500px;
  max-width: 46vw;
  text-align: center;
}
.hero-profile img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  border: none;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .45);
}
.hero-profile figcaption { margin-top: .85rem; }
.hero-profile strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.hero-profile span {
  display: block;
  color: #cdd6f5;
  font-size: .92rem;
  margin-top: .2rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin-bottom: 1rem;
}
.hero p,
.hero .subheading {
  color: #d6dbf3;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  margin-bottom: 0;
}

/* ===================== PAGE HEADER / BANNER ===================== */
.page-header,
.banner {
  max-width: none;
  margin: 0;
  background:
    radial-gradient(700px 300px at 88% -40%, rgba(122,162,255,.30), transparent 60%),
    linear-gradient(120deg, var(--nav-a), var(--nav-b));
  color: #fff;
  padding: 3.25rem 24px;
  text-align: center;
}
.page-header h1,
.banner h1 {
  color: #fff;
  max-width: var(--wrap);
  margin: 0 auto;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 820;
  letter-spacing: -.02em;
}

/* ===================== LAYOUT ===================== */
.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 3.5rem 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}

/* ===================== HEADINGS ===================== */
h1, h2 {
  color: var(--ink);
  font-weight: 820;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
section h1, section h2 { margin-bottom: 1.75rem; }
h3 {
  color: var(--ink);
  font-weight: 720;
  margin-bottom: .6rem;
  font-size: 1.2rem;
}
h4 { color: var(--ink); margin-bottom: .4rem; font-weight: 700; }
h5, h6 { color: var(--ink-soft); margin-bottom: .4rem; }

p { color: var(--ink-soft); }

/* ===================== HOME: ABOUT ===================== */
.about-section {
  text-align: center;
  max-width: 900px;
}
.about-section h2 { text-align: center; }
.about-section p { color: var(--muted); margin-bottom: 1rem; font-size: 1.05rem; }

/* ===================== HOME: SUBSIDIARIES ===================== */
.subsidiaries-section { text-align: center; }
.subsidiaries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 2rem;
  text-align: left;
}
.subsidiary-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.subsidiary-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #c9d3ff;
}
.subsidiary-card h3 { margin-top: 1rem; color: var(--ink); }
.subsidiary-card p { color: var(--muted); font-size: .96rem; margin: .5rem 0 1.25rem; }
.subsidiary-card a {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.subsidiary-card a:hover { text-decoration: underline; }
.subsidiary-logo { box-shadow: var(--shadow-sm); }

/* ===================== HOME: CTA ===================== */
.cta-section {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  padding: 3rem 2rem;
}
.cta-section h2 { color: var(--ink); }
.cta-section p { color: var(--muted); }
.cta-section a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.cta-section a:hover { background: var(--accent-d); transform: translateY(-2px); text-decoration: none; }

/* ===================== HOME: E2E CLOUD VIDEOS ===================== */
.videos-section { text-align: center; }
.ebooks-home-section {
  background: var(--soft-2);
  border: 1px solid #c9d3ff;
  border-radius: 16px;
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-bottom: 3rem;
}
.ebooks-home-section .btn { margin-top: 1.25rem; display: inline-block; }
.videos-intro { color: var(--muted); max-width: 640px; margin: .5rem auto 0; }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 2rem;
  text-align: left;
}
.video-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #c9d3ff;
}
.video-card h3 { margin-top: .9rem; color: var(--ink); font-size: 1.02rem; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
}

/* ===================== GENERIC CARDS / ARTICLES ===================== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
article h3 { color: var(--accent); }
article p { color: var(--muted); }

/* ===================== ABOUT: MISSION / VISION ===================== */
.mission-vision {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.mission-card, .vision-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.mission-card h3, .vision-card h3 { color: var(--ink); }
.mission-card p, .vision-card p { color: var(--muted); }

/* ===================== ABOUT: TIMELINE ===================== */
.timeline {
  position: relative;
  margin-top: 1rem;
  padding-left: 8px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 0 0 1.75rem 0;
  position: relative;
}
.timeline-year {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05rem;
  text-align: right;
  padding-top: 2px;
}
.timeline-content {
  border-left: 2px solid var(--line);
  padding: 0 0 .25rem 22px;
  position: relative;
}
.timeline-content::before {
  content: "";
  position: absolute;
  left: -7px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 92, 255, .15);
}
.timeline-content h4 { color: var(--ink); font-size: 1.05rem; }
.timeline-content p { color: var(--muted); }

/* ===================== CONTACT ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}
.contact-form-section,
.contact-info-section { padding: 0; max-width: none; margin: 0; }
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.info-card h3 { color: var(--ink); }
.info-card p { color: var(--muted); }

.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }

.subsidiaries-links { text-align: center; }
.subsidiaries-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 1.5rem;
  text-align: left;
}
.subsidiary-link {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.subsidiary-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #c9d3ff;
  text-decoration: none;
}
.subsidiary-link h3 { color: var(--accent); margin-bottom: .3rem; }
.subsidiary-link p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ===================== SUBSIDIARY PAGES ===================== */
main { display: block; }
.back-link {
  display: inline-block;
  margin: 1.5rem 24px 0;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

#description, #offerings, #gallery, .contact-section { max-width: var(--wrap); }

#offerings ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 1rem;
}
#offerings li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem 1.1rem .85rem 2.4rem;
  position: relative;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
#offerings li::before {
  content: "✓";
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 800;
}

.note {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  color: var(--muted);
}
.note a { color: var(--accent); }

/* ===================== GALLERY ===================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 1rem;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--paper);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; }
.gallery-item figcaption {
  padding: .7rem .9rem;
  font-size: .88rem;
  color: var(--muted);
}
.gallery-placeholder {
  aspect-ratio: 4 / 3;
  border: 2px dashed #cfd6e2;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, #f7f9fc, #f7f9fc 12px, #f1f4f9 12px, #f1f4f9 24px);
}

/* ===================== CONTACT SECTION (subsidiary) ===================== */
.contact-section {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
}
.contact-section h2 { color: var(--ink); }
.contact-section p { color: var(--ink-soft); }

/* ===================== BUTTONS ===================== */
button, .btn {
  background: var(--accent);
  color: #fff;
  padding: .78rem 1.6rem;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
button:hover, .btn:hover { background: var(--accent-d); transform: translateY(-2px); }
button:active, .btn:active { transform: translateY(0); }

/* ===================== FORMS ===================== */
form { display: flex; flex-direction: column; gap: 1rem; }
input, textarea, select {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #cbd3df;
  padding: .8rem .9rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 92, 255, .15);
}
input::placeholder, textarea::placeholder { color: #9aa3b2; }
textarea { min-height: 140px; resize: vertical; }
label { color: var(--ink-soft); font-weight: 600; margin-bottom: .3rem; }

/* ===================== LINKS ===================== */
a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { text-decoration: underline; }

/* ===================== FOOTER ===================== */
footer {
  background: var(--footer);
  color: #aeb6c8;
  padding: 2.5rem 24px;
  margin-top: 3.5rem;
}
.footer-container {
  max-width: var(--wrap);
  margin: 0 auto;
}
.footer-address { color: #d7dce8; font-style: normal; line-height: 1.7; }
.footer-email { margin-top: .75rem; }
.footer-email a, footer a { color: #7aa2ff; }
.footer-email a:hover, footer a:hover { color: #a9c2ff; }
.footer-copyright {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .9rem;
  color: #8b93a7;
}

/* ===================== UTILITIES ===================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 2rem; }
.hidden { display: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .subsidiaries-grid,
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar-container { flex-wrap: wrap; min-height: 0; padding: 12px 18px; gap: 10px; }
  .navbar-links { flex-wrap: wrap; gap: 4px; }
  .navbar-links a, nav > ul a { padding: 7px 10px; font-size: .9rem; }
  nav > ul { flex-wrap: wrap; min-height: 0; padding: 12px 18px; }
  .subsidiaries-grid,
  .subsidiaries-list,
  .videos-grid,
  .mission-vision,
  #offerings ul { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 74px 1fr; gap: 12px; }
  .hero { padding: 4rem 20px 4.5rem; }
  .hero::before { width: 340px; height: 340px; left: -10px; opacity: .20; }
  .hero-container { flex-direction: column; gap: 28px; }
  .hero-profile { width: 92vw; max-width: 460px; }
  .hero-profile img { width: 100%; height: auto; }
  section { padding: 2.5rem 20px; }
}

@media (max-width: 480px) {
  body { font-size: .97rem; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-year { text-align: left; }
  .timeline-content { border-left: none; padding-left: 0; }
  .timeline-content::before { display: none; }
  button, .btn { width: 100%; }
}

/* ===================== R&D / PROJECTS ===================== */
.page-header p {
  color: #d6dbf3;
  max-width: 720px;
  margin: .85rem auto 0;
  font-size: 1.05rem;
}
.rd-intro { max-width: 760px; margin-bottom: 2rem; }
.rd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  text-align: left;
}
.rd-card-wrap { display: flex; flex-direction: column; }
.rd-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}
.rd-card h3 { margin-top: .9rem; color: var(--ink); }
.rd-card .rd-desc { color: var(--muted); font-size: .96rem; margin: .5rem 0 0; }

/* Linked (live or completed-with-link): obviously clickable */
.rd-card--live,
.rd-card--linked {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rd-card--live:hover,
.rd-card--linked:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #c9d3ff;
  text-decoration: none;
}
.rd-card .rd-cta {
  margin-top: 1.1rem;
  color: var(--accent);
  font-weight: 700;
  font-size: .93rem;
}
.rd-card .rd-cta span { display: inline-block; transition: transform .18s ease; }
.rd-card--live:hover .rd-cta span,
.rd-card--linked:hover .rd-cta span { transform: translateX(4px); }

/* Beta / Planned / Completed without a link: intentionally non-interactive */
.rd-card--beta:not(.rd-card--linked),
.rd-card--planned:not(.rd-card--linked),
.rd-card--completed:not(.rd-card--linked) {
  cursor: default;
}
.rd-card--beta .rd-desc,
.rd-card--planned .rd-desc,
.rd-card--completed .rd-desc { color: var(--muted); }

.rd-status-line {
  margin: .4rem 0 0;
  font-size: .88rem;
  font-weight: 700;
  color: #b45309;
}

.rd-sublabel {
  display: block;
  margin-top: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .01em;
}

.rd-attribution {
  margin: .6rem 2px 0;
  padding-top: .6rem;
  border-top: 1px dashed var(--line);
  font-size: .82rem;
  color: var(--muted);
}

/* Status badges — three distinct styles: live / beta / planned */
.rd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.rd-badge--live {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.rd-badge--live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .18);
  animation: rd-pulse 1.8s ease-in-out infinite;
}
@keyframes rd-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.rd-badge--beta {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.rd-badge--planned {
  background: transparent;
  color: var(--muted);
  border: 1px dashed #cbd3df;
}
.rd-badge--completed {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}
.rd-badge--completed::before { content: "✓"; font-size: .9em; }
.rd-badge--resource {
  background: var(--soft-2);
  color: var(--accent-d);
  border: 1px solid #c9d3ff;
}
.rd-badge--gated {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #c4b5fd;
}
.rd-badge--gated::before { content: "🔒"; font-size: .8em; }

.pr-banner {
  max-width: 520px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: .9rem 1.2rem;
  color: #92400e;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 1.25rem;
}

/* Course page */
.course-free-badge {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.course-hero-cta { margin-top: 1.4rem; display: inline-block; }
.course-section { margin-bottom: 3rem; }
.course-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.course-fact {
  background: var(--soft-2);
  border: 1px solid #c9d3ff;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.course-fact-value { font-size: 1.35rem; font-weight: 800; color: var(--accent-d); }
.course-fact-label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.course-note { color: var(--muted); font-size: .95rem; max-width: 860px; }

/* Requirements & qualifications */
.course-req-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 1.25rem;
}
@media (max-width: 768px) { .course-req-grid { grid-template-columns: 1fr; } }
.course-req-card h3 { color: var(--ink); margin-bottom: .75rem; }
.course-req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.course-req-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-soft);
  font-size: .96rem;
}
.course-req-list li::before {
  content: "✓";
  position: absolute;
  left: .25rem;
  color: var(--accent);
  font-weight: 800;
}

/* Advance-information banner + closed-reservations notice */
.course-soon-banner {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 1rem 1.3rem;
  color: #92400e;
  font-size: .96rem;
  margin: 2rem 0 0;
}
.course-closed-notice { border-left: 4px solid #f59e0b; }
.course-closed-notice h3 { color: var(--ink); }
.course-closed-notice p { color: var(--muted); }

.course-module { margin-bottom: 1.5rem; }
.course-module-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .8rem;
  margin-bottom: 1rem;
}
.course-module-head h3 { color: var(--ink); margin: 0; }
.course-hours {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #c4b5fd;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.course-sessions { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .9rem; }
.course-sessions strong { color: var(--ink); }
.course-sessions p { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
.course-reserve-card { max-width: 620px; }
.course-reserve-card textarea { min-height: 70px; }
.course-privacy { color: var(--muted); font-size: .82rem; margin: .4rem 0 1rem; }
.course-success h3 { color: #15803d; }
.course-success p { color: var(--muted); margin-top: .5rem; }

/* Visitor gate */
.rd-gate { max-width: 520px; margin-bottom: 2rem; }
.rd-gate[hidden] { display: none !important; }
.rd-gate-cancel {
  align-self: flex-start;
  margin-top: .6rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  font-size: .88rem;
  text-decoration: underline;
}
.rd-gate-cancel:hover { color: var(--ink); }
.rd-gate h3 { color: var(--ink); }
.rd-gate > p { color: var(--muted); font-size: .92rem; margin: .4rem 0 1.25rem; }
.rd-gate .btn { align-self: flex-start; }
.rd-gate-error {
  color: #c0392b;
  font-size: .88rem;
  min-height: 1.2em;
}
/* Honeypot: invisible to real visitors, still reachable by bots that fill every field */
.rd-hp { position: absolute; pointer-events: none; }
.rd-hp label,
.rd-hp input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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