/* ==========================================================================
   DUBURI v2 — Editorial Oceanic Design System
   Motto: "From the surface to the depth."
   Primary: Deep Ocean Water (#022331 / #03364A / #054A63)
   Accent: Deep Burnt Coral Orange (#CC470A / Hover #A63604)
   ========================================================================== */

:root {
  /* Deep Ocean Primary Palette */
  --ocean-950: #02202E;
  --ocean-900: #033346;
  --ocean-800: #054A63;
  --ocean-700: #086382;
  --ocean-600: #0D80A3;
  --ocean-400: #42B2C8;
  --ocean-300: #7AD4E3;
  --ocean-200: #BFE8F0;
  --ocean-100: #E5F3F7;
  --ocean-50:  #F1F8FA;

  /* Harder, Darker Burnt Coral-Orange Accent (Refined for authority & warmth) */
  --coral-700: #872A03;
  --coral-600: #A83705;
  --coral-500: #CC470A; /* Primary button & focal accent */
  --coral-400: #E05C1E; /* Subtle luminous pulse on dark ocean */
  --coral-100: #FCECE4;
  --coral-text-on-light: #9E3405; /* High contrast on pearl/white */

  /* Calm Editorial Neutrals */
  --surface-white: #FFFFFF;
  --surface-pearl: #FAFBF9;
  --surface-mist:  #EFF5F7;
  --surface-sand:  #F4F2EC;

  /* High-Contrast Ink Colors (Effortless reading for all ages) */
  --ink-900: #0B2029;
  --ink-700: #223D49;
  --ink-600: #3C5763;
  --ink-on-ocean: #FFFFFF;
  --ink-on-ocean-muted: rgba(238, 249, 253, 0.88);

  /* Architectural Hairlines */
  --line-subtle: rgba(5, 74, 99, 0.13);
  --line-strong: rgba(5, 74, 99, 0.25);
  --line-on-ocean: rgba(191, 232, 240, 0.2);

  /* Typography */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Rubik', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-bn: 'Noto Sans Bengali', 'Rubik', sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --font-calligraphy: 'Amiri Quran', 'Amiri', 'Traditional Arabic', serif;

  /* Generous Editorial Scale */
  --container-max: 1380px;
  --container-narrow: 1180px;
  --gutter: clamp(1.25rem, 3.2vw, 2.5rem);
  --section-pad: clamp(5.25rem, 9.5vw, 9rem);
  --radius-sm: 11px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  /* Oceanic Wave Easing: Surges swiftly, then glides slowly into stillness */
  --ease-wave: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-swell: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1.02rem + 0.22vw, 1.1875rem); /* 17px mobile -> 19px desktop (Rubik has a generous x-height) */
  line-height: 1.74;
  color: var(--ink-900);
  background-color: var(--surface-pearl);
  overflow-x: clip;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--coral-500);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 1rem 1.5rem;
  background: var(--ocean-900);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: var(--radius-sm);
}

/* Top Scroll Tide Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--ocean-400), var(--coral-500));
  z-index: 120;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-pad);
  position: relative;
  overflow: clip;
}

.section--white { background-color: var(--surface-white); }
.section--pearl { background-color: var(--surface-pearl); }
.section--mist  { background-color: var(--surface-mist); }

.section--ocean {
  background: radial-gradient(ellipse at 22% 16%, #096380 0%, #054860 44%, #033245 76%, #022332 100%);
  color: var(--ink-on-ocean);
  overflow: hidden;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--line-subtle);
  margin: 0;
}

/* ==========================================================================
   CLEAN ARCHITECTURAL OCEAN SHAPES & BATHYMETRIC DECOR (Subtle, Non-Cluttered)
   ========================================================================== */
.ocean-contour {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  color: var(--ocean-700);
  opacity: 0.065;
  will-change: transform;
  animation: contourDrift 24s ease-in-out infinite alternate;
}

.ocean-contour--top-right {
  top: -90px;
  right: -120px;
  width: clamp(320px, 42vw, 560px);
  height: auto;
}

.ocean-contour--bottom-left {
  bottom: -110px;
  left: -130px;
  width: clamp(300px, 38vw, 520px);
  height: auto;
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}

.ocean-contour--on-ocean {
  color: var(--ocean-200);
  opacity: 0.1;
}

@keyframes contourDrift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(-14px, 12px, 0) rotate(2.5deg) scale(1.03); }
  100% { transform: translate3d(10px, -10px, 0) rotate(-2deg) scale(0.98); }
}

/* Living Multi-Layer Infinite Seamless SVG Ocean Wave Transitions */
.wave-separator {
  position: relative;
  width: 100%;
  height: clamp(42px, 5.2vw, 68px);
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 3;
  margin-top: -1px;
  margin-bottom: -1px;
}

.wave-separator svg.wave-layer {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 200% !important;
  min-width: 200%;
  max-width: none !important;
  height: calc(100% + 2px);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  shape-rendering: geometricPrecision;
}

.wave-layer-1 {
  animation: waveGlideInfinite 22s linear infinite;
}

.wave-layer-2 {
  animation: waveGlideInfiniteReverse 34s linear infinite;
}

.wave-layer-3 {
  animation: waveGlideInfinite 48s linear infinite;
}

@keyframes waveGlideInfinite {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes waveGlideInfiniteReverse {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Editorial Depth Marker ("01 · SURFACE" -> "04 · DEPTH") */
.depth-marker {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean-700);
  margin-bottom: 1.4rem;
}

.depth-marker__line {
  display: inline-block;
  width: 34px;
  height: 1.5px;
  background: var(--coral-500);
  transform-origin: left;
}

.depth-marker--on-ocean {
  color: var(--ocean-200);
}

.depth-marker--on-ocean .depth-marker__line {
  background: var(--coral-400);
}

/* ==========================================================================
   TYPOGRAPHY SYSTEM & FLOWING OCEAN TEXT ANIMATIONS
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ocean-700);
  margin-bottom: 1.25rem;
}

.eyebrow--coral {
  color: var(--coral-text-on-light);
}

.eyebrow--on-ocean {
  color: var(--ocean-200);
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Signature Motto Lockup: "From the surface to the depth." */
.motto-line {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  color: var(--ocean-200);
  margin-bottom: 1.35rem;
  letter-spacing: 0.01em;
}

.motto-line__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral-400);
  box-shadow: 0 0 14px rgba(224, 92, 30, 0.75);
  flex-shrink: 0;
}

h1, h2, h3, h4, .serif-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  letter-spacing: -0.022em;
  color: var(--ink-900);
}

.section--ocean h1,
.section--ocean h2,
.section--ocean h3,
.section--ocean .serif-heading {
  color: var(--ink-on-ocean);
}

.h1 {
  font-size: clamp(2.85rem, 5.7vw, 5.1rem);
  line-height: 1.05;
  margin-bottom: 1.75rem;
}

.h2 {
  font-size: clamp(2.2rem, 4vw, 3.55rem);
  line-height: 1.12;
  margin-bottom: 1.5rem;
}

.h3 {
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  line-height: 1.24;
  margin-bottom: 0.9rem;
}

.lead {
  font-size: clamp(1.1875rem, 1.12rem + 0.32vw, 1.375rem);
  line-height: 1.74;
  color: var(--ink-700);
  max-width: 68ch;
}

.section--ocean .lead {
  color: var(--ink-on-ocean-muted);
}

.prose p {
  margin-bottom: 1.55rem;
  color: var(--ink-700);
  max-width: 72ch;
}
.prose p:last-child {
  margin-bottom: 0;
}

.bn-label {
  font-family: var(--font-bn);
  font-weight: 500;
  font-size: 0.92em;
  color: var(--ocean-700);
}

.section--ocean .bn-label {
  color: var(--ocean-200);
}

.arabic-bismillah {
  font-family: var(--font-calligraphy);
  font-weight: 400;
  font-size: clamp(2.05rem, 4.3vw, 3.45rem);
  line-height: 1.95;
  letter-spacing: 0;
  font-feature-settings: "liga" 1, "calt" 1;
  color: #F0FAFD;
  text-shadow: 0 6px 26px rgba(1, 20, 32, 0.34);
  margin-bottom: 1rem;
  display: block;
}

/* Flowing Waterline Heading Reveal (Words rise out of the tide with wave easing) */
.water-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-block: 0.14em;
  margin-block: -0.14em;
}

.water-word-inner {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 112%, 0) skewY(2.2deg);
  transition:
    transform 1.05s var(--ease-wave),
    opacity 0.75s var(--ease-smooth);
}

.is-flowing .water-word-inner {
  opacity: 1;
  transform: translate3d(0, 0, 0) skewY(0deg);
}

/* Word-by-word flowing prose sentences (live written-on-water cadence) */
.water-phrase {
  display: inline;
  opacity: 0.08;
  filter: blur(3px);
  transition:
    opacity 0.9s var(--ease-wave),
    filter 0.85s var(--ease-smooth);
}

.is-flowing .water-phrase {
  opacity: 1;
  filter: blur(0);
}

/* General Editorial Wave Reveal for Cards & Modules */
.reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.985);
  transition:
    opacity 0.95s var(--ease-wave),
    transform 1.15s var(--ease-wave);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ==========================================================================
   CLEAN BESPOKE ICON SYSTEM (Minimalist Architectural Icons — Zero Clutter)
   ========================================================================== */
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E2F0F5;
  border: 1.5px solid rgba(5, 74, 99, 0.26);
  color: var(--ocean-900);
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-wave), background-color 0.3s, border-color 0.3s, color 0.3s;
}

.icon-badge svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge--coral {
  background: #E2F0F5;
  border-color: rgba(5, 74, 99, 0.26);
  color: var(--ocean-900);
}

.icon-badge--on-ocean {
  background: rgba(191, 232, 240, 0.12);
  border: 1.5px solid rgba(191, 232, 240, 0.34);
  color: #D5F2F8;
}

.editorial-card:hover .icon-badge,
.editorial-card:hover .icon-badge--coral {
  transform: translateY(-3px) scale(1.04);
  background: var(--ocean-800);
  border-color: var(--ocean-800);
  color: #FFFFFF;
}

/* Bespoke Minimalist Card Art Plates (Clean Oceanic Geometric Header Strips) */
.card-art-plate {
  position: relative;
  height: 112px;
  margin: calc(clamp(2rem, 3.5vw, 2.75rem) * -1) calc(clamp(2rem, 3.5vw, 2.75rem) * -1) 1.75rem;
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
  background: linear-gradient(135deg, #033548 0%, #06536E 62%, #0B7394 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.25rem clamp(1.75rem, 3vw, 2.5rem);
}

.card-art-plate--mist {
  background: linear-gradient(135deg, #E7F3F7 0%, #D5EAF0 60%, #C6E2EB 100%);
}

.card-art-plate svg.art-geometry {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.card-art-plate__label {
  position: relative;
  z-index: 2;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean-200);
}

.card-art-plate--mist .card-art-plate__label {
  color: var(--ocean-800);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line-subtle);
  transition: box-shadow 0.35s var(--ease-smooth), background-color 0.35s var(--ease-smooth);
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 34px rgba(3, 51, 70, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1.5rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--ocean-900);
  flex-shrink: 0;
}

.brand-mark__badge {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--ocean-800);
  border-radius: 7px;
  overflow: hidden;
  line-height: 1;
  transition: transform 0.35s var(--ease-wave), box-shadow 0.35s;
}

.brand-mark:hover .brand-mark__badge {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 74, 99, 0.14);
}

.brand-mark__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ocean-900);
  padding: 0.48rem 0.62rem;
}

.brand-mark__icon svg {
  width: 24px;
  height: 24px;
}

.brand-mark__word {
  padding: 0.5rem 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ocean-900);
  background: var(--surface-white);
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2.35rem;
}

.main-nav a {
  font-size: 1.03125rem;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.25s var(--ease-smooth);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--coral-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-wave);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ocean-900);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.25s;
}

.menu-toggle:hover {
  background-color: var(--ocean-50);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ocean-900);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-wave), opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 78px 0 0 0;
  background: radial-gradient(ellipse at 20% 14%, #096380 0%, #054A63 42%, #033346 76%, #02202E 100%);
  color: var(--ink-on-ocean);
  border-top: 1px solid rgba(191, 232, 240, 0.16);
  z-index: 95;
  padding: 2.25rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.4s var(--ease-wave), transform 0.4s var(--ease-wave);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-drawer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-drawer__links li {
  border-bottom: 1px solid rgba(191, 232, 240, 0.16);
}

.mobile-drawer__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #FFFFFF;
  transition: color 0.25s, transform 0.3s var(--ease-wave);
}

.mobile-drawer__links a:hover {
  color: var(--ocean-200);
  transform: translateX(4px);
}

.mobile-drawer__links a span.arrow {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  color: var(--coral-400);
}

.mobile-drawer__footer {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mobile-drawer__motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ocean-200);
}

.mobile-drawer__email {
  font-size: 0.95rem;
  color: rgba(238, 249, 253, 0.82);
}

.mobile-drawer__email a {
  color: #FFFFFF;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   BUTTONS & LINKS (Harder Deep Burnt Coral-Orange #CC470A)
   ========================================================================== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.98rem 1.95rem;
  border-radius: var(--radius-pill);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    transform 0.35s var(--ease-wave),
    background-color 0.25s,
    border-color 0.25s,
    box-shadow 0.35s;
  white-space: nowrap;
}

.btn--sm {
  padding: 0.68rem 1.4rem;
  font-size: 0.96875rem;
}

.btn--coral {
  background: #D44B0D;
  color: #FFFFFF;
  border: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(180, 56, 4, 0.24);
}

.btn--coral:hover {
  background: #B83D06;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(168, 55, 5, 0.32);
}

.btn--coral:active {
  transform: translateY(0) scale(0.985);
  background: #9E3204;
  box-shadow: 0 2px 8px rgba(135, 42, 3, 0.24);
}

.btn--ocean {
  background-color: var(--ocean-800);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(3, 51, 70, 0.22);
}

.btn--ocean:hover {
  background-color: var(--ocean-900);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 32, 46, 0.3);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(191, 232, 240, 0.36);
  color: #FFFFFF;
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.0625rem;
  font-weight: 600;
  padding-bottom: 0.32rem;
  border-bottom: 1.5px solid currentColor;
  transition: opacity 0.25s, gap 0.35s var(--ease-wave), color 0.25s;
}

.text-link:hover {
  opacity: 0.85;
  gap: 0.85rem;
}

.text-link--ocean {
  color: var(--ocean-800);
}

.text-link--coral {
  color: var(--coral-text-on-light);
}

.text-link--light {
  color: var(--ink-on-ocean);
}

.btn-ripple-ring {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  transform: scale(0);
  animation: btnWaterRipple 0.72s var(--ease-wave) forwards;
  pointer-events: none;
}

@keyframes btnWaterRipple {
  to {
    transform: scale(4.2);
    opacity: 0;
  }
}

/* ==========================================================================
   TRUE 2D FLUID WATER WAVE ENGINE CANVAS (Every Ocean Section)
   ========================================================================== */
.ocean-canvas-wrap {
  position: relative;
  isolation: isolate;
}

.water-wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.ocean-canvas-wrap > .container,
.ocean-canvas-wrap > .hero-footer-bar,
.ocean-canvas-wrap > .wave-separator {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   HERO SECTION (Balanced Above-the-Fold Viewport Fit — Zero Cutoff)
   ========================================================================== */
.hero {
  padding-top: clamp(2rem, 4.2vh, 3.5rem);
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 992px) {
  .hero {
    min-height: calc(100svh - 78px);
    padding-top: 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.15rem;
  align-items: center;
  margin-block: auto;
  padding-block: clamp(1.5rem, 3.4vh, 2.75rem);
}

@media (min-width: 992px) {
  .hero-grid {
    gap: clamp(2.5rem, 4vw, 3.75rem);
  }
}

.hero .motto-line {
  font-size: clamp(1.0625rem, 1.35vw, 1.32rem);
  margin-bottom: 0.85rem;
}

.hero .h1 {
  font-size: clamp(2.45rem, 4.15vw, 4.15rem);
  line-height: 1.07;
  margin-bottom: 1.2rem;
}

.hero .lead {
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.22rem);
  line-height: 1.66;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem 1.85rem;
  margin-top: 1.65rem;
}

.hero-footer-bar {
  border-top: 1px solid var(--line-on-ocean);
  padding-block: 0.95rem;
  background: rgba(2, 28, 40, 0.22);
}

.hero-footer-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 1rem;
  color: var(--ink-on-ocean-muted);
}

.ripple-hint {
  font-size: 0.9375rem;
  color: var(--ocean-200);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

/* ==========================================================================
   MID-PAGE OCEAN MOTTO IMMERSION BAND ("From the surface to the depth.")
   ========================================================================== */
.motto-band {
  padding-block: clamp(5.5rem, 10vw, 8.75rem);
  text-align: center;
}

.motto-band__quote {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.4vw, 4.65rem);
  line-height: 1.08;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.motto-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
  text-align: left;
}

.motto-metric-card {
  background: rgba(2, 32, 46, 0.42);
  border: 1px solid rgba(191, 232, 240, 0.22);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  transition: transform 0.45s var(--ease-wave), border-color 0.3s, background-color 0.3s;
}

.motto-metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(191, 232, 240, 0.46);
  background: rgba(3, 44, 62, 0.56);
}

.motto-metric-card__num {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  line-height: 1;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.motto-metric-card__label {
  font-size: 1rem;
  color: var(--ink-on-ocean-muted);
  line-height: 1.5;
}

/* ==========================================================================
   INTERACTIVE TABBED ECOSYSTEM
   ========================================================================== */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.35rem;
  border-bottom: 1px solid var(--line-subtle);
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}

.tab-btn {
  background: none;
  border: 0;
  padding: 1rem 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.tab-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2.5px;
  background: var(--coral-500);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-wave);
}

.tab-btn[aria-selected="true"] {
  color: var(--ocean-900);
}

.tab-btn[aria-selected="true"]::after {
  transform: scaleX(1);
}

.tab-panel {
  display: none;
  animation: panelWaveIn 0.65s var(--ease-wave);
}

.tab-panel.is-active {
  display: block;
}

@keyframes panelWaveIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.editorial-feature-box {
  background: var(--surface-mist);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.75rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-block: 1.75rem 2.25rem;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  color: var(--ink-700);
}

.feature-checklist li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral-500);
  margin-top: 0.65rem;
  flex-shrink: 0;
}

.preview-card-stack {
  background: var(--surface-white);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: clamp(1.65rem, 3vw, 2.35rem);
  box-shadow: 0 22px 54px rgba(5, 74, 99, 0.08);
  position: relative;
  overflow: hidden;
}

.preview-card-stack__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--line-subtle);
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  color: var(--ocean-700);
  font-weight: 700;
}

/* ==========================================================================
   EDITORIAL CARDS & CATALOG GRIDS
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.85rem, 3vw, 2.5rem);
  margin-top: 3rem;
}

.editorial-card {
  background: var(--surface-white);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: clamp(2rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s var(--ease-wave),
    border-color 0.35s,
    box-shadow 0.5s var(--ease-wave);
}

.editorial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(5, 74, 99, 0.32);
  box-shadow: 0 24px 52px rgba(5, 74, 99, 0.09);
}

.editorial-card--tinted {
  background: var(--surface-mist);
}

.card-head-with-icon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.36rem 0.95rem;
  border-radius: var(--radius-pill);
}

.status-badge--ready {
  background: var(--coral-100);
  color: var(--coral-text-on-light);
}

.status-badge--ongoing {
  background: var(--ocean-100);
  color: var(--ocean-800);
}

.status-badge--pipeline {
  background: var(--surface-sand);
  color: var(--ink-700);
}

.episode-meta {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-600);
}

.editorial-card p {
  color: var(--ink-700);
}

.card-footer-row {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ==========================================================================
   ACCORDION ROWS (Roadmap & FAQs)
   ========================================================================== */
.accordion-list {
  margin-top: 3rem;
  border-top: 1px solid var(--line-subtle);
}

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

