/* ==========================================================================
   TULIP DIAGNOSTICS (P) LTD. - e-LEARNING CENTRE & ABOUT US
   Palette: Tulip Magenta Pink (#e20074) & Crisp White (#ffffff)
   Design Philosophy: Sleek, Uncluttered, Pure Editorial Clean
   ========================================================================== */

:root {
  --pink-primary: #e20074;
  --pink-dark: #b8005b;
  --pink-light: #ff4097;
  --pink-soft: #fdf2f7;
  --pink-tint: #fff8fa;
  --pink-glow: rgba(226, 0, 116, 0.16);
  --pink-border: rgba(226, 0, 116, 0.18);

  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-cursive: 'Dancing Script', cursive;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(226, 0, 116, 0.08);
  --shadow-image: 0 20px 45px rgba(226, 0, 116, 0.14), 0 0 0 1px rgba(226, 0, 116, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--gray-700);
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ==========================================================================
   Header: Top Brand Bar & Navigation
   ========================================================================== */

.brand-header {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.9rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-identity-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-logo-img:hover {
  opacity: 0.95;
  transform: scale(1.01);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-item {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--gray-700);
  text-decoration: none;
  position: relative;
  padding: 0.4rem 0.15rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
  color: var(--pink-primary);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--pink-primary);
  border-radius: 2px;
}

.login-link {
  color: var(--gray-700);
}

.login-link:hover {
  color: var(--pink-primary);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  user-select: none;
}

.nav-dropdown .dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  opacity: 0.75;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--pink-primary);
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 190px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.03);
  padding: 0.5rem;
  margin-top: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Bridge to prevent hover gap flicker */
.nav-dropdown .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--gray-700);
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, padding-left 0.15s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--pink-soft);
  color: var(--pink-primary);
  padding-left: 1.05rem;
}


/* ==========================================================================
   Full-Width Hero Section
   ========================================================================== */

.hero-fullwidth {
  position: relative;
  width: 100vw;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.20) 0%,
    rgba(255, 255, 255, 0.65) 60%,
    rgba(255, 255, 255, 0.96) 100%
  );
}

/* Reduced overlay specifically on Index Hero */
.index-hero .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.0) 0%,
    rgba(255, 255, 255, 0.08) 60%,
    rgba(255, 255, 255, 0.30) 100%
  );
}

/* Rich Smooth Overlay on About Us and HealthCare Market */
.about-hero .hero-overlay,
.healthcare-hero .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.68) 65%,
    rgba(255, 255, 255, 0.98) 100%
  );
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title-box {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.2rem 3rem;
  border-radius: 24px;
  border: 1.5px solid rgba(226, 0, 116, 0.2);
  box-shadow: 0 15px 35px rgba(226, 0, 116, 0.12);
  display: inline-block;
}

.hero-headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.2rem;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Brand Stylized Cursive 'e' */
.cursive-e-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 0.15rem;
  vertical-align: middle;
  background: radial-gradient(circle, #ffffff 30%, var(--pink-soft) 85%);
  border: 2.5px solid var(--pink-primary);
  border-radius: 50%;
  box-shadow: 0 4px 12px var(--pink-glow);
  position: relative;
  top: -3px;
}

.cursive-e {
  font-family: var(--font-cursive);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--pink-primary);
  transform: rotate(-6deg) translateY(-2px);
  display: inline-block;
  user-select: none;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Home Page: About Section (Left: Text, Right: Image)
   ========================================================================== */

.about-split-section {
  padding: 4.5rem 2rem 6rem 2rem;
  background: var(--white);
}

.about-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-left-col {
  display: flex;
  flex-direction: column;
}

.program-header {
  text-align: left;
  margin-bottom: 2rem;
}

.program-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  color: var(--gray-900);
  text-transform: uppercase;
}

.pink-accent-line {
  width: 52px;
  height: 3.5px;
  background: var(--pink-primary);
  border-radius: 2px;
  margin: 0.85rem 0 1.25rem 0;
}

.program-subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--pink-primary);
  letter-spacing: -0.01em;
}

.narrative-body {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.narrative-para {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--gray-700);
  letter-spacing: 0.01em;
}

.narrative-para strong {
  color: var(--gray-900);
  font-weight: 700;
}

