/* ==========================================================================
   HANTEST.RU - MODERN DESIGN SYSTEM 2026
   Preserving native brand colors: Deep Slate Navy, Coral Red, Turquoise Teal
   ========================================================================== */

:root {
  --ht-navy: #243342;
  --ht-navy-dark: #1b2834;
  --ht-navy-light: #2c4959;
  --ht-teal: #2997ab;
  --ht-teal-dark: #21759b;
  --ht-teal-light: #36b3ca;
  --ht-coral: #ff5858;
  --ht-coral-dark: #d93829;
  --ht-coral-light: #ff7878;
  --ht-bg: #f8fafc;
  --ht-bg-card: #ffffff;
  --ht-text: #334155;
  --ht-text-dark: #1e293b;
  --ht-text-muted: #64748b;
  --ht-border: #e2e8f0;
  --ht-border-soft: #edf2f7;
  --ht-radius: 8px;
  --ht-radius-sm: 6px;
  --ht-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  --ht-shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   GLOBAL RESET & TYPOGRAPHY FIXES
   -------------------------------------------------------------------------- */
body {
  color: var(--ht-text);
  background-color: #f4f6f8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fix text squishing & clear float collisions */
.entry-content,
.kg-article {
  text-align: left !important;
  line-height: 1.7;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  text-align: left !important;
  line-height: 1.7;
  margin-bottom: 18px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  clear: both !important;
  text-align: left !important;
  color: var(--ht-navy);
  margin-top: 28px;
  margin-bottom: 14px;
}

.entry-content h2 {
  font-size: 24px;
  border-bottom: 2px solid var(--ht-border-soft);
  padding-bottom: 8px;
  position: relative;
}

.entry-content h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--ht-coral);
}

/* Responsive Image Float Fix */
@media (max-width: 767px) {
  .entry-content img.alignleft,
  .entry-content img.alignright,
  .entry-content img {
    float: none !important;
    display: block !important;
    margin: 16px auto !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE HEADER & MOBILE NAVIGATION
   -------------------------------------------------------------------------- */
.ht-mobile-toggle {
  display: none;
  background: var(--ht-teal);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--ht-radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin: 10px auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 800px) {
  .ht-mobile-toggle {
    display: inline-flex;
  }

  #top_menu_wrap .nav-menu {
    display: none;
    flex-direction: column;
    background: var(--ht-navy-dark);
    padding: 12px 0;
  }

  #top_menu_wrap .nav-menu.ht-menu-open {
    display: flex !important;
  }

  #top_menu_wrap .nav-menu li {
    float: none;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  #top_menu_wrap .nav-menu li a {
    padding: 12px 20px;
    display: block;
    color: #ffffff;
  }

  .site-header .col {
    width: 100% !important;
    float: none !important;
    text-align: center;
  }

  .site-header .contacts {
    margin: 14px 0;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   HERO BANNER & MODERN MANAGER WIDGET FIX
   -------------------------------------------------------------------------- */
#bannercontainer {
  position: relative;
  overflow: hidden;
  background-color: var(--ht-navy-dark);
  border-radius: var(--ht-radius);
  margin-bottom: 30px;
}

.banner.row {
  position: relative;
  min-height: 280px;
}

/* Modern Manager Card (Replaces awkward 2011 ICQ box) */
.ht-banner-manager {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 5;
  width: 280px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--ht-border);
  border-top: 3px solid var(--ht-teal);
  border-radius: var(--ht-radius);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.ht-manager__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ht-teal-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--ht-border);
}

.ht-manager__body {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.ht-manager__avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ht-teal);
  flex-shrink: 0;
}

.ht-manager__info {
  display: flex;
  flex-direction: column;
}

.ht-manager__name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ht-navy);
  margin: 0 0 2px;
}

.ht-manager__role {
  font-size: 12px;
  color: var(--ht-text-muted);
  line-height: 1.3;
}

.ht-manager__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #27ae60;
  font-weight: 700;
  margin-top: 4px;
}

.ht-status-dot {
  width: 7px;
  height: 7px;
  background: #27ae60;
  border-radius: 50%;
  animation: htPulse 2s infinite;
}

@keyframes htPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(39, 174, 96, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

.ht-manager__contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px dashed var(--ht-border);
  padding-top: 10px;
}

