/* ==========================================================================
   ojiivf - Reusable Common CSS Framework & Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-primary-light: #eef2ff;

  --color-secondary: #06b6d4;
  --color-secondary-hover: #0891b2;
  --color-secondary-light: #ecfeff;

  --color-accent-rose: #ec4899;
  --color-accent-rose-hover: #db2777;
  --color-accent-rose-light: #fdf2f8;

  /* Status Colors */
  --color-success: #10b981;
  --color-success-light: #ecfdf5;
  --color-warning: #f59e0b;
  --color-warning-light: #fffbeb;
  --color-danger: #ef4444;
  --color-danger-light: #fef2f2;
  --color-info: #0ea5e9;
  --color-info-light: #f0f9ff;

  /* Neutral Shades */
  --color-dark-heading: #0f172a;
  --color-body-text: #475569;
  --color-muted-text: #64748b;
  --color-light-bg: #f8fafc;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-white: #ffffff;

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Border Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 45px -8px rgba(15, 23, 42, 0.12);
  --shadow-glow-primary: 0 8px 25px rgba(79, 70, 229, 0.35);

  /* Transitions */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Typography Base & Utilities
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-body-text);
  line-height: 1.6;
}

p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-body-text);
}

/* Base & Content Links - Theme Pink without Underline (Scoped Strictly to Content Bodies) */
a {
  color: #e01e5a;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: #b81446;
  text-decoration: none;
}

/* Specific Article & Legal Content Area Links */
.content-block-card a:not(.btn),
.content-block-card a:not(.btn) *,
.content-block-card a span,
.law-overview-content a:not(.btn),
.law-overview-content a:not(.btn) *,
.law-overview-content a span,
.law-secondary-body a:not(.btn),
.law-secondary-body a:not(.btn) *,
.law-secondary-body a span,
.blog-content a:not(.btn),
.blog-content a:not(.btn) *,
.blog-detail-content a:not(.btn),
.blog-detail-content a:not(.btn) *,
.article-content a:not(.btn),
.article-content a:not(.btn) *,
.policy-body-wrapper a:not(.btn),
.policy-body-wrapper a:not(.btn) * {
  color: #e01e5a !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.content-block-card a:not(.btn):hover,
.content-block-card a:not(.btn):hover *,
.law-overview-content a:not(.btn):hover,
.law-overview-content a:not(.btn):hover *,
.law-secondary-body a:not(.btn):hover,
.law-secondary-body a:not(.btn):hover *,
.blog-content a:not(.btn):hover,
.blog-content a:not(.btn):hover *,
.blog-detail-content a:not(.btn):hover,
.blog-detail-content a:not(.btn):hover *,
.article-content a:not(.btn):hover,
.article-content a:not(.btn):hover *,
.policy-body-wrapper a:not(.btn):hover,
.policy-body-wrapper a:not(.btn):hover * {
  color: #b81446 !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
}

.font-11 {
  font-size: 11px !important;
}

.font-12 {
  font-size: 12px !important;
}

.font-13 {
  font-size: 13px !important;
}

.font-14 {
  font-size: 14px !important;
}

.font-15 {
  font-size: 15px !important;
}

.font-16 {
  font-size: 16px !important;
}

.font-18 {
  font-size: 18px !important;
}

.font-20 {
  font-size: 20px !important;
}

.font-24 {
  font-size: 24px !important;
}

.text-slate-light {
  color: #e2e8f0 !important;
}

.text-pink-light {
  color: #ff85b1 !important;
}

.font-28 {
  font-size: 28px !important;
}

.font-32 {
  font-size: 32px !important;
}

.font-36 {
  font-size: 36px !important;
}

.font-48 {
  font-size: 48px !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

.fw-bold {
  font-weight: 600 !important;
}

.fw-extrabold,
.fw-bolder {
  font-weight: 600 !important;
}

b, strong, h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

/* Text Gradient Helpers */
.text-gradient-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-dark-heading {
  color: var(--color-dark-heading) !important;
}

.text-body-muted {
  color: var(--color-muted-text) !important;
}

/* --------------------------------------------------------------------------
   3. Reusable Button Components
   -------------------------------------------------------------------------- */
.btn-custom {
  font-family: var(--font-main);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  padding: 10px 22px;
  transition: var(--transition-base);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
}

.btn-custom-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: var(--color-white) !important;
  box-shadow: var(--shadow-glow-primary);
}

.btn-custom-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.45);
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, #3730a3 100%);
}

