/**
* Wireman.com.sg - Article & Service Page Styles
* Extends assets/css/style.css (Tempo v4.9.1). Load AFTER style.css.
* Uses the same theme variables so colours stay in sync with the landing page.
*/

/*--------------------------------------------------------------
# Page hero (inner pages)
--------------------------------------------------------------*/
.page-hero {
  position: relative;
  padding: 95px 0 50px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.82)), url("../img/electrical-services-singapore-cover.jpg") center center;
  background-size: cover;
  color: #fff;
  overflow: hidden;
}

.page-hero h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 15px 0;
}

.page-hero .page-hero-lead {
  font-size: 18px;
  color: #eee;
  margin-bottom: 25px;
  max-width: 760px;
}

.page-hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 85px 0 40px 0;
  }

  .page-hero h1 {
    font-size: 27px;
  }

  .page-hero .page-hero-lead {
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# Trust badges
--------------------------------------------------------------*/
.trust-badges {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-badges li {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 14px;
  color: #fff;
}

.trust-badges li i {
  color: var(--thm-base);
  font-size: 17px;
  margin-right: 7px;
  line-height: 1;
}

/*--------------------------------------------------------------
# Buttons (matched to landing page CTA style)
--------------------------------------------------------------*/
.btn-wire {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 50px;
  transition: 0.3s;
  border: 2px solid transparent;
  margin: 0 8px 10px 0;
  text-align: center;
}

.btn-wire i {
  font-size: 19px;
  margin-right: 8px;
  line-height: 1;
}

.btn-wire-call {
  background: var(--thm-base);
  border-color: var(--thm-base);
  color: #fff;
}

.btn-wire-call:hover {
  background: var(--thm-base-hover);
  border-color: var(--thm-base-hover);
  color: #fff;
}

.btn-wire-wa {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.btn-wire-wa:hover {
  background: #1da851;
  border-color: #1da851;
  color: #fff;
}

.btn-wire-ghost {
  border-color: #fff;
  color: #fff;
}

.btn-wire-ghost:hover {
  background: var(--thm-base);
  border-color: var(--thm-base);
  color: #fff;
}

/*--------------------------------------------------------------
# Anchor offset (so in-page links are not hidden by the fixed header)
--------------------------------------------------------------*/
[id] {
  scroll-margin-top: 115px;
}

/*--------------------------------------------------------------
# Article body
--------------------------------------------------------------*/
.article-body {
  padding: 45px 0 30px 0;
}

.article-card {
  background: #fff;
  padding: 35px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

.article-card h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1f314a;
  margin: 40px 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1efec;
}

.article-card h2:first-of-type {
  margin-top: 10px;
}

.article-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #493c3e;
  margin: 28px 0 10px 0;
}

.article-card p,
.article-card li {
  font-size: 16px;
  line-height: 1.8;
}

.article-card ul,
.article-card ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.article-card li {
  margin-bottom: 9px;
}

.article-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.article-card figure {
  margin: 25px 0;
}

.article-card figcaption {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
  text-align: center;
}

@media (max-width: 768px) {
  .article-card {
    padding: 22px;
  }

  .article-card h2 {
    font-size: 22px;
  }
}

/*--------------------------------------------------------------
# Entry meta (author / date)
--------------------------------------------------------------*/
.entry-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-size: 14px;
  color: #8a8a8a;
  padding-bottom: 18px;
  margin-bottom: 25px;
  border-bottom: 1px solid #f1efec;
}

.entry-meta-bar i {
  color: var(--thm-base);
  margin-right: 5px;
}

/*--------------------------------------------------------------
# Author / credential box
--------------------------------------------------------------*/
.author-card {
  background: #fff8ee;
  border-left: 4px solid var(--thm-base);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
  margin: 0 0 30px 0;
  font-size: 14.5px;
  color: #6b5a3e;
}

.author-card strong {
  color: #8a5a00;
}

/*--------------------------------------------------------------
# Quick answer box (AEO / GEO)
--------------------------------------------------------------*/
.quick-answer {
  background: #fff8ee;
  border: 1px solid #f3dcb8;
  border-left: 4px solid var(--thm-base);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin: 25px 0;
}

.quick-answer h2,
.quick-answer h3 {
  font-size: 16px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--thm-base-hover);
  margin: 0 0 10px 0 !important;
  border: 0 !important;
  padding: 0 !important;
}