.ht-manager__phone {
  font-size: 14px;
  font-weight: 800;
  color: var(--ht-navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ht-manager__phone:hover {
  color: var(--ht-coral);
}

.ht-manager__email {
  font-size: 12px;
  color: var(--ht-text-muted);
  text-decoration: none;
}

.ht-manager__email:hover {
  color: var(--ht-teal);
}

/* Banner Manager on Mobile - NO OVERLAPPING! */
@media (max-width: 767px) {
  #bannercontainer {
    height: auto !important;
  }

  .banner.row {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .ht-banner-manager {
    position: static !important;
    width: 100% !important;
    box-sizing: border-box;
    margin: 14px 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  #bannercontainer .grid__banner_1 {
    height: auto !important;
  }

  #bannercontainer .grid__banner_1 .widget_text {
    height: auto !important;
  }
}

/* --------------------------------------------------------------------------
   SIDEBAR EXPERT MANAGERS WIDGET (Clean replacement for dead ICQ)
   -------------------------------------------------------------------------- */
.manager_table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid var(--ht-border);
  border-top: 3px solid var(--ht-teal);
  border-radius: var(--ht-radius-sm);
  overflow: hidden;
  box-shadow: var(--ht-shadow);
  margin-top: 20px;
}

.manager_table .head {
  background: var(--ht-navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 14px;
  margin: 0 !important;
  letter-spacing: 0.5px;
}

.manager_table td {
  padding: 14px;
}

.manager_table .name {
  font-size: 16px;
  color: var(--ht-navy);
  margin: 0 0 6px !important;
}

.ht-manager-widget-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ht-manager-widget-tel {
  font-size: 14px;
  font-weight: 800;
  color: var(--ht-teal-dark);
  text-decoration: none;
}

.ht-manager-widget-email {
  font-size: 12px;
  color: var(--ht-text-muted);
  text-decoration: none;
}

.ht-manager-widget-btn {
  display: inline-block;
  background: var(--ht-teal);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--ht-radius-sm);
  text-decoration: none;
  margin-top: 8px;
  transition: background 0.2s;
}

.ht-manager-widget-btn:hover {
  background: var(--ht-teal-dark);
}

/* --------------------------------------------------------------------------
   FOOTER CLEANUP
   -------------------------------------------------------------------------- */
.row.smallprint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.row.smallprint a.footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.row.smallprint a.footer-link:hover {
  color: var(--ht-coral);
  text-decoration: underline;
}

/* ==========================================================================
   COMMERCIAL SERVICE LANDING PAGE (page-service.php) - HANTEST IDENTITY
   ========================================================================== */

/* Hero Banner */
.ht-srv-hero {
  background: linear-gradient(135deg, #1b2834 0%, #243342 60%, #2c4959 100%);
  color: #ffffff;
  padding: 36px 0 46px;
  border-bottom: 3px solid var(--ht-coral);
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.ht-srv-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 80% 30%, rgba(41, 151, 171, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.ht-srv-hero__container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

.ht-srv-breadcrumbs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.ht-srv-breadcrumbs a {
  color: #a8d5df;
  text-decoration: none;
}

.ht-srv-breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.ht-srv-breadcrumbs .ht-sep {
  color: rgba(255, 255, 255, 0.4);
}

.ht-srv-breadcrumbs .ht-current {
  color: #ffffff;
  font-weight: 600;
}

.ht-srv-hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.ht-srv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(41, 151, 171, 0.22);
  border: 1px solid rgba(41, 151, 171, 0.6);
  color: #8ce1f0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.ht-srv-title {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 14px;
}

.ht-srv-title-sub {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--ht-coral);
  margin-top: 6px;
}

.ht-srv-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #e2e8f0 !important;
  margin: 0 0 24px;
  max-width: 620px;
}

/* 4 Quick Spec Badges */
.ht-srv-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.ht-spec-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--ht-radius-sm);
  padding: 10px 14px;
}

.ht-spec-icon {
  font-size: 22px;
  line-height: 1;
}

.ht-spec-data {
  display: flex;
  flex-direction: column;
}

.ht-spec-label {
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.4px;
}