.btn-custom-accent {
  background: linear-gradient(135deg, var(--color-accent-rose) 0%, var(--color-accent-rose-hover) 100%);
  color: var(--color-white) !important;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.35);
}

.btn-custom-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.45);
}

.btn-custom-outline {
  background: var(--color-white);
  color: var(--color-primary) !important;
  border: 1.5px solid var(--color-border);
}

.btn-custom-outline:hover {
  background: var(--color-primary-light);
  border-color: rgba(79, 70, 229, 0.3);
  transform: translateY(-2px);
}

.btn-custom-pill {
  border-radius: var(--radius-full) !important;
}

.btn-custom-sm {
  padding: 6px 14px !important;
  font-size: 13px !important;
  border-radius: var(--radius-sm) !important;
}

.btn-custom-lg {
  padding: 14px 30px !important;
  font-size: 16px !important;
  border-radius: var(--radius-lg) !important;
}

/* --------------------------------------------------------------------------
   4. Reusable Icon Box Components
   -------------------------------------------------------------------------- */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: var(--transition-base);
}

.icon-box-sm {
  width: 38px;
  height: 38px;
  font-size: 16px;
  border-radius: var(--radius-sm);
}

.icon-box-md {
  width: 48px;
  height: 48px;
  font-size: 20px;
  border-radius: var(--radius-md);
}

.icon-box-lg {
  width: 64px;
  height: 64px;
  font-size: 28px;
  border-radius: var(--radius-lg);
}

.icon-box-rounded {
  border-radius: var(--radius-full) !important;
}