.quick-answer p:last-child,
.quick-answer ul:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Warning / info card
--------------------------------------------------------------*/
.warning-card {
  background: #fff4f4;
  border-left: 4px solid #d94a3d;
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin: 25px 0;
}

.warning-card h3,
.warning-card h4 {
  color: #b02b1d;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.warning-card p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Table of contents
--------------------------------------------------------------*/
.toc {
  background: #f8f8f8;
  border: 1px solid var(--thm-border);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 30px;
}

.toc h2 {
  font-size: 16px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #493c3e;
  margin: 0 0 12px 0 !important;
  border: 0 !important;
  padding: 0 !important;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc li {
  margin-bottom: 7px;
}

.toc a {
  color: var(--thm-b-text);
  transition: 0.3s;
}

.toc a:hover {
  color: var(--thm-base);
  text-decoration: underline;
}

/*--------------------------------------------------------------
# Price / data tables
--------------------------------------------------------------*/
.table-wrap {
  overflow-x: auto;
  margin: 25px 0 12px 0;
  -webkit-overflow-scrolling: touch;
}

.wire-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #fff;
  font-size: 15px;
}

.wire-table caption {
  caption-side: top;
  text-align: left;
  font-size: 14px;
  color: #8a8a8a;
  padding-bottom: 8px;
}

.wire-table th,
.wire-table td {
  padding: 13px 16px;
  border: 1px solid var(--thm-border);
  text-align: left;
  vertical-align: top;
}

.wire-table thead th {
  background: var(--thm-secondary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  border-color: var(--thm-secondary);
}

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

.wire-table tbody tr:hover {
  background: #fff8ee;
}

.wire-table td strong {
  color: #493c3e;
}

.table-note {
  font-size: 13px;
  color: #999;
  margin-bottom: 25px;
}

/*--------------------------------------------------------------
# Numbered step list
--------------------------------------------------------------*/
.step-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  counter-reset: wire-step;
}

.step-list li {
  position: relative;
  padding: 0 0 0 58px;
  margin-bottom: 22px;
  min-height: 40px;
}

.step-list li::before {
  counter-increment: wire-step;
  content: counter(wire-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: var(--thm-base);
  color: #fff;
  font-weight: 700;
  font-family: "Nunito", sans-serif;
}

.step-list li strong {
  display: block;
  color: #493c3e;
  font-size: 16px;
  margin-bottom: 3px;
}

/*--------------------------------------------------------------
# Emergency symptom cards
--------------------------------------------------------------*/
.symptom-box {
  height: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 2px 0 35px 0 rgba(68, 88, 144, 0.12);
  transition: all 0.3s ease-in-out;
  border-top: 3px solid transparent;
}

.symptom-box:hover {
  border-top-color: var(--thm-base);
  transform: translateY(-4px);
}

.symptom-box i {
  font-size: 38px;
  color: var(--thm-base);
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

.symptom-box h3 {
  font-size: 17px;
  font-weight: 700;
  color: #493c3e;
  margin: 0 0 8px 0;
}

.symptom-box p {
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
}

/*--------------------------------------------------------------
# Case study card
--------------------------------------------------------------*/
.case-card {
  background: #fff;
  border-left: 4px solid var(--thm-base);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 26px 28px;
  margin-bottom: 24px;
}

.case-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #493c3e;
  margin: 0 0 8px 0;
}

.case-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 14px;
}

.case-meta span + span::before {
  content: "·";
  margin: 0 8px;
}

.case-card p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Static FAQ cards (always visible = better for AI answer engines)
--------------------------------------------------------------*/
.faq-card {
  background: #fff;
  border: 1px solid var(--thm-border);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 16px;
  transition: 0.3s;
}

.faq-card:hover {
  border-color: var(--thm-base);
}

.faq-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #493c3e;
  margin: 0 0 9px 0;
  padding-left: 28px;
  position: relative;
}