.accordion-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding-block: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  cursor: pointer;
  color: var(--ink-900);
  transition: color 0.25s;
}

.accordion-trigger:hover {
  color: var(--ocean-700);
}

.accordion-trigger__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.accordion-index {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--coral-text-on-light);
  min-width: 1.9rem;
}

.accordion-title {
  font-family: var(--font-sans);
  font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.35;
}

.accordion-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ocean-800);
  transition: transform 0.35s var(--ease-wave), opacity 0.25s;
}

.accordion-icon::before {
  width: 18px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.accordion-icon::after {
  width: 2px;
  height: 18px;
  transform: translate(-50%, -50%);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.48s var(--ease-wave);
}

.accordion-panel.is-open {
  grid-template-rows: 1fr;
}

.accordion-panel__inner {
  overflow: hidden;
}

.accordion-panel__content {
  padding-bottom: 2rem;
  padding-left: clamp(0rem, 3vw, 3.15rem);
  color: var(--ink-700);
  max-width: 68ch;
}

/* ==========================================================================
   PULL QUOTE / COMMUNITY VOICE
   ========================================================================== */
.editorial-quote {
  border-left: 3.5px solid var(--coral-500);
  padding: 0.65rem 0 0.65rem clamp(1.5rem, 3vw, 2.6rem);
  margin-block: 2.75rem;
  background: linear-gradient(90deg, rgba(204, 71, 10, 0.05) 0%, transparent 65%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.editorial-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.36;
  color: var(--ocean-900);
  font-style: italic;
  margin-bottom: 1rem;
}

.editorial-quote figcaption {
  font-size: 1rem;
  color: var(--ink-600);
  font-weight: 500;
}

/* ==========================================================================
   FILTER PILLS
   ========================================================================== */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.filter-pill {
  padding: 0.72rem 1.48rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--surface-white);
  color: var(--ink-700);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-wave);
}

.filter-pill:hover {
  border-color: var(--ocean-800);
  color: var(--ocean-900);
  transform: translateY(-1px);
}

.filter-pill.is-active {
  background: var(--ocean-800);
  border-color: var(--ocean-800);
  color: #FFFFFF;
}

.course-item.is-hidden {
  display: none;
}

/* ==========================================================================
   STUDIO FILM SHOWCASE CARDS
   ========================================================================== */
.film-card {
  background: linear-gradient(155deg, #043C52 0%, #022230 100%);
  color: var(--ink-on-ocean);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 4.5vw, 3.75rem);
  border: 1px solid rgba(126, 214, 227, 0.22);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 26px 62px rgba(2, 28, 40, 0.2);
}

.film-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 30% 25%, rgba(13, 130, 166, 0.52), rgba(2, 22, 32, 0.98));
  border: 1px solid rgba(191, 232, 240, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.film-play-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #D44B0D;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 12px rgba(204, 71, 10, 0.24);
  transition: transform 0.45s var(--ease-wave), box-shadow 0.45s;
  position: relative;
  z-index: 2;
}

.film-card:hover .film-play-ring {
  transform: scale(1.09);
  box-shadow: 0 0 0 18px rgba(204, 71, 10, 0.3);
}

/* ==========================================================================
   FORMS & UNIFIED FRONT DOOR
   ========================================================================== */
.form-card {
  background: var(--surface-white);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  box-shadow: 0 24px 60px rgba(5, 74, 99, 0.07);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.field label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ocean-900);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-pearl);
  font-size: 1.0625rem;
  color: var(--ink-900);
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ocean-700);
  background: var(--surface-white);
  box-shadow: 0 0 0 4px rgba(13, 128, 163, 0.14);
}

.field textarea {
  min-height: 148px;
  resize: vertical;
}

.form-feedback {
  display: none;
  margin-top: 1.5rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--ocean-50);
  border: 1px solid var(--ocean-400);
  color: var(--ocean-900);
}

.form-feedback.is-visible {
  display: block;
}

/* ==========================================================================
   CLOSING OCEAN CTA BAND
   ========================================================================== */
.closing-cta {
  text-align: center;
  padding-block: clamp(5.75rem, 11vw, 9.75rem);
}

.closing-cta .lead {
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--surface-white);
  border-top: 1px solid var(--line-subtle);
  padding-block: clamp(3.5rem, 6vw, 5.25rem) 2.75rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--line-subtle);
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ocean-700);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  list-style: none;
}

.footer-nav a {
  font-size: 1.03125rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: color 0.25s;
}

.footer-nav a:hover {
  color: var(--coral-text-on-light);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  font-size: 0.96875rem;
  color: var(--ink-600);
}

/* ==========================================================================
   SUBPAGE HERO
   ========================================================================== */
.page-hero {
  padding-block: clamp(4.5rem, 8.2vw, 7rem);
}

.page-hero .h1 {
  font-size: clamp(2.85rem, 5.4vw, 4.75rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  max-width: 19ch;
}

.page-hero .lead {
  font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.125rem);
  line-height: 1.54;
  color: rgba(232, 247, 252, 0.72);
  max-width: 58ch;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (min-width: 768px) {
  .cards-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .motto-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .editorial-feature-box {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .film-card {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .main-nav {
    display: flex;
  }
  .menu-toggle,
  .mobile-drawer {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1.18fr 0.82fr;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .water-flow-block,
  .water-word-inner,
  .water-phrase {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .pulse-dot,
  .ocean-contour,
  .wave-layer-1,
  .wave-layer-2,
  .wave-layer-3 {
    animation: none !important;
  }
}

/* Mobile Drawer Active Page Subtle Highlight */
.mobile-drawer__links a[aria-current="page"] {
  color: var(--ocean-300);
}

/* Crisp Small-Screen Header Breathing Room (320px - 420px) */
@media (max-width: 420px) {
  .header-inner {
    gap: 0.65rem;
    min-height: 76px;
  }
  .brand-mark__word {
    padding: 0.44rem 0.65rem;
    font-size: 0.92rem;
    letter-spacing: 0.12em;
  }
  .header-actions {
    gap: 0.45rem;
  }
  .header-actions .btn--sm {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  .mobile-drawer {
    inset: 76px 0 0 0;
  }
}

/* Interactive Film Play Button Link Polish */
a.film-play-ring {
  cursor: pointer;
  text-decoration: none;
}

/* Short Desktop/Laptop Viewport Fit Guard (700px - 820px height) */
@media (min-width: 992px) and (max-height: 820px) {
  .hero-grid {
    padding-block: 1.15rem;
  }
  .hero .h1 {
    font-size: clamp(2.25rem, 3.6vw, 3.45rem);
    margin-bottom: 0.9rem;
  }
  .hero-actions {
    margin-top: 1.25rem;
  }
  .hero-footer-bar {
    padding-block: 0.7rem;
  }
  .wave-separator {
    height: 44px;
  }
}

/* ==========================================================================
   HERO ARCHITECTURAL ARCH SANCTUARY v10
   - Luminous Pearl-White Upper Surface (~62%) + Deep Ocean Depth Zone (~38%)
   - Luminous Arch Sanctuary Header hugging the top arch curve
   - Infinitely Expanding & Reflecting Ocean Ripple Medallion
   - Interactive 3-Pillar Sanctuary Switcher + Seamless Animated Wave Waterline
   ========================================================================== */
.hero-sanctuary {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (min-width: 992px) {
  .hero-sanctuary {
    justify-content: flex-end;
  }
}

.sanctuary-arch-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
}

/* Whisper-thin offset architectural outer arch line floating over the ocean */
.sanctuary-arch-outline {
  position: absolute;
  inset: -11px 11px 11px -11px;
  border-radius: 232px 232px 28px 28px;
  border: 1px solid rgba(191, 232, 240, 0.30);
  pointer-events: none;
  transition: transform 0.7s var(--ease-wave), border-color 0.45s;
}

.sanctuary-arch-wrap:hover .sanctuary-arch-outline {
  transform: translate3d(-4px, -4px, 0);
  border-color: rgba(191, 232, 240, 0.52);
}

.sanctuary-arch {
  position: relative;
  width: 100%;
  border-radius: 224px 224px 24px 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FCFD 52%, #E9F4F7 100%);
  box-shadow:
    0 34px 80px rgba(1, 18, 28, 0.48),
    0 10px 28px rgba(1, 22, 34, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: column;
  transition: transform 0.6s var(--ease-wave), box-shadow 0.6s var(--ease-wave);
}

.sanctuary-arch-wrap:hover .sanctuary-arch {
  transform: translateY(-3px);
  box-shadow:
    0 42px 92px rgba(1, 18, 28, 0.54),
    0 12px 32px rgba(1, 22, 34, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* UPPER LUMINOUS WHITE SURFACE (~60% Crisp White + Curved Calligraphy + Ripples) */
.sanctuary-surface {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 6.6rem 1.25rem 1.15rem;
  min-height: 368px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(13, 128, 163, 0.085) 0%, rgba(13, 128, 163, 0.02) 48%, transparent 72%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FCFD 62%, #EDF6F8 100%);
}

/* Infinitely Expanding & Reflecting Ripple Medallion Stage */
.sanctuary-ripple-stage {
  position: relative;
  z-index: 2;
  width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
  margin-block: 0.65rem 1.65rem;
}

/* Sculpted 3D Liquid Water Ripple Canvas Filling White Arch Surface */
.sanctuary-ripple-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* Slow Bathymetric Orbital Ring */
.s-orbit {
  position: absolute;
  width: 152px;
  height: 152px;
  pointer-events: none;
  will-change: transform;
  animation: sanctuaryOrbitSpin 44s linear infinite;
}

@keyframes sanctuaryOrbitSpin {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(0, 0, 0) rotate(360deg); }
}

/* Rich Deep-Ocean Core Medallion */
.sanctuary-core {
  position: relative;
  z-index: 3;
  width: 102px;
  height: 102px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, #0B7394 0%, #054A63 48%, #022534 100%);
  border: 2.5px solid #FFFFFF;
  box-shadow:
    0 14px 32px rgba(3, 51, 70, 0.32),
    0 0 0 1px rgba(5, 74, 99, 0.22),
    inset 0 2px 10px rgba(140, 226, 236, 0.24);
  display: grid;
  place-items: center;
  transition: transform 0.6s var(--ease-wave), box-shadow 0.6s;
}

.sanctuary-arch-wrap:hover .sanctuary-core {
  transform: scale(1.05);
  box-shadow:
    0 18px 40px rgba(3, 51, 70, 0.40),
    0 0 0 1px rgba(5, 74, 99, 0.30),
    inset 0 2px 12px rgba(140, 226, 236, 0.32);
}

.sanctuary-core__icon {
  width: 56px;
  height: 56px;
}

.sanctuary-core__sun {
  transform-origin: 16px 10.2px;
  animation: sanctuarySunPulse 4.2s ease-in-out infinite;
}

@keyframes sanctuarySunPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}

/* Interactive 3-Pillar Sanctuary Switcher Pills (Sitting on White Above Waterline) */
.sanctuary-pillars {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.48rem;
  width: 100%;
}

.sanctuary-pillar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.52rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(5, 74, 99, 0.20);
  background: rgba(255, 255, 255, 0.90);
  color: var(--ocean-800);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(5, 74, 99, 0.06);
  transition: all 0.32s var(--ease-wave);
}

.sanctuary-pillar svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.sanctuary-pillar:hover {
  border-color: var(--ocean-700);
  background: var(--ocean-50);
  transform: translateY(-1px);
}

.sanctuary-pillar.is-active {
  background: linear-gradient(180deg, #075B78 0%, #043E54 100%);
  border-color: #043E54;
  color: #FFFFFF;
  box-shadow: 0 8px 18px rgba(3, 51, 70, 0.28);
}

/* SEAMLESS ANIMATED OCEAN WATERLINE TRANSITION INSIDE THE ARCH */
.sanctuary-waterline {
  position: relative;
  width: 100%;
  height: 30px;
  overflow: hidden;
  background: #EDF6F8;
  margin-top: -1px;
  margin-bottom: -1px;
  flex-shrink: 0;
}

.sanctuary-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 200% !important;
  min-width: 200%;
  max-width: none !important;
  height: calc(100% + 2px);
  will-change: transform;
}

.sanctuary-wave--back {
  animation: waveGlideInfiniteReverse 22s linear infinite;
}

.sanctuary-wave--front {
  animation: waveGlideInfinite 15s linear infinite;
}

/* LOWER DEEP-OCEAN DEPTH ZONE (~38% Rich Primary Color + Spotlight & Quick Stats) */
.sanctuary-depth {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #033548 0%, #022636 62%, #021E2C 100%);
  padding: 1.05rem 1.35rem 1.4rem;
  color: #FFFFFF;
}

.sanctuary-glass__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sanctuary-glass__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean-200);
  white-space: nowrap;
}

.sanctuary-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral-400);
  flex-shrink: 0;
}

.sanctuary-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  flex-shrink: 0;
}

.sanctuary-step {
  width: 14px;
  height: 3.5px;
  border-radius: 99px;
  background: rgba(191, 232, 240, 0.26);
  transition: width 0.35s var(--ease-wave), background-color 0.3s;
}

.sanctuary-step.is-active {
  width: 26px;
  background: var(--coral-400);
}

.sanctuary-glass__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.2rem;
  color: #FFFFFF;
  transition: opacity 0.28s ease;
}

.sanctuary-glass__body.is-fading {
  opacity: 0.22;
}

.section--ocean .sanctuary-glass__title,
.sanctuary-glass__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.62rem, 2vw, 1.95rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 0;
}

.sanctuary-glass__sub {
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(226, 244, 249, 0.84);
  margin: 0;
}

.sanctuary-glass__arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #D44B0D;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 1.08rem;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(168, 55, 5, 0.42);
  transition: transform 0.35s var(--ease-wave), background-color 0.25s;
}

.sanctuary-glass__body:hover .sanctuary-glass__arrow {
  transform: translate(2px, -2px) scale(1.07);
}

/* Purposeful Quick-Access Metrics Strip inside Ocean Depth */
.sanctuary-depth__meta {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(191, 232, 240, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(226, 244, 249, 0.82);
}

.sanctuary-depth__meta a {
  transition: color 0.25s;
}

.sanctuary-depth__meta a:hover {
  color: #FFFFFF;
}

.sanctuary-depth__meta strong {
  color: var(--ocean-200);
  font-weight: 600;
}

.sanctuary-depth__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(191, 232, 240, 0.38);
  flex-shrink: 0;
}

/* Short Desktop/Laptop Viewport Fit Guard (700px - 820px height) */
@media (min-width: 992px) and (max-height: 820px) {
  .sanctuary-arch-wrap {
    max-width: 395px;
  }
  .sanctuary-surface {
    min-height: 314px;
    padding: 5.45rem 1.05rem 0.95rem;
  }
  .sanctuary-ripple-stage {
    width: 140px;
    height: 140px;
    margin-block: 0.35rem 1.15rem;
  }
  .sanctuary-core {
    width: 88px;
    height: 88px;
  }
  .sanctuary-core__icon {
    width: 48px;
    height: 48px;
  }
  .s-orbit {
    width: 128px;
    height: 128px;
  }
  .sanctuary-depth {
    padding: 0.85rem 1.15rem 1.1rem;
  }
  .sanctuary-depth__meta {
    margin-top: 0.85rem;
    padding-top: 0.7rem;
  }
}

@media (max-width: 480px) {
  .sanctuary-arch-wrap {
    max-width: 380px;
  }
  .sanctuary-surface {
    min-height: 356px;
    padding: 6.1rem 0.9rem 1.05rem;
  }
  .sanctuary-ripple-stage {
    margin-block: 0.6rem 1.55rem;
  }
  .sanctuary-pillar {
    font-size: 0.78rem;
    padding: 0.46rem 0.4rem;
    gap: 0.3rem;
  }
  .sanctuary-depth {
    padding: 0.95rem 1.1rem 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-orbit,
  .sanctuary-core__sun,
  .sanctuary-wave--back,
  .sanctuary-wave--front {
    animation: none !important;
  }
}

/* Mobile Performance Isolation & Offscreen Animation Auto-Pause */
.sanctuary-surface,
.sanctuary-waterline,
.wave-separator {
  contain: layout paint;
}

.sanctuary-arch.is-offscreen .s-orbit,
.sanctuary-arch.is-offscreen .sanctuary-core__sun,
.sanctuary-arch.is-offscreen .sanctuary-wave {
  animation-play-state: paused !important;
}

/* Hide Header "Join & Enroll" Button on Mobile Only (Keep Visible on Desktop >= 992px) */
@media (max-width: 991px) {
  .site-header .header-actions .btn {
    display: none;
  }
}

/* ==========================================================================
   v16 — APPLE / EDITORIAL LIGHT-AREA TYPOGRAPHY, GRID & CARD CRAFT OVERHAUL
   (Strictly targets white/pearl/mist content areas — leaves Hero, Arch,
    Header, Mobile Drawer, Ocean Bands & Orange Buttons 100% untouched)
   ========================================================================== */

:root {
  --section-pad: clamp(4.25rem, 7.2vw, 6.5rem);
  --line-subtle: rgba(5, 74, 99, 0.10);
  --line-strong: rgba(5, 74, 99, 0.20);
}

/* Crisp Editorial Base Typography (eliminates bloated 19px Rubik body look) */
body {
  font-size: clamp(0.96875rem, 0.94rem + 0.14vw, 1.03125rem);
  line-height: 1.65;
  color: #36505D;
}

/* Refined Architectural Serif Headings + Balanced Line Wrapping (no orphan words) */
h1, h2, h3, h4, .serif-heading {
  font-variation-settings: "opsz" 72, "SOFT" 10, "WONK" 0;
  text-wrap: balance;
  color: #05202C;
}

.section--white .h2,
.section--pearl .h2,
.section--mist .h2 {
  font-size: clamp(1.95rem, 3.25vw, 3.05rem);
  font-weight: 450;
  line-height: 1.09;
  letter-spacing: -0.028em;
  margin-bottom: 1.05rem;
}

.section--white .h3,
.section--pearl .h3,
.section--mist .h3 {
  font-size: clamp(1.26rem, 1.55vw, 1.5rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

/* Crisp Subheader / Lead & Editorial Prose Hierarchy on Light Surfaces */
.section--white .lead,
.section--pearl .lead,
.section--mist .lead {
  font-size: clamp(1.03125rem, 0.99rem + 0.18vw, 1.15625rem);
  line-height: 1.58;
  color: #4A6572;
  max-width: 56ch;
}

.prose p {
  font-size: clamp(0.98rem, 0.95rem + 0.15vw, 1.0625rem);
  line-height: 1.72;
  color: #2E4855;
  margin-bottom: 1.25rem;
  max-width: 60ch;
}

.prose p strong {
  color: #05202C;
  font-weight: 600;
}

.editorial-split .prose p:first-child {
  font-size: clamp(1.04rem, 1rem + 0.2vw, 1.14rem);
  line-height: 1.66;
  color: #163340;
}

/* Precision Architectural Eyebrows & Depth Markers (12px crisp uppercase) */
.eyebrow {
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.13em;
  margin-bottom: 0.85rem;
}

.depth-marker {
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.14em;
  gap: 0.7rem;
  margin-bottom: 0.95rem;
}

.depth-marker__line {
  width: 24px;
  height: 1.5px;
}

.eyebrow-lockup {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.eyebrow-lockup .eyebrow {
  margin-bottom: 0;
}

/* Refined Bengali Subtitle Lockup (never orphans opening parenthesis) */
.section--white .bn-label,
.section--pearl .bn-label,
.section--mist .bn-label {
  font-size: 0.78em;
  font-weight: 400;
  color: #547280;
  white-space: nowrap;
}

/* Refined Light-Section Text Links (Hero links untouched) */
.section--white .text-link,
.section--pearl .text-link,
.section--mist .text-link {
  font-size: 0.95rem;
  font-weight: 600;
  padding-bottom: 0.2rem;
}

/* ==========================================================================
   ARCHITECTURAL 2-COLUMN EDITORIAL SPLIT (Eliminates Desktop Dead Voids)
   ========================================================================== */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

.editorial-split__cta {
  margin-top: 1.75rem;
}

@media (min-width: 900px) {
  .editorial-split {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(3rem, 5.5vw, 5.75rem);
    align-items: start;
  }

  .editorial-split--balanced {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .editorial-split--sticky .editorial-split__head {
    position: sticky;
    top: 108px;
  }

  .editorial-split__body .prose {
    padding-top: 1.75rem;
    border-top: 1px solid rgba(5, 74, 99, 0.11);
  }
}

/* ==========================================================================
   REFINED JEWEL-LIKE ICON BADGES ON LIGHT SURFACES (Ocean badges preserved)
   ========================================================================== */
.section--white .icon-badge:not(.icon-badge--on-ocean),
.section--pearl .icon-badge:not(.icon-badge--on-ocean),
.section--mist .icon-badge:not(.icon-badge--on-ocean) {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #E9F3F7;
  border: 1px solid rgba(5, 74, 99, 0.14);
  color: var(--ocean-900);
}

.section--white .icon-badge:not(.icon-badge--on-ocean) svg,
.section--pearl .icon-badge:not(.icon-badge--on-ocean) svg,
.section--mist .icon-badge:not(.icon-badge--on-ocean) svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.9;
}

/* ==========================================================================
   APPLE-STYLE SEGMENTED ECOSYSTEM TAB BAR & FIXED FEATURE CHECKLIST
   ========================================================================== */
.tab-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  padding: 5px;
  background: #E8F2F6;
  border: 1px solid rgba(5, 74, 99, 0.09);
  border-radius: var(--radius-pill);
  border-bottom: 1px solid rgba(5, 74, 99, 0.09);
  margin-top: 2.25rem;
  margin-bottom: 1.85rem;
}

.tab-btn {
  padding: 0.62rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: #3D5B69;
  gap: 0.52rem;
  transition: color 0.25s, background-color 0.3s var(--ease-wave), box-shadow 0.3s var(--ease-wave);
}

.tab-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}

.tab-btn::after {
  display: none;
}

.tab-btn:hover {
  color: var(--ocean-900);
}

.tab-btn[aria-selected="true"] {
  background: #FFFFFF;
  color: var(--ocean-900);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(3, 51, 70, 0.10), 0 1px 2px rgba(3, 51, 70, 0.05);
}

@media (max-width: 639px) {
  .tab-bar {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    border-radius: 16px;
    padding: 5px;
  }
  .tab-btn {
    justify-content: flex-start;
    border-radius: 12px;
    padding: 0.72rem 1rem;
  }
}

/* Clean Elevated Feature Box */
.editorial-feature-box {
  background: #F4F9FB;
  border: 1px solid rgba(5, 74, 99, 0.09);
  border-radius: 24px;
  padding: clamp(1.5rem, 3.6vw, 3rem);
  gap: clamp(1.75rem, 3.8vw, 3.5rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* CRITICAL FIX: Replaces broken flex column splitting on .feature-checklist li */
.feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-block: 1.5rem 2rem;
  border-top: 1px solid rgba(5, 74, 99, 0.10);
}

.feature-checklist li {
  position: relative;
  display: block;
  padding: 0.9rem 0 0.9rem 1.35rem;
  border-bottom: 1px solid rgba(5, 74, 99, 0.10);
  font-size: 0.95rem;
  line-height: 1.58;
  color: #3D5865;
}

.feature-checklist li strong {
  color: #05202C;
  font-weight: 600;
  margin-right: 0.22rem;
}

.feature-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.32rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral-500);
  margin-top: 0;
}

/* ==========================================================================
   MUSEUM-GRADE EDITORIAL CARDS & PIXEL-PERFECT ART PLATES (Zero Gap Mismatch)
   ========================================================================== */
.cards-grid {
  gap: clamp(1.25rem, 2.2vw, 1.75rem);
  margin-top: 2.25rem;
}

.editorial-card {
  --card-pad: clamp(1.5rem, 2.4vw, 2.1rem);
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.09);
  border-radius: 18px;
  padding: var(--card-pad);
  gap: 1.25rem;
  box-shadow:
    0 1px 2px rgba(3, 51, 70, 0.03),
    0 10px 28px -18px rgba(3, 51, 70, 0.10);
}

