/* ══ STYLED BULLET LISTS FOR BLOG CONTENT ══ */
.story-wrap ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 16px 0 24px 0 !important;
}

.story-wrap ul li {
  position: relative !important;
  padding-left: 26px !important;
  margin-bottom: 11px !important;
  font-size: 0.95rem !important;
  color: #333333 !important;
  line-height: 1.65 !important;
}

.story-wrap ul li::before {
  content: '✓' !important;
  position: absolute !important;
  left: 0 !important;
  top: 2px !important;
  color: #1cb9c8 !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
}

/* ══ BLOG MEDIA IMAGE & VIDEO CARDS ══ */
.blog-media-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  margin: 24px 0 10px 0;
  box-shadow: 0 4px 18px rgba(13, 43, 46, 0.08);
  border: 1px solid #c8e8eb;
}

.blog-media-caption {
  font-size: 0.83rem;
  color: #648286;
  text-align: center;
  margin-bottom: 24px;
  font-style: italic;
}

.blog-video-box {
  background: #f8fafc;
  border: 1px solid #c8e8eb;
  border-radius: 14px;
  padding: 20px;
  margin: 28px 0;
  box-shadow: 0 4px 18px rgba(13, 43, 46, 0.06);
}

/* ══ TABLE FORMATTING ══ */
.table-responsive-box {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 28px 0;
  border: 1px solid #c8e8eb;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(13, 43, 46, 0.04);
  background: #ffffff;
}

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

.article-table th {
  background: #0d2b2e;
  color: #ffffff;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-bottom: 2px solid #1cb9c8;
}

.article-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e5f3f5;
  color: #334155;
  line-height: 1.55;
  vertical-align: top;
}

.article-table tbody tr:nth-child(even) {
  background: #f8fdfd;
}

.article-table tbody tr:hover {
  background: #f0f9fa;
}

.article-table td strong {
  color: #0d2b2e;
}

/* ══ CONTEXTUAL JUMP PILL TO TOOL ══ */
.inline-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eaf9fa;
  color: #0c828d !important;
  border: 1px solid #b7e8ec;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  margin: 6px 0 14px 0;
  transition: all 0.2s ease;
}

.inline-tool-pill:hover {
  background: #1cb9c8;
  color: #ffffff !important;
  border-color: #1cb9c8;
  transform: translateY(-1px);
}

/* ══ INTERACTIVE COMPLIANCE ENGINEERING SUITE PORTAL ══ */
.compliance-suite-wrap {
  background: #ffffff;
  border: 2px solid #bfe7ea;
  border-radius: 18px;
  padding: 0;
  margin: 34px 0 40px 0;
  box-shadow: 0 10px 30px rgba(13, 43, 46, 0.08);
  overflow: hidden;
}

