/* ============================================================
   Samarth Electronics — Blog Stylesheet
   Color palette matches ultrasoniccleanersmfgr.com
   ============================================================ */

:root {
  --primary:      #0057A8;
  --primary-dark: #003D7A;
  --primary-light:#EEF5FF;
  --accent:       #E85C00;
  --accent-hover: #C44E00;
  --text:         #222222;
  --text-muted:   #555555;
  --text-light:   #777777;
  --border:       #DDEAF5;
  --bg-white:     #FFFFFF;
  --bg-light:     #F4F8FD;
  --footer-bg:    #0A2744;
  --tag-bg:       #E3EEF9;
  --tag-color:    #0057A8;
  --radius:       6px;
  --shadow:       0 2px 12px rgba(0,87,168,0.10);
  --shadow-hover: 0 6px 24px rgba(0,87,168,0.16);
  --max-w:        1100px;
  --font-head:    'Georgia', 'Times New Roman', serif;
  --font-body:    'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

/* ── TOP BAR ── */
.topbar {
  background: var(--primary-dark);
  color: #cce4ff;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .tb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cce4ff; }
.topbar a:hover { color: #ffffff; text-decoration: none; }
.tb-links { display: flex; gap: 20px; flex-wrap: wrap; }
.tb-phone { font-weight: 600; letter-spacing: .3px; }

/* ── SITE HEADER ── */
.site-header {
  background: var(--primary);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  position: sticky; top: 0; z-index: 1000;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}
.site-logo .logo-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
}
.site-logo .logo-sub {
  font-size: 11px;
  color: #b8d6f5;
  letter-spacing: .3px;
}
.site-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: #e0f0ff;
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
  background: rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
}
.site-nav a.blog-active {
  background: var(--accent);
  color: #fff;
}
.nav-enquiry {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  padding: 7px 14px !important;
}
.nav-enquiry:hover { background: var(--accent-hover) !important; }

/* ── PAGE HERO (blog index) ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px,4vw,46px);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
}
.page-hero p {
  font-size: 17px;
  color: #c5e0f8;
  max-width: 620px;
  margin: 0 auto 22px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat-num { font-size: 28px; font-weight: 700; }
.hero-stats .stat-lbl { font-size: 12px; color: #b8d6f5; text-transform: uppercase; letter-spacing: .5px; }

/* ── ARTICLE HERO ── */
.article-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 50px 20px 40px;
  color: #fff;
}
.article-hero-inner {
  max-width: 840px;
  margin: 0 auto;
}
.article-category {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.article-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(24px,3.5vw,40px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #b8d6f5;
  align-items: center;
}
.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-meta .sep { opacity: .4; }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; opacity: .5; }

/* ── MAIN LAYOUT ── */
.main-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}

/* ── BLOG GRID (index page) ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px,1fr));
  gap: 24px;
}
.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.blog-card-img {
  height: 190px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--accent);
  margin-bottom: 8px;
}
.blog-card h2 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card p { font-size: 14px; color: var(--text-muted); flex: 1; line-height: 1.6; }
.blog-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
}
.read-more {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}
.read-more:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ── ARTICLE BODY ── */
.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.article-body h2 {
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--primary-dark);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}
.article-body h3 {
  font-size: 19px;
  color: var(--primary);
  margin: 26px 0 10px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol {
  margin: 12px 0 20px 22px;
}
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--primary-dark); }
.article-body a { color: var(--primary); font-weight: 600; }
.article-body a:hover { color: var(--accent); }

/* Intro lead */
.article-lead {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}

/* Info box */
.info-box {
  background: var(--primary-light);
  border: 1px solid #b3d1ee;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}
.info-box h4 {
  font-size: 15px;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-weight: 700;
}
.info-box p, .info-box li { font-size: 14.5px; color: var(--text); }
.info-box ul { margin: 8px 0 0 18px; }

/* Table */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}
.article-body th {
  background: var(--primary);
  color: #fff;
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
}
.article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.article-body tr:nth-child(even) td { background: var(--bg-light); }
.article-body tr:hover td { background: var(--primary-light); }