.faq-card h3::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--thm-base);
  font-weight: 700;
}

.faq-card p {
  margin: 0 0 10px 0;
  padding-left: 28px;
  position: relative;
}

.faq-card p:first-of-type::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--thm-secondary);
  font-weight: 700;
}

.faq-card p:last-child {
  margin-bottom: 0;
}

.faq-card ul,
.faq-card ol {
  padding-left: 48px;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Service areas
--------------------------------------------------------------*/
.area-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
}

.area-list li {
  background: #fff;
  border: 1px solid var(--thm-border);
  border-radius: 50px;
  padding: 7px 17px;
  font-size: 14px;
  color: #6b6b6b;
  transition: 0.3s;
}

.area-list li:hover {
  background: var(--thm-base);
  border-color: var(--thm-base);
  color: #fff;
}

/*--------------------------------------------------------------
# Internal link / related content box
--------------------------------------------------------------*/
.link-box {
  background: #f8f8f8;
  border-left: 4px solid var(--thm-base);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15.5px;
}

.link-box i {
  color: var(--thm-base);
  margin-right: 7px;
}

.link-box a {
  font-weight: 700;
  text-decoration: underline;
}

.related-grid {
  margin-top: 10px;
}

.related-card {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid var(--thm-border);
  border-radius: 8px;
  padding: 22px 24px;
  transition: 0.3s;
  color: var(--thm-b-text);
}

.related-card:hover {
  border-color: var(--thm-base);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  color: var(--thm-b-text);
}

.related-card span.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--thm-base);
  background: #fff3e0;
  border-radius: 50px;
  padding: 4px 12px;
  margin-bottom: 11px;
}

.related-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #493c3e;
  margin: 0 0 8px 0;
}

.related-card p {
  font-size: 14.5px;
  margin: 0;
}

/*--------------------------------------------------------------
# Inline CTA banner
--------------------------------------------------------------*/
.cta-banner {
  background: linear-gradient(rgba(2, 2, 2, 0.55), rgba(0, 0, 0, 0.8)), url("../img/cta-bg.jpg") center center;
  background-size: cover;
  border-radius: 8px;
  padding: 38px 30px;
  text-align: center;
  color: #fff;
  margin: 40px 0 10px 0;
}

.cta-banner h2,
.cta-banner h3 {
  color: #fff !important;
  font-size: 25px;
  font-weight: 700;
  border: 0 !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
}

.cta-banner p {
  color: #eee;
  max-width: 640px;
  margin: 0 auto 18px auto;
}

/*--------------------------------------------------------------
# Review strip
--------------------------------------------------------------*/
.review-card {
  height: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.review-card .stars {
  color: #fcbf02;
  font-size: 14px;
  margin-bottom: 10px;
}

.review-card p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #444;
}

.review-card .reviewer {
  font-size: 14px;
  font-weight: 700;
  color: #493c3e;
  margin: 0;
}

.review-card .review-source {
  font-size: 12px;
  color: #999;
}

/*--------------------------------------------------------------
# Breadcrumb tweak for pages with the static top banner
--------------------------------------------------------------*/
.breadcrumbs.breadcrumbs-inner {
  margin-top: 0;
  background: #f8f8f8;
  border-bottom: 1px solid var(--thm-border);
}

.breadcrumbs.breadcrumbs-inner ol {
  padding-bottom: 0;
  margin-bottom: 0;
}

.breadcrumbs.breadcrumbs-inner ol a {
  color: var(--thm-b-text);
}

.breadcrumbs.breadcrumbs-inner ol a:hover {
  color: var(--thm-base);
}

/*--------------------------------------------------------------
# Landing page: guides section cards
--------------------------------------------------------------*/
.guides {
  background: var(--thm-bg-gray);
}

.guides .related-card {
  background: #fff;
}