.ht-spec-val {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

/* Hero Buttons */
.ht-srv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.ht-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--ht-radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.ht-btn--teal {
  background: var(--ht-teal);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(41, 151, 171, 0.4);
}

.ht-btn--teal:hover {
  background: var(--ht-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(41, 151, 171, 0.6);
}

.ht-btn--outline-light {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
}

.ht-btn--outline-light:hover {
  background: #ffffff !important;
  color: var(--ht-navy) !important;
  transform: translateY(-2px);
}

.ht-btn--coral {
  background: var(--ht-coral);
  color: #ffffff !important;
}

.ht-btn--coral:hover {
  background: var(--ht-coral-dark);
  transform: translateY(-2px);
}

/* Trust Preview Card */
.ht-srv-card-preview {
  background: #ffffff;
  border-radius: var(--ht-radius);
  border: 2px solid var(--ht-teal);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  padding: 26px;
  color: var(--ht-text);
  position: relative;
}

.ht-card-preview__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--ht-teal-dark);
  background: #e6f6f9;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.ht-card-preview__header h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ht-navy);
  margin: 0 0 4px;
}

.ht-card-preview__header p {
  font-size: 12px;
  color: var(--ht-text-muted);
  margin: 0 0 16px;
}

.ht-card-preview__body {
  border-top: 1px dashed var(--ht-border);
  border-bottom: 1px dashed var(--ht-border);
  padding: 14px 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.ht-preview-row {
  display: flex;
  justify-content: space-between;
  line-height: 1.4;
}

.ht-preview-label {
  color: var(--ht-text-muted);
}

.ht-preview-val {
  font-weight: 700;
  color: var(--ht-navy);
  text-align: right;
}

.ht-preview-val--valid {
  color: #27ae60;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ht-card-preview__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ht-text-muted);
}

.ht-qr-box {
  background: var(--ht-bg);
  border: 1px solid var(--ht-border);
  border-radius: 4px;
  padding: 4px 8px;
  font-weight: 800;
  color: var(--ht-navy);
}

/* --------------------------------------------------------------------------
   BENEFITS 4-GRID
   -------------------------------------------------------------------------- */
.ht-srv-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 28px 0 36px;
}

.ht-benefit-card {
  background: #ffffff;
  border: 1px solid var(--ht-border);
  border-top: 3px solid var(--ht-teal);
  border-radius: var(--ht-radius-sm);
  padding: 20px 16px;
  box-shadow: var(--ht-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ht-benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ht-shadow-lg);
  border-top-color: var(--ht-coral);
}

.ht-benefit-icon {
  font-size: 26px;
  margin-bottom: 10px;
  line-height: 1;
}

.ht-benefit-card h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ht-navy);
  margin: 0 0 6px;
}

.ht-benefit-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ht-text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   SCHEMES TABLE (Решение Совета ЕЭК № 44)
   -------------------------------------------------------------------------- */
.ht-table-responsive {
  overflow-x: auto;
  border-radius: var(--ht-radius-sm);
  border: 1px solid var(--ht-border);
  box-shadow: var(--ht-shadow);
  margin: 20px 0 28px;
}

.ht-schemes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
  background: #ffffff;
}

.ht-schemes-table th {
  background: var(--ht-navy);
  color: #ffffff;
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--ht-teal);
}

.ht-schemes-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ht-border-soft);
  vertical-align: middle;
  line-height: 1.5;
}

.ht-schemes-table tr:nth-child(even) td {
  background: #fafafa;
}

.ht-scheme-badge {
  display: inline-block;
  background: var(--ht-teal);
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   4-STEP WORKFLOW
   -------------------------------------------------------------------------- */
.ht-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 28px;
}

.ht-step-card {
  background: #ffffff;
  border: 1px solid var(--ht-border);
  border-radius: var(--ht-radius-sm);
  padding: 20px;
  box-shadow: var(--ht-shadow);
}

.ht-step-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--ht-teal);
  line-height: 1;
  margin-bottom: 8px;
}

.ht-step-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ht-navy);
  margin: 0 0 8px;
}

.ht-step-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ht-text-muted);
  margin: 0 !important;
}

/* --------------------------------------------------------------------------
   DOCUMENT CHECKLIST
   -------------------------------------------------------------------------- */
.ht-docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 20px 0 28px;
}

.ht-docs-card {
  background: #ffffff;
  border: 1px solid var(--ht-border);
  border-radius: var(--ht-radius-sm);
  padding: 20px;
  box-shadow: var(--ht-shadow);
}

.ht-docs-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ht-border-soft);
}

.ht-docs-card__icon {
  font-size: 22px;
  line-height: 1;
}

.ht-docs-card__header h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ht-navy);
  margin: 0;
}

.ht-docs-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ht-docs-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--ht-text) !important;
}

.ht-docs-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #27ae60;
  font-weight: 900;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   INTERACTIVE CALCULATOR BANNER
   -------------------------------------------------------------------------- */