.portal-banner-header {
  background: linear-gradient(135deg, #0d2b2e 0%, #15454a 100%);
  color: #ffffff;
  padding: 24px 28px;
  border-bottom: 3px solid #1cb9c8;
}

.portal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(28, 185, 200, 0.16);
  border: 1px solid rgba(28, 185, 200, 0.45);
  color: #5ce6f2;
  padding: 4px 13px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.portal-banner-header h3 {
  font-size: 1.45rem;
  color: #ffffff !important;
  margin: 0 0 8px 0 !important;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.portal-banner-header h3 i {
  color: #1cb9c8;
}

.portal-banner-header p {
  font-size: 0.88rem;
  color: #d1e7ea;
  margin: 0;
  line-height: 1.55;
}

/* Portal Tabs Navigation Bar */
.portal-tabs-bar {
  display: flex;
  background: #f4fbfc;
  border-bottom: 1px solid #c8e8eb;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.portal-tabs-bar::-webkit-scrollbar {
  height: 5px;
}

.portal-tabs-bar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.portal-tab-btn {
  flex: 1 0 auto;
  padding: 15px 20px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.portal-tab-btn i {
  font-size: 1.1rem;
  color: #648286;
  transition: color 0.2s;
}

.portal-tab-btn:hover {
  background: #eaf9fa;
  color: #0d2b2e;
}

.portal-tab-btn:hover i {
  color: #1cb9c8;
}

.portal-tab-btn.active {
  background: #ffffff;
  color: #0d2b2e;
  border-bottom: 3px solid #1cb9c8;
  font-weight: 700;
}

.portal-tab-btn.active i {
  color: #1cb9c8;
}

.portal-tab-content {
  padding: 28px 24px;
  display: none;
  animation: tabFadeIn 0.25s ease-in-out;
}

.portal-tab-content.active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TAB 1: SELECTOR CONTROLS & CARDS */
.portal-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.portal-form-group {
  display: flex;
  flex-direction: column;
}

.portal-form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0d2b2e;
  margin-bottom: 6px;
}

.portal-select,
.portal-input {
  background: #f8fdfd;
  border: 1px solid #c8e8eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: #0d2b2e;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.portal-select:focus,
.portal-input:focus {
  border-color: #1cb9c8;
  box-shadow: 0 0 0 3px rgba(28, 185, 200, 0.15);
}

.portal-field-note {
  font-size: 0.74rem;
  margin-top: 5px;
  font-weight: 600;
}

/* Class Evaluation Card & Tests Grid */
.eval-display-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 20px;
}

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

.eval-class-card {
  background: #f8fdfd;
  border: 1.5px solid #c8e8eb;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eval-class-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.eval-badge-h {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.eval-badge-l {
  background: #e1f5fe;
  color: #0277bd;
  border: 1px solid #81d4fa;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.eval-class-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0d2b2e;
  margin-bottom: 8px;
}

.eval-class-desc {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 16px;
}

.eval-specs-rows {
  border-top: 1px solid #e0f2f1;
  padding-top: 12px;
  font-size: 0.8rem;
}

.eval-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

.eval-spec-row .spec-label {
  color: #648286;
}

.eval-spec-row .spec-val {
  font-weight: 700;
  color: #0d2b2e;
}

.test-matrix-container {
  background: #ffffff;
  border: 1px solid #c8e8eb;
  border-radius: 12px;
  padding: 20px;
}

.test-matrix-header {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d2b2e;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.test-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.test-card-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  transition: all 0.2s ease;
}

.test-card-item:hover {
  border-color: #1cb9c8;
  background: #f0fdf4;
}

.test-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.test-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0d2b2e;
}

.test-req-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
}

.test-req-badge.seismic {
  background: #fef3c7;
  color: #92400e;
}

.test-card-desc {
  font-size: 0.78rem;
  color: #648286;
  line-height: 1.45;
  margin: 0;
}

/* TAB 2: AUDIT WIZARD STYLES */
.audit-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.audit-checkbox-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.audit-checkbox-card:hover {
  border-color: #1cb9c8;
  background: #f0fdfa;
}

.audit-checkbox-card.checked {
  border-color: #1cb9c8;
  background: #eaf9fa;
}

.audit-checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1cb9c8;
  cursor: pointer;
  margin-top: 2px;
}

.audit-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0d2b2e;
  display: block;
  margin-bottom: 4px;
}

.audit-card-sub {
  font-size: 0.77rem;
  color: #648286;
  line-height: 1.4;
  display: block;
}

.audit-verdict-box {
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.audit-verdict-box.robust {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
}

.audit-verdict-box.partial {
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
}

.audit-verdict-box.incomplete {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
}

.verdict-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.verdict-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.verdict-icon.robust {
  background: #dcfce7;
  color: #15803d;
}

.verdict-icon.partial {
  background: #dbeafe;
  color: #1d4ed8;
}

.verdict-icon.incomplete {
  background: #fef3c7;
  color: #b45309;
}

.verdict-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0d2b2e;
  margin: 0 0 3px 0 !important;
}