.editorial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(5, 74, 99, 0.20);
  box-shadow:
    0 4px 10px rgba(3, 51, 70, 0.04),
    0 18px 40px -16px rgba(3, 51, 70, 0.14);
}

.editorial-card--tinted {
  background: #F4F9FB;
}

.editorial-card p {
  font-size: 0.95rem;
  line-height: 1.62;
  color: #445F6C;
}

.preview-card-stack {
  --card-pad: clamp(1.45rem, 2.4vw, 2rem);
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 18px;
  padding: var(--card-pad);
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.04),
    0 18px 44px -18px rgba(3, 51, 70, 0.12);
}

.preview-card-stack p {
  font-size: 0.95rem;
  line-height: 1.62;
}

/* Synchronized edge-to-edge art plates using --card-pad (eliminates mobile offset) */
.card-art-plate {
  height: 98px;
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) 1.45rem;
  border-radius: 17px 17px 0 0;
  padding: 1rem var(--card-pad);
}

.card-art-plate__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.card-head-with-icon {
  margin-bottom: 1.05rem;
}

.card-footer-row {
  padding-top: 1rem;
  border-top: 1px solid rgba(5, 74, 99, 0.08);
}

.episode-meta {
  font-size: 0.84rem;
  font-weight: 500;
  color: #567280;
}

/* Crisp Architectural Status Tags (never swell into bloated 2-line ovals on mobile) */
.status-badge {
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.015em;
  padding: 0.32rem 0.74rem;
  border-radius: 8px;
}

/* ==========================================================================
   ELEVATED EDITORIAL PULL QUOTE CARD (Replaces Broken Half-Fade Gradient)
   ========================================================================== */
.editorial-quote {
  position: relative;
  border-left: 0;
  margin-block: 0;
  padding: clamp(1.85rem, 3.4vw, 2.75rem);
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 22px;
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.03),
    0 20px 50px -22px rgba(3, 51, 70, 0.14);
}

.editorial-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(1.85rem, 3.4vw, 2.75rem);
  width: 48px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--coral-500);
}

.editorial-quote__mark {
  display: block;
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 0.75;
  color: rgba(5, 74, 99, 0.18);
  margin-bottom: 0.65rem;
  user-select: none;
}

.editorial-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.38rem, 2.05vw, 1.78rem);
  font-weight: 450;
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: #052330;
  font-style: italic;
  margin-bottom: 1.45rem;
}

.editorial-quote figcaption {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(5, 74, 99, 0.09);
  font-size: 0.875rem;
  line-height: 1.5;
  color: #516E7C;
  font-weight: 500;
}

.editorial-quote__rule {
  width: 18px;
  height: 1.5px;
  background: var(--coral-500);
  margin-top: 0.62rem;
  flex-shrink: 0;
}

/* ==========================================================================
   PRECISION ACCORDIONS (Roadmap, Qalban Outline & FAQs)
   ========================================================================== */
.accordion-list {
  margin-top: 2.25rem;
  border-top: 1px solid rgba(5, 74, 99, 0.11);
}

.accordion-list--flush {
  margin-top: 0;
}

.accordion-item {
  border-bottom: 1px solid rgba(5, 74, 99, 0.11);
}

.accordion-trigger {
  padding-block: 1.35rem;
  gap: 1.25rem;
}

.accordion-trigger__left {
  gap: 1rem;
}

.accordion-index {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--coral-text-on-light);
  min-width: 1.65rem;
}

.accordion-title {
  font-size: clamp(1.02rem, 1.2vw, 1.125rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.38;
  color: #05202C;
}

.accordion-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #EDF5F8;
  transition: background-color 0.25s;
}

.accordion-icon::before {
  width: 12px;
  height: 1.6px;
}

.accordion-icon::after {
  width: 1.6px;
  height: 12px;
}

.accordion-trigger:hover .accordion-icon,
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  background: var(--ocean-800);
}

.accordion-trigger:hover .accordion-icon::before,
.accordion-trigger:hover .accordion-icon::after,
.accordion-trigger[aria-expanded="true"] .accordion-icon::before,
.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  background: #FFFFFF;
}

.accordion-panel__content {
  padding-bottom: 1.5rem;
  padding-left: clamp(0rem, 2.2vw, 2.65rem);
  font-size: 0.95rem;
  line-height: 1.68;
  color: #425D6A;
}

.accordion-panel__content strong {
  color: #05202C;
  font-weight: 600;
}

/* ==========================================================================
   FILTER PILLS, ENROLLMENT STEPS, FORM CARD & FOOTER POLISH
   ========================================================================== */
.filter-pills {
  gap: 0.55rem;
  margin-top: 1.65rem;
}

.filter-pill {
  padding: 0.56rem 1.15rem;
  border-width: 1px;
  border-color: rgba(5, 74, 99, 0.18);
  font-size: 0.89rem;
  font-weight: 500;
}

/* Contact Page Enrollment Steps */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: 1.85rem;
  border-top: 1px solid rgba(5, 74, 99, 0.10);
}

.steps-list__item {
  display: flex;
  gap: 1.05rem;
  align-items: flex-start;
  padding-block: 1.25rem;
  border-bottom: 1px solid rgba(5, 74, 99, 0.10);
}

.steps-list__title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #05202C;
  margin-bottom: 0.22rem;
}

.steps-list__desc {
  font-size: 0.9375rem;
  line-height: 1.58;
  color: #45606D;
}

/* Elevated Clean Form Card */
.form-card {
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 22px;
  padding: clamp(1.65rem, 3.6vw, 2.85rem);
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.03),
    0 20px 50px -22px rgba(3, 51, 70, 0.12);
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.field input,
.field select,
.field textarea {
  padding: 0.82rem 1rem;
  border-width: 1px;
  border-color: rgba(5, 74, 99, 0.22);
  border-radius: 10px;
  font-size: 0.96875rem;
}

/* Clean Compact Footer */
.site-footer {
  padding-block: clamp(2.75rem, 5vw, 4.25rem) 2.25rem;
}

.footer-top {
  padding-bottom: 2rem;
}

.footer-motto {
  font-size: 1rem;
}

.footer-nav a {
  font-size: 0.9375rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   v17 — BESPOKE TWO-TONE VECTOR ICON SYSTEM (.duburi-ic)
   Matching 2223.png: Deep Ocean (#04394E) + Burnt Coral-Orange (#E05206)
   Elevated Pure-White Squircle Tiles on Light Surfaces + Adaptive Dark Mode
   ========================================================================== */

:root {
  --ic-p: #04394E;
  --ic-a: #E05206;
}

/* Prevent legacy wireframe stroke rules from affecting bespoke two-tone icons */
.icon-badge svg.duburi-ic,
.tab-btn svg.duburi-ic,
.sanctuary-pillar svg.duburi-ic {
  fill: revert;
  stroke: revert;
  stroke-width: revert;
  flex-shrink: 0;
  display: block;
}

/* Elevated Pure-White Squircle Tiles on Light Surfaces (matching 2223.png!) */
.section--white .icon-badge:not(.icon-badge--on-ocean),
.section--pearl .icon-badge:not(.icon-badge--on-ocean),
.section--mist .icon-badge:not(.icon-badge--on-ocean) {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  box-shadow:
    0 2px 5px rgba(3, 51, 70, 0.05),
    0 8px 20px -6px rgba(3, 51, 70, 0.12);
  --ic-p: #04394E;
  --ic-a: #E05206;
}

.section--white .icon-badge:not(.icon-badge--on-ocean) svg.duburi-ic,
.section--pearl .icon-badge:not(.icon-badge--on-ocean) svg.duburi-ic,
.section--mist .icon-badge:not(.icon-badge--on-ocean) svg.duburi-ic {
  width: 31px;
  height: 31px;
}

/* Subtle tactile hover lift on cards — preserves vibrant two-tone icon colors */
.editorial-card:hover .icon-badge:not(.icon-badge--on-ocean),
.editorial-card:hover .icon-badge--coral {
  transform: translateY(-2px) scale(1.04);
  background: #FFFFFF;
  border-color: rgba(5, 74, 99, 0.22);
  box-shadow:
    0 4px 10px rgba(3, 51, 70, 0.08),
    0 12px 24px -6px rgba(3, 51, 70, 0.16);
}

/* Adaptive Dark-Ocean Glass Squircle Badges (Motto Metrics & Studio Film Cards) */
.icon-badge--on-ocean {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(191, 232, 240, 0.28);
  box-shadow: 0 8px 22px rgba(1, 18, 28, 0.26);
  --ic-p: #EAF8FC;
  --ic-a: #FF6B24;
}

.icon-badge--on-ocean svg.duburi-ic {
  width: 31px;
  height: 31px;
}

/* Ecosystem Segmented Tab Icons */
.tab-btn svg.duburi-ic {
  width: 20px;
  height: 20px;
  --ic-p: #3D5B69;
  --ic-a: #CC470A;
  transition: transform 0.3s var(--ease-wave);
}

.tab-btn[aria-selected="true"] svg.duburi-ic {
  --ic-p: #04394E;
  --ic-a: #E05206;
}

/* Hero Arch 3-Pillar Switcher Pill Icons */
.sanctuary-pillar svg.duburi-ic {
  width: 18px;
  height: 18px;
  --ic-p: #04394E;
  --ic-a: #E05206;
}

.sanctuary-pillar.is-active svg.duburi-ic {
  --ic-p: #FFFFFF;
  --ic-a: #FF7833;
}

/* ==========================================================================
   v18 — HANDCRAFTED TYPOGRAPHY HIERARCHY, BORDERLESS STATUS INDICATORS &
         CINEMA VIDEO PLAYER PREVIEW CARDS
   (Hero, Sculpted Water Ripple Arch, Header, Two-Tone Icons & CTAs Untouched)
   ========================================================================== */

/* 1. COMFORTABLE, AUTHORITATIVE TYPOGRAPHY SCALE (Zero Tiny AI Text!) */
body {
  font-size: clamp(1.03125rem, 1rem + 0.14vw, 1.09375rem); /* 16.5px mobile -> 17.5px desktop */
  line-height: 1.68;
  color: #27424F;
}

/* Commanding Section Headers (H2): Clearly 2x–3x Larger than Body */
.section--white .h2,
.section--pearl .h2,
.section--mist .h2 {
  font-size: clamp(2.15rem, 3.85vw, 3.45rem); /* 34.4px mobile -> 55.2px desktop */
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: #041E29;
  margin-bottom: 1.15rem;
}

/* Strong, Distinct Card & Feature Titles (H3): Clearly 1.5x–1.7x Larger than Body */
.section--white .h3,
.section--pearl .h3,
.section--mist .h3 {
  font-size: clamp(1.5625rem, 2.05vw, 1.875rem); /* 25px mobile -> 30px desktop */
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: #041E29;
  margin-bottom: 0.72rem;
}

.section--white .semester-title,
.section--pearl .semester-title,
.section--mist .semester-title {
  font-size: clamp(1.28rem, 1.55vw, 1.48rem); /* 20.5px -> 23.7px */
  margin-bottom: 0.45rem;
}

/* Natural Lead / Subheader Bridge */
.section--white .lead,
.section--pearl .lead,
.section--mist .lead {
  font-size: clamp(1.125rem, 1.06rem + 0.26vw, 1.28125rem); /* 18px -> 20.5px */
  line-height: 1.62;
  color: #355260;
  max-width: 58ch;
}

/* Rich, Effortless Body Copy Across All Cards, Prose, Lists & Accordions */
.prose p {
  font-size: clamp(1.03125rem, 1rem + 0.14vw, 1.09375rem); /* 16.5px -> 17.5px */
  line-height: 1.72;
  color: #27424F;
  margin-bottom: 1.3rem;
}

.editorial-split .prose p:first-child {
  font-size: clamp(1.09375rem, 1.04rem + 0.2vw, 1.2rem); /* 17.5px -> 19.2px */
  line-height: 1.66;
  color: #102D3A;
}

.editorial-card p,
.preview-card-stack p,
.semester-desc,
.form-card__intro {
  font-size: clamp(1.03125rem, 1rem + 0.12vw, 1.0625rem); /* 16.5px -> 17px */
  line-height: 1.66;
  color: #2E4A58;
}

.form-card__intro {
  margin-bottom: 1.85rem;
  color: #425E6B;
}

.contact-note {
  font-size: 0.96875rem; /* 15.5px */
  color: #466270;
}

.feature-checklist li {
  font-size: clamp(1.015rem, 0.98rem + 0.12vw, 1.0625rem); /* 16.2px -> 17px */
  line-height: 1.62;
  color: #2E4A58;
}

.feature-checklist li::before {
  top: 1.38rem;
}

/* Readable Bengali Subtitles (Eliminates Microscopic 11.8px Bengali Text!) */
.section--white .bn-label,
.section--pearl .bn-label,
.section--mist .bn-label {
  font-size: 0.8em;
  font-weight: 500;
  color: #3D5F6E;
  white-space: normal;
}

.card-bn-subtitle {
  margin-bottom: 0.85rem !important;
  line-height: 1.5 !important;
}

.card-bn-subtitle .bn-label,
.card-bn-inline {
  display: block;
  font-size: 0.96875rem !important; /* 15.5px crisp & clearly legible */
  font-weight: 500;
  color: #395B6A;
  margin-bottom: 0.55rem;
}

/* Crisp Secondary Metadata, Accordions, Eyebrows & Micro-Labels (Strictly >= 13px) */
.eyebrow,
.depth-marker {
  font-size: 0.8125rem; /* 13px crisp minimum */
  line-height: 1.38;
  letter-spacing: 0.12em;
}

.card-art-plate__label {
  font-size: 0.8125rem; /* 13px */
  letter-spacing: 0.11em;
}

.episode-meta {
  font-size: 0.9375rem; /* 15px */
  font-weight: 500;
  color: #466270;
}

.section--white .text-link,
.section--pearl .text-link,
.section--mist .text-link {
  font-size: 1.015rem; /* 16.2px */
  font-weight: 600;
}

.accordion-index {
  font-size: 0.84375rem; /* 13.5px */
  min-width: 1.8rem;
}

.accordion-title {
  font-size: clamp(1.125rem, 1.35vw, 1.25rem); /* 18px -> 20px clearly distinguished from body */
  font-weight: 600;
  line-height: 1.35;
}

.accordion-panel__content {
  font-size: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem); /* 16px -> 17px */
  line-height: 1.68;
  color: #2E4A58;
}

.steps-list__title {
  font-size: clamp(1.09375rem, 1.25vw, 1.1875rem); /* 17.5px -> 19px */
  margin-bottom: 0.3rem;
}

.steps-list__desc {
  font-size: 1rem; /* 16px */
  line-height: 1.62;
  color: #34505E;
}

.editorial-quote figcaption {
  font-size: 0.9375rem; /* 15px */
}

.tab-btn {
  font-size: 0.96875rem; /* 15.5px */
}

.filter-pill {
  font-size: 0.9375rem; /* 15px */
}

.field label {
  font-size: 0.9375rem; /* 15px */
}

.field input,
.field select,
.field textarea {
  font-size: 1.03125rem; /* 16.5px */
}

.footer-motto {
  font-size: 1.0625rem;
}

.footer-nav a {
  font-size: 0.96875rem; /* 15.5px */
}

.footer-bottom {
  font-size: 0.90625rem; /* 14.5px */
}

/* ==========================================================================
   2. REFINED BORDERLESS EDITORIAL STATUS INDICATORS
      (Eliminates Fake-Button Peach/Orange Boxes Across Every Page!)
   ========================================================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.8125rem; /* 13px crisp architectural label */
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Ready / Published / Complete -> Serene Emerald-Teal Live Dot + Deep Ocean Ink */
.status-badge--ready {
  background: transparent;
  color: #064257;
}

.status-badge--ready::before {
  background: #0F8B6D;
  box-shadow: 0 0 0 3px rgba(15, 139, 109, 0.16);
}

/* Near-Term / Ongoing -> Ocean Blue Dot + Cool Slate Ink */
.status-badge--ongoing {
  background: transparent;
  color: #315463;
}

.status-badge--ongoing::before {
  background: #0D80A3;
  box-shadow: 0 0 0 3px rgba(13, 128, 163, 0.15);
}

/* Pipeline / Roadmap -> Crisp Architectural Hollow Ring + Muted Ocean Slate */
.status-badge--pipeline {
  background: transparent;
  color: #496673;
}

.status-badge--pipeline::before {
  background: transparent;
  border: 1.75px solid #597987;
  box-shadow: none;
}

/* Paired Status Metadata Row inside Ecosystem Preview Cards */
.preview-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(5, 74, 99, 0.10);
}

