/* ==========================================================================
   Shreeram Homeo Clinic - Dedicated Special Diabetes Care Page Styling
   Design Tokens: Inherits from style.css (--orange, --ink, --muted, etc.)
   ========================================================================== */

/* Page Shell & Hero */
.diabetes-page-hero {
  position: relative;
  min-height: clamp(440px, 58vh, 560px);
  padding: 60px 0 44px;
  background: linear-gradient(135deg, #fff7eb 0%, #ffffff 50%, #fde8da 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.diabetes-page-hero::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: min(340px, 35vw);
  height: min(340px, 35vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 90, 5, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.diabetes-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.diabetes-hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(234, 90, 5, 0.1);
  border: 1px solid rgba(234, 90, 5, 0.22);
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 750;
}

.diabetes-hero-copy h1 {
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 16px;
  font-weight: 800;
}

.diabetes-hero-copy p {
  font-size: clamp(15px, 1.15vw, 17px);
  color: #333333;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 620px;
}

.diabetes-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.diabetes-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px dashed rgba(234, 90, 5, 0.25);
  font-size: 13px;
  color: #4a4a4a;
  font-weight: 600;
}

.diabetes-hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.diabetes-hero-badges i {
  color: var(--orange);
}

.diabetes-hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.diabetes-hero-img-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(55, 32, 14, 0.14);
  border: 4px solid var(--white);
}

.diabetes-hero-img-card img {
  width: 100%;
  height: clamp(280px, 36vw, 380px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.diabetes-hero-floating {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(234, 90, 5, 0.25);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.diabetes-hero-floating strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.2;
}

.diabetes-hero-floating small {
  font-size: 11.5px;
  color: #666;
}

.diabetes-hero-floating i {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 16px;
}

/* Accessible Sticky Conditions Quick-Navigation */
.diabetes-nav-bar {
  position: sticky;
  top: 72px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 90, 5, 0.2);
  box-shadow: 0 8px 24px rgba(55, 32, 14, 0.05);
  padding: 10px 0;
}

.diabetes-nav-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(234, 90, 5, 0.3) transparent;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.diabetes-nav-scroll::-webkit-scrollbar {
  height: 4px;
}

.diabetes-nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(234, 90, 5, 0.3);
  border-radius: 99px;
}

.diabetes-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff7eb;
  border: 1px solid rgba(234, 90, 5, 0.18);
  color: #333333;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 180ms ease;
  flex-shrink: 0;
}

.diabetes-nav-link:hover,
.diabetes-nav-link:focus-visible,
.diabetes-nav-link.is-active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 90, 5, 0.25);
}

/* Section Common Layout */
.diabetes-condition-section {
  padding: 64px 0;
  border-bottom: 1px solid #f1e5d8;
  scroll-margin-top: 135px;
}

.diabetes-condition-section:nth-child(even) {
  background: #fffdfa;
}

.condition-header {
  margin-bottom: 32px;
}

.condition-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.condition-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
}