.icon-box-primary {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.icon-box-secondary {
  background: var(--color-secondary-light);
  color: var(--color-secondary);
}

.icon-box-rose {
  background: var(--color-accent-rose-light);
  color: var(--color-accent-rose);
}

.icon-box-success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.icon-box-warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.icon-box-danger {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.icon-box-info {
  background: var(--color-info-light);
  color: var(--color-info);
}

/* --------------------------------------------------------------------------
   5. Reusable Card Components
   -------------------------------------------------------------------------- */
.card-custom {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.card-custom-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 70, 229, 0.25);
}

.card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   6. Reusable Badges & Status Pills
   -------------------------------------------------------------------------- */
.badge-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.badge-soft-primary {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge-soft-secondary {
  background: var(--color-secondary-light);
  color: var(--color-secondary);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-soft-rose {
  background: var(--color-accent-rose-light);
  color: var(--color-accent-rose);
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.badge-soft-success {
  background: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-soft-danger {
  background: var(--color-danger-light);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-soft-warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* --------------------------------------------------------------------------
   7. Layout & Spacing Helpers
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 80px 0;
}

.section-padding-sm {
  padding: 45px 0;
}

.max-w-600 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.max-w-700 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.max-w-900 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   8. SVG Corner Dot Grid Pattern Helper Classes
   -------------------------------------------------------------------------- */
.corner-pattern {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.pattern-top-left {
  top: 15px;
  left: 15px;
}

.pattern-top-right {
  top: 15px;
  right: 15px;
  transform: scaleX(-1);
}

.pattern-bottom-left {
  bottom: 15px;
  left: 15px;
  transform: scaleY(-1);
}

.pattern-bottom-right {
  bottom: 15px;
  right: 15px;
  transform: rotate(180deg);
}

.pattern-pink g {
  fill: #e01e5a;
}

.pattern-purple g {
  fill: #452374;
}

/* --------------------------------------------------------------------------
   9. Top-Notch Glowing Line Brush Section Dividers
   -------------------------------------------------------------------------- */
.line-brush-divider {
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 28px;
  overflow: hidden;
  line-height: 0;
  z-index: 10;
  pointer-events: none;
}

.brush-glow-line {
  position: absolute;
  top: 13px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 82, 143, 0.4) 15%, 
    rgba(224, 30, 90, 0.9) 35%, 
    rgba(192, 132, 252, 1) 50%, 
    rgba(224, 30, 90, 0.9) 65%, 
    rgba(255, 82, 143, 0.4) 85%, 
    transparent 100%
  );
  box-shadow: 0 0 16px rgba(255, 82, 143, 0.6);
}

.line-brush-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 28px;
}

/* --------------------------------------------------------------------------
   10. Reusable Component: "Still Have Questions?" CTA Banner
   -------------------------------------------------------------------------- */
.faq-cta-section {
  padding: 50px 0 90px 0;
  background: linear-gradient(to right, #fde8ef 0%, #fff2f6 30%, #ffffff 65%, #f1e4fc 100%);
}

.faq-cta-card {
  background:
    radial-gradient(rgba(224, 30, 90, 0.22) 1.5px, transparent 1.5px),
    radial-gradient(rgba(167, 71, 254, 0.20) 1.5px, transparent 1.5px),
    linear-gradient(135deg, #2d1060 0%, #3b0f7a 50%, #280d58 100%) !important;
  background-size: 32px 32px, 32px 32px, 100% 100% !important;
  background-position: 0 0, 16px 16px, 0 0 !important;
  border-radius: 28px;
  padding: 36px 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(31, 20, 53, 0.2);
  position: relative;
  overflow: hidden;
}

.faq-cta-doc-wrapper {
  position: relative;
  display: inline-block;
}

.faq-cta-doc-wrapper::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 82, 143, 0.25) 0%, transparent 70%);
  filter: blur(12px);
  z-index: 1;
}

.faq-cta-doctor-img {
  width: 140px;
  height: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 28px rgba(224, 30, 90, 0.15);
  object-fit: cover;
  position: relative;
  z-index: 2;
  display: block;
}

.faq-cta-title {
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 8px;
}

.faq-cta-title span {
  color: #ff528f;
}

.faq-cta-desc {
  font-size: 13.5px;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 0;
}

.cta-features-flex {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

@media (max-width: 991.98px) {
  .cta-features-flex {
    justify-content: center;
  }
}

.cta-feature-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.cta-feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #fecdd3;
  color: #e01e5a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(224, 30, 90, 0.08);
}

.cta-feature-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
}

.cta-feature-divider {
  width: 1.5px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-cta-consultation {
  background: linear-gradient(135deg, #e01e5a 0%, #c2185b 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 34px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  box-shadow: 0 8px 22px rgba(224, 30, 90, 0.35);
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.btn-cta-consultation:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(224, 30, 90, 0.45);
}

/* ==========================================================================
   9. Global Mobile Responsiveness Enhancements
   ========================================================================== */
@media (max-width: 768px) {
  /* Prevent iOS Safari from auto-zooming into inputs below 16px */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  input[type="password"],
  select,
  textarea,
  .form-control,
  .form-select,
  .contact-input-field,
  .sidebar-input-field {
    font-size: 16px !important;
  }

  /* Modals on Mobile */
  .modal-dialog {
    margin: 12px auto !important;
    max-width: calc(100% - 24px) !important;
  }
  .modal-content {
    border-radius: 20px !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .modal-body {
    padding: 20px 16px !important;
  }

  /* Global Button Wrap Prevention & Touch Targets */
  .btn-hero-pink,
  .btn-cta-consultation {
    min-height: 44px;
    touch-action: manipulation;
  }
}

@media (max-width: 576px) {
  .btn-cta-consultation {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 20px !important;
  }
}

/* ==========================================================================
   Master Standardized Hero Section Framework (Consistent Across All Subpages)
   ========================================================================== */
.services-hero-section,
.law-hero-breadcrumb,
.eval-hero-section,
.about-hero-section,
.doctors-hero-section,
.contact-hero-section,
.consult-hero-section,
.blog-hero-section,
.faq-hero-section,
.gallery-hero-section,
.video-hero-section,
.testimonials-hero-section,
.law-hero-section {
  padding: 35px 0 40px 0 !important;
  min-height: 320px !important;
  background: linear-gradient(to right, #fde8ef 0%, #fff2f6 30%, #ffffff 65%, #f1e4fc 100%) !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
}

.services-hero-title,
.law-hero-title,
.eval-hero-title,
.about-hero-title,
.doctors-hero-title,
.contact-main-heading,
.consult-main-heading,
.blog-hero-title,
.faq-hero-title,
.testimonials-hero-title {
  font-size: clamp(24px, 2.5vw, 32px) !important;
  font-weight: 600 !important;
  color: #1e1b4b !important;
  line-height: 1.25 !important;
  margin-bottom: 10px !important;
  letter-spacing: -0.3px !important;
}

.services-hero-subtitle,
.eval-hero-subtitle,
.about-hero-subtitle,
.doctors-hero-subtitle,
.faq-hero-subtitle {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #e01e5a !important;
  margin-bottom: 10px !important;
  line-height: 1.35 !important;
}

.services-hero-desc,
.law-hero-sub,
.eval-hero-desc,
.about-hero-desc,
.contact-main-desc,
.consult-subtext,
.faq-hero-desc {
  font-size: 15px !important;
  color: #64748b !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
  max-width: 580px !important;
}

.hero-breadcrumbs,
.law-breadcrumb-nav,
.testimonials-breadcrumb {
  margin-bottom: 14px !important;
  font-size: 13.5px !important;
  color: #64748b !important;
}

.hero-breadcrumbs a,
.law-breadcrumb-nav a,
.testimonials-breadcrumb a {
  color: #64748b !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

.hero-breadcrumbs a:hover,
.law-breadcrumb-nav a:hover,
.testimonials-breadcrumb a:hover {
  color: #e01e5a !important;
}

.hero-breadcrumbs span.active,
.law-breadcrumb-nav .text-white,
.testimonials-breadcrumb .crumb-active {
  color: #1e1b4b !important;
  font-weight: 600 !important;
}

@media (max-width: 991.98px) {
  .hero-breadcrumbs,
  .law-breadcrumb-nav,
  .testimonials-breadcrumb,
  .breadcrumb-list {
    display: none !important;
  }
}

/* ==========================================================================
   Math Number Captcha (Plus / Minus) Component Styles
   ========================================================================== */
.math-captcha-wrapper {
  margin-bottom: 16px;
}

.math-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.math-captcha-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fff0f5 0%, #fdf2f8 50%, #f5f3ff 100%);
  border: 1.5px solid #fbcfe8;
  border-radius: 12px;
  padding: 8px 14px;
  height: 48px;
  box-shadow: 0 2px 8px rgba(224, 30, 90, 0.05);
  flex-shrink: 0;
  user-select: none;
}

.math-captcha-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #831843;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
}

.math-captcha-text {
  font-size: 16px;
  font-weight: 800;
  color: #1e1b4b;
  letter-spacing: 1px;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px dashed #f472b6;
  min-width: 75px;
  text-align: center;
}

.btn-refresh-math {
  background: transparent;
  border: none;
  color: #e01e5a;
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.btn-refresh-math:hover {
  color: #9035ea;
  transform: rotate(180deg);
}

.math-captcha-input-box {
  flex: 1;
  min-width: 85px;
}

.math-captcha-input {
  height: 48px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  text-align: center;
  border-radius: 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  transition: all 0.2s ease !important;
}

.math-captcha-input:focus {
  border-color: #e01e5a !important;
  box-shadow: 0 0 0 3px rgba(224, 30, 90, 0.12) !important;
}

@media (max-width: 575.98px) {
  .math-captcha-row {
    flex-direction: row;
    gap: 8px;
  }
  .math-captcha-badge {
    padding: 6px 10px;
    gap: 6px;
    height: 44px;
  }
  .math-captcha-label {
    display: none;
  }
  .math-captcha-text {
    font-size: 14.5px;
    padding: 3px 8px;
    min-width: 65px;
  }
  .math-captcha-input {
    height: 44px !important;
    font-size: 14px !important;
  }
}