.highlight-pink {
  color: var(--pink-primary);
  font-weight: 600;
}

.more-about-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 2.5rem;
}

.more-about-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--pink-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  background: var(--pink-soft);
  border: 1.5px solid var(--pink-border);
  transition: all 0.25s ease;
  cursor: pointer;
}

.more-about-link:hover {
  background: var(--pink-primary);
  color: var(--white);
  border-color: var(--pink-primary);
  transform: translateX(4px);
  box-shadow: 0 6px 18px var(--pink-glow);
}

.more-about-link .dots {
  letter-spacing: 0.15em;
}

.about-right-col {
  position: sticky;
  top: 6rem;
}

.about-image-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-image);
  background: #ffffff;
  border: 4px solid #ffffff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(226, 0, 116, 0.2), 0 0 0 1px var(--pink-primary);
}

.about-img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.image-floating-tag {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 0, 116, 0.25);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tag-icon {
  font-size: 1.5rem;
}

.tag-text {
  display: flex;
  flex-direction: column;
}

.tag-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pink-primary);
  line-height: 1.2;
}

.tag-sub {
  font-size: 0.76rem;
  color: var(--gray-600);
}

/* ==========================================================================
   About Us Page: 2 Distinct Rows (Images on the LEFT, Text on the RIGHT)
   ========================================================================== */

.about-page-section {
  padding: 4.5rem 2rem 6rem 2rem;
  background: var(--white);
}

.about-rows-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.about-row {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  gap: 4.5rem;
  align-items: start;
}

.about-row-visual {
  width: 100%;
}

.about-row-text {
  display: flex;
  flex-direction: column;
}

.about-row .visual-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-image);
  background: #ffffff;
  border: 4px solid #ffffff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3 / 4;
}

.about-row .visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(226, 0, 116, 0.2), 0 0 0 1px var(--pink-primary);
}

.about-row .visual-card .visual-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-row-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gray-200) 25%, var(--gray-200) 75%, transparent 100%);
  margin: 0.5rem 0;
}

.about-page-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 4.5rem;
  align-items: start;
}

/* Left Column: Visual Stack */
.about-visual-left {
  position: sticky;
  top: 6rem;
}

.visual-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.visual-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-image);
  background: #ffffff;
  border: 4px solid #ffffff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(226, 0, 116, 0.2), 0 0 0 1px var(--pink-primary);
}

.primary-visual .visual-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.secondary-visual .visual-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.product-visual-card {
  background: linear-gradient(145deg, #ffffff 0%, var(--pink-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem 4.5rem 1.5rem;
}

.product-visual-card .visual-img {
  height: 300px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.08));
}

.visual-badge {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 0, 116, 0.2);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.visual-badge-icon {
  font-size: 1.35rem;
}

.visual-badge-text {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--pink-primary);
  line-height: 1.2;
}

.badge-desc {
  font-size: 0.72rem;
  color: var(--gray-600);
}

/* Right Column: Clean Editorial Content */
.about-text-right {
  display: flex;
  flex-direction: column;
}

.content-heading-block {
  margin-bottom: 2rem;
}

.section-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-primary);
  display: inline-block;
  margin-bottom: 0.35rem;
}

.content-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: 0.04em;
  color: var(--gray-900);
  text-transform: uppercase;
}

.editorial-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.editorial-para {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--gray-700);
  letter-spacing: 0.01em;
}

.editorial-para em {
  font-style: italic;
  color: var(--gray-900);
}

.editorial-para strong {
  font-weight: 700;
  color: var(--gray-900);
}

/* Divisions Section */
.divisions-block {
  padding: 1.4rem 1.6rem;
  background: var(--pink-tint);
  border-radius: 16px;
  border-left: 4px solid var(--pink-primary);
  margin: 0.5rem 0;
}

.divisions-intro {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.85rem;
}

.divisions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
}