.verdict-subtitle {
  font-size: 0.83rem;
  color: #475569;
  margin: 0 !important;
}

.audit-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  font-size: 0.8rem;
  color: #334155;
}

/* TAB 3: CALCULATOR ENHANCEMENTS */
.calc-metric-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.calc-metric-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 18px;
}

.calc-metric-card.highlight {
  background: #f0fdf4;
  border: 1.5px solid #22c55e;
}

.calc-metric-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #648286;
  margin-bottom: 6px;
}

.calc-metric-card.highlight .calc-metric-tag {
  color: #166534;
}

.calc-metric-number {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0d2b2e;
  line-height: 1.15;
  margin-bottom: 6px;
}

.calc-metric-card.highlight .calc-metric-number {
  color: #15803d;
}

.calc-metric-desc {
  font-size: 0.76rem;
  color: #648286;
  line-height: 1.4;
  margin: 0;
}

/* TAB 4: CHECKLIST STYLES */
.qa-phase-card {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.qa-phase-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0d2b2e;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.qa-phase-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0d2b2e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.qa-item-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: #334155;
  margin-bottom: 10px;
  cursor: pointer;
  line-height: 1.45;
}

.qa-item-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #1cb9c8;
  margin-top: 2px;
  cursor: pointer;
}

/* TAB 5: ENQUIRY PREVIEW */
.enquiry-terminal-box {
  background: #0d1e20;
  color: #e2f1f3;
  border-radius: 12px;
  padding: 22px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.86rem;
  line-height: 1.6;
  position: relative;
  border: 1px solid #204e52;
}

.enquiry-copy-top {
  position: absolute;
  top: 14px;
  right: 14px;
}

/* ══ ACCORDION FAQ CARDS ══ */
.faq-accordion-group {
  margin: 28px 0;
}

.faq-accordion-item {
  background: #ffffff;
  border: 1px solid #c8e8eb;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-accordion-item:hover {
  border-color: #1cb9c8;
}

.faq-accordion-question {
  padding: 16px 20px;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #0d2b2e !important;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fdfefe;
  user-select: none;
}

.faq-accordion-question i {
  color: #1cb9c8;
  font-size: 1.25rem;
  transition: transform 0.25s ease;
}

.faq-accordion-item.open .faq-accordion-question i {
  transform: rotate(180deg);
}

.faq-accordion-answer {
  padding: 0 20px 18px 20px;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ══ RFQ MODAL STYLES (MATCHING MECHANICAL-REBAR-SPLICING) ══ */
.rfq-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 43, 46, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rfq-modal-overlay.active {
  display: flex;
}

.rfq-modal-card {
  background: #ffffff;
  border-radius: 12px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.rfq-modal-header {
  background: #0d2b2e;
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rfq-modal-header h3 {
  font-size: 1.05rem;
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5bc5cf !important;
}

.rfq-modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.rfq-modal-body {
  padding: 20px;
}

.rfq-form-group {
  margin-bottom: 14px;
}

.rfq-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0d2b2e;
  margin-bottom: 5px;
}

.rfq-form-group input,
.rfq-form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #c8e8eb;
  border-radius: 6px;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.rfq-form-group input:focus,
.rfq-form-group textarea:focus {
  border-color: #1cb9c8;
  box-shadow: 0 0 0 3px rgba(28, 185, 200, 0.15);
}

.rfq-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 500px) {
  .rfq-form-row {
    grid-template-columns: 1fr;
  }
}

.btn-modal-cancel {
  background: #e2e8f0;
  color: #475569;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.btn-modal-submit {
  background: #1cb9c8;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-modal-submit:hover {
  background: #159da9;
}

/* Print friendly checklist */
@media print {
  body * {
    visibility: hidden;
  }

  #content-checklist,
  #content-checklist * {
    visibility: visible;
  }

  #content-checklist {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  .no-print {
    display: none !important;
  }
}
