/*
Theme Name: Smart Maintenance Task Manager
Theme URI: https://sm-tm.app
Author: Pegotec Pte. Ltd.
Author URI: https://pegotec.net
Description: Custom WordPress theme for Smart Maintenance Task Manager — industrial CMMS marketing website. Built on Bootstrap 5.3 with Gutenberg support.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.2
License: Proprietary
License URI: https://sm-tm.app/terms
Text Domain: smtm
Tags: industrial, bootstrap, gutenberg, full-width, one-column
*/

/* ============================================
   SMART MAINTENANCE TASK MANAGER
   Design System — CSS Custom Properties
   ============================================ */

:root {
  /* Primary Palette */
  --smtm-primary: #1e3a5f;
  --smtm-accent: #00b5d8;
  --smtm-bg-light: #f4f7f9;

  /* Supporting */
  --smtm-dark: #0f2236;
  --smtm-text: #24313f;
  --smtm-text-muted: #64748b;
  --smtm-border: #d9e1e8;
  --smtm-accent-hover: #009dc1;
  --smtm-accent-light: #e6f8fc;
  --smtm-success: #22c55e;
  --smtm-warning: #f59e0b;
  --smtm-error: #ef4444;

  /* Typography */
  --smtm-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Spacing */
  --smtm-section-pad: 96px;
  --smtm-section-pad-md: 64px;
  --smtm-section-pad-sm: 48px;
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
  font-family: var(--smtm-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--smtm-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--smtm-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.125rem; font-weight: 600; }

a {
  color: var(--smtm-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--smtm-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   SECTION SYSTEM
   ============================================ */

.smtm-section {
  padding: var(--smtm-section-pad) 0;
}

.smtm-section--light {
  background: var(--smtm-bg-light);
}

.smtm-section--dark {
  background: var(--smtm-primary);
  color: #fff;
}

.smtm-section--dark h2,
.smtm-section--dark h3 {
  color: #fff;
}

.smtm-section--dark p {
  color: rgba(255, 255, 255, 0.85);
}

.smtm-section--dark .text-muted {
  color: rgba(255, 255, 255, 0.65) !important;
}

.smtm-section--footer {
  background: var(--smtm-dark);
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   OVERLINE LABEL
   ============================================ */

.smtm-overline {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smtm-accent);
  margin-bottom: 16px;
}

.smtm-section--dark .smtm-overline {
  color: var(--smtm-accent);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-smtm {
  display: inline-block;
  font-family: var(--smtm-font);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-smtm-primary {
  background: var(--smtm-accent);
  color: #fff;
}

.btn-smtm-primary:hover {
  background: var(--smtm-accent-hover);
  color: #fff;
}

.btn-smtm-outline {
  background: transparent;
  border: 2px solid var(--smtm-primary);
  color: var(--smtm-primary);
}

.btn-smtm-outline:hover {
  background: var(--smtm-primary);
  color: #fff;
}

.btn-smtm-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-smtm-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-smtm-sm {
  padding: 10px 22px;
  font-size: 15px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.smtm-navbar {
  background: var(--smtm-primary);
  padding: 0;
  min-height: 72px;
}

.smtm-navbar .navbar-brand {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  padding: 12px 0;
}

.smtm-navbar .navbar-brand small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.smtm-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  padding: 24px 16px;
  transition: color 0.2s;
}

.smtm-navbar .nav-link:hover,
.smtm-navbar .nav-link.active {
  color: #fff;
}

.smtm-navbar .btn-signin {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  transition: all 0.2s;
}

.smtm-navbar .btn-signin:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   DROPDOWNS & MEGA MENU
   ============================================ */

.smtm-navbar .dropdown-menu {
  border: 1px solid var(--smtm-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 12px 0;
  margin-top: 8px;
  background: #fff;
  animation: smtmDropIn 0.2s ease-out;
}

@keyframes smtmDropIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.smtm-navbar .dropdown-item {
  padding: 10px 20px;
  font-size: 15px;
  color: var(--smtm-text);
  transition: background 0.15s, color 0.15s;
}

.smtm-navbar .dropdown-item:hover,
.smtm-navbar .dropdown-item:focus {
  background: var(--smtm-accent-light);
  color: var(--smtm-primary);
}

.smtm-navbar .dropdown-item i {
  color: var(--smtm-accent);
}

.smtm-navbar .dropdown-divider {
  border-color: var(--smtm-border);
  margin: 6px 0;
}

/* Mega Menu — Features */
.smtm-mega-dropdown {
  position: static;
}

.smtm-mega-menu {
  width: 100%;
  left: 0;
  right: 0;
  border-radius: 0 0 12px 12px;
  padding: 32px !important;
}

.smtm-mega-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smtm-text-muted);
  margin-bottom: 16px;
  padding-left: 4px;
}

.smtm-mega-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--smtm-text);
  transition: background 0.15s;
}

.smtm-mega-item:hover {
  background: var(--smtm-accent-light);
  color: var(--smtm-text);
}

.smtm-mega-item i {
  font-size: 22px;
  color: var(--smtm-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.smtm-mega-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--smtm-primary);
  line-height: 1.3;
}

.smtm-mega-item span {
  display: block;
  font-size: 13px;
  color: var(--smtm-text-muted);
  margin-top: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.smtm-hero {
  padding: 120px 0 100px;
}

.smtm-hero h1 {
  margin-bottom: 20px;
}

.smtm-hero .lead {
  font-size: 20px;
  font-weight: 400;
  color: var(--smtm-text);
  line-height: 1.6;
  max-width: 480px;
}

.smtm-hero-dark {
  background: var(--smtm-primary);
  padding: 80px 0;
}

.smtm-hero-dark h1 {
  color: #fff;
}

.smtm-hero-dark .lead {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
}

.smtm-trust-signals {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.smtm-trust-signals span {
  font-size: 14px;
  color: var(--smtm-text-muted);
}

.smtm-trust-signals .bi {
  color: var(--smtm-success);
  margin-right: 4px;
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.smtm-card {
  background: #fff;
  border: 1px solid var(--smtm-border);
  border-radius: 12px;
  padding: 28px;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 12px rgba(30, 58, 95, 0.08);
}

.smtm-card:hover {
  box-shadow: 0 8px 28px rgba(30, 58, 95, 0.14);
  transform: translateY(-2px);
}

.smtm-card .icon {
  font-size: 32px;
  color: var(--smtm-accent);
  margin-bottom: 16px;
}

.smtm-card h4 {
  color: var(--smtm-primary);
  margin-bottom: 8px;
}

.smtm-card p {
  color: var(--smtm-text-muted);
  font-size: 14px;
  margin-bottom: 0;
}

/* Dark card variant */
.smtm-card--dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.smtm-card--dark h4 { color: #fff; }
.smtm-card--dark p { color: rgba(255, 255, 255, 0.7); }

/* Problem card with colored border */
.smtm-card--problem {
  border-left: 4px solid var(--smtm-error);
}

.smtm-card--problem.warning {
  border-left-color: var(--smtm-warning);
}

/* ============================================
   FEATURE ROWS (alternating image/text)
   ============================================ */

.smtm-feature-row {
  padding: 80px 0;
}

.smtm-feature-row .smtm-overline {
  margin-bottom: 12px;
}

.smtm-feature-row h3 {
  margin-bottom: 20px;
}

.smtm-feature-row .feature-body {
  font-size: 16px;
  color: var(--smtm-text);
  line-height: 1.7;
  margin-bottom: 24px;
}

.smtm-feature-row .feature-bullets {
  list-style: none;
  padding: 0;
}

.smtm-feature-row .feature-bullets li {
  padding: 4px 0;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
}

.smtm-feature-row .feature-bullets li::before {
  content: '\F26E'; /* bi-check-lg */
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  color: var(--smtm-accent);
  font-weight: bold;
}

.smtm-feature-img {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(30, 58, 95, 0.15);
}

/* ============================================
   STAT ROW
   ============================================ */

.smtm-stat {
  text-align: center;
  padding: 20px 0;
}

.smtm-stat .number {
  font-size: 52px;
  font-weight: 800;
  color: var(--smtm-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.smtm-stat .label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Light variant */
.smtm-stat--light .number {
  color: var(--smtm-primary);
}

.smtm-stat--light .label {
  color: var(--smtm-text-muted);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.smtm-faq .accordion-item {
  border: 1px solid var(--smtm-border);
  border-radius: 8px !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.smtm-faq .accordion-button {
  font-family: var(--smtm-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--smtm-primary);
  padding: 20px 24px;
  background: #fff;
}

.smtm-faq .accordion-button:not(.collapsed) {
  background: var(--smtm-bg-light);
  color: var(--smtm-primary);
  box-shadow: none;
}

.smtm-faq .accordion-button::after {
  filter: none;
}

.smtm-faq .accordion-body {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--smtm-text);
  line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */

.smtm-cta {
  text-align: center;
}

.smtm-cta h2 {
  max-width: 600px;
  margin: 0 auto 20px;
}

.smtm-cta p {
  max-width: 560px;
  margin: 0 auto 32px;
}

.smtm-cta .btn-group-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.smtm-cta .cta-sub {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================
   FOOTER
   ============================================ */

.smtm-footer {
  background: var(--smtm-dark);
  padding: 80px 0 40px;
  color: rgba(255, 255, 255, 0.7);
}

.smtm-footer h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.smtm-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  display: block;
  padding: 3px 0;
  transition: color 0.2s;
}

.smtm-footer a:hover {
  color: var(--smtm-accent);
}

.smtm-footer .brand-col .tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
}

.smtm-footer .footer-newsletter {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  margin-top: 48px;
  padding-bottom: 32px;
}

.smtm-footer .footer-newsletter h5 {
  margin-bottom: 4px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
}

.footer-newsletter__input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
}

.footer-newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter__input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--smtm-accent);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 181, 216, 0.15);
  outline: none;
}

.smtm-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   INDUSTRY / USE CASE CARDS
   ============================================ */

.smtm-industry-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--smtm-border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}

.smtm-industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(15, 34, 54, 0.14);
}

/* Image area */
.smtm-industry-card__img {
  position: relative;
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}

.smtm-industry-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.smtm-industry-card:hover .smtm-industry-card__img img {
  transform: scale(1.05);
}

/* Hover overlay with CTA */
.smtm-industry-card__img-hover {
  position: absolute;
  inset: 0;
  background: rgba(15, 34, 54, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.smtm-industry-card:hover .smtm-industry-card__img-hover {
  background: rgba(15, 34, 54, 0.65);
}

.smtm-industry-card__img-hover span {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.smtm-industry-card:hover .smtm-industry-card__img-hover span {
  opacity: 1;
  transform: translateY(0);
}

/* Text body */
.smtm-industry-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.smtm-industry-card__body h3 {
  font-size: 1.1rem;
  color: var(--smtm-primary);
  margin: 10px 0 8px;
}

.smtm-industry-card__body p {
  font-size: 0.9rem;
  color: var(--smtm-text-muted);
  line-height: 1.65;
  margin-bottom: 0;
  flex: 1;
}

.smtm-industry-card__stat {
  display: block;
  font-size: 0.8rem;
  color: var(--smtm-accent);
  font-weight: 600;
  margin-top: 14px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.smtm-testimonial {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(30, 58, 95, 0.08);
  height: 100%;
}

.smtm-testimonial .quote-icon {
  font-size: 32px;
  color: var(--smtm-accent);
  margin-bottom: 16px;
  line-height: 1;
}

.smtm-testimonial blockquote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--smtm-text);
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

.smtm-testimonial .author {
  font-weight: 600;
  color: var(--smtm-primary);
  font-size: 14px;
}

.smtm-testimonial .title {
  font-size: 13px;
  color: var(--smtm-text-muted);
}

.smtm-testimonial .stars {
  color: var(--smtm-warning);
  font-size: 14px;
  margin-top: 8px;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.smtm-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.smtm-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

[data-stagger="0"] { transition-delay:   0ms; }
[data-stagger="1"] { transition-delay: 100ms; }
[data-stagger="2"] { transition-delay: 200ms; }
[data-stagger="3"] { transition-delay: 300ms; }
[data-stagger="4"] { transition-delay: 400ms; }
[data-stagger="5"] { transition-delay: 500ms; }
[data-stagger="6"] { transition-delay: 600ms; }
[data-stagger="7"] { transition-delay: 700ms; }
[data-stagger="8"] { transition-delay: 800ms; }
[data-stagger="9"] { transition-delay: 900ms; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
  :root {
    --smtm-section-pad: var(--smtm-section-pad-md);
  }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .smtm-hero { padding: 80px 0 60px; }
  .smtm-navbar .nav-link { padding: 10px 0; }
}

@media (max-width: 767.98px) {
  :root {
    --smtm-section-pad: var(--smtm-section-pad-sm);
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  .smtm-hero { padding: 60px 0 40px; }
  .smtm-hero .lead { font-size: 17px; }
  .smtm-stat .number { font-size: 36px; }
  .btn-smtm { padding: 12px 22px; font-size: 15px; }
  .smtm-trust-signals { flex-direction: column; gap: 8px; }
}

/* Yoast Breadcrumbs */
.smtm-breadcrumb {
  background: var(--smtm-bg-light);
  font-size: 13px;
}

.smtm-breadcrumb a {
  color: var(--smtm-text-muted);
}

.smtm-breadcrumb a:hover {
  color: var(--smtm-accent);
}

/* Navbar scrolled state */
.smtm-navbar.scrolled {
  box-shadow: 0 2px 12px rgba(15, 34, 54, 0.25);
}

/* Screenshot tabs */
.smtm-section .nav-pills .nav-link {
  color: var(--smtm-text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--smtm-border);
  background: #fff;
}

.smtm-section .nav-pills .nav-link.active {
  color: #fff;
  background: var(--smtm-accent);
  border-color: var(--smtm-accent);
}

/* Content styles (for Gutenberg/blog posts) */
.smtm-content h2 { margin-top: 2em; margin-bottom: 0.5em; }
.smtm-content h3 { margin-top: 1.5em; margin-bottom: 0.5em; }
.smtm-content p { margin-bottom: 1.2em; }
.smtm-content ul, .smtm-content ol { margin-bottom: 1.2em; padding-left: 1.5em; }
.smtm-content img { border-radius: 8px; margin: 1.5em 0; }
.smtm-content blockquote { border-left: 3px solid var(--smtm-accent); padding-left: 20px; color: var(--smtm-text-muted); font-style: italic; margin: 1.5em 0; }

/* Form styles */
.smtm-form input,
.smtm-form select,
.smtm-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--smtm-border);
  border-radius: 6px;
  font-family: var(--smtm-font);
  font-size: 15px;
  color: var(--smtm-text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.smtm-form input:focus,
.smtm-form select:focus,
.smtm-form textarea:focus {
  outline: none;
  border-color: var(--smtm-accent);
  box-shadow: 0 0 0 3px rgba(0, 181, 216, 0.12);
}

.smtm-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--smtm-primary);
  margin-bottom: 4px;
}

.smtm-form label .required {
  color: var(--smtm-error);
}

.smtm-form .form-check-label {
  display: inline;
  font-weight: 400;
  font-size: 14px;
  color: var(--smtm-text-muted);
}

/* WordPress admin bar fix */
body.admin-bar .smtm-navbar {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .smtm-navbar {
    top: 46px;
  }
}

/* ============================================
   BLOG ARCHIVE
   ============================================ */

.smtm-blog-archive {
  background: var(--smtm-bg-light);
}

/* Category pill */
.smtm-blog-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--smtm-accent);
  text-decoration: none;
  margin-bottom: 10px;
}

.smtm-blog-cat:hover {
  color: var(--smtm-accent-dark, #0097b8);
}

/* Meta row (date · read time) */
.smtm-blog-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--smtm-text-muted);
}

.smtm-blog-meta__dot {
  opacity: 0.5;
}

/* ── Featured Post ── */
.smtm-blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(15, 34, 54, 0.08);
  margin-bottom: 40px;
  min-height: 380px;
}

.smtm-blog-featured__img {
  display: block;
  overflow: hidden;
}

.smtm-blog-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.smtm-blog-featured:hover .smtm-blog-featured__img img {
  transform: scale(1.03);
}

.smtm-blog-featured__body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.smtm-blog-featured__title {
  font-size: 1.5rem;
  line-height: 1.35;
  margin: 0 0 14px;
}

.smtm-blog-featured__title a {
  color: var(--smtm-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.smtm-blog-featured__title a:hover {
  color: var(--smtm-accent);
}

.smtm-blog-featured__excerpt {
  font-size: 15px;
  color: var(--smtm-text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ── Standard Blog Card ── */
.smtm-blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--smtm-border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}

.smtm-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(15, 34, 54, 0.12);
}

.smtm-blog-card__img-wrap {
  display: block;
  height: 200px;
  overflow: hidden;
  background: var(--smtm-primary);
}

.smtm-blog-card__img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--smtm-primary), #1a3d5c);
}

.smtm-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.smtm-blog-card:hover .smtm-blog-card__img {
  transform: scale(1.05);
}

.smtm-blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.smtm-blog-card__title {
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0 0 10px;
}

.smtm-blog-card__title a {
  color: var(--smtm-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.smtm-blog-card__title a:hover {
  color: var(--smtm-accent);
}

.smtm-blog-card__excerpt {
  font-size: 14px;
  color: var(--smtm-text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

@media (max-width: 768px) {
  .smtm-blog-featured {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .smtm-blog-featured__img {
    height: 220px;
  }
  .smtm-blog-featured__body {
    padding: 28px 24px;
  }
  .smtm-blog-featured__title {
    font-size: 1.25rem;
  }
}

/* ============================================
   LEGAL PAGES
   ============================================ */

.smtm-legal-page {
  padding: 60px 0 80px;
  background: #fff;
}

.smtm-legal-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

/* Sticky sidebar */
.smtm-sticky-sidebar {
  position: sticky;
  top: 100px;
}

/* Sticky sidebar TOC */
.smtm-legal-toc {
  position: sticky;
  top: 100px;
  background: var(--smtm-bg-light);
  border-radius: 10px;
  padding: 20px 24px;
  font-size: 13px;
}

.smtm-legal-toc__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--smtm-text-muted);
  margin-bottom: 12px;
}

.smtm-legal-toc ol {
  margin: 0;
  padding-left: 18px;
}

.smtm-legal-toc li {
  margin-bottom: 6px;
  line-height: 1.4;
}

.smtm-legal-toc a {
  color: var(--smtm-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.smtm-legal-toc a:hover {
  color: var(--smtm-accent);
}

/* Main article content */
.smtm-legal-content {
  max-width: 760px;
}

.smtm-legal-content h1 {
  font-size: 2rem;
  color: var(--smtm-primary);
  margin-bottom: 6px;
}

.smtm-legal-meta {
  font-size: 13px;
  color: var(--smtm-text-muted);
  margin-bottom: 24px;
}

.smtm-legal-notice {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  font-size: 13px;
  color: #78350f;
  margin-bottom: 32px;
}

.smtm-legal-content h2 {
  font-size: 1.2rem;
  color: var(--smtm-primary);
  margin-top: 40px;
  margin-bottom: 12px;
  scroll-margin-top: 100px;
}

.smtm-legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--smtm-primary);
  margin-top: 20px;
  margin-bottom: 8px;
}

.smtm-legal-content p,
.smtm-legal-content li {
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
}

.smtm-legal-content ul,
.smtm-legal-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.smtm-legal-content li {
  margin-bottom: 6px;
}

.smtm-legal-content hr {
  border: none;
  border-top: 1px solid var(--smtm-border);
  margin: 32px 0;
}

.smtm-legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 24px;
}

.smtm-legal-content th {
  background: var(--smtm-bg-light);
  color: var(--smtm-primary);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--smtm-border);
}

.smtm-legal-content td {
  padding: 10px 14px;
  border: 1px solid var(--smtm-border);
  color: #374151;
  vertical-align: top;
}

.smtm-legal-content code {
  background: var(--smtm-bg-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
}

.smtm-legal-content a {
  color: var(--smtm-accent);
}

@media (max-width: 900px) {
  .smtm-legal-wrap {
    grid-template-columns: 1fr;
  }
  .smtm-legal-toc {
    position: static;
  }
}