.divisions-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.list-bullet-icon {
  color: var(--pink-primary);
  font-size: 0.65rem;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

.publication-highlight {
  color: var(--pink-primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(226, 0, 116, 0.35);
  text-underline-offset: 3px;
}

.quote-emphasis {
  border-left: 3px solid var(--pink-primary);
  padding-left: 1.25rem;
  color: var(--gray-800);
  font-style: italic;
}

.conclusion-para {
  font-weight: 600;
  color: var(--gray-900);
  margin-top: 0.5rem;
}

/* HealthCare Market Page Specific Styling */
.categories-block {
  margin: 0.5rem 0 1rem 0;
  padding: 1.25rem 1.6rem;
  background: var(--pink-tint);
  border-radius: 14px;
  border-left: 4px solid var(--pink-primary);
}

.categories-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
}

.categories-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gray-900);
}

.category-num {
  color: var(--pink-primary);
  font-weight: 800;
  font-family: var(--font-heading);
}

.highlight-pink-text {
  color: var(--pink-primary);
  font-weight: 800;
}

.physician-utility-block {
  margin: 0.5rem 0;
}

.utility-intro {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.arrow-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0 0 0 0.5rem;
}

.arrow-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.arrow-icon {
  color: var(--pink-primary);
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
  position: relative;
  top: 1px;
}

.conclusion-highlight {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--gray-900);
  padding: 1.2rem 1.6rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--pink-soft) 100%);
  border-left: 4px solid var(--pink-primary);
  border-radius: 12px;
  border-top: 1px solid var(--pink-border);
  border-right: 1px solid var(--pink-border);
  border-bottom: 1px solid var(--pink-border);
  margin-top: 1.25rem;
  line-height: 1.75;
}

.conclusion-highlight u {
  text-decoration-color: var(--pink-primary);
  text-underline-offset: 3px;
}