/* ── FAQ SECTION ── */
.faq-section { margin: 40px 0; }
.faq-section h2 {
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--bg-light);
  border: none;
  text-align: left;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .15s;
  font-family: var(--font-body);
}
.faq-question:hover { background: var(--primary-light); }
.faq-question .faq-icon { font-size: 18px; color: var(--primary); transition: transform .2s; flex-shrink: 0; margin-left: 12px; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}
.faq-answer.open {
  max-height: 600px;
  padding: 14px 18px 18px;
}

/* ── CTA BOX ── */
.cta-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: 10px;
  padding: 30px 28px;
  text-align: center;
  margin: 36px 0;
}
.cta-box h3 {
  font-family: var(--font-head);
  font-size: 22px;
  margin-bottom: 10px;
}
.cta-box p { color: #b8d6f5; font-size: 15px; margin-bottom: 20px; }
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  transition: background .15s, transform .1s;
  margin: 4px;
}
.cta-btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; transform: scale(1.03); }
.cta-btn.secondary {
  background: transparent;
  border: 2px solid rgba(255,255,255,.5);
}
.cta-btn.secondary:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ── RELATED PRODUCTS ── */
.related-products { margin: 36px 0; }
.related-products h3 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-family: var(--font-head);
}
.product-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 12px;
}
.product-link-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, border-color .15s;
}
.product-link-card:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  text-decoration: none;
}
.product-link-card::before { content: "→"; flex-shrink: 0; }

/* ── SIDEBAR ── */
.sidebar {}
.sidebar-widget {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}
.sidebar-widget h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a {
  font-size: 13.5px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--accent); text-decoration: none; }
.sidebar-links a::before { content: "›"; font-size: 16px; color: var(--accent); }
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: 10px;
  padding: 22px 18px;
  text-align: center;
  margin-bottom: 24px;
}
.sidebar-cta h4 { color: #fff; font-size: 16px; margin-bottom: 8px; border-bottom: none; padding-bottom: 0; }
.sidebar-cta p { font-size: 13.5px; color: #c5e0f8; margin-bottom: 14px; line-height: 1.5; }
.sidebar-cta .cta-btn { display: block; width: 100%; }

/* Tags */
.tag { display: inline-block; background: var(--tag-bg); color: var(--tag-color); font-size: 12px; padding: 4px 10px; border-radius: 20px; margin: 3px; }

/* ── RELATED BLOGS ── */
.related-blogs { margin-top: 44px; padding-top: 32px; border-top: 2px solid var(--border); }
.related-blogs h3 { font-family: var(--font-head); font-size: 22px; color: var(--primary-dark); margin-bottom: 20px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 18px;
}
.related-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: box-shadow .15s;
}
.related-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.related-card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; letter-spacing: .5px; }
.related-card h4 { font-size: 15px; color: var(--primary-dark); font-weight: 600; line-height: 1.4; }
.related-card p { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }

/* ── SHARE BUTTONS ── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.share-bar span { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
}
.share-btn:hover { opacity: .85; text-decoration: none; color: #fff; }
.share-wa { background: #25D366; }
.share-li { background: #0077B5; }
.share-tw { background: #1DA1F2; }
.share-mail { background: var(--primary); }

/* ── FOOTER ── */
.site-footer {
  background: var(--footer-bg);
  color: #9ab8d5;
  padding: 48px 20px 24px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-col h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
}
.footer-col p { font-size: 13.5px; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul a { color: #9ab8d5; font-size: 13.5px; }
.footer-col ul a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
}
.footer-bottom a { color: #9ab8d5; }
.footer-bottom a:hover { color: #fff; }

/* ── NOTICE BANNER (certified) ── */
.cert-strip {
  background: var(--bg-light);
  border-top: 3px solid var(--accent);
  padding: 12px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.cert-strip strong { color: var(--primary-dark); }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .header-inner { height: 56px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .article-meta { gap: 12px; }
  .blog-grid { grid-template-columns: 1fr; }
}