/* Dark Ocean Film Cards Status Indicators & Crisp Contrast */
.film-card .status-badge--ready {
  color: #D7F1F7;
}

.film-card .status-badge--ready::before {
  background: #4CD9B0;
  box-shadow: 0 0 0 3.5px rgba(76, 217, 176, 0.22);
}

.film-card__title {
  color: #FFFFFF !important;
  font-size: clamp(2.1rem, 3.3vw, 2.95rem) !important;
  line-height: 1.1 !important;
  margin-bottom: 1rem !important;
}

.film-card .bn-label {
  color: var(--ocean-200) !important;
  font-size: 0.68em;
  font-weight: 400;
}

.film-card p {
  font-size: clamp(1.03125rem, 1rem + 0.14vw, 1.09375rem);
  line-height: 1.68;
}

/* ==========================================================================
   v19 — SPACIOUS EDITORIAL BREATHING ROOM, COMMANDING TITLE HIERARCHY,
         SINGLE-LINE HERO FOOTER BAR, CLEAN VIDEO CARD & 60FPS SMOOTHNESS
   (Hero Arch & All Animations Remain 100% Untouched!)
   ========================================================================== */

:root {
  /* Generous, Unhurried Apple/Kinfolk Section Rhythm */
  --section-pad: clamp(5.5rem, 9.5vw, 8.75rem);
}

/* Smooth Anchor Offset + Clean Scroll Feel */
html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

[id] {
  scroll-margin-top: 96px;
}

/* Solid, Crisp Zero-Lag Sticky Header (No GPU backdrop-filter stutter on scroll) */
.site-header {
  background-color: rgba(255, 255, 255, 0.97);
}

.motto-metric-card {
  background: rgba(2, 32, 46, 0.56);
}

/* Offscreen Section Paint Skipping (Huge Mobile Scroll Boost) */
.section--white,
.section--pearl,
.section--mist,
.motto-band,
.closing-cta {
  content-visibility: auto;
  contain-intrinsic-size: auto 620px;
}

/* Release blur GPU layer cleanly after water-phrase reveal completes */
.is-settled .water-phrase {
  filter: none;
  transition: none;
}

/* ==========================================================================
   1. SINGLE-LINE, UNCROWDED HERO BOTTOM BAR (Below Arch — Arch Untouched!)
   ========================================================================== */
.hero-footer-bar {
  border-top: 1px solid rgba(191, 232, 240, 0.16);
  padding-block: 0.9rem;
  background: rgba(2, 26, 38, 0.34);
}

.hero-footer-bar__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: clamp(0.78rem, 2.6vw, 0.92rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: rgba(226, 245, 250, 0.84);
}

.hero-footer-bar__brand,
.hero-footer-bar .ripple-hint {
  white-space: nowrap;
  font-size: inherit;
  color: inherit;
}

.hero-footer-bar .ripple-hint {
  color: var(--ocean-200);
  gap: 0.35rem;
}

/* ==========================================================================
   2. COMMANDING TITLE vs BODY HIERARCHY + GENEROUS BREATHING ROOM SITE-WIDE
   ========================================================================== */

/* Calm, Effortlessly Readable Body Copy (15.2px–16.25px, airy 1.78 leading) */
body {
  font-size: clamp(0.95rem, 0.93rem + 0.1vw, 1.015rem);
  line-height: 1.76;
  color: #466270;
}

/* BIG, Commanding Section Headers (H2: 38px mobile -> 60px desktop — 2.5x–3.7x body!) */
.section--white .h2,
.section--pearl .h2,
.section--mist .h2 {
  font-size: clamp(2.35rem, 4.35vw, 3.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #031B26;
  margin-bottom: 1.45rem;
}

/* Bold, Unmistakable Card & Panel Titles (H3: 28px mobile -> 36px desktop — 1.85x–2.2x body!) */
.section--white .h3,
.section--pearl .h3,
.section--mist .h3 {
  font-size: clamp(1.75rem, 2.45vw, 2.25rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.024em;
  color: #031B26;
  margin-bottom: 1rem;
}

.section--white .semester-title,
.section--pearl .semester-title,
.section--mist .semester-title {
  font-size: clamp(1.38rem, 1.75vw, 1.62rem);
  margin-bottom: 0.65rem;
}

/* Measured Section Lead Bridge (Clearly smaller & softer than H2) */
.section--white .lead,
.section--pearl .lead,
.section--mist .lead {
  font-size: clamp(1.03125rem, 0.99rem + 0.2vw, 1.1875rem);
  line-height: 1.72;
  color: #456270;
  max-width: 54ch;
}

/* Airy Editorial Prose */
.prose p {
  font-size: clamp(0.96875rem, 0.94rem + 0.12vw, 1.03125rem);
  line-height: 1.8;
  color: #3E5A68;
  margin-bottom: 1.65rem;
  max-width: 58ch;
}

.editorial-split .prose p:first-child {
  font-size: clamp(1.03125rem, 1rem + 0.16vw, 1.125rem);
  line-height: 1.74;
  color: #163442;
}

/* Card & Panel Body Text (Quiet, airy, clearly subordinate to 28–36px H3!) */
.editorial-card p,
.preview-card-stack p,
.semester-desc,
.form-card__intro {
  font-size: clamp(0.95rem, 0.93rem + 0.1vw, 1.015rem);
  line-height: 1.76;
  color: #486472;
}

.editorial-feature-box > div > p {
  font-size: clamp(0.96875rem, 0.94rem + 0.12vw, 1.03125rem);
  line-height: 1.78;
  color: #456270 !important;
  max-width: 52ch;
}

.form-card__intro {
  margin-bottom: 2.15rem;
}

/* Keep Depth Marker ("04 · DEPTH — ...") Crisp & Non-Broken on Mobile */
.depth-marker {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.depth-marker > span:first-child {
  white-space: nowrap;
  flex-shrink: 0;
}

.depth-marker__line {
  flex-shrink: 0;
  width: 22px;
}

.eyebrow {
  margin-bottom: 1.15rem;
}

/* Generous Spatial Rhythm Between Sections, Splits, Cards & Tabs */
.editorial-split {
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .editorial-split {
    gap: clamp(3.5rem, 6vw, 6.25rem);
  }
}

.editorial-split__cta {
  margin-top: 2.25rem;
}

.tab-bar {
  margin-top: 2.75rem;
  margin-bottom: 2.5rem;
}

.editorial-feature-box {
  padding: clamp(2rem, 4.4vw, 3.65rem);
  gap: clamp(2.5rem, 4.6vw, 4.25rem);
}

.cards-grid {
  gap: clamp(1.85rem, 3vw, 2.5rem);
  margin-top: clamp(2.65rem, 4.2vw, 3.75rem);
}

.editorial-card {
  --card-pad: clamp(1.85rem, 3vw, 2.55rem);
  gap: 1.75rem;
}

.preview-card-stack {
  --card-pad: clamp(1.75rem, 2.8vw, 2.4rem);
}

.card-art-plate {
  height: 106px;
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) 1.85rem;
}

.card-head-with-icon {
  margin-bottom: 1.45rem;
}

.card-footer-row {
  padding-top: 1.35rem;
}

.card-bn-subtitle {
  margin-bottom: 1.15rem !important;
}

/* Decluttered Block-Structured Feature Checklist (Fixes Cramped 2248.jpg!) */
.feature-checklist {
  margin-block: 2.15rem 2.5rem;
}

.feature-checklist li {
  padding: 1.3rem 0 1.3rem 1.4rem;
  font-size: clamp(0.9375rem, 0.92rem + 0.08vw, 0.985rem);
  line-height: 1.72;
  color: #4A6674;
}

.feature-checklist li strong {
  display: block;
  font-size: clamp(1.03125rem, 1rem + 0.12vw, 1.09375rem);
  line-height: 1.36;
  font-weight: 600;
  color: #041E29;
  margin-bottom: 0.32rem;
  margin-right: 0;
}

.feature-checklist li::before {
  top: 1.74rem;
  width: 6px;
  height: 6px;
}

/* Airy, Scannable Accordions (Fixes Dense 2250.jpg!) */
.accordion-trigger {
  padding-block: 1.65rem;
  gap: 1.35rem;
}

.accordion-title {
  font-size: clamp(1.16rem, 1.42vw, 1.3rem);
  font-weight: 600;
  line-height: 1.36;
  color: #031B26;
}

.accordion-panel__content {
  padding-top: 0.2rem;
  padding-bottom: 2.1rem;
  padding-left: clamp(0rem, 2.4vw, 2.8rem);
  font-size: clamp(0.95rem, 0.93rem + 0.08vw, 1rem);
  line-height: 1.78;
  color: #486472;
}

.accordion-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
  margin-top: 1.05rem;
}

.accordion-points li {
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.68;
}

.accordion-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.66rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral-500);
}

.accordion-points li strong {
  color: #041E29;
  font-weight: 600;
}

/* Generous Spacing on Filter Pills, Steps & Form */
.filter-pills {
  gap: 0.65rem;
  margin-top: 2rem;
}

.steps-list {
  margin-top: 2.25rem;
}

.steps-list__item {
  padding-block: 1.55rem;
  gap: 1.25rem;
}

.steps-list__title {
  font-size: clamp(1.125rem, 1.3vw, 1.22rem);
  margin-bottom: 0.4rem;
}

.steps-list__desc {
  font-size: 0.96875rem;
  line-height: 1.72;
  color: #486472;
}

.form-card {
  padding: clamp(2rem, 4vw, 3.25rem);
}

.form-grid {
  gap: 1.75rem;
}

.editorial-quote {
  padding: clamp(2.15rem, 3.8vw, 3.15rem);
}

.editorial-quote blockquote {
  font-size: clamp(1.48rem, 2.2vw, 1.92rem);
  line-height: 1.42;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   3. CLEAN MINIMALIST CLICKABLE VIDEO PREVIEW CARD (studio.html — Fixes 2244.jpg!)
      - Zero fake scrubber bar / zero fake video controls
      - Zero mobile horizontal cutoff (min-width: 0 + width: 100%)
      - Unmistakable centered circular Play button + crisp caption
   ========================================================================== */
.film-card {
  padding: clamp(1.85rem, 4.2vw, 3.5rem);
  gap: clamp(2rem, 3.5vw, 3rem);
}

.film-card > * {
  min-width: 0;
}

a.film-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  gap: 0.7rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(13, 134, 170, 0.52) 0%, rgba(4, 50, 70, 0.92) 60%, rgba(2, 22, 32, 0.99) 100%);
  border: 1px solid rgba(191, 232, 240, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 42px rgba(1, 15, 23, 0.38);
  transition: transform 0.45s var(--ease-wave), border-color 0.3s, box-shadow 0.45s var(--ease-wave);
}

a.film-frame:hover {
  transform: translateY(-3px);
  border-color: rgba(191, 232, 240, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 24px 52px rgba(1, 15, 23, 0.5);
}

a.film-frame svg.art-geometry {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
}

a.film-frame .film-play-ring {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  min-width: 62px;
  min-height: 62px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  background: #D44B0D;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  margin-bottom: 0.2rem;
  box-shadow:
    0 0 0 10px rgba(212, 75, 13, 0.24),
    0 10px 26px rgba(1, 16, 24, 0.45);
  transition: transform 0.4s var(--ease-wave), background-color 0.3s, box-shadow 0.4s;
}

a.film-frame .film-play-ring svg {
  width: 24px;
  height: 24px;
  transform: translateX(2px);
}

a.film-frame:hover .film-play-ring,
.film-card:hover a.film-frame .film-play-ring {
  transform: scale(1.08);
  background: #E05C1E;
  box-shadow:
    0 0 0 15px rgba(212, 75, 13, 0.32),
    0 14px 32px rgba(1, 16, 24, 0.52);
}

.film-frame__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 500;
  line-height: 1.2;
  color: #FFFFFF;
}

.film-frame__cta {
  position: relative;
  z-index: 2;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ocean-200);
  transition: color 0.25s;
}

a.film-frame:hover .film-frame__cta {
  color: #FFFFFF;
}

/* ==========================================================================
   v20 — HOMEPAGE MINIMAL EDITORIAL ILLUSTRATIONS (.editorial-illus)
   - Full-bleed crisp SVG plates inside soft architectural rounded frames
   - Zero layout shift, zero visual clutter, balanced sticky laptop fit
   ========================================================================== */
.editorial-illus {
  margin-top: clamp(1.85rem, 3vw, 2.5rem);
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(5, 74, 99, 0.10);
  background: #F4FAFC;
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.03),
    0 16px 38px -20px rgba(3, 51, 70, 0.14);
}

.editorial-illus img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 360;
}

@media (max-width: 899px) {
  .editorial-illus {
    max-width: 100%;
    margin-top: 1.85rem;
    margin-bottom: 0.25rem;
  }
}

/* Laptop viewport height guard so sticky left column + illustration never clips */
@media (min-width: 900px) and (max-height: 820px) {
  .editorial-split--sticky .editorial-illus {
    max-width: 360px;
    margin-top: 1.5rem;
  }
}

/* ==========================================================================
   v21 — CREATIVELY INTEGRATED FRAMELESS HOMEPAGE ILLUSTRATIONS
   - Zero rectangular boxes/borders on the 4 integrated SVGs (100% transparent
     directly onto the website paper, woven organically into the typography!)
   - Keeps Section 06 Quiet Study (.editorial-illus) crisp & intact!
   ========================================================================== */

/* Shared Frameless Paper-Integrated Illustration Base */
.illus-frameless {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.illus-frameless img {
  display: block;
  width: 100%;
  height: auto;
}

/* 1. SECTION 01: CELESTIAL ASTROLABE WOVEN DIRECTLY INTO PROSE
      - Desktop (>= 680px): Circular shape-outside wrap so sentences curve
        gracefully around the astrolabe like a luxury editorial book spread!
      - Mobile (< 680px): Clean frameless centerpiece breathing right on #FFFFFF! */
.prose--woven {
  position: relative;
}

.prose--woven::after {
  content: '';
  display: table;
  clear: both;
}

.illus-woven-compass {
  margin: 0 auto 2.15rem;
  width: min(260px, 72vw);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.illus-woven-compass img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

@media (min-width: 680px) {
  .prose--woven p {
    max-width: none;
  }

  .illus-woven-compass {
    float: right;
    width: clamp(204px, 22vw, 252px);
    margin: -0.5rem -0.25rem 1rem 2rem;
    shape-outside: circle(48%);
    shape-margin: 14px;
  }
}

/* 2. SECTION 02: HARMONIZED ECOSYSTEM HEADER + FRAMELESS THREE CURRENTS */
.ecosystem-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.ecosystem-intro-grid__copy {
  max-width: 44rem;
}

.illus-frameless--streams {
  width: 100%;
  max-width: 420px;
}

@media (min-width: 900px) {
  .ecosystem-intro-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2.5rem, 4.5vw, 4.5rem);
    align-items: center;
  }

  .illus-frameless--streams {
    justify-self: end;
    max-width: 460px;
  }
}

/* 3. SECTION 04: FRAMELESS ARCHITECTURAL ARCH RISING OFF WHITE PAPER */
.illus-frameless--arch {
  margin-top: clamp(1.75rem, 2.8vw, 2.4rem);
  width: 100%;
  max-width: 410px;
}

@media (max-width: 899px) {
  .illus-frameless--arch {
    margin-inline: auto;
    max-width: 380px;
  }
}

@media (min-width: 900px) and (max-height: 820px) {
  .editorial-split--sticky .illus-frameless--arch {
    max-width: 330px;
    margin-top: 1.35rem;
  }
}