/* Contact Queries & Sign-off */
.editorial-contact-signoff {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand-email-link {
  color: var(--pink-primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(226, 0, 116, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.brand-email-link:hover {
  color: var(--pink-dark);
  text-decoration-color: var(--pink-primary);
}

.editorial-signoff-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.signoff-wishes {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

.signoff-company {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pink-primary);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Healthcare Market Page: Feature Rows Layout (Image + Text Per Row)
   ========================================================================== */

.healthcare-page-section {
  padding: 4.5rem 2rem 6rem 2rem;
  background: var(--white);
}

.healthcare-rows-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.healthcare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.healthcare-row.row-reverse {
  grid-template-columns: 1fr 1.2fr;
}

.healthcare-row-text {
  display: flex;
  flex-direction: column;
}

.healthcare-row-visual {
  width: 100%;
}

.healthcare-row .visual-card {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-image);
  background: #ffffff;
  border: 4px solid #ffffff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.healthcare-row .visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(226, 0, 116, 0.2), 0 0 0 1px var(--pink-primary);
}

.healthcare-row .visual-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.healthcare-row .product-visual-card {
  background: linear-gradient(145deg, #ffffff 0%, var(--pink-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem 4.5rem 2rem;
  height: 380px;
}

.healthcare-row .product-visual-card .visual-img {
  height: 270px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.content-heading-block.center-aligned {
  text-align: center;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-heading-block.center-aligned .pink-accent-line {
  margin: 0.5rem auto 0 auto;
}

.healthcare-fullwidth-callout {
  width: 100%;
  margin: 0.5rem 0;
}

.healthcare-fullwidth-callout .conclusion-highlight {
  margin-top: 0;
  text-align: center;
  font-size: 1.18rem;
  padding: 1.35rem 2rem;
  border-radius: 14px;
}

/* ==========================================================================
   Exact Brand Footer (Matching Screenshot)
   ========================================================================== */

.site-footer {
  width: 100%;
  background: var(--white);
  border-top: 2px solid var(--gray-200);
  margin-top: 4rem;
  padding: 1.25rem 0;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
  white-space: nowrap;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pink-primary);
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  white-space: nowrap;
}

.footer-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--pink-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Policy Pages (Privacy Policy / Terms - Text Only, No Hero Images)
   ========================================================================== */

.policy-page-header {
  background: linear-gradient(180deg, var(--pink-tint) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--gray-200);
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
}

.policy-header-inner {
  max-width: 840px;
  margin: 0 auto;
}

.policy-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-primary);
  background: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 0, 116, 0.25);
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(226, 0, 116, 0.08);
}

.policy-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.75rem;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.policy-meta {
  font-size: 0.95rem;
  color: var(--gray-600);
  font-weight: 500;
}

.policy-page-container {
  max-width: 900px;
  margin: 3rem auto 5rem;
  padding: 0 2rem;
}

.policy-article {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 3.5rem 4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.policy-section {
  margin-bottom: 2.75rem;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pink-tint);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.policy-section-title span.section-num {
  color: var(--pink-primary);
  font-weight: 800;
}

.policy-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.policy-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--gray-700);
}

.policy-bullet {
  color: var(--pink-primary);
  font-size: 0.65rem;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

.policy-callout {
  background: var(--pink-tint);
  border-left: 4px solid var(--pink-primary);
  padding: 1.4rem 1.75rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.policy-callout p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-800);
  margin: 0;
}

.policy-contact-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 1.25rem;
}

.policy-contact-row {
  margin-bottom: 0.65rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
}

.policy-contact-row:last-child {
  margin-bottom: 0;
}

.policy-contact-row strong {
  color: var(--gray-900);
  min-width: 140px;
  display: inline-block;
}

/* Responsive adjustments for policy pages */
@media (max-width: 768px) {
  .policy-page-header {
    padding: 3rem 1.5rem 2rem;
  }
  
  .policy-title {
    font-size: 2.1rem;
  }
  
  .policy-article {
    padding: 2rem 1.5rem;
    border-radius: 14px;
  }
  
  .policy-section-title {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
  .about-container,
  .about-page-container,
  .about-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-rows-container {
    gap: 3.5rem;
  }

  .about-row .visual-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .about-row .visual-img {
    height: 100%;
    aspect-ratio: 3 / 4;
  }

  .healthcare-rows-container {
    gap: 4rem;
  }

  .healthcare-row,
  .healthcare-row.row-reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .healthcare-row.row-reverse .healthcare-row-visual {
    order: 2;
  }

  .healthcare-row.row-reverse .healthcare-row-text {
    order: 1;
  }

  .healthcare-row .visual-img,
  .healthcare-row .product-visual-card {
    height: 320px;
  }

  .about-visual-left,
  .about-right-col {
    position: static;
  }

  .primary-visual .visual-img {
    height: 340px;
  }

  .secondary-visual .visual-img {
    height: 260px;
  }

  .product-visual-card .visual-img {
    height: 240px;
  }

  .hero-fullwidth {
    height: 400px;
  }

  .hero-headline {
    font-size: 2.6rem;
  }

  .cursive-e-ring {
    width: 2.8rem;
    height: 2.8rem;
  }

  .cursive-e {
    font-size: 2.2rem;
  }

  .hero-title-box {
    padding: 1.75rem 2rem;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
    padding: 0 1.25rem;
  }

  .footer-tagline {
    font-size: 1.05rem;
  }

  .footer-links {
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .header-nav {
    gap: 1.25rem;
  }

  .nav-dropdown .dropdown-menu {
    right: 50%;
    transform: translateX(50%) translateY(6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    transform: translateX(50%) translateY(0);
  }

  .hero-fullwidth {
    height: 350px;
  }

  .hero-headline {
    font-size: 1.85rem;
  }

  .cursive-e-ring {
    width: 2.2rem;
    height: 2.2rem;
  }

  .cursive-e {
    font-size: 1.75rem;
  }

  .program-title,
  .content-title {
    font-size: 1.6rem;
  }

  .narrative-para,
  .editorial-para {
    font-size: 1rem;
    line-height: 1.75;
  }

  .about-split-section,
  .about-page-section,
  .healthcare-page-section {
    padding: 3rem 1.25rem 4rem 1.25rem;
  }

  .about-rows-container,
  .healthcare-rows-container {
    gap: 3rem;
  }

  .about-row .visual-card {
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
  }

  .about-row .visual-img {
    height: 100%;
    aspect-ratio: 3 / 4;
  }

  .healthcare-row .visual-img,
  .healthcare-row .product-visual-card {
    height: 270px;
  }

  .row-subtitle {
    font-size: 1.45rem;
  }
}

/* ==========================================================================
   PART 2: AUTHENTICATION & LOGIN SCREENS
   ========================================================================== */

.auth-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #edf0f5;
  color: var(--gray-800);
}

.auth-page-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.auth-heading-block {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-portal-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--pink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.auth-portal-title .cursive-e-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 2.5px solid var(--pink-primary);
  margin: 0 0.15rem;
}

.auth-portal-title .cursive-e {
  font-family: var(--font-cursive);
  font-size: 2.1rem;
  color: var(--pink-primary);
  line-height: 1;
  transform: translateY(-2px);
}

.auth-page-badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: rgba(226, 0, 116, 0.08);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(226, 0, 116, 0.15);
}

/* Login Card Structure */
.auth-card-container {
  width: 100%;
  max-width: 580px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.auth-card-container:hover {
  box-shadow: 0 20px 45px rgba(226, 0, 116, 0.12), 0 2px 5px rgba(15, 23, 42, 0.04);
}

/* Left Vertical Ribbon */
.auth-card-ribbon {
  background: linear-gradient(180deg, #e20074 0%, #b8005b 100%);
  width: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}

.auth-ribbon-text {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  user-select: none;
}

/* Right Content Form Body */
.auth-card-body {
  flex: 1;
  padding: 2.5rem 2.2rem;
  display: flex;
  flex-direction: column;
}

/* Alerts */
.alert-banner {
  padding: 0.85rem 1.15rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.45;
}

.alert-banner-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-banner-success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-banner-warning {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.alert-banner-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-700);
}

.form-field-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-text {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: #fdfdfe;
  border: 1.5px solid #d5dbe4;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.form-input-text:focus {
  border-color: var(--pink-primary);
  background: var(--white);
  box-shadow: 0 0 0 3.5px var(--pink-glow);
}

.form-input-text::placeholder {
  color: #94a3b8;
}

.input-has-prefix .form-input-text {
  padding-left: 2.6rem;
}

.input-prefix {
  position: absolute;
  left: 0.9rem;
  font-size: 1rem;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 0.35rem;
  font-size: 1.1rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.password-toggle-btn:hover {
  color: var(--pink-primary);
  background: rgba(226, 0, 116, 0.06);
}

/* Captcha Block */
.captcha-container-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.captcha-header-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
}

.captcha-render-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.captcha-image-render {
  height: 42px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  display: block;
}

.captcha-reload-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--gray-700);
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.captcha-reload-btn:hover {
  background: var(--pink-soft);
  border-color: var(--pink-primary);
  color: var(--pink-primary);
  transform: rotate(45deg);
}

/* Submit Button */
.btn-auth-submit {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #e20074 0%, #d1006a 100%);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(226, 0, 116, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-auth-submit:hover {
  background: linear-gradient(135deg, #ff0080 0%, #b8005b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 0, 116, 0.45);
}

.btn-auth-submit:active {
  transform: translateY(0);
}

.auth-switch-link-wrapper {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--gray-600);
}

.auth-switch-link {
  color: var(--pink-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.auth-switch-link:hover {
  color: var(--pink-dark);
  text-decoration: underline;
}

/* ==========================================================================
   PART 2: ADMIN LAYOUT & USER MANAGEMENT
   ========================================================================== */

.admin-body {
  background-color: #f3f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Admin Top Bar */
.admin-navbar {
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-nav-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.admin-brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.admin-brand-logo {
  height: 38px;
  width: auto;
}

.admin-nav-divider {
  width: 1px;
  height: 24px;
  background: #cbd5e1;
}

.admin-portal-badge {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink-primary);
  background: var(--pink-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--pink-border);
}

.admin-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-user-info-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.admin-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink-primary);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pink-border);
}

.btn-admin-logout {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  text-decoration: none;
  background: #ffffff;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-admin-logout:hover {
  color: #b91c1c;
  border-color: #fca5a5;
  background: #fef2f2;
}

/* Admin Container */
.admin-main-wrapper {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 4rem 1.5rem;
}

/* Page Header */
.admin-page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-header-title-group h1 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}

.admin-header-title-group p {
  color: #64748b;
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

/* Stat Cards Grid */
.admin-stats-grid {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.stat-card-widget {
  background: var(--white);
  border-radius: 12px;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 220px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
  border: 1px solid #e9edf3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.stat-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-icon-pink {
  background: #fdf2f7;
  color: var(--pink-primary);
  border: 1px solid var(--pink-border);
}

.stat-icon-green {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.stat-meta-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}

/* Action Controls Header */
.admin-action-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-filter-toggle {
  background: #ffffff;
  border: 1.5px solid #d5dbe4;
  color: var(--gray-700);
  padding: 0.65rem 1.15rem;
  border-radius: 25px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-filter-toggle:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-create-subuser {
  background: linear-gradient(135deg, #e20074 0%, #c40062 100%);
  color: var(--white);
  padding: 0.65rem 1.4rem;
  border-radius: 25px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(226, 0, 116, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-create-subuser:hover {
  background: linear-gradient(135deg, #ff0080 0%, #b8005b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 0, 116, 0.45);
}

/* User Management Table Card */
.admin-table-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  border: 1px solid #e9edf3;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.table-filter-bar {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #fafbfc;
}

.table-search-box {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.table-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}

.table-search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  font-size: 0.88rem;
  border: 1.5px solid #dbe1e8;
  border-radius: 20px;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.table-search-input:focus {
  border-color: var(--pink-primary);
  box-shadow: 0 0 0 3px var(--pink-glow);
}

.table-filter-status-select {
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1.5px solid #dbe1e8;
  border-radius: 20px;
  background: #ffffff;
  color: var(--gray-700);
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.table-filter-status-select:focus {
  border-color: var(--pink-primary);
}

/* Responsive Table */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.modern-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.modern-data-table th {
  background: #f8fafc;
  color: #64748b;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #edf2f7;
  white-space: nowrap;
}

.modern-data-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--gray-800);
  vertical-align: middle;
}

.modern-data-table tbody tr {
  transition: background 0.15s ease;
}

.modern-data-table tbody tr:hover {
  background: #fdfafc;
}

/* Cell Elements */
.user-identity-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.user-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--gray-800);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #e2e8f0;
}

.avatar-admin {
  background: var(--pink-soft);
  color: var(--pink-primary);
  border-color: var(--pink-border);
}

.user-full-name {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.92rem;
}

.user-handle-cell {
  color: #64748b;
  font-family: monospace;
  font-size: 0.9rem;
}

.user-email-cell {
  color: var(--gray-700);
}

/* Role Badges */
.badge-role {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-role-admin {
  background: #fdf2f7;
  color: var(--pink-primary);
  border: 1px solid var(--pink-border);
}

.badge-role-user {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Status Indicators */
.status-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-dot-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-active .status-dot-bullet {
  background: #10b981;
  box-shadow: 0 0 0 2.5px rgba(16, 185, 129, 0.2);
}

.status-active {
  color: #047857;
}

.status-inactive .status-dot-bullet {
  background: #94a3b8;
  box-shadow: 0 0 0 2.5px rgba(148, 163, 184, 0.2);
}

.status-inactive {
  color: #64748b;
}

.status-pending .status-dot-bullet {
  background: #f59e0b;
  box-shadow: 0 0 0 2.5px rgba(245, 158, 11, 0.2);
}

.status-pending {
  color: #b45309;
}

/* Action Icons */
.table-action-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.18s ease;
}

.action-icon-btn:hover {
  color: var(--pink-primary);
  border-color: var(--pink-primary);
  background: var(--pink-soft);
  transform: scale(1.08);
}

.action-icon-btn.btn-action-delete:hover {
  color: #dc2626;
  border-color: #fca5a5;
  background: #fef2f2;
}

.action-icon-btn.btn-action-toggle:hover {
  color: #2563eb;
  border-color: #bfdbfe;
  background: #eff6ff;
}

/* Table Footer / Pagination */
.table-footer-bar {
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #ffffff;
  border-top: 1px solid #edf2f7;
  font-size: 0.85rem;
  color: #64748b;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pagination-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pagination-btn:hover:not(.active):not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.pagination-btn.active {
  background: var(--pink-primary);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(226, 0, 116, 0.35);
}

/* ==========================================================================
   PART 2: CREATE & EDIT USER FORMS
   ========================================================================== */

.form-page-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.crud-form-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02);
  border: 1px solid #e9edf3;
  padding: 2.5rem 2.5rem 2rem 2.5rem;
}

.crud-card-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.crud-card-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink-primary);
}

.crud-card-subtitle {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* 2-Column Responsive Grid */
.crud-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.75rem;
}

.form-grid-full {
  grid-column: 1 / -1;
}

.input-icon-box {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.input-has-icon .form-input-text {
  padding-left: 2.5rem;
}

.input-readonly {
  background: #f8fafc !important;
  color: #64748b !important;
  cursor: not-allowed;
  border-style: solid;
}

/* System Access Switch Card */
.system-access-card {
  background: #fafbfc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.access-meta-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.access-key-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fdf2f7;
  color: var(--pink-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.access-text-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gray-900);
}

.access-text-sub {
  font-size: 0.78rem;
  color: #64748b;
}

/* iOS Style Switch */
.switch-container {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 26px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch-container input:checked + .switch-slider {
  background-color: var(--pink-primary);
}

.switch-container input:checked + .switch-slider:before {
  transform: translateX(22px);
}

/* Form Action Buttons */
.crud-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
}

.btn-form-cancel {
  padding: 0.65rem 1.6rem;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  border-radius: 25px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-form-cancel:hover {
  background: #f1f5f9;
  color: var(--gray-900);
  border-color: #94a3b8;
}

.btn-form-submit {
  padding: 0.65rem 1.8rem;
  border: none;
  background: linear-gradient(135deg, #e20074 0%, #c40062 100%);
  color: var(--white);
  border-radius: 25px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(226, 0, 116, 0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn-form-submit:hover {
  background: linear-gradient(135deg, #ff0080 0%, #b8005b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 0, 116, 0.45);
}

/* ==========================================================================
   PART 2: MODAL DIALOGS
   ========================================================================== */

.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.custom-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.custom-modal-card {
  background: var(--white);
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-modal-overlay.active .custom-modal-card {
  transform: translateY(0) scale(1);
}

.modal-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.modal-icon-danger {
  background: #fee2e2;
  color: #dc2626;
}

.modal-title-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.modal-desc-text {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.modal-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.btn-modal-cancel {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 25px;
  background: #ffffff;
  color: #475569;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modal-cancel:hover {
  background: #f1f5f9;
  color: var(--gray-900);
}

.btn-modal-confirm-delete {
  flex: 1;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 25px;
  background: #dc2626;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  transition: all 0.15s ease;
}

.btn-modal-confirm-delete:hover {
  background: #b91c1c;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45);
}

/* ==========================================================================
   PART 2: MOBILE RESPONSIVENESS
   ========================================================================== */

@media (max-width: 768px) {
  .auth-card-container {
    flex-direction: column;
  }

  .auth-card-ribbon {
    width: 100%;
    padding: 0.85rem 0;
  }

  .auth-ribbon-text {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.25rem;
    letter-spacing: 0.25em;
  }

  .auth-card-body {
    padding: 1.75rem 1.25rem;
  }

  .admin-navbar {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .admin-main-wrapper {
    padding: 1.5rem 1rem 3rem 1rem;
  }

  .admin-page-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-stats-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-card-widget {
    width: 100%;
  }

  .admin-action-controls {
    justify-content: stretch;
  }

  .btn-create-subuser,
  .btn-filter-toggle {
    flex: 1;
    justify-content: center;
  }

  .crud-form-card {
    padding: 1.75rem 1.25rem;
  }

  .crud-form-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .crud-form-actions {
    flex-direction: column-reverse;
  }

  .btn-form-cancel,
  .btn-form-submit {
    width: 100%;
  }

  .table-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .table-search-box {
    max-width: 100%;
  }
}

/* ==========================================================================
   PART 3: QUESTIONNAIRE & ASSESSMENT UI
   ========================================================================== */

.quiz-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #edf0f5;
  color: var(--gray-800);
}

.quiz-main-container {
  flex: 1 0 auto;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Quiz Header */
.quiz-module-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--pink-primary);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.3;
}

/* Progress Bar Container */
.quiz-progress-wrapper {
  width: 100%;
  max-width: 800px;
  margin-bottom: 1.75rem;
}

.quiz-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.quiz-progress-track {
  width: 100%;
  height: 8px;
  background: #cbd5e1;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff0080, #e20074);
  border-radius: 20px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question Container Card */
.quiz-question-card {
  width: 100%;
  max-width: 800px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 2rem 2.25rem;
  margin-bottom: 1.75rem;
  border: 1px solid #e2e8f0;
}

.quiz-question-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #6a1b9a;
  line-height: 1.5;
}

/* Options 2x2 Grid */
.quiz-options-grid {
  width: 100%;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.quiz-option-card {
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  min-height: 80px;
  position: relative;
}

.quiz-option-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.quiz-option-card.selected {
  border-color: var(--pink-primary);
  background: var(--pink-soft);
  box-shadow: 0 0 0 3px var(--pink-glow), 0 8px 20px rgba(226, 0, 116, 0.12);
}

.quiz-option-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.45;
  flex: 1;
}

/* Circle Radio Indicator */
.quiz-option-radio-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.quiz-option-card:hover .quiz-option-radio-circle {
  border-color: var(--pink-primary);
}

.quiz-option-card.selected .quiz-option-radio-circle {
  border-color: var(--pink-primary);
  background: var(--pink-primary);
}

.quiz-option-radio-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.quiz-option-card.selected .quiz-option-radio-inner {
  opacity: 1;
  transform: scale(1);
}

/* Bottom Controls */
.quiz-controls-row {
  width: 100%;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.quiz-instruction-pill {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
}

.btn-quiz-next {
  background: linear-gradient(135deg, #e20074 0%, #c40062 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 2.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(226, 0, 116, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-quiz-next:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff0080 0%, #b8005b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 0, 116, 0.45);
}

.btn-quiz-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   PART 3: RESULTS SCREEN & REVIEW DRAWER
   ========================================================================== */

.results-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f4f6fa;
  color: var(--gray-800);
}

.results-main-container {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Result Header Icon & Title */
.results-header-block {
  text-align: center;
  margin-bottom: 2.5rem;
}

.results-tier-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.results-headline {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.results-subtext {
  font-size: 1rem;
  color: #64748b;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 2-Column Results Card Grid */
.results-grid-2col {
  width: 100%;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

/* Left Card: Score Donut */
.results-score-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid #e9edf3;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.score-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

/* SVG Donut */
.score-donut-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 1.75rem;
}

.score-donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-donut-bg-circle {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 12;
}

.score-donut-fill-circle {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-donut-text-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-percent-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.score-percent-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.2rem;
}

.results-meta-boxes {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.results-meta-pill {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.results-meta-pill-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.results-meta-pill-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-top: 0.15rem;
}

/* Right Card: Incorrect Review Drawer */
.results-review-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid #e9edf3;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #edf2f7;
}

.review-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
}

.review-badge-count {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.review-badge-missed {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.review-badge-perfect {
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #86efac;
}

/* Scrollable Container for Missed Questions */
.review-items-scrollable {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 0.5rem;
}

.review-item-card {
  background: #fff8f8;
  border: 1.5px solid #fecaca;
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.review-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
}

.review-item-qnum {
  color: #dc2626;
}

.review-item-tag {
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
}

.review-item-question-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-900);
  line-height: 1.45;
}

.review-item-user-choice {
  background: #ffffff;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  color: #7f1d1d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Perfect Score State */
.perfect-score-box {
  padding: 3rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #166534;
}

.perfect-icon {
  font-size: 3rem;
}

/* Action Button */
.results-action-wrapper {
  margin-top: 1rem;
}

.btn-back-dashboard {
  background: linear-gradient(135deg, #e20074 0%, #c40062 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.85rem 2.5rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(226, 0, 116, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-back-dashboard:hover {
  background: linear-gradient(135deg, #ff0080 0%, #b8005b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(226, 0, 116, 0.45);
}

/* Module Dashboard Tags */
.module-badge-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-completed {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.badge-not-started {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   PART 3: RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 820px) {
  .quiz-options-grid {
    grid-template-columns: 1fr;
  }

  .quiz-controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .quiz-instruction-pill {
    text-align: center;
    justify-content: center;
  }

  .btn-quiz-next {
    width: 100%;
    justify-content: center;
  }

  .results-grid-2col {
    grid-template-columns: 1fr;
  }
}