.ht-srv-calc-box {
  background: linear-gradient(135deg, #1b2834 0%, #243342 60%, #2c4959 100%);
  color: #ffffff;
  border-radius: var(--ht-radius);
  padding: 32px 36px;
  margin: 36px 0;
  box-shadow: var(--ht-shadow-lg);
  border: 1px solid var(--ht-teal);
  position: relative;
}

.ht-calc-badge {
  display: inline-block;
  background: var(--ht-teal);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.ht-srv-calc-box h3 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 6px;
}

.ht-srv-calc-box p {
  color: #e2e8f0 !important;
  font-size: 14px;
  margin: 0 0 22px;
  max-width: 650px;
}

.ht-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.ht-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ht-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.ht-form-group input,
.ht-form-group select {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--ht-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #ffffff;
  color: var(--ht-navy);
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
}

.ht-form-group input:focus,
.ht-form-group select:focus {
  border-color: var(--ht-teal-light);
  box-shadow: 0 0 0 3px rgba(41, 151, 171, 0.4);
}

.ht-form-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.ht-form-guarantee {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.ht-form-success {
  margin-top: 16px;
  background: #1e6e38;
  color: #ffffff;
  padding: 16px 20px;
  border-radius: var(--ht-radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   FAQ ACCORDION
   -------------------------------------------------------------------------- */
.ht-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.ht-faq-item {
  border: 1px solid var(--ht-border);
  border-radius: var(--ht-radius-sm);
  background: #ffffff;
  overflow: hidden;
}

.ht-faq-question {
  width: 100%;
  padding: 14px 18px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--ht-navy);
  text-align: left;
  cursor: pointer;
}

.ht-faq-question:hover {
  background: #f8fafc;
}

.ht-faq-arrow {
  font-size: 18px;
  font-weight: 800;
  color: var(--ht-teal);
  margin-left: 12px;
}

.ht-faq-answer {
  display: none;
  padding: 0 18px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ht-text);
}

.ht-faq-item--active .ht-faq-answer {
  display: block;
}

.ht-faq-item--active {
  border-color: var(--ht-teal);
}

/* --------------------------------------------------------------------------
   RELATED SERVICES
   -------------------------------------------------------------------------- */
.ht-srv-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.ht-rel-card {
  background: #ffffff;
  border: 1px solid var(--ht-border);
  border-left: 3px solid var(--ht-teal);
  border-radius: var(--ht-radius-sm);
  padding: 16px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.ht-rel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ht-shadow);
  border-left-color: var(--ht-coral);
}

.ht-rel-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ht-teal-dark);
  background: #e6f6f9;
  padding: 2px 6px;
  border-radius: 3px;
  align-self: flex-start;
  margin-bottom: 6px;
}

.ht-rel-card h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ht-navy);
  margin: 0 0 6px;
}

.ht-rel-card p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ht-text-muted);
  margin: 0 0 10px !important;
  flex-grow: 1;
}

.ht-rel-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--ht-teal-dark);
}

/* --------------------------------------------------------------------------
   RESPONSIVE LAYOUT FOR SERVICE TEMPLATE
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .ht-srv-hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ht-srv-title {
    font-size: 28px;
  }

  .ht-srv-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ht-steps-grid {
    grid-template-columns: 1fr;
  }

  .ht-docs-grid {
    grid-template-columns: 1fr;
  }

  .ht-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ht-srv-specs {
    grid-template-columns: 1fr;
  }

  .ht-srv-benefits-grid {
    grid-template-columns: 1fr;
  }

  .ht-srv-related-grid {
    grid-template-columns: 1fr;
  }

  .ht-srv-actions {
    flex-direction: column;
    width: 100%;
  }

  .ht-srv-actions .ht-btn {
    width: 100%;
  }
}


/* --------------------------------------------------------------------------
   ADDITIONAL SERVICE PAGE & BANNER POLISH
   -------------------------------------------------------------------------- */
.banner .widget-area,
.banner .widget-area h1,
.banner .widget-area h2,
.banner .widget-area h3,
.banner .widget-area p {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.ht-content-box {
  background: #ffffff;
  border: 1px solid var(--ht-border);
  border-radius: var(--ht-radius-sm);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--ht-shadow);
}

.ht-box-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ht-navy);
  margin: 0 0 10px;
  border-bottom: 2px solid var(--ht-border-soft);
  padding-bottom: 8px;
}