/* 4. SECTION 05: FRAMELESS ORGANIC TRUST CONSTELLATION CROWNING THE QUOTE */
.editorial-split__body--trust {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.illus-frameless--trust {
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .illus-frameless--trust {
    margin-bottom: -0.35rem;
  }
}

/* ==========================================================================
   v22 — HANDCRAFTED HOMEPAGE TYPOGRAPHY & BREATHING ROOM (body.page-home)
   Calibrated to luxury editorial proportions (Hero & Animations 100% Untouched):
   - H2 Headline : 46px mobile -> 69px desktop (2.55x–3.6x Body!)
   - H3 Title    : 33px mobile -> 42px desktop (1.85x–2.2x Body!)
   - Accordion   : 21px mobile -> 25px desktop (airy 30px vertical padding)
   - Lead / Sub  : 19.5px mobile -> 21.5px desktop
   - Body Copy   : 18px mobile -> 19px desktop (calm #495E6A, 1.8 line-height)
   ========================================================================== */

/* Generous Gallery-Grade Section Breathing Room on Homepage */
.page-home .section:not(.hero) {
  padding-block: clamp(6rem, 10.5vw, 9.75rem);
}

/* Calm, Clean Editorial Kickers (Like "The curriculum" — Crisp, Unhurried) */
.page-home .section:not(.hero) .eyebrow,
.page-home .section:not(.hero) .depth-marker {
  font-size: 0.9375rem; /* 15px clean & effortless */
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.page-home .section--white .eyebrow,
.page-home .section--pearl .eyebrow,
.page-home .section--mist .eyebrow,
.page-home .section--white .depth-marker,
.page-home .section--pearl .depth-marker,
.page-home .section--mist .depth-marker {
  color: #9E3405;
}

.page-home .section:not(.hero) .depth-marker__line {
  width: 24px;
  opacity: 0.55;
}

/* COMMANDING H2 SECTION HEADLINES (46px mobile -> 69px desktop — Unmistakable!) */
.page-home .section--white .h2,
.page-home .section--pearl .h2,
.page-home .section--mist .h2 {
  font-size: clamp(2.85rem, 6vw, 4.3rem);
  font-weight: 450;
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: #041B26;
  margin-bottom: 1.9rem;
}

/* BOLD, UNMISTAKABLE H3 CARD & PANEL TITLES (33px mobile -> 42px desktop!) */
.page-home .section--white .h3,
.page-home .section--pearl .h3,
.page-home .section--mist .h3 {
  font-size: clamp(2.05rem, 3.1vw, 2.6rem);
  font-weight: 480;
  line-height: 1.12;
  letter-spacing: -0.026em;
  color: #041B26;
  margin-bottom: 1.25rem;
}

.page-home .preview-card-stack .h3 {
  font-size: clamp(1.85rem, 2.5vw, 2.3rem);
  margin-bottom: 1.05rem;
}

/* DISTINCT SUB-HEADLINE / LEAD (19.5px mobile -> 21.5px desktop) */
.page-home .section--white .lead,
.page-home .section--pearl .lead,
.page-home .section--mist .lead {
  font-size: clamp(1.2rem, 1.14rem + 0.28vw, 1.35rem);
  line-height: 1.72;
  color: #485E6A;
  max-width: 48ch;
}

/* COMFORTABLE, EFFORTLESS BODY COPY (18px mobile -> 19px desktop, 1.82 leading!) */
.page-home .section:not(.hero) .prose p {
  font-size: clamp(1.125rem, 1.09rem + 0.14vw, 1.1875rem);
  line-height: 1.82;
  color: #495E6A;
  margin-bottom: 1.75rem;
  max-width: 50ch;
}

.page-home .section:not(.hero) .editorial-split .prose p:first-child {
  font-size: clamp(1.15625rem, 1.11rem + 0.18vw, 1.25rem);
  line-height: 1.78;
  color: #2B4552;
}

.page-home .section:not(.hero) .prose p:last-child {
  margin-bottom: 0;
}

.page-home .editorial-feature-box > div > p {
  font-size: clamp(1.125rem, 1.09rem + 0.14vw, 1.1875rem);
  line-height: 1.78;
  color: #495E6A !important;
  max-width: 46ch;
}

.page-home .preview-card-stack p {
  font-size: clamp(1.09375rem, 1.06rem + 0.14vw, 1.15625rem);
  line-height: 1.76;
  color: #495E6A;
}

.page-home .section:not(.hero) .text-link {
  font-size: 1.125rem;
  font-weight: 600;
  padding-bottom: 0.28rem;
}

/* ROOMY FEATURE CHECKLIST INSIDE ECOSYSTEM TABS */
.page-home .feature-checklist {
  margin-block: 2.35rem 2.75rem;
}

.page-home .feature-checklist li {
  padding: 1.45rem 0 1.45rem 1.5rem;
  font-size: clamp(1.0625rem, 1.04rem + 0.1vw, 1.125rem);
  line-height: 1.72;
  color: #495E6A;
}

.page-home .feature-checklist li strong {
  font-size: clamp(1.22rem, 1.45vw, 1.34rem);
  line-height: 1.32;
  font-weight: 600;
  color: #041B26;
  margin-bottom: 0.38rem;
}

.page-home .feature-checklist li::before {
  top: 1.98rem;
  width: 7px;
  height: 7px;
}

/* LUXURY BAYYINAH-STYLE ACCORDION ROWS (Clean Numbers, Big Titles, Hairline +) */
.page-home .accordion-list {
  border-top: 1px solid rgba(5, 74, 99, 0.13);
}

.page-home .accordion-item {
  border-bottom: 1px solid rgba(5, 74, 99, 0.13);
}

.page-home .accordion-trigger {
  padding-block: 1.9rem;
  gap: 1.5rem;
}

.page-home .accordion-trigger__left {
  gap: 1.35rem;
}

.page-home .accordion-index {
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* 17px subtle, clean number */
  font-weight: 400;
  letter-spacing: 0;
  color: #627B87;
  min-width: 1.25rem;
}

.page-home .accordion-title {
  font-family: var(--font-sans);
  font-size: clamp(1.3125rem, 1.8vw, 1.5625rem); /* 21px mobile -> 25px desktop! */
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.014em;
  color: #041B26;
}

/* Pure Hairline + Icon (No Clunky Grey Circle Background) */
.page-home .accordion-icon {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent !important;
}

.page-home .accordion-icon::before {
  width: 16px;
  height: 1.6px;
  background: #233E4B !important;
}

.page-home .accordion-icon::after {
  width: 1.6px;
  height: 16px;
  background: #233E4B !important;
}

.page-home .accordion-trigger:hover .accordion-icon::before,
.page-home .accordion-trigger:hover .accordion-icon::after,
.page-home .accordion-trigger[aria-expanded="true"] .accordion-icon::before {
  background: #D44B0D !important;
}

.page-home .accordion-panel__content {
  padding-top: 0.15rem;
  padding-bottom: 2.35rem;
  padding-left: clamp(0rem, 2.5vw, 2.6rem);
  font-size: clamp(1.09375rem, 1.06rem + 0.12vw, 1.15625rem); /* 17.5px -> 18.5px */
  line-height: 1.8;
  color: #495E6A;
}

.page-home .accordion-points {
  gap: 0.95rem;
  margin-top: 0.75rem;
}

.page-home .accordion-points li::before {
  top: 0.74rem;
  width: 6px;
  height: 6px;
}

/* ECOSYSTEM TABS & CARD SPACING */
.page-home .tab-bar {
  margin-top: 3.25rem;
  margin-bottom: 2.75rem;
}

.page-home .tab-btn {
  font-size: 1.03125rem;
  padding: 0.78rem 1.45rem;
}

.page-home .editorial-feature-box {
  padding: clamp(2.25rem, 4.6vw, 4rem);
  gap: clamp(2.75rem, 5vw, 4.5rem);
}

.page-home .preview-card-stack {
  --card-pad: clamp(2rem, 3.2vw, 2.75rem);
}

/* MID-PAGE OCEAN MOTTO BAND & CLOSING CTA SCALE */
.page-home .motto-band__quote {
  font-size: clamp(2.85rem, 6vw, 4.85rem);
  line-height: 1.05;
  margin-bottom: 1.75rem;
}

.page-home .motto-band .lead,
.page-home .closing-cta .lead {
  font-size: clamp(1.1875rem, 1.12rem + 0.25vw, 1.34rem);
  line-height: 1.74;
  max-width: 48ch;
}

.page-home .motto-metric-card {
  padding: 2.15rem;
}

.page-home .motto-metric-card__num {
  font-size: 2.65rem;
  margin-bottom: 0.5rem;
}

.page-home .motto-metric-card__label {
  font-size: 1.09375rem;
  line-height: 1.65;
}

/* PULL QUOTE CARD BREATHING ROOM */
.page-home .editorial-quote {
  padding: clamp(2.35rem, 4vw, 3.4rem);
}

.page-home .editorial-quote blockquote {
  font-size: clamp(1.75rem, 2.7vw, 2.3rem);
  line-height: 1.38;
  margin-bottom: 1.9rem;
}

.page-home .editorial-quote figcaption {
  font-size: 1.03125rem;
  padding-top: 1.35rem;
}

/* GENEROUS SPLIT GAPS & ILLUSTRATION BREATHING ROOM */
.page-home .editorial-split {
  gap: 3rem;
}

@media (min-width: 900px) {
  .page-home .editorial-split {
    gap: clamp(3.75rem, 6.2vw, 6.75rem);
  }
}

.page-home .editorial-split__cta {
  margin-top: 2.5rem;
}

.page-home .illus-frameless--arch {
  margin-top: clamp(2.25rem, 3.5vw, 3rem);
}

.page-home .editorial-illus {
  margin-top: clamp(2.25rem, 3.5vw, 3rem);
}

.page-home .editorial-split__body--trust {
  gap: 2rem;
}

/* Ensure woven astrolabe sits cleanly with generous air on both mobile & desktop */
.page-home .illus-woven-compass {
  margin: 0 auto 2.5rem;
}

@media (min-width: 680px) {
  .page-home .illus-woven-compass {
    margin: -0.25rem -0.25rem 1.25rem 2.35rem;
  }
}

/* ==========================================================================
   v23 — HANDCRAFTED EDITORIAL TYPOGRAPHY & BREATHING ROOM FOR COURSES & LIBRARY
   Matches homepage v22 scale verbatim (index.html & other pages untouched!):
   - H2 Headline : 46px mobile -> 69px desktop (2.55x–3.6x Body!)
   - H3 Title    : 31px mobile -> 38px desktop (1.75x–2.05x Body!)
   - Accordion   : 21px mobile -> 25px desktop (clean numbers, hairline +)
   - Lead / Sub  : 19.2px mobile -> 21.6px desktop
   - Body Copy   : 18px mobile -> 19px desktop (calm #495E6A, 1.8 line-height)
   ========================================================================== */

/* Subpage Hero Polish: Crisp, Legible Subheader & Confident Scale */
.page-editorial .page-hero .h1 {
  font-size: clamp(2.85rem, 5.6vw, 4.85rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 17ch;
}

.page-editorial .page-hero .lead {
  font-size: clamp(1.125rem, 1.08rem + 0.22vw, 1.28rem);
  line-height: 1.68;
  color: rgba(236, 249, 253, 0.86);
  max-width: 48ch;
}

/* Generous Gallery-Grade Section Rhythm */
.page-editorial .section:not(.page-hero) {
  padding-block: clamp(6rem, 10.5vw, 9.75rem);
}

.page-editorial .section-intro {
  max-width: 46rem;
}

/* Calm, Clean Editorial Kickers (15px sentence-case — matches homepage!) */
.page-editorial .section:not(.page-hero) .eyebrow {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.page-editorial .section--white .eyebrow,
.page-editorial .section--pearl .eyebrow {
  color: #9E3405;
}

/* COMMANDING H2 SECTION HEADLINES (45.6px mobile -> 68.8px desktop!) */
.page-editorial .section--white .h2,
.page-editorial .section--pearl .h2 {
  font-size: clamp(2.85rem, 6vw, 4.3rem);
  font-weight: 450;
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: #041B26;
  margin-bottom: 1.75rem;
}

/* Balanced Split-Column H2 (Surah Mulk, Quran Tuition, Inside Qalban Shaakirah) */
.page-editorial .section--white .h2--split,
.page-editorial .section--pearl .h2--split {
  font-size: clamp(2.55rem, 4.4vw, 3.6rem);
  line-height: 1.07;
  margin-bottom: 1.25rem;
}

/* UNMISTAKABLE H3 CARD TITLES (31px mobile -> 38px desktop — ~2x Body!) */
.page-editorial .section--white .h3,
.page-editorial .section--pearl .h3 {
  font-size: clamp(1.95rem, 2.55vw, 2.35rem);
  font-weight: 480;
  line-height: 1.14;
  letter-spacing: -0.024em;
  color: #041B26;
  margin-bottom: 0.85rem;
}

/* Clean Bengali Subtitle Directly Beneath Card Title */
.page-editorial .card-bn-subtitle {
  margin-top: -0.25rem;
  margin-bottom: 1.35rem !important;
  line-height: 1.55 !important;
}

.page-editorial .card-bn-subtitle .bn-label {
  font-size: 1rem !important; /* 16px crisp & calm */
  font-weight: 500;
  color: #506C7A;
  margin-bottom: 0;
}

/* DISTINCT SUB-HEADLINE / LEAD (19.2px -> 21.6px) */
.page-editorial .section--white .lead,
.page-editorial .section--pearl .lead {
  font-size: clamp(1.2rem, 1.14rem + 0.28vw, 1.35rem);
  line-height: 1.72;
  color: #485E6A;
  max-width: 48ch;
}

/* COMFORTABLE, AIRY BODY COPY (18px mobile -> 19px desktop, 1.8 leading!) */
.page-editorial .editorial-card p:not(.card-bn-subtitle),
.page-editorial .editorial-feature-box > div > p:not(.card-bn-subtitle),
.page-editorial .semester-desc {
  font-size: clamp(1.125rem, 1.09rem + 0.14vw, 1.1875rem);
  line-height: 1.8;
  color: #495E6A !important;
}

.page-editorial .editorial-card p:not(.card-bn-subtitle) {
  max-width: 46ch;
}

/* GENEROUS CARD, GRID & SUB-BAND BREATHING ROOM */
.page-editorial .cards-grid {
  gap: clamp(2rem, 3.2vw, 2.75rem);
  margin-top: clamp(3rem, 4.8vw, 4.25rem);
}

.page-editorial .editorial-card {
  --card-pad: clamp(2rem, 3.4vw, 2.85rem);
  gap: 2rem;
}

.page-editorial .card-art-plate {
  height: 112px;
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) 2rem;
}

.page-editorial .card-head-with-icon {
  margin-bottom: 1.65rem;
}

.page-editorial .card-footer-row {
  padding-top: 1.5rem;
  gap: 1.15rem;
}

.page-editorial .episode-meta {
  font-size: 0.96875rem; /* 15.5px */
  color: #58727F;
}

.page-editorial .section:not(.page-hero) .text-link {
  font-size: 1.09375rem; /* 17.5px */
  font-weight: 600;
  padding-bottom: 0.26rem;
}

/* Filter Pills Breathing Room */
.page-editorial .filter-pills {
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.page-editorial .filter-pill {
  padding: 0.72rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
}

/* Generous Vertical Separation Between Catalog Sub-bands */
.page-editorial .catalog-subband {
  margin-top: clamp(6rem, 10vw, 8.75rem);
}

.page-editorial .catalog-outline {
  margin-top: clamp(5.75rem, 9.5vw, 8.25rem);
  padding-top: clamp(4.25rem, 7.5vw, 6.5rem);
  border-top: 1px solid rgba(5, 74, 99, 0.12);
}

/* Surah Mulk Feature Box & Semester Stack */
.page-editorial .editorial-feature-box {
  padding: clamp(2.25rem, 4.6vw, 4rem);
  gap: clamp(2.75rem, 5vw, 4.5rem);
}

.page-editorial .preview-card-stack {
  --card-pad: clamp(2rem, 3.2vw, 2.75rem);
}

.page-editorial .semester-block--divider {
  margin-bottom: 1.85rem;
  padding-bottom: 1.85rem;
  border-bottom: 1px solid rgba(5, 74, 99, 0.11);
}

.page-editorial .semester-title {
  font-size: clamp(1.48rem, 2vw, 1.85rem) !important;
  margin-bottom: 0.75rem !important;
  color: #041B26;
}

.page-editorial .semester-desc strong {
  color: #041B26;
  font-weight: 600;
}

/* Generous Split Spacing */
.page-editorial .editorial-split {
  gap: 3rem;
}

@media (min-width: 900px) {
  .page-editorial .editorial-split {
    gap: clamp(3.75rem, 6.2vw, 6.75rem);
  }
}

/* LUXURY BAYYINAH-STYLE ACCORDIONS (Library 4-Part Outline — Matches Homepage!) */
.page-editorial .accordion-list {
  border-top: 1px solid rgba(5, 74, 99, 0.13);
}

.page-editorial .accordion-item {
  border-bottom: 1px solid rgba(5, 74, 99, 0.13);
}

.page-editorial .accordion-trigger {
  padding-block: 1.9rem;
  gap: 1.5rem;
}

.page-editorial .accordion-trigger__left {
  gap: 1.35rem;
}

.page-editorial .accordion-index {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0;
  color: #627B87;
  min-width: 1.25rem;
}

.page-editorial .accordion-title {
  font-family: var(--font-sans);
  font-size: clamp(1.3125rem, 1.8vw, 1.5625rem); /* 21px mobile -> 25px desktop */
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.014em;
  color: #041B26;
}

.page-editorial .accordion-icon {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent !important;
}

.page-editorial .accordion-icon::before {
  width: 16px;
  height: 1.6px;
  background: #233E4B !important;
}

.page-editorial .accordion-icon::after {
  width: 1.6px;
  height: 16px;
  background: #233E4B !important;
}

.page-editorial .accordion-trigger:hover .accordion-icon::before,
.page-editorial .accordion-trigger:hover .accordion-icon::after,
.page-editorial .accordion-trigger[aria-expanded="true"] .accordion-icon::before {
  background: #D44B0D !important;
}

.page-editorial .accordion-panel__content {
  padding-top: 0.15rem;
  padding-bottom: 2.35rem;
  padding-left: clamp(0rem, 2.5vw, 2.6rem);
  font-size: clamp(1.09375rem, 1.06rem + 0.12vw, 1.15625rem);
  line-height: 1.8;
  color: #495E6A;
}

/* Closing Ocean CTA Scale Match */
.page-editorial .closing-cta .lead {
  font-size: clamp(1.1875rem, 1.12rem + 0.25vw, 1.34rem);
  line-height: 1.74;
  max-width: 48ch;
}

/* ==========================================================================
   v28 — GPU COMPOSITOR ISOLATION & OFFSCREEN ANIMATION PAUSE (Zero Lag!)
   - Promotes canvas layers to dedicated GPU textures so repaints never
     re-rasterize the arch's rounded clip mask or 80px box-shadow
   - Automatically pauses offscreen SVG waves & bathymetric contours
   ========================================================================== */
.sanctuary-ripple-canvas,
.water-wave-canvas {
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.is-offscreen .wave-layer-1,
.is-offscreen .wave-layer-2,
.is-offscreen .wave-layer-3,
.is-offscreen .ocean-contour {
  animation-play-state: paused !important;
}


/* ==========================================================================
   v31 — COMMANDING ABOUT US DEPTH ILLUSTRATION & RABBI ZIDNI ILMA CALLIGRAPHY
   ========================================================================== */
.illus-frameless--about {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  width: 100%;
  max-width: 460px;
}

.illus-frameless--about img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

@media (max-width: 899px) {
  .illus-frameless--about {
    margin-inline: auto;
    margin-top: 1.85rem;
    max-width: 420px;
  }
}

/* Majestic, Unhurried Scale for "رَبِّ زِدْنِي عِلْمًا" in Amiri Quran */
.arabic-bismillah {
  font-size: clamp(2.35rem, 4.8vw, 3.75rem);
  line-height: 1.9;
}


/* ==========================================================================
   v33 — ARCHITECTURAL ECOSYSTEM STAGE (Homepage #how-duburi-works Overhaul)
   - Single-row compact mobile & desktop segmented tab bar (.eco-tabs)
   - Unified two-zone split card (.eco-stage): crisp white editorial ledger +
     seamlessly fused deep-ocean spotlight panel (zero nested box-in-box!)
   - High-contrast typography on dark ocean & structured numbered ledger rows
   ========================================================================== */

/* 1. SLEEK SEGMENTED PILL TAB BAR (Single-Row Even on Mobile!) */
.eco-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.35rem;
  padding: 5px;
  background: #E6F1F5;
  border: 1px solid rgba(5, 74, 99, 0.11);
  border-radius: var(--radius-pill);
  margin-top: clamp(2.5rem, 4.5vw, 3.5rem);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.eco-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.45rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #365564;
  font-size: 0.96875rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease-wave), color 0.25s, box-shadow 0.3s var(--ease-wave);
}

.eco-tab svg.duburi-ic {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  --ic-p: #365564;
  --ic-a: #CC470A;
}

.eco-tab:hover {
  color: #04202C;
}

.eco-tab[aria-selected="true"] {
  background: linear-gradient(180deg, #06526D 0%, #033548 100%);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(3, 51, 70, 0.24);
}

.eco-tab[aria-selected="true"] svg.duburi-ic {
  --ic-p: #FFFFFF;
  --ic-a: #FF7E3D;
}

.eco-tab__num {
  opacity: 0.68;
  font-weight: 500;
}

@media (max-width: 639px) {
  .eco-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 4px;
    padding: 4px;
  }
  .eco-tab {
    padding: 0.68rem 0.45rem;
    font-size: 0.875rem;
    gap: 0.36rem;
  }
  .eco-tab svg.duburi-ic {
    width: 16px;
    height: 16px;
  }
  .eco-tab__num {
    display: none;
  }
}

/* 2. UNIFIED TWO-ZONE ARCHITECTURAL SPLIT CARD */
.eco-stage {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.11);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.03),
    0 24px 60px -24px rgba(3, 51, 70, 0.14);
}

@media (min-width: 960px) {
  .eco-stage {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    align-items: stretch;
  }
}

/* LEFT / TOP WHITE EDITORIAL ZONE */
.eco-stage__main {
  padding: clamp(1.75rem, 3.8vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eco-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  margin-bottom: 1.05rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #9E3405;
}

.eco-kicker svg.duburi-ic {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  --ic-p: #04394E;
  --ic-a: #E05206;
}

.eco-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.1vw, 2.75rem);
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: #041B26;
  margin-bottom: 0.9rem;
}

.eco-lead {
  font-size: clamp(1.03125rem, 1rem + 0.14vw, 1.125rem);
  line-height: 1.66;
  color: #4A6370;
  max-width: 44ch;
  margin-bottom: 0;
}

/* STRUCTURED NUMBERED CATALOG LEDGER (Replaces Generic Bullet List!) */
.eco-ledger {
  list-style: none;
  margin-block: clamp(1.75rem, 3vw, 2.35rem);
  border-top: 1px solid rgba(5, 74, 99, 0.10);
}

.eco-ledger__row {
  display: grid;
  grid-template-columns: 1.85rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding-block: 1.15rem;
  border-bottom: 1px solid rgba(5, 74, 99, 0.10);
}

.eco-ledger__idx {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #7893A0;
  padding-top: 0.22rem;
  font-variant-numeric: tabular-nums;
}

.eco-ledger__content {
  min-width: 0;
}

.eco-ledger__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.28rem;
}