.condition-category-badge {
  font-size: 12px;
  font-weight: 750;
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.condition-header h2 {
  font-size: clamp(1.9rem, 2.7vw, 2.45rem);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.condition-summary-lead {
  font-size: 16px;
  color: #3f3f3f;
  line-height: 1.65;
  max-width: 900px;
}

/* Content Cards Grid */
.condition-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.condition-card {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(234, 90, 5, 0.16);
  box-shadow: 0 6px 20px rgba(55, 32, 14, 0.04);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.condition-card:hover {
  transform: translateY(-2px);
  border-color: rgba(234, 90, 5, 0.35);
  box-shadow: 0 12px 28px rgba(234, 90, 5, 0.08);
}

.condition-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(234, 90, 5, 0.12);
}

.condition-card-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #fff4ea;
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 15px;
}

.condition-card-header h3 {
  font-size: 16px;
  color: var(--ink);
  font-weight: 750;
  margin: 0;
}

.condition-card p {
  font-size: 14px;
  color: #383838;
  line-height: 1.65;
  margin: 0 0 10px;
}

.condition-card ul {
  margin: 0;
  padding-left: 18px;
  color: #383838;
  font-size: 13.5px;
  line-height: 1.65;
}

.condition-card li {
  margin-bottom: 6px;
}

/* Callout Boxes: Red Flag Urgent Alert & Homeopathy Consultation */
.callout-box {
  border-radius: 18px;
  padding: 20px 24px;
  margin-top: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.callout-urgent {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-left: 5px solid #e53e3e;
}

.callout-urgent i {
  color: #e53e3e;
  font-size: 22px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.callout-urgent-content strong {
  display: block;
  color: #9b2c2c;
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.callout-urgent-content p {
  color: #4a1d1d;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

.callout-homeo {
  background: #fff9f0;
  border: 1px solid rgba(234, 90, 5, 0.22);
  border-left: 5px solid var(--orange);
}

.callout-homeo i {
  color: var(--orange);
  font-size: 22px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.callout-homeo-content strong {
  display: block;
  color: var(--orange-dark);
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.callout-homeo-content p {
  color: #33261d;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 8px;
}

.callout-homeo-content p:last-child {
  margin-bottom: 0;
}

/* Doctor Source Audit & Clinical Review Badges */
.source-provenance-box {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  color: #475569;
}

.source-provenance-box strong {
  color: #1e293b;
}

.clinical-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 750;
  margin-top: 6px;
}

/* Bottom CTA & Safety Disclaimer */
.diabetes-consultation-banner {
  margin: 54px auto 36px;
  padding: 42px 48px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--orange) 0%, #d45505 100%);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 36px;
  align-items: center;
  box-shadow: 0 24px 56px rgba(212, 85, 5, 0.28);
}

.diabetes-consultation-banner h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.diabetes-consultation-banner p {
  color: #ffece0;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.diabetes-consult-phone {
  display: inline-block;
  color: #ffffff;
  font-size: 18px;
  font-weight: 850;
  text-decoration: underline;
  margin-bottom: 16px;
}

.diabetes-consult-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.diabetes-consult-actions .btn-light {
  background: var(--white);
  color: var(--orange-dark);
}

.diabetes-consult-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.diabetes-doctor-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.diabetes-doctor-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  border: 2px solid var(--white);
  object-fit: cover;
  background: var(--white);
}

.diabetes-doctor-info strong {
  display: block;
  font-size: 16px;
  color: var(--white);
  font-weight: 800;
}

.diabetes-doctor-info small {
  display: block;
  color: #ffeedd;
  font-size: 12.5px;
  margin-top: 3px;
}

/* Master Disclaimer Box */
.diabetes-disclaimer-card {
  margin: 0 auto 54px;
  padding: 24px 28px;
  border-radius: 20px;
  background: #fff8f0;
  border: 1px solid rgba(234, 90, 5, 0.24);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.diabetes-disclaimer-card i {
  color: var(--orange);
  font-size: 24px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.diabetes-disclaimer-card h3 {
  font-size: 15px;
  color: var(--orange-dark);
  font-weight: 800;
  margin-bottom: 6px;
}

.diabetes-disclaimer-card p {
  font-size: 13.5px;
  color: #3c3c3c;
  line-height: 1.65;
  margin: 0;
}

/* Responsive Media Queries */
@media (max-width: 980px) {
  .diabetes-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .diabetes-hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }
  .diabetes-hero-actions,
  .diabetes-hero-badges {
    justify-content: center;
  }
  .condition-details-grid {
    grid-template-columns: 1fr;
  }
  .diabetes-consultation-banner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    text-align: center;
  }
  .diabetes-consult-actions {
    justify-content: center;
  }
  .diabetes-doctor-card {
    justify-content: center;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .diabetes-page-hero {
    padding: 40px 0 32px;
  }
  .diabetes-hero-copy h1 {
    font-size: clamp(1.85rem, 7.8vw, 2.4rem);
  }
  .condition-header h2 {
    font-size: clamp(1.55rem, 6.2vw, 1.95rem);
  }
  .diabetes-condition-section {
    padding: 44px 0;
    scroll-margin-top: 120px;
  }
  .condition-card {
    padding: 18px 16px;
  }
  .callout-box {
    padding: 16px;
    flex-direction: column;
    gap: 10px;
  }
  .diabetes-consultation-banner {
    padding: 26px 18px;
    border-radius: 24px;
  }
  .diabetes-disclaimer-card {
    padding: 18px 16px;
    flex-direction: column;
    gap: 10px;
  }
}


/* ==========================================================================
   Task 22 - Table of Contents, Callout Badges & Accessibility Enhancements
   ========================================================================== */

/* Top Strip Phone Links */
.top-phone {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  transition: color 150ms ease;
}

.top-phone:hover,
.top-phone:focus-visible {
  color: var(--orange);
  text-decoration: underline;
}

/* Compact Table of Contents Directory Section */
.diabetes-toc-section {
  padding: 36px 0 24px;
  background: #fffcf8;
  border-bottom: 1px solid rgba(234, 90, 5, 0.15);
  scroll-margin-top: 80px;
}

.diabetes-toc-card {
  background: var(--white);
  border: 1px solid rgba(234, 90, 5, 0.2);
  border-radius: 26px;
  padding: 30px 34px;
  box-shadow: 0 10px 28px rgba(55, 32, 14, 0.05);
}

.diabetes-toc-header {
  margin-bottom: 22px;
}

.toc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(234, 90, 5, 0.1);
  border: 1px solid rgba(234, 90, 5, 0.24);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.diabetes-toc-header h2 {
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  color: var(--ink);
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.25;
}

.diabetes-toc-header p {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
  max-width: 820px;
}

.diabetes-toc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  background: #fff7eb;
  border: 1px solid rgba(234, 90, 5, 0.2);
  text-decoration: none;
  color: var(--ink);
  transition: all 180ms ease;
}

.toc-item:hover,
.toc-item:focus-visible {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 90, 5, 0.22);
}

.toc-item:hover .toc-text strong,
.toc-item:hover .toc-text small,
.toc-item:hover .toc-num,
.toc-item:hover i {
  color: var(--white);
}

.toc-item:hover .toc-num {
  background: rgba(255, 255, 255, 0.24);
}

.toc-num {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  background: var(--white);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 850;
  display: grid;
  place-items: center;
  border: 1px solid rgba(234, 90, 5, 0.2);
  transition: all 180ms ease;
}

.toc-text {
  min-width: 0;
  flex: 1;
}

.toc-text strong {
  display: block;
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 180ms ease;
}

.toc-text small {
  display: block;
  font-size: 11px;
  color: #64748b;
  line-height: 1.25;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 180ms ease;
}

.toc-item i {
  font-size: 12px;
  color: var(--orange);
  opacity: 0.75;
  transition: all 180ms ease;
}

/* Accessible Callout Badges (Ensuring meaning is not conveyed by color alone) */
.callout-badge-row {
  margin-bottom: 8px;
}

.callout-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-urgent {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.badge-homeo {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
}

/* Callout Box Refinements for High Contrast & Visual Hierarchy */
.callout-box.callout-urgent {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 6px solid #dc2626;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.06);
}

.callout-urgent i {
  color: #dc2626;
}

.callout-urgent-content h4 {
  font-size: 15px;
  font-weight: 800;
  color: #991b1b;
  margin: 0 0 6px;
  line-height: 1.3;
}

.callout-urgent-content p {
  color: #450a0a;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

.callout-box.callout-homeo {
  background: #fffaf0;
  border: 1px solid #fed7aa;
  border-left: 6px solid #ea580c;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.05);
}

.callout-homeo i {
  color: #ea580c;
}

.callout-homeo-content h4 {
  font-size: 15px;
  font-weight: 800;
  color: #9a3412;
  margin: 0 0 6px;
  line-height: 1.3;
}

.callout-homeo-content p {
  color: #292524;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 8px;
}

.callout-homeo-content p:last-child {
  margin-bottom: 0;
}

/* Responsive Styles for Table of Contents */
@media (max-width: 1120px) {
  .diabetes-toc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .diabetes-toc-section {
    padding: 24px 0 16px;
  }
  .diabetes-toc-card {
    padding: 20px 16px;
    border-radius: 18px;
  }
  .diabetes-toc-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .toc-item {
    padding: 12px 14px;
  }
}