.ht-box-desc {
  font-size: 14px;
  color: var(--ht-text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.ht-faq-item.ht-faq-open .ht-faq-answer {
  display: block;
  padding: 14px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--ht-border-soft);
  font-size: 14px;
  line-height: 1.6;
}

.ht-faq-answer {
  display: none;
}

.ht-faq-item.ht-faq-open .ht-faq-arrow {
  transform: rotate(180deg);
}

.ht-faq-arrow {
  transition: transform 0.2s;
  font-size: 12px;
  color: var(--ht-teal);
}


/* ==========================================================================
   HANTEST SERVICE PAGE - UNIQUE NORTHERN IDENTITY & PASSPORT WIDGET
   ========================================================================== */

/* Layout lock: service main & sidebar side-by-side */
#primary.site-content.row.ht-service-layout {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  clear: both !important;
  width: 90% !important;
  max-width: 1200px !important;
  margin: 30px auto !important;
  padding: 0 !important;
}

#primary.site-content.row.ht-service-layout::before,
#primary.site-content.row.ht-service-layout::after {
  display: none !important;
}

#primary.site-content.row.ht-service-layout .ht-service-main {
  width: 66% !important;
  max-width: 66% !important;
  flex: 0 0 66% !important;
  float: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

#primary.site-content.row.ht-service-layout .sidebar {
  width: 31% !important;
  max-width: 31% !important;
  flex: 0 0 31% !important;
  float: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 860px) {
  #primary.site-content.row.ht-service-layout {
    flex-direction: column !important;
  }
  #primary.site-content.row.ht-service-layout .ht-service-main,
  #primary.site-content.row.ht-service-layout .sidebar {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  #primary.site-content.row.ht-service-layout .sidebar {
    margin-top: 30px !important;
  }
}

/* --------------------------------------------------------------------------
   BESPOKE HANTEST PASSPORT WIDGET (Unique Northern Tech Design)
   -------------------------------------------------------------------------- */
.ht-passport-widget {
  background: linear-gradient(145deg, rgba(27, 40, 52, 0.95) 0%, rgba(36, 51, 66, 0.98) 100%);
  border: 1px solid rgba(41, 151, 171, 0.4);
  border-top: 3px solid var(--ht-teal);
  border-radius: var(--ht-radius);
  padding: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(41, 151, 171, 0.15);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.ht-passport-widget::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(41, 151, 171, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.ht-pw-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ht-pw-logo-mark {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #a8d5df;
  text-transform: uppercase;
}

.ht-pw-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(39, 174, 96, 0.18);
  border: 1px solid rgba(39, 174, 96, 0.5);
  color: #2ecc71;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 12px;
}

.ht-pw-status-light {
  width: 6px;
  height: 6px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 6px #2ecc71;
}

.ht-pw-title-block {
  margin-bottom: 18px;
}

.ht-pw-kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ht-coral-light);
  font-weight: 700;
  margin-bottom: 4px;
}

.ht-pw-heading {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.ht-pw-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.ht-pw-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ht-radius-sm);
  padding: 10px 12px;
}

.ht-pw-feat-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.ht-pw-feat-content strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 2px;
  line-height: 1.3;
}

.ht-pw-feat-content p {
  font-size: 11px;
  color: #cbd5e1;
  margin: 0 !important;
  line-height: 1.4;
}

.ht-pw-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

.ht-pw-verifier-link a {
  color: var(--ht-teal-light);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.ht-pw-verifier-link a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.ht-pw-security-badge {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* --------------------------------------------------------------------------
   HERO BANNER ENHANCEMENTS
   -------------------------------------------------------------------------- */
.ht-srv-specs-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0 28px;
}

.ht-srv-spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--ht-radius-sm);
  padding: 10px 14px;
}

.ht-spec-icon-box {
  font-size: 22px;
  line-height: 1;
}

.ht-spec-text strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.2;
}

.ht-spec-text span {
  font-size: 11px;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ht-srv-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.ht-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--ht-radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.ht-hero-btn--primary {
  background: var(--ht-teal);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(41, 151, 171, 0.4);
}

.ht-hero-btn--primary:hover {
  background: var(--ht-teal-dark);
  transform: translateY(-2px);
}

.ht-hero-btn--phone {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ht-hero-btn--phone:hover {
  background: #ffffff;
  color: var(--ht-navy) !important;
  transform: translateY(-2px);
}

.ht-badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--ht-teal-light);
  border-radius: 50%;
  margin-right: 6px;
}