.eco-ledger__head strong {
  font-size: clamp(1.0625rem, 1.25vw, 1.15625rem);
  font-weight: 600;
  line-height: 1.32;
  color: #041B26;
}

.eco-ledger__bn {
  font-family: var(--font-bn);
  font-weight: 500;
  font-size: 0.9em;
  color: #4D6A78;
}

.eco-ledger__content p {
  font-size: clamp(0.95rem, 0.93rem + 0.08vw, 1rem);
  line-height: 1.6;
  color: #4B6673;
  margin: 0;
  max-width: 46ch;
}

.eco-tag {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.56rem;
  border-radius: 6px;
  line-height: 1.3;
  white-space: nowrap;
}

.eco-tag--live {
  background: rgba(15, 139, 109, 0.10);
  color: #0B6E56;
}

.eco-tag--info {
  background: rgba(13, 128, 163, 0.10);
  color: #085E7A;
}

.eco-stage__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.25rem;
}

/* RIGHT / BOTTOM SEAMLESSLY FUSED DEEP-OCEAN SPOTLIGHT PANEL */
.eco-stage__spotlight {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 86% 14%, #095C78 0%, #04364A 48%, #02202E 100%);
  color: #FFFFFF;
  padding: clamp(1.85rem, 3.8vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.eco-spot__bg {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 260px;
  height: 260px;
  opacity: 0.14;
  pointer-events: none;
}

.eco-spot__top,
.eco-spot__body,
.eco-spot__footer {
  position: relative;
  z-index: 2;
}

.eco-spot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(191, 232, 240, 0.16);
}

.eco-spot__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #D2F3FA;
  white-space: nowrap;
}

.eco-spot__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF7833;
  box-shadow: 0 0 0 3px rgba(255, 120, 51, 0.24);
  flex-shrink: 0;
}

.eco-spot__count {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8CE2EC;
  white-space: nowrap;
}

.eco-spot__title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 2.6vw, 2.4rem);
  font-weight: 480;
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: #FFFFFF !important;
  margin-bottom: 0.45rem;
}

.eco-spot__bn {
  font-family: var(--font-bn);
  font-size: 0.98rem;
  font-weight: 500;
  color: #96DFEC !important;
  margin-bottom: 1.15rem;
  line-height: 1.45;
}

.eco-spot__desc {
  font-size: clamp(0.98rem, 0.95rem + 0.12vw, 1.0625rem);
  line-height: 1.68;
  color: rgba(235, 248, 252, 0.88) !important;
  margin: 0;
  max-width: 38ch;
}

.eco-spot__footer {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(191, 232, 240, 0.16);
}

.eco-spot__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.eco-spot__spec-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(168, 224, 236, 0.72);
  margin-bottom: 0.2rem;
}

.eco-spot__spec-val {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #F2FBFE;
  line-height: 1.35;
}

.eco-spot__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(191, 232, 240, 0.22);
  color: #FFFFFF;
  font-size: 0.96875rem;
  font-weight: 600;
  transition: background-color 0.28s, border-color 0.28s, transform 0.35s var(--ease-wave);
}

.eco-spot__link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(191, 232, 240, 0.45);
  transform: translateY(-1px);
}

.eco-spot__arrow {
  color: #FF8243;
  font-size: 1.1rem;
  transition: transform 0.3s var(--ease-wave);
}

.eco-spot__link:hover .eco-spot__arrow {
  transform: translateX(4px);
}


/* ==========================================================================
   v34 — MODERN MINIMALIST COURSE CATALOG & UNIFIED COURSE COVER SYSTEM
   - Bigger unified illustration (`illus-course-cover.svg`, 16:8.5 full-bleed)
     across ALL courses (Video Series, Masterclasses, Surah Mulk, Home Courses)
   - Bigger, commanding Fraunces course titles with disciplined hierarchy
   - Generous breathing room, zero cluttered icon boxes, single-line footers
   ========================================================================== */

/* Clean Modern Filter Pills on Courses Page */
.page-courses .filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.25rem;
}

.page-courses .filter-pill {
  padding: 0.68rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(5, 74, 99, 0.16);
  background: #FFFFFF;
  color: #355463;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(3, 51, 70, 0.03);
  transition: all 0.28s var(--ease-wave);
}

.page-courses .filter-pill:hover {
  border-color: #054A63;
  color: #031B26;
  transform: translateY(-1px);
}

.page-courses .filter-pill.is-active {
  background: linear-gradient(180deg, #06526D 0%, #033548 100%);
  border-color: #033548;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(3, 51, 70, 0.22);
}

/* Spacious Responsive Course Grids */
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 3.2vw, 2.65rem);
  margin-top: clamp(2.85rem, 4.6vw, 4rem);
}

@media (min-width: 780px) {
  .courses-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .courses-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.75rem, 2.5vw, 2.25rem);
  }
}

/* MODERN, STYLIZED, MINIMALIST COURSE CARD */
.course-card {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.03),
    0 20px 50px -24px rgba(3, 51, 70, 0.13);
  transition:
    transform 0.48s var(--ease-wave),
    border-color 0.3s,
    box-shadow 0.48s var(--ease-wave);
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(5, 74, 99, 0.22);
  box-shadow:
    0 6px 14px rgba(3, 51, 70, 0.05),
    0 28px 60px -22px rgba(3, 51, 70, 0.18);
}

.course-card--upcoming {
  background: #FCFEFF;
}

/* Bigger, Commanding Unified Course Illustration Stage */
.course-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 340;
  background: #02202E;
  overflow: hidden;
  flex-shrink: 0;
}

.course-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-wave);
}

.course-card:hover .course-card__media img {
  transform: scale(1.035);
}

/* Subtle Translucent Glass Corner Badges Over Illustration (Zero Body Clutter!) */
.course-card__overlay {
  position: absolute;
  inset: 14px 14px auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  pointer-events: none;
  z-index: 2;
}

.course-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.34rem 0.78rem;
  border-radius: var(--radius-pill);
  background: rgba(2, 24, 36, 0.72);
  border: 1px solid rgba(191, 232, 240, 0.24);
  color: #E2F6FA;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: nowrap;
}

.course-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.course-pill--live {
  border-color: rgba(76, 217, 176, 0.38);
  color: #E8FCF6;
}

.course-pill--live .course-pill__dot {
  background: #4CD9B0;
  box-shadow: 0 0 0 3px rgba(76, 217, 176, 0.22);
}

.course-pill--soon {
  border-color: rgba(140, 226, 236, 0.34);
  color: #DAF5FA;
}

.course-pill--soon .course-pill__dot {
  background: #7AD4E3;
}

/* Airy Editorial Course Card Body */
.course-card__body {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* BIGGER, COMMANDING COURSE TITLES WITH PROPER HIERARCHY */
.course-card__title {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 2.85vw, 2.7rem);
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: #031B26;
  margin-bottom: 0.5rem;
}

.course-card--compact .course-card__title {
  font-size: clamp(1.88rem, 2.15vw, 2.25rem);
  line-height: 1.1;
}

.course-card__bn {
  font-family: var(--font-bn);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
  color: #557180;
  margin-bottom: 1.4rem;
}

.course-card__desc {
  font-size: clamp(1.03125rem, 1rem + 0.12vw, 1.09375rem);
  line-height: 1.72;
  color: #46606D;
  max-width: 44ch;
  margin-bottom: 2rem;
}

/* Clean, Aligned Single-Line Footer Bar */
.course-card__footer {
  margin-top: auto;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(5, 74, 99, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.course-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.course-card__meta strong {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: #041F2B;
}

.course-card__meta span {
  font-size: 0.84rem;
  line-height: 1.35;
  color: #5E7987;
}

.course-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 1.18rem;
  border-radius: var(--radius-pill);
  border: 1.25px solid rgba(180, 56, 4, 0.30);
  background: rgba(212, 75, 13, 0.06);
  color: #A83705;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.32s var(--ease-wave);
}

.course-card__action:hover {
  background: #D44B0D;
  border-color: #D44B0D;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* SURAH MULK FLAGSHIP SPLIT ARCHITECTURE (Unified with v33/v34 Design Language) */
.course-flagship {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.11);
  border-radius: 26px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.03),
    0 24px 60px -24px rgba(3, 51, 70, 0.14);
}

@media (min-width: 960px) {
  .course-flagship {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
  }
}

.course-flagship__main {
  display: flex;
  flex-direction: column;
}

.course-flagship__intro {
  padding: clamp(1.85rem, 3.4vw, 2.85rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-flagship__title {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 3.6vw, 3.15rem);
  font-weight: 480;
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: #031B26;
  margin-bottom: 0.55rem;
}

.course-flagship__actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.course-flagship__syllabus {
  background: radial-gradient(ellipse at 86% 12%, #095C78 0%, #04364A 48%, #02202E 100%);
  color: #FFFFFF;
  padding: clamp(1.85rem, 3.8vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
}

.flagship-semesters {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-block: auto;
}

.flagship-semester {
  padding-block: 1.5rem;
  border-bottom: 1px solid rgba(191, 232, 240, 0.16);
}

.flagship-semester:last-child {
  border-bottom: 0;
  padding-bottom: 0.25rem;
}

.flagship-semester__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.flagship-semester__num {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #FF8243;
  font-variant-numeric: tabular-nums;
}

.flagship-semester__title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 1.9vw, 1.8rem);
  font-weight: 480;
  line-height: 1.16;
  color: #FFFFFF !important;
  margin: 0;
}

.flagship-semester__ep {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8CE2EC;
  white-space: nowrap;
}

.flagship-semester__desc {
  font-size: clamp(0.98rem, 0.95rem + 0.1vw, 1.0625rem);
  line-height: 1.68;
  color: rgba(232, 247, 252, 0.86) !important;
  margin: 0;
}

.flagship-semester__desc strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* HOMEPAGE COURSES SPOTLIGHT WITH SAME UNIFIED COURSE COVER */
.eco-stage__spotlight--media {
  padding: 0;
  gap: 0;
}

.eco-spot__cover {
  width: 100%;
  aspect-ratio: 640 / 340;
  overflow: hidden;
  border-bottom: 1px solid rgba(191, 232, 240, 0.16);
  background: #02202E;
}

.eco-spot__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eco-spot__inner {
  padding: clamp(1.65rem, 3.2vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  flex: 1;
}

/* Clean small-screen footer alignment guard */
@media (max-width: 390px) {
  .course-card__body {
    padding: 1.5rem 1.35rem;
  }
  .course-card__footer {
    gap: 0.65rem;
  }
  .course-card__footer .btn--sm,
  .course-card__action {
    padding: 0.58rem 1rem;
    font-size: 0.88rem;
  }
}


/* ==========================================================================
   v35 — SYMMETRICAL MOBILE/DESKTOP PADDING & GRID OVERFLOW FIX
   Fixes the CSS Grid `1fr` (= minmax(auto, 1fr)) right-edge overflow seen in
   `.course-flagship__syllabus` (Surah Mulk) and `.eco-stage__spotlight` so
   both left and right padding remain 100% equal and generous on every screen.
   ========================================================================== */
.course-flagship,
.eco-stage {
  grid-template-columns: minmax(0, 1fr);
}

.course-flagship__main,
.course-flagship__intro,
.course-flagship__syllabus,
.eco-stage__main,
.eco-stage__spotlight,
.eco-spot__inner,
.flagship-semesters,
.flagship-semester {
  min-width: 0;
  max-width: 100%;
}

.course-flagship__syllabus {
  padding: clamp(1.85rem, 3.8vw, 3.25rem) clamp(1.5rem, 3.6vw, 3.25rem);
}

.course-flagship__intro {
  padding: clamp(1.75rem, 3.4vw, 2.85rem) clamp(1.5rem, 3.4vw, 2.85rem);
}

.eco-stage__main {
  padding: clamp(1.75rem, 3.8vw, 3.5rem) clamp(1.5rem, 3.6vw, 3.5rem);
}

.eco-stage__spotlight {
  padding: clamp(1.85rem, 3.8vw, 3.25rem) clamp(1.5rem, 3.6vw, 3.25rem);
}

.eco-stage__spotlight--media {
  padding: 0;
}

.eco-spot__inner {
  padding: clamp(1.65rem, 3.2vw, 2.5rem) clamp(1.5rem, 3.2vw, 2.5rem);
}

.eco-spot__top {
  flex-wrap: wrap;
  row-gap: 0.45rem;
  column-gap: 0.75rem;
}

.eco-spot__badge {
  white-space: normal;
  line-height: 1.35;
}

.flagship-semester__head {
  flex-wrap: wrap;
  row-gap: 0.3rem;
  column-gap: 0.65rem;
}

@media (max-width: 440px) {
  .eco-spot__badge,
  .eco-spot__count,
  .flagship-semester__ep {
    font-size: 0.7rem;
    letter-spacing: 0.07em;
  }
}


/* ==========================================================================
   v36 — LIBRARY DROPDOWN NAVIGATION, WRITINGS SANCTUARY, FULL ARTICLE READER,
         LIKE/DISLIKE REACTIONS & RESTRICTED MODERN ADMIN STUDIO
   ========================================================================== */

/* 1. DESKTOP LIBRARY DROPDOWN MENU */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  background: transparent;
  border: 0;
  padding-block: 0.35rem;
  font-size: 1.03125rem;
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
  position: relative;
  transition: color 0.25s var(--ease-smooth);
}

.nav-dropdown__trigger::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--coral-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-wave);
}

.nav-dropdown__trigger:hover,
.nav-dropdown.is-open .nav-dropdown__trigger,
.nav-dropdown.is-active .nav-dropdown__trigger {
  color: var(--ocean-900);
}

.nav-dropdown__trigger:hover::after,
.nav-dropdown.is-open .nav-dropdown__trigger::after,
.nav-dropdown.is-active .nav-dropdown__trigger::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-dropdown__chev {
  width: 15px;
  height: 15px;
  transition: transform 0.32s var(--ease-wave);
}

.nav-dropdown.is-open .nav-dropdown__chev {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate3d(-50%, -8px, 0) scale(0.97);
  min-width: 248px;
  padding: 0.55rem;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.12);
  box-shadow:
    0 4px 12px rgba(3, 51, 70, 0.06),
    0 24px 54px -16px rgba(3, 51, 70, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 140;
  transition: opacity 0.25s var(--ease-wave), transform 0.3s var(--ease-wave), visibility 0.25s;
}

.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.nav-dropdown__item {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  padding: 0.78rem 1rem !important;
  border-radius: 11px;
  transition: background-color 0.22s, color 0.22s;
}

.nav-dropdown__item::after {
  display: none !important;
}

.nav-dropdown__item:hover,
.nav-dropdown__item[aria-current="page"] {
  background: #EFF7FA;
}

.nav-dropdown__item-title {
  font-size: 0.96875rem;
  font-weight: 600;
  line-height: 1.25;
  color: #041E29;
}

.nav-dropdown__item[aria-current="page"] .nav-dropdown__item-title {
  color: #B83D06;
}

.nav-dropdown__item-sub {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #54707D;
  font-weight: 400;
}

/* MOBILE DRAWER COLLAPSIBLE LIBRARY DROPDOWN */
.mobile-dropdown__trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding-block: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #FFFFFF;
  cursor: pointer;
  text-align: left;
}

.mobile-dropdown__chev {
  width: 22px;
  height: 22px;
  color: var(--coral-400);
  transition: transform 0.32s var(--ease-wave);
}

.mobile-dropdown.is-open .mobile-dropdown__chev {
  transform: rotate(180deg);
}

.mobile-dropdown__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-wave);
}

.mobile-dropdown.is-open .mobile-dropdown__sub {
  grid-template-rows: 1fr;
}

.mobile-dropdown__sub-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  border-left: 2px solid rgba(140, 226, 236, 0.26);
  margin-bottom: 0;
}

.mobile-dropdown.is-open .mobile-dropdown__sub-inner {
  margin-bottom: 1rem;
}

.mobile-dropdown__sub-inner a {
  font-family: var(--font-sans) !important;
  font-size: 1.15rem !important;
  font-weight: 500;
  padding-block: 0.72rem !important;
  color: rgba(232, 247, 252, 0.90) !important;
}

.mobile-dropdown__sub-inner a[aria-current="page"] {
  color: #FF8E53 !important;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: #6B8592;
  transition: color 0.22s;
}

.footer-admin-link:hover {
  color: var(--ocean-900);
}

/* 2. COLORFUL EDITORIAL COVER HERO FOR WRITINGS PAGE (writings.html) */
.writings-cover {
  background:
    radial-gradient(ellipse at 86% 18%, rgba(234, 79, 8, 0.42) 0%, rgba(212, 75, 13, 0.16) 34%, transparent 62%),
    radial-gradient(ellipse at 18% 12%, rgba(20, 152, 186, 0.56) 0%, rgba(7, 88, 114, 0.32) 45%, transparent 72%),
    linear-gradient(135deg, #043245 0%, #07536D 46%, #0D6E82 72%, #3A4046 88%, #5E3422 100%);
  color: #FFFFFF;
}

.writings-cover .h1 {
  max-width: 16ch;
}

.writings-cover .lead {
  color: rgba(244, 251, 253, 0.90);
}

/* 3. ADMIN-ONLY FACEBOOK/INSTAGRAM-STYLE QUICK COMPOSER ON writings.html */
.quick-composer-wrap {
  margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}

.quick-composer {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.13);
  border-radius: 22px;
  padding: clamp(1.35rem, 2.8vw, 2rem);
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.04),
    0 18px 44px -20px rgba(3, 51, 70, 0.14);
}

.quick-composer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.quick-composer__author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06526D 0%, #022331 100%);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  flex-shrink: 0;
  border: 2px solid rgba(234, 79, 8, 0.65);
}

.quick-composer__name {
  display: block;
  font-size: 0.96875rem;
  font-weight: 600;
  color: #041B26;
  line-height: 1.25;
}

.quick-composer__role {
  display: block;
  font-size: 0.8125rem;
  color: #0F8B6D;
  font-weight: 500;
}

.quick-composer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.quick-composer__prompt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  border: 1.5px dashed rgba(5, 74, 99, 0.24);
  background: #F4FAFC;
  color: #425E6B;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, color 0.25s;
}

.quick-composer__prompt:hover {
  border-color: #D44B0D;
  background: #FFF9F6;
  color: #041B26;
}

.quick-composer__prompt-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: #B83D06;
  white-space: nowrap;
}

.quick-composer__form {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(5, 74, 99, 0.10);
  display: grid;
  gap: 1.15rem;
}

.quick-composer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.35rem;
}

/* 4. WRITINGS FEED TOOLBAR & MODERN WRITINGS CARDS (Matches v34 Courses Craft) */
.writings-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.writings-toolbar .filter-pills {
  margin-top: 0;
}

.writings-count {
  font-size: 0.9rem;
  font-weight: 500;
  color: #5C7785;
}

.writings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 3.2vw, 2.65rem);
  margin-top: clamp(2.5rem, 4.2vw, 3.5rem);
}

@media (min-width: 780px) {
  .writings-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.writing-card {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.03),
    0 20px 50px -24px rgba(3, 51, 70, 0.13);
  transition: transform 0.48s var(--ease-wave), border-color 0.3s, box-shadow 0.48s var(--ease-wave);
}

.writing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(5, 74, 99, 0.22);
  box-shadow:
    0 6px 14px rgba(3, 51, 70, 0.05),
    0 28px 60px -22px rgba(3, 51, 70, 0.18);
}

.writing-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 640 / 340;
  background: #02202E;
  overflow: hidden;
  flex-shrink: 0;
}

.writing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-wave);
}

.writing-card:hover .writing-card__media img {
  transform: scale(1.035);
}

.writing-card__body {
  padding: clamp(1.65rem, 3vw, 2.45rem);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.writing-card__date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: #607B88;
  margin-bottom: 0.65rem;
}

.writing-card__admin-edit {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #086382;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: #E8F4F8;
}

.writing-card__admin-edit:hover {
  background: #054A63;
  color: #FFFFFF;
}

.writing-card__title {
  font-family: var(--font-serif);
  font-size: clamp(2.05rem, 2.75vw, 2.55rem);
  font-weight: 480;
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: #031B26;
  margin-bottom: 0.55rem;
}