/* --------------------------------------------------------------------------
   CLIENTS CAROUSEL (SLICK) - 100% HORIZONTAL & RESPONSIVE
   -------------------------------------------------------------------------- */
#clients.als-container {
  clear: both !important;
  width: 90% !important;
  max-width: 1200px !important;
  margin: 40px auto 30px !important;
  padding: 24px 20px !important;
  background: #ffffff !important;
  border: 1px solid var(--ht-border) !important;
  border-radius: var(--ht-radius) !important;
  box-shadow: var(--ht-shadow) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  display: block !important;
}

#clients .custom-navigation {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 18px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--ht-border-soft) !important;
}

#clients .custom-navigation h2 {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--ht-navy) !important;
  margin: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
}

#clients .flex-prev,
#clients .flex-next {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  background: var(--ht-teal) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

#clients .flex-prev:hover,
#clients .flex-next:hover {
  background: var(--ht-navy) !important;
  transform: scale(1.1) !important;
}

#clients .flex-prev::before {
  content: "❮" !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

#clients .flex-next::before {
  content: "❯" !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

#clients .slick-slider {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#clients .slick-slide {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 90px !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  outline: none !important;
  float: left !important;
}

#clients .slick-slide a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  filter: grayscale(70%) opacity(85%);
  transition: filter 0.25s, transform 0.25s;
}

#clients .slick-slide a:hover {
  filter: grayscale(0%) opacity(100%);
  transform: scale(1.08);
}

#clients .slick-slide img {
  max-width: 150px !important;
  max-height: 65px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: auto !important;
}

#clients .slick-dots {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  list-style: none !important;
  padding: 12px 0 0 !important;
  margin: 0 !important;
}

#clients .slick-dots li {
  margin: 0 !important;
  padding: 0 !important;
}

#clients .slick-dots li button {
  width: 9px !important;
  height: 9px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: none !important;
  background: #cbd5e1 !important;
  text-indent: -9999px !important;
  cursor: pointer !important;
  outline: none !important;
}

#clients .slick-dots li.slick-active button {
  background: var(--ht-teal) !important;
  width: 22px !important;
  border-radius: 5px !important;
}


/* ==========================================================================
   TEXTBOOK EDITORIAL DESIGN SYSTEM - LIGHT, AIRY, LEGIBLE, WEIGHTLESS
   Tone: Authoritative Reference Manual / Educational Textbook
   ========================================================================== */

/* Light Airy Hero Banner */
.ht-srv-hero--textbook {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  color: var(--ht-text) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 32px 0 40px !important;
  position: relative !important;
  overflow: hidden !important;
  margin-bottom: 30px !important;
}

.ht-srv-hero--textbook::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: var(--ht-teal) !important;
}

.ht-srv-hero--textbook .ht-srv-breadcrumbs {
  font-size: 13px !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
}