.writing-card__title a:hover {
  color: #06526D;
}

.writing-card__bn {
  font-family: var(--font-bn);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
  color: #557180;
  margin-bottom: 1.3rem;
}

.writing-card__desc {
  font-size: clamp(1.03125rem, 1rem + 0.12vw, 1.09375rem);
  line-height: 1.72;
  color: #46606D;
  max-width: 44ch;
  margin-bottom: 1.85rem;
}

.writing-card__footer {
  margin-top: auto;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(5, 74, 99, 0.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

/* LIKE & DISLIKE PILL CONTROLS */
.reaction-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.48rem 0.88rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(5, 74, 99, 0.15);
  background: #F6FAFC;
  color: #395766;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.25s var(--ease-wave);
}

.reaction-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.reaction-btn:hover {
  border-color: #054A63;
  color: #041B26;
  background: #EAF4F8;
}

.reaction-btn--like.is-active {
  background: #E6F7F2;
  border-color: #0F8B6D;
  color: #096B53;
}

.reaction-btn--dislike.is-active {
  background: #FCECE4;
  border-color: #CC470A;
  color: #9E3405;
}

/* 5. FULL SINGLE-WRITING READER PAGE (writing.html) */
.reader-shell {
  max-width: 820px;
  margin-inline: auto;
}

.reader-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.reader-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.96875rem;
  font-weight: 600;
  color: #06526D;
}

.reader-back:hover {
  color: #B83D06;
}

.reader-header {
  margin-bottom: 2.35rem;
}

.reader-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #54707E;
  margin-bottom: 1.1rem;
}

.reader-cat {
  color: #9E3405;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

.reader-title {
  font-family: var(--font-serif);
  font-size: clamp(2.45rem, 5vw, 3.85rem);
  font-weight: 460;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: #031B26;
  margin-bottom: 0.75rem;
}

.reader-bn {
  font-family: var(--font-bn);
  font-size: 1.15rem;
  font-weight: 500;
  color: #4D6A78;
  margin-bottom: 1.25rem;
}

.reader-excerpt {
  font-size: clamp(1.125rem, 1.08rem + 0.22vw, 1.28rem);
  line-height: 1.68;
  color: #445F6C;
}

.reader-cover {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(5, 74, 99, 0.11);
  margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
  box-shadow: 0 22px 54px -22px rgba(3, 51, 70, 0.20);
}

.reader-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 680;
  object-fit: cover;
}

.reader-article {
  font-size: clamp(1.125rem, 1.09rem + 0.14vw, 1.22rem);
  line-height: 1.88;
  color: #253F4C;
}

.reader-article p {
  margin-bottom: 1.65rem;
}

.reader-article strong {
  color: #031B26;
  font-weight: 600;
}

.reader-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.7vw, 2.3rem);
  font-weight: 480;
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: #031B26;
  margin-top: 2.75rem;
  margin-bottom: 1.1rem;
}

.reader-h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.38rem, 2vw, 1.7rem);
  color: #031B26;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.reader-quote {
  margin-block: 2.25rem;
  padding: 1.65rem 1.85rem;
  border-left: 3.5px solid #D44B0D;
  background: #F4FAFC;
  border-radius: 0 16px 16px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.32rem, 2vw, 1.68rem);
  line-height: 1.48;
  color: #042432;
}

.reader-reaction-box {
  margin-top: 3.25rem;
  padding: clamp(1.5rem, 3vw, 2.15rem);
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.11);
  box-shadow: 0 14px 36px -20px rgba(3, 51, 70, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.reader-reaction-box__title {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  color: #031B26;
  margin-bottom: 0.2rem;
}

.reader-reaction-box__sub {
  font-size: 0.92rem;
  color: #54707D;
  margin: 0;
}

.reader-more {
  margin-top: clamp(4.5rem, 8vw, 6.5rem);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  border-top: 1px solid rgba(5, 74, 99, 0.11);
}

.empty-sanctuary {
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  color: #4D6A78;
}

/* 6. RESTRICTED ADMIN LOGIN GATE & MODERN ADMIN DASHBOARD (admin.html) */
.admin-gate-section {
  min-height: calc(100svh - 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.admin-login-card {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  background: #FFFFFF;
  border-radius: 24px;
  padding: clamp(2rem, 4.5vw, 3rem);
  color: #041B26;
  box-shadow: 0 34px 80px rgba(1, 18, 28, 0.45);
}

.admin-login-card__head {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-login-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.82rem;
  border-radius: var(--radius-pill);
  background: #EFF7FA;
  color: #064E67;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.admin-login-card__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #031B26 !important;
  line-height: 1.12;
  margin-bottom: 0.45rem;
}

.admin-login-card__sub {
  font-size: 0.9375rem;
  color: #4D6A78;
  line-height: 1.55;
}

.admin-pw-wrap {
  position: relative;
}

.admin-pw-wrap input {
  padding-right: 4.4rem;
}

.admin-pw-toggle {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  background: #E8F3F7;
  border: 0;
  border-radius: 7px;
  padding: 0.32rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #054A63;
  cursor: pointer;
}

.admin-login-error {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #FDF1EC;
  border: 1px solid rgba(204, 71, 10, 0.34);
  color: #9E3405;
  font-size: 0.9rem;
  font-weight: 500;
}

/* MODERN ADMIN STUDIO SHELL */
.admin-studio-shell {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4.5rem, 8vw, 6.5rem);
}

.admin-studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 3vw, 2.5rem);
  align-items: start;
}

@media (min-width: 980px) {
  .admin-studio-layout {
    grid-template-columns: 276px minmax(0, 1fr);
  }
}

.admin-sidebar {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.11);
  border-radius: 22px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  box-shadow: 0 14px 36px -22px rgba(3, 51, 70, 0.12);
}

@media (min-width: 980px) {
  .admin-sidebar {
    position: sticky;
    top: 102px;
  }
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(5, 74, 99, 0.10);
}

.admin-profile__name {
  font-size: 1rem;
  font-weight: 600;
  color: #031B26;
  line-height: 1.25;
}

.admin-profile__email {
  font-size: 0.82rem;
  color: #5A7684;
  word-break: break-all;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-nav__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.78rem 1rem;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: #365564;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.22s, color 0.22s;
}

.admin-nav__btn:hover {
  background: #EFF7FA;
  color: #031B26;
}

.admin-nav__btn.is-active {
  background: linear-gradient(180deg, #06526D 0%, #033548 100%);
  color: #FFFFFF;
  font-weight: 600;
}

.admin-sidebar__foot {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(5, 74, 99, 0.10);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.admin-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-panel-head h1,
.admin-panel-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: #031B26;
  line-height: 1.1;
  margin: 0;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 720px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.admin-kpi {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 24px -18px rgba(3, 51, 70, 0.12);
}

.admin-kpi__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5C7785;
  margin-bottom: 0.45rem;
}

.admin-kpi__val {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  color: #031B26;
  line-height: 1.1;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 16px;
  padding: 0.85rem 1rem;
}

.admin-search {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.62rem 0.95rem;
  border: 1px solid rgba(5, 74, 99, 0.18);
  border-radius: 10px;
  background: #F7FBFC;
  font-size: 0.9375rem;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-row {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 18px;
  padding: 1.15rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  box-shadow: 0 10px 28px -20px rgba(3, 51, 70, 0.12);
}

@media (min-width: 720px) {
  .admin-row {
    grid-template-columns: 148px minmax(0, 1fr) auto;
    padding: 1.15rem 1.35rem;
  }
}

.admin-row__thumb {
  width: 100%;
  aspect-ratio: 640 / 340;
  border-radius: 11px;
  overflow: hidden;
  background: #02202E;
}

.admin-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.admin-row__cat {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9E3405;
}

.admin-row__date {
  font-size: 0.8rem;
  color: #657F8C;
}

.admin-row__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #031B26;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.admin-row__bn {
  font-family: var(--font-bn);
  font-size: 0.88rem;
  color: #54707D;
  margin-bottom: 0.45rem;
}

.admin-row__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #5E7987;
}

.admin-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.9rem;
  border-radius: 9px;
  border: 1px solid rgba(5, 74, 99, 0.16);
  background: #F6FAFC;
  color: #163948;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-act-btn:hover {
  background: #E5F2F7;
  border-color: #054A63;
}

.admin-act-btn--primary {
  background: #054A63;
  border-color: #054A63;
  color: #FFFFFF;
}

.admin-act-btn--primary:hover {
  background: #033346;
}

.admin-act-btn--danger {
  color: #A83705;
  border-color: rgba(204, 71, 10, 0.24);
  background: #FFF7F4;
}

.admin-act-btn--danger:hover {
  background: #CC470A;
  border-color: #CC470A;
  color: #FFFFFF;
}

/* FULL WRITING STUDIO EDITOR CARD */
.admin-editor-card {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.11);
  border-radius: 22px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: 0 18px 44px -22px rgba(3, 51, 70, 0.12);
}

.editor-toolbar-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(5, 74, 99, 0.16);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #F2F8FA;
}

.editor-fmt-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.editor-fmt-btn {
  padding: 0.34rem 0.68rem;
  border-radius: 7px;
  border: 1px solid rgba(5, 74, 99, 0.15);
  background: #FFFFFF;
  color: #05394D;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.editor-fmt-btn:hover,
.editor-fmt-btn.is-active {
  background: #054A63;
  border-color: #054A63;
  color: #FFFFFF;
}

.editor-textarea {
  border-radius: 0 0 10px 10px !important;
  min-height: 290px !important;
  line-height: 1.75;
}

.editor-preview-box {
  padding: 1.75rem;
  border: 1px solid rgba(5, 74, 99, 0.16);
  border-radius: 0 0 10px 10px;
  background: #FAFDFE;
  min-height: 290px;
}

.editor-word-stats {
  font-size: 0.8125rem;
  color: #5C7785;
  margin-top: 0.45rem;
}

/* CLEAN MODAL & TOAST */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 24, 36, 0.62);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal__box {
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 1.85rem;
  box-shadow: 0 28px 64px rgba(1, 16, 26, 0.42);
}

.admin-modal__box h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #031B26;
  margin-bottom: 0.5rem;
}

.admin-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.duburi-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 260;
  padding: 0.9rem 1.35rem;
  border-radius: 12px;
  background: #033346;
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 16px 38px rgba(1, 18, 28, 0.34);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.28s, transform 0.32s var(--ease-wave);
}

.duburi-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.duburi-toast.is-error {
  background: #B83D06;
}


/* ==========================================================================
   v37 — GLOBAL [hidden] ENFORCEMENT & STAFF-ONLY LOGIN NOTICE BANNER
   ========================================================================== */
[hidden] {
  display: none !important;
}

.admin-notice-banner {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 13px;
  background: #FFF7F2;
  border: 1px solid rgba(204, 71, 10, 0.28);
  border-left: 3.5px solid #CC470A;
  color: #3D281E;
  font-size: 0.875rem;
  line-height: 1.58;
  text-align: left;
}

.admin-notice-banner__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9E3405;
  margin-bottom: 0.35rem;
}

.admin-notice-banner p {
  margin: 0;
  color: #463228;
}

.admin-notice-banner p + p {
  margin-top: 0.45rem;
  color: #4A6370;
  font-size: 0.84rem;
}

/* Polished Writing Card Preview Clamp so Long Writings Keep Clean Card Height */
.writing-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ==========================================================================
   v38 — NEXT-LEVEL WRITINGS SANCTUARY & READING EXPERIENCE
   - Strictly scoped fonts for Writings: Lora (Headlines) + Literata (Body)
   - Warm off-white paper (#FAF9F6) & soft charcoal ink (#222222)
   - Clean Title First -> Clean Rounded Image Below (Zero Text Over Images)
   - Simple Clickable Topic Words, Light/Dark Mode, Text Size & Continue Reading
   - Generous, Clutter-Free Empty Space Around Every Writing
   ========================================================================== */

:root {
  --font-writing-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-writing-body: 'Literata', Georgia, 'Times New Roman', serif;
  --paper-bg: #FAF9F6;
  --paper-surface: #FFFFFF;
  --paper-ink: #222222;
  --paper-muted: #5C5852;
  --paper-line: rgba(34, 34, 34, 0.10);
}

/* 1. WARM PAPER BACKGROUND ON WRITINGS FEED & FULL ARTICLE READER */
body.page-writings-paper,
body.page-writings-paper .section--pearl {
  background-color: var(--paper-bg);
  color: var(--paper-ink);
}

body.page-writing-reader {
  background-color: var(--paper-bg);
  color: var(--paper-ink);
  transition: background-color 0.35s ease, color 0.35s ease;
}

.reader-paper-section {
  background-color: var(--paper-bg);
  padding-block: clamp(3rem, 6.5vw, 5.5rem) clamp(5.5rem, 10vw, 8.5rem);
  transition: background-color 0.35s ease;
}

/* 2. SIMPLE CLICKABLE TOPIC WORDS (All, Reflections, Stories, Tazkiyah...) */
.topic-words-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem clamp(1.35rem, 2.8vw, 2.15rem);
  border-bottom: 1px solid var(--paper-line);
  padding-bottom: 0.1rem;
}

.topic-word {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0.55rem 0.1rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 1.03125rem;
  font-weight: 500;
  color: #6B665F;
  cursor: pointer;
  transition: color 0.25s ease;
}

.topic-word::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #CC470A;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease-wave);
}

.topic-word:hover {
  color: #222222;
}

.topic-word.is-active {
  color: #222222;
  font-weight: 600;
}

.topic-word.is-active::after {
  transform: scaleX(1);
}

/* 3. REDESIGNED WRITINGS CARDS: CLEAN TITLE FIRST -> CLEAN IMAGE BELOW (NO TEXT ON PHOTO!) */
.writing-card--editorial {
  background: var(--paper-surface);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 22px;
  padding: clamp(1.75rem, 3.2vw, 2.65rem);
  gap: 0;
  box-shadow:
    0 2px 6px rgba(34, 34, 34, 0.025),
    0 18px 46px -24px rgba(34, 34, 34, 0.11);
}

.writing-card__head {
  margin-bottom: clamp(1.35rem, 2.4vw, 1.8rem);
}

.writing-card__meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84375rem;
  font-weight: 500;
  color: var(--paper-muted);
  margin-bottom: 0.85rem;
}

.writing-card__topic {
  color: #A83705;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.writing-card__dot {
  opacity: 0.45;
}

/* STRICTLY LORA FOR WRITING HEADLINES */
.writing-card--editorial .writing-card__title {
  font-family: var(--font-writing-head);
  font-size: clamp(1.85rem, 2.45vw, 2.3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--paper-ink);
  margin-bottom: 0.5rem;
}

.writing-card--editorial .writing-card__title a {
  transition: color 0.25s;
}

.writing-card--editorial .writing-card__title a:hover {
  color: #054A63;
}

.writing-card--editorial .writing-card__bn {
  font-family: var(--font-bn);
  font-size: 0.96875rem;
  color: var(--paper-muted);
  margin-bottom: 0;
}

/* Clean, Slightly Rounded Image BELOW the Title with Generous Empty Space Around It */
.writing-card__figure {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #ECEAE4;
  margin-bottom: clamp(1.35rem, 2.4vw, 1.8rem);
}

.writing-card__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-wave);
}

.writing-card--editorial:hover .writing-card__figure img {
  transform: scale(1.028);
}

.writing-card__foot-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* STRICTLY LITERATA FOR WRITING PREVIEW BODY */
.writing-card--editorial .writing-card__desc {
  font-family: var(--font-writing-body);
  font-size: clamp(1rem, 0.98rem + 0.1vw, 1.0625rem);
  line-height: 1.76;
  color: #363431;
  max-width: 52ch;
  margin-bottom: 1.65rem;
}

.writing-card__resume-bar {
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background: rgba(34, 34, 34, 0.08);
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.writing-card__resume-bar span {
  display: block;
  height: 100%;
  background: #CC470A;
  border-radius: 99px;
}

.writing-card--editorial .writing-card__footer {
  border-top-color: var(--paper-line);
}

/* 4. EXPANSIVE, PEACEFUL SINGLE-WRITING READER SANCTUARY (writing.html) */
.page-writing-reader .reader-shell {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: clamp(0.25rem, 2vw, 1.25rem);
}

.page-writing-reader .reader-topbar {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--paper-line);
}

.reader-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  background: #F1EFE9;
  border: 1px solid rgba(34, 34, 34, 0.09);
}

.reader-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.78rem;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  color: #2E2C29;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.22s, color 0.22s;
}

.reader-ctrl-btn:hover:not(:disabled) {
  background: #FFFFFF;
  color: #054A63;
}

.reader-ctrl-btn:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.reader-ctrl-btn--size {
  padding-inline: 0.62rem;
  font-family: var(--font-writing-head);
}

.reader-ctrl-btn--edit {
  background: #054A63;
  color: #FFFFFF;
}

.reader-ctrl-btn--edit:hover {
  background: #033346;
  color: #FFFFFF;
}

.reader-ctrl-sep {
  width: 1px;
  height: 16px;
  background: rgba(34, 34, 34, 0.14);
}

/* CONTINUE READING RESUME BANNER */
.reader-resume-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-radius: 14px;
  background: #F3EFE7;
  border: 1px solid rgba(204, 71, 10, 0.22);
  font-size: 0.9375rem;
  color: #2C2926;
}

.reader-resume-bar__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.reader-resume-bar__btn {
  padding: 0.44rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 0;
  background: #CC470A;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.reader-resume-bar__btn:hover {
  background: #A83705;
}

.reader-resume-bar__close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #6B665F;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.reader-resume-bar__close:hover {
  background: rgba(34, 34, 34, 0.08);
  color: #222222;
}

/* STRICTLY LORA HEADLINE + GENEROUS EMPTY SPACE ABOVE CLEAN ROUNDED IMAGE */
.page-writing-reader .reader-header {
  margin-bottom: clamp(2.5rem, 5vw, 3.65rem);
}

.page-writing-reader .reader-meta-row {
  color: var(--paper-muted);
  margin-bottom: 1.25rem;
}

.reader-title,
.page-writing-reader .reader-title {
  font-family: var(--font-writing-head);
  font-size: clamp(2.25rem, 4.6vw, 3.35rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.018em;
  color: var(--paper-ink);
  margin-bottom: 0.9rem;
}

.page-writing-reader .reader-bn {
  color: var(--paper-muted);
  margin-bottom: 1.35rem;
}

.page-writing-reader .reader-excerpt {
  font-family: var(--font-writing-body);
  font-size: clamp(1.125rem, 1.08rem + 0.22vw, 1.25rem);
  line-height: 1.72;
  color: #4D4943;
}

/* Clean Slightly Rounded Image BELOW Title with Ample Empty Space */
.page-writing-reader .reader-cover {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(34, 34, 34, 0.08);
  margin-block: 0 clamp(3rem, 6vw, 4.5rem);
  box-shadow: 0 20px 50px -26px rgba(34, 34, 34, 0.20);
}

/* STRICTLY LITERATA FOR THE FULL WRITING BODY + DYNAMIC TEXT SIZE SCALES */
.reader-article {
  font-family: var(--font-writing-body);
  font-size: 1.15625rem; /* 18.5px comfortable default */
  line-height: 1.92;
  color: var(--paper-ink);
  max-width: 65ch;
  margin-inline: auto;
}

body[data-reader-size="sm"] .reader-article { font-size: 1.03125rem; line-height: 1.86; }
body[data-reader-size="md"] .reader-article { font-size: 1.15625rem; line-height: 1.92; }
body[data-reader-size="lg"] .reader-article { font-size: 1.28125rem; line-height: 1.94; }
body[data-reader-size="xl"] .reader-article { font-size: 1.40625rem; line-height: 1.96; }

.reader-article p {
  margin-bottom: 1.75rem;
  color: inherit;
}

.reader-article strong {
  color: inherit;
  font-weight: 600;
}

.reader-h2 {
  font-family: var(--font-writing-head);
  font-size: clamp(1.62rem, 2.5vw, 2.08rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.014em;
  color: var(--paper-ink);
  margin-top: 3.15rem;
  margin-bottom: 1.2rem;
}

.reader-h3 {
  font-family: var(--font-writing-head);
  font-size: clamp(1.32rem, 1.9vw, 1.62rem);
  font-weight: 600;
  color: var(--paper-ink);
  margin-top: 2.35rem;
  margin-bottom: 0.9rem;
}

.reader-quote {
  font-family: var(--font-writing-head);
  font-style: italic;
  margin-block: 2.65rem;
  padding: 1.65rem 1.95rem;
  border-left: 3px solid #CC470A;
  background: #F2EFE8;
  border-radius: 0 14px 14px 0;
  font-size: clamp(1.25rem, 1.85vw, 1.5rem);
  line-height: 1.58;
  color: #222222;
}

/* Inline Uploaded AVIF/WebP Figures Inside Writing Body */
.reader-inline-figure {
  margin-block: clamp(2.25rem, 4.5vw, 3.25rem);
  text-align: center;
}

.reader-inline-figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  box-shadow: 0 14px 36px -22px rgba(34, 34, 34, 0.18);
}

.reader-inline-figure figcaption {
  margin-top: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--paper-muted);
}