.ht-srv-hero--textbook .ht-srv-breadcrumbs a {
  color: var(--ht-teal-dark) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.ht-srv-hero--textbook .ht-srv-breadcrumbs a:hover {
  text-decoration: underline !important;
  color: var(--ht-navy) !important;
}

.ht-srv-hero--textbook .ht-srv-breadcrumbs .ht-sep {
  color: #94a3b8 !important;
}

.ht-srv-hero--textbook .ht-srv-breadcrumbs .ht-current {
  color: #1e293b !important;
  font-weight: 700 !important;
}

.ht-srv-badge--textbook {
  display: inline-block !important;
  background: #f0fdfa !important;
  border: 1px solid #ccfbf1 !important;
  border-left: 3px solid var(--ht-teal) !important;
  color: #0f766e !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  padding: 5px 12px !important;
  border-radius: 4px !important;
  margin-bottom: 14px !important;
}

.ht-srv-title--editorial {
  font-size: 32px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 14px !important;
  letter-spacing: -0.4px !important;
}

.ht-srv-desc--editorial {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #334155 !important;
  margin: 0 0 24px !important;
  max-width: 620px !important;
}

/* 4 Textbook Spec Cards */
.ht-srv-specs-grid-textbook {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
}

.ht-tb-spec-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.ht-tb-spec-card:hover {
  border-color: var(--ht-teal) !important;
  box-shadow: 0 4px 12px rgba(41, 151, 171, 0.08) !important;
}

.ht-tb-spec-label {
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

.ht-tb-spec-val {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
}

.ht-tb-spec-sub {
  font-size: 11px !important;
  color: #94a3b8 !important;
}

/* Editorial Buttons */
.ht-btn-editorial {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 11px 22px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  box-sizing: border-box !important;
}

.ht-btn-editorial--primary {
  background: var(--ht-teal) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(41, 151, 171, 0.25) !important;
}

.ht-btn-editorial--primary:hover {
  background: var(--ht-teal-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(41, 151, 171, 0.35) !important;
}

.ht-btn-editorial--secondary {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
}

.ht-btn-editorial--secondary:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: var(--ht-navy) !important;
}

/* --------------------------------------------------------------------------
   TEXTBOOK PASSPORT PLATE (Light, Crisp, Official Certificate Document Plate)
   -------------------------------------------------------------------------- */
.ht-doc-plate {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 24px !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.ht-doc-plate::after {
  content: "" !important;
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  right: 6px !important;
  bottom: 6px !important;
  border: 1px dashed rgba(203, 213, 225, 0.6) !important;
  border-radius: 5px !important;
  pointer-events: none !important;
}

.ht-doc-plate__header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  margin-bottom: 14px !important;
}

.ht-doc-plate__emblem {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.ht-emblem-icon {
  font-size: 20px !important;
  line-height: 1 !important;
}

.ht-emblem-text strong {
  display: block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: var(--ht-navy) !important;
  letter-spacing: 0.5px !important;
}

.ht-emblem-text small {
  display: block !important;
  font-size: 9px !important;
  color: #64748b !important;
  letter-spacing: 0.6px !important;
}

.ht-doc-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #16a34a !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 12px !important;
  letter-spacing: 0.4px !important;
}

.ht-status-circle {
  width: 6px !important;
  height: 6px !important;
  background: #16a34a !important;
  border-radius: 50% !important;
}

.ht-doc-plate__title {
  margin-bottom: 16px !important;
}

.ht-doc-type {
  display: block !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  color: var(--ht-coral) !important;
  margin-bottom: 2px !important;
}

.ht-doc-plate__title h3 {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}

.ht-doc-plate__body {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 12px 0 !important;
  border-top: 1px solid #f1f5f9 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  margin-bottom: 14px !important;
}

.ht-doc-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.ht-doc-k {
  color: #64748b !important;
  flex-shrink: 0 !important;
}

.ht-doc-v {
  color: #0f172a !important;
  font-weight: 700 !important;
  text-align: right !important;
}

.ht-doc-plate__footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-top: 10px !important;
}

.ht-doc-registry-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: var(--ht-teal-dark) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.ht-doc-registry-btn:hover {
  text-decoration: underline !important;
  color: var(--ht-navy) !important;
}

.ht-doc-qr-hint {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 10px !important;
  color: #64748b !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

/* --------------------------------------------------------------------------
   TEXTBOOK CHAPTER SECTIONS
   -------------------------------------------------------------------------- */
.ht-textbook-callout {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  background: #f0fdfa !important;
  border: 1px solid #ccfbf1 !important;
  border-left: 4px solid var(--ht-teal) !important;
  border-radius: 0 6px 6px 0 !important;
  padding: 16px 20px !important;
  margin-bottom: 26px !important;
}

.ht-callout-icon {
  font-size: 22px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.ht-callout-content strong {
  display: block !important;
  font-size: 14px !important;
  color: #0f766e !important;
  margin-bottom: 4px !important;
}

.ht-callout-content p {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #134e4a !important;
  margin: 0 !important;
}

.ht-textbook-section {
  background: #ffffff !important;
  border: 1px solid #e8ecf1 !important;
  border-radius: 8px !important;
  padding: 26px 28px !important;
  margin-bottom: 26px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
  box-sizing: border-box !important;
}

.ht-section-num {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: var(--ht-teal-dark) !important;
  margin-bottom: 4px !important;
}

.ht-section-heading {
  font-size: 21px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 10px !important;
  line-height: 1.3 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding-bottom: 10px !important;
}

.ht-section-lead {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin-bottom: 20px !important;
}

/* Textbook Reference Table */
.ht-textbook-table {
  width: 100% !important;
  min-width: 580px !important;
  border-collapse: collapse !important;
  font-size: 13px !important;
  text-align: left !important;
}

.ht-textbook-table th {
  background: #f8fafc !important;
  color: #334155 !important;
  font-weight: 700 !important;
  padding: 10px 14px !important;
  border-bottom: 2px solid #cbd5e1 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
}

.ht-textbook-table td {
  padding: 12px 14px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  line-height: 1.5 !important;
  color: #334155 !important;
}

.ht-textbook-table tr:hover td {
  background: #fbfcfe !important;
}

.ht-badge-scheme {
  display: inline-block !important;
  background: var(--ht-teal) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
}

/* Textbook Steps */
.ht-textbook-steps {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.ht-tb-step {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 16px !important;
}

.ht-tb-step__marker {
  flex-shrink: 0 !important;
}

.ht-tb-step__index {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  background: var(--ht-teal) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  border-radius: 50% !important;
}

.ht-tb-step__main h4 {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 6px !important;
}

.ht-tb-step__main p {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin: 0 !important;
}

/* Textbook Documents Grid */
.ht-textbook-docs-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 18px !important;
}

.ht-tb-doc-col {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 18px !important;
}

.ht-tb-doc-col__head {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  margin-bottom: 12px !important;
}

.ht-tb-doc-icon {
  font-size: 20px !important;
}

.ht-tb-doc-col__head h4 {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.ht-tb-doc-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ht-tb-doc-list li {
  position: relative !important;
  padding-left: 20px !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  color: #334155 !important;
  margin-bottom: 8px !important;
}

.ht-tb-doc-list li::before {
  content: "✓" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  color: #16a34a !important;
  font-weight: 900 !important;
  font-size: 12px !important;
}

/* Textbook Calculator Form */
.ht-textbook-calc-wrap {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-top: 3px solid var(--ht-teal) !important;
  border-radius: 8px !important;
  padding: 26px 28px !important;
  margin-bottom: 26px !important;
  box-sizing: border-box !important;
}

.ht-tb-calc-tag {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  color: var(--ht-teal-dark) !important;
  text-transform: uppercase !important;
}

.ht-tb-calc-header h3 {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 4px 0 6px !important;
}

.ht-tb-calc-header p {
  font-size: 13px !important;
  color: #64748b !important;
  margin: 0 0 18px !important;
  line-height: 1.5 !important;
}

.ht-tb-form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

.ht-tb-field label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 4px !important;
}

.ht-tb-field input,
.ht-tb-field select {
  width: 100% !important;
  padding: 10px 12px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  outline: none !important;
}

.ht-tb-field input:focus,
.ht-tb-field select:focus {
  border-color: var(--ht-teal) !important;
  box-shadow: 0 0 0 3px rgba(41, 151, 171, 0.15) !important;
}

.ht-tb-form-bottom {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 16px !important;
}

.ht-tb-privacy-note {
  font-size: 11px !important;
  color: #64748b !important;
}

.ht-tb-privacy-note a {
  color: var(--ht-teal-dark) !important;
  text-decoration: underline !important;
}

/* Textbook FAQ */
.ht-textbook-faq {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.ht-tb-faq-item {
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.ht-tb-faq-q {
  width: 100% !important;
  padding: 14px 18px !important;
  background: none !important;
  border: none !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

.ht-tb-faq-q:hover {
  background: #f8fafc !important;
}

.ht-tb-faq-arrow {
  color: var(--ht-teal) !important;
  font-size: 14px !important;
  transition: transform 0.2s !important;
}

.ht-tb-faq-a {
  display: none !important;
  padding: 14px 18px !important;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: #334155 !important;
}

.ht-tb-faq-item.ht-faq-open .ht-tb-faq-a,
.ht-tb-faq-item.ht-tb-faq-open .ht-tb-faq-a {
  display: block !important;
}

.ht-tb-faq-item.ht-faq-open .ht-tb-faq-arrow,
.ht-tb-faq-item.ht-tb-faq-open .ht-tb-faq-arrow {
  transform: rotate(180deg) !important;
}

/* Responsive adjustments for Textbook System */
@media (max-width: 768px) {
  .ht-textbook-docs-grid {
    grid-template-columns: 1fr !important;
  }
  .ht-tb-form-grid {
    grid-template-columns: 1fr !important;
  }
  .ht-srv-specs-grid-textbook {
    grid-template-columns: 1fr 1fr !important;
  }
  .ht-textbook-calc-wrap {
    padding: 20px 16px !important;
  }
  .ht-doc-plate {
    margin-top: 18px !important;
  }
  .ht-textbook-section {
    padding: 18px 16px !important;
  }
  .ht-section-heading {
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {
  .ht-srv-specs-grid-textbook {
    grid-template-columns: 1fr !important;
  }
}