.page-writing-reader .reader-reaction-box {
  margin-top: clamp(3.5rem, 6vw, 4.75rem);
  background: #FFFFFF;
  border: 1px solid var(--paper-line);
}

.page-writing-reader .reader-reaction-box__title {
  font-family: var(--font-writing-head);
  color: var(--paper-ink);
}

/* 5. GENTLE NIGHT-READING DARK MODE ON writing.html */
body.page-writing-reader.reader-theme-dark {
  --paper-bg: #161A1D;
  --paper-surface: #1E2428;
  --paper-ink: #E8E4DC;
  --paper-muted: #A4A096;
  --paper-line: rgba(232, 228, 220, 0.12);
  background-color: var(--paper-bg);
  color: var(--paper-ink);
}

body.reader-theme-dark .reader-paper-section {
  background-color: var(--paper-bg);
}

body.reader-theme-dark .site-header {
  background-color: rgba(22, 26, 29, 0.96);
  border-bottom-color: rgba(232, 228, 220, 0.10);
}

body.reader-theme-dark .main-nav a,
body.reader-theme-dark .nav-dropdown__trigger {
  color: #D2CFC8;
}

body.reader-theme-dark .main-nav a:hover,
body.reader-theme-dark .main-nav a[aria-current="page"],
body.reader-theme-dark .nav-dropdown.is-active .nav-dropdown__trigger {
  color: #FFFFFF;
}

body.reader-theme-dark .menu-toggle span {
  background-color: #E8E4DC;
}

body.reader-theme-dark .reader-back {
  color: #8CE2EC;
}

body.reader-theme-dark .reader-controls {
  background: #22282D;
  border-color: rgba(232, 228, 220, 0.14);
}

body.reader-theme-dark .reader-ctrl-btn {
  color: #E8E4DC;
}

body.reader-theme-dark .reader-ctrl-btn:hover:not(:disabled) {
  background: #2E363C;
  color: #FFFFFF;
}

body.reader-theme-dark .reader-ctrl-sep {
  background: rgba(232, 228, 220, 0.18);
}

body.reader-theme-dark .reader-resume-bar {
  background: #21272C;
  border-color: rgba(255, 130, 67, 0.34);
  color: #E8E4DC;
}

body.reader-theme-dark .reader-resume-bar__close {
  color: #B6B1A8;
}

body.reader-theme-dark .reader-cat {
  color: #FF8E53;
}

body.reader-theme-dark .reader-excerpt {
  color: #C4C0B7;
}

body.reader-theme-dark .reader-quote {
  background: #1E2429;
  color: #EFECE5;
  border-left-color: #E05C1E;
}

body.reader-theme-dark .reader-reaction-box,
body.reader-theme-dark .writing-card--editorial {
  background: #1E2428;
  border-color: rgba(232, 228, 220, 0.11);
}

body.reader-theme-dark .writing-card--editorial .writing-card__desc {
  color: #C8C4BB;
}

body.reader-theme-dark .writing-card--editorial .writing-card__title a:hover {
  color: #8CE2EC;
}

body.reader-theme-dark .reaction-btn {
  background: #252C31;
  border-color: rgba(232, 228, 220, 0.16);
  color: #DEDAD2;
}

body.reader-theme-dark .reader-more .h2 {
  color: #E8E4DC;
}

body.reader-theme-dark .reader-more .eyebrow {
  color: #FF8E53;
}

/* 6. ADMIN EDITOR & QUICK COMPOSER UPLOADER + LITERATA WRITING FEEL */
.editor-textarea {
  font-family: var(--font-writing-body);
  font-size: 1.0625rem !important;
  line-height: 1.82 !important;
  background: var(--paper-bg) !important;
  color: var(--paper-ink) !important;
}

.editor-preview-box {
  background: var(--paper-bg);
  color: var(--paper-ink);
}

.upload-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
}

.upload-note {
  font-size: 0.875rem;
  color: #4D6A78;
  margin: 0;
}

.upload-rule-note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #6B8390;
}

.admin-cover-uploader {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: #F6FAFC;
  border: 1px solid rgba(5, 74, 99, 0.14);
  align-items: center;
}

@media (min-width: 640px) {
  .admin-cover-uploader {
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 1.25rem;
  }
}

.admin-cover-uploader__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #02202E;
}

.admin-cover-uploader__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-cover-uploader__meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}


/* ==========================================================================
   v41 — FULL-BLEED 100%-WIDTH ADMIN WRITING ROOM HERO COVER (admin.html)
   - Edge-to-edge 100% width: ZERO margin top/left/right, ZERO border, ZERO radius
   - Uses the Deep-Ocean Queen Pomegranate Writing Room illustration as background
   - Places Duburi Editorial + admin@duburi.org + D icon cleanly inside the cover
   ========================================================================== */
.admin-studio-shell {
  padding-top: 0 !important;
  padding-bottom: clamp(4.5rem, 8vw, 6.5rem);
}

.admin-hero-cover {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  min-height: clamp(290px, 37vw, 490px);
  background-color: #032636;
  background-image: url('../img/illus-admin-writing-room.webp?v=41.7');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Soft bottom-only oceanic gradient scrim so center Queen Pomegranate & Crown stay 100% luminous */
.admin-hero-cover__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 20, 31, 0.80) 0%,
    rgba(2, 24, 36, 0.34) 22%,
    rgba(2, 28, 42, 0.06) 44%,
    rgba(2, 28, 42, 0.0) 64%
  );
  pointer-events: none;
  z-index: 1;
}

.admin-hero-cover__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(1.35rem, 2.8vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.admin-hero-identity {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.admin-avatar--hero {
  width: clamp(46px, 5vw, 56px);
  height: clamp(46px, 5vw, 56px);
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  background: linear-gradient(135deg, rgba(6, 82, 109, 0.92) 0%, rgba(2, 31, 44, 0.96) 100%);
  border: 2px solid rgba(236, 198, 122, 0.85);
  box-shadow: 0 8px 24px rgba(1, 14, 22, 0.45);
}

.admin-hero-identity__text {
  min-width: 0;
}

.admin-hero-identity__name {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(1, 16, 26, 0.65);
}

.admin-hero-identity__email {
  font-size: clamp(0.875rem, 1.1vw, 0.96875rem);
  font-weight: 400;
  color: rgba(220, 243, 250, 0.88);
  text-shadow: 0 1px 10px rgba(1, 16, 26, 0.65);
  word-break: break-all;
  margin-top: 0.14rem;
}

.admin-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.36rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(3, 38, 54, 0.72);
  border: 1px solid rgba(191, 232, 240, 0.28);
  color: #DCF5FA;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7AD4E3;
}

.admin-hero-badge--live::before {
  background: #4CD9B0;
  box-shadow: 0 0 0 3px rgba(76, 217, 176, 0.24);
}

.admin-studio-body {
  padding-top: clamp(2rem, 4vw, 3.25rem);
}

@media (max-width: 640px) {
  .admin-hero-cover {
    min-height: 270px;
    background-position: center 36%;
  }
  .admin-hero-cover__inner {
    padding-block: 1.15rem 1.25rem;
    gap: 0.75rem;
  }
}


/* ==========================================================================
   v41.7 — DUBURI LOGO ADMIN AVATAR, NAME-ONLY COVER, CUSTOM CATEGORIES,
           READER LOGIN, STRICT COMMENTS & RICH SOCIAL SHARE PREVIEW MODAL
   ========================================================================== */

/* 1. Duburi Logo Profile Icon for Admin (Hero Cover & Quick Composer) */
.admin-avatar--logo {
  padding: 6px;
  display: inline-grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, #08627E 0%, #033346 65%, #021E2B 100%) !important;
}

.admin-avatar--logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.admin-avatar--hero.admin-avatar--logo {
  width: clamp(52px, 5.4vw, 64px);
  height: clamp(52px, 5.4vw, 64px);
  padding: 10px;
  border: 2px solid rgba(238, 198, 120, 0.88);
  box-shadow: 0 10px 26px rgba(1, 14, 22, 0.50);
}

.admin-hero-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.admin-hero-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.68rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(2, 24, 36, 0.56);
  color: #E3F6FA;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.admin-hero-edit-btn:hover {
  background: rgba(204, 71, 10, 0.90);
  border-color: rgba(255, 195, 160, 0.65);
  color: #FFFFFF;
}

/* Sidebar comments badge */
.admin-nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(5, 74, 99, 0.12);
  color: #054A63;
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-nav__btn.is-active .admin-nav__badge {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

/* 2. Custom Category Manager & Inline Category Adder */
.cat-inline-adder {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.cat-inline-adder input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.46rem 0.75rem !important;
  font-size: 0.85rem !important;
}

.cat-manage-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  max-width: 560px;
}

.cat-manage-form input {
  flex: 1 1 240px;
  padding: 0.68rem 0.95rem;
  border: 1px solid rgba(5, 74, 99, 0.22);
  border-radius: 10px;
  background: #FAFBF9;
  font-size: 0.95rem;
}

.admin-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.78rem;
  border-radius: var(--radius-pill);
  background: #F1F8FA;
  border: 1px solid rgba(5, 74, 99, 0.16);
  font-size: 0.875rem;
  font-weight: 500;
  color: #04202C;
}

.admin-cat-chip__count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #54707D;
  background: #FFFFFF;
  padding: 0.08rem 0.42rem;
  border-radius: var(--radius-pill);
}

.admin-cat-chip__del {
  border: 0;
  background: transparent;
  color: #9E3405;
  font-size: 1.08rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.admin-cat-chip__del:hover {
  color: #CC470A;
}

/* 3. Share Button & Rich Social Preview Modal */
.reaction-btn--share {
  color: #054A63;
}

.reaction-btn--share:hover {
  background: #E8F4F8;
  border-color: #054A63;
  color: #031B26;
}

.reader-ctrl-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.share-modal__box {
  max-width: 500px !important;
  max-height: 92svh;
  overflow-y: auto;
}

.reader-auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.reader-auth-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #9E3405;
}

.reader-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: #F1F5F7;
  color: #2B4552;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.reader-modal-close:hover {
  background: #E2EEF2;
  color: #031B26;
}

.share-preview-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(5, 74, 99, 0.14);
  background: #FAF9F6;
  margin-bottom: 1.2rem;
  box-shadow: 0 10px 26px -18px rgba(3, 51, 70, 0.25);
}

.share-preview-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 630;
  background: #02202E;
  overflow: hidden;
}

.share-preview-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.share-preview-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(2, 24, 36, 0.76);
  border: 1px solid rgba(191, 232, 240, 0.28);
  color: #E4F7FB;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-preview-card__body {
  padding: 0.95rem 1.1rem 1.05rem;
}

.share-preview-card__domain {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6B665F;
  margin-bottom: 0.25rem;
}

.share-preview-card__title {
  font-family: var(--font-writing-head);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.28;
  color: #031B26;
  margin-bottom: 0.32rem;
}

.share-preview-card__desc {
  font-size: 0.84rem;
  line-height: 1.48;
  color: #4D5E68;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.share-platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.5rem;
  border-radius: 11px;
  border: 1px solid rgba(5, 74, 99, 0.14);
  background: #F6FAFC;
  color: #082B3A;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
}

.share-platform-btn:hover {
  transform: translateY(-1px);
  color: #FFFFFF;
}

.share-platform-btn--wa:hover   { background: #168E48; border-color: #168E48; }
.share-platform-btn--fb:hover   { background: #1877F2; border-color: #1877F2; }
.share-platform-btn--x:hover    { background: #11161A; border-color: #11161A; }
.share-platform-btn--tg:hover   { background: #1C8CC8; border-color: #1C8CC8; }
.share-platform-btn--li:hover   { background: #0A66C2; border-color: #0A66C2; }
.share-platform-btn--mail:hover { background: #CC470A; border-color: #CC470A; }

.share-copy-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.share-copy-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.58rem 0.82rem;
  border: 1px solid rgba(5, 74, 99, 0.18);
  border-radius: 10px;
  background: #F5F9FB;
  color: #2A4754;
  font-size: 0.84rem;
}

/* 4. Reader Login / Sign Up Modal */
.reader-auth-box {
  max-width: 440px !important;
}

.reader-auth-sub {
  font-size: 0.9rem;
  color: #546A75;
  line-height: 1.55;
  margin-bottom: 1.15rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
  padding: 4px;
  border-radius: 12px;
  background: #EDF5F8;
  margin-bottom: 1.25rem;
}

.auth-tab {
  border: 0;
  border-radius: 9px;
  padding: 0.58rem 0.75rem;
  background: transparent;
  color: #3D5B69;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.auth-tab.is-active {
  background: #FFFFFF;
  color: #031B26;
  box-shadow: 0 2px 8px rgba(3, 51, 70, 0.10);
}

/* 5. Comments Section on writing.html (Warm Paper + Night Dark Mode Ready!) */
.comments-section {
  margin-top: clamp(3rem, 5.5vw, 4.25rem);
  padding-top: clamp(2.5rem, 4.5vw, 3.5rem);
  border-top: 1px solid var(--paper-line);
}

.comments-head {
  margin-bottom: 1.5rem;
}

.comments-title {
  font-family: var(--font-writing-head);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--paper-ink);
  margin-bottom: 0.4rem;
}

.comments-count {
  font-family: var(--font-sans);
  font-size: 0.85em;
  font-weight: 500;
  color: var(--paper-muted);
}

.comments-rule-note {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--paper-muted);
  margin: 0;
}

.comment-auth-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-radius: 16px;
  background: var(--paper-surface);
  border: 1px solid var(--paper-line);
  margin-bottom: 1.35rem;
}

.comment-auth-bar__who {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.comment-auth-bar__sub {
  font-size: 0.85rem;
  color: var(--paper-muted);
  margin-top: 0.12rem;
}

.comment-auth-bar__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.comment-composer {
  background: var(--paper-surface);
  border: 1px solid var(--paper-line);
  border-radius: 16px;
  padding: 1.15rem;
  margin-bottom: 2rem;
}

.comment-composer textarea,
.comment-reply-form textarea {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border: 1px solid var(--paper-line);
  border-radius: 11px;
  background: var(--paper-bg);
  color: var(--paper-ink);
  font-family: var(--font-writing-body);
  font-size: 0.98rem;
  line-height: 1.65;
  resize: vertical;
}

.comment-composer textarea:focus,
.comment-reply-form textarea:focus {
  outline: none;
  border-color: #054A63;
}

.comment-composer__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.comment-policy-note {
  font-size: 0.8125rem;
  color: var(--paper-muted);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.comments-empty {
  text-align: center;
  padding: 2.25rem 1.5rem;
  border-radius: 16px;
  background: var(--paper-surface);
  border: 1px dashed var(--paper-line);
  color: var(--paper-muted);
  font-size: 0.95rem;
}

.comment-card {
  background: var(--paper-surface);
  border: 1px solid var(--paper-line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}

.comment-card--admin {
  border-left: 3.5px solid #054A63;
  background: linear-gradient(180deg, rgba(5, 74, 99, 0.035) 0%, var(--paper-surface) 100%);
}

.comment-card--nested {
  margin-top: 0.85rem;
}

.comment-card__head {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  margin-bottom: 0.75rem;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #EAF3F6;
  color: #054A63;
  font-family: var(--font-writing-head);
  font-weight: 700;
  font-size: 0.98rem;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.comment-avatar--admin {
  background: radial-gradient(circle at 30% 25%, #08627E 0%, #033346 65%, #021E2B 100%);
  border: 1.5px solid rgba(232, 184, 98, 0.85);
  padding: 6px;
}

.comment-avatar--admin svg {
  width: 100%;
  height: 100%;
  display: block;
}

.comment-card__author-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.comment-card__author {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--paper-ink);
}

.comment-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(5, 74, 99, 0.08);
  color: #365564;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comment-role-badge--admin {
  background: #054A63;
  color: #FFFFFF;
}

.comment-card__time {
  display: block;
  font-size: 0.78rem;
  color: var(--paper-muted);
  margin-top: 0.08rem;
}

.comment-card__body {
  font-family: var(--font-writing-body);
  font-size: 1rem;
  line-height: 1.72;
  color: var(--paper-ink);
  word-break: break-word;
}

.comment-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.comment-act-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #06526D;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.comment-act-link:hover {
  color: #CC470A;
  text-decoration: underline;
}

.comment-act-link--danger {
  color: #9E3405;
}

.comment-replies {
  margin-top: 0.95rem;
  padding-left: clamp(0.85rem, 2.5vw, 1.5rem);
  border-left: 2px solid var(--paper-line);
}

.comment-reply-slot {
  margin-top: 0.85rem;
}

.comment-reply-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

/* Dark Reading Mode Harmony for Comments & Share Modal */
body.reader-theme-dark .comment-card--admin {
  border-left-color: #7AD4E3;
  background: linear-gradient(180deg, rgba(122, 212, 227, 0.07) 0%, var(--paper-surface) 100%);
}

body.reader-theme-dark .comment-avatar:not(.comment-avatar--admin) {
  background: #2A3339;
  color: #8CE2EC;
}

body.reader-theme-dark .comment-role-badge:not(.comment-role-badge--admin) {
  background: rgba(232, 228, 220, 0.12);
  color: #C4C0B7;
}

body.reader-theme-dark .comment-act-link {
  color: #8CE2EC;
}

body.reader-theme-dark .comment-act-link--danger {
  color: #FF8E53;
}

body.reader-theme-dark .admin-act-btn {
  background: #252C31;
  border-color: rgba(232, 228, 220, 0.16);
  color: #E8E4DC;
}

body.reader-theme-dark .admin-act-btn--primary {
  background: #086382;
  border-color: #086382;
  color: #FFFFFF;
}

/* 6. Admin Dashboard Comments Manager (admin.html) */
.admin-comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-comment-item {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.11);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 26px -20px rgba(3, 51, 70, 0.12);
}

.admin-comment-item__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.admin-comment-item__email {
  font-size: 0.84rem;
  color: #5C7785;
}

.admin-comment-item__where {
  font-size: 0.82rem;
  color: #5C7785;
  margin-top: 0.15rem;
}

.admin-comment-item__where a {
  color: #054A63;
  font-weight: 600;
  text-decoration: underline;
}

.admin-comment-item__body {
  font-size: 0.96875rem;
  line-height: 1.65;
  color: #173340;
  margin-bottom: 0.85rem;
}

.admin-comment-item__replies {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.admin-comment-reply-pill {
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: #EFF7FA;
  border-left: 3px solid #054A63;
  font-size: 0.875rem;
  color: #163746;
}

.admin-comment-reply-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-comment-reply-form input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.52rem 0.82rem;
  border: 1px solid rgba(5, 74, 99, 0.20);
  border-radius: 9px;
  background: #F7FBFC;
  font-size: 0.88rem;
}

@media (max-width: 520px) {
  .share-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
