/* ==============================================
   ภาษีบริษัท.com — Design System
   Theme: Knowledge Green + Trust Navy
   Model: Edu-Commerce (ให้ความรู้ 80% : ขาย 20%)
   ============================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700;800&family=Noto+Serif+Thai:wght@400;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  /* Primary: Deep Navy Trust */
  --primary: #0f2d5e;
  --primary-dark: #091e42;
  --primary-light: #1a3f7a;
  --primary-rgb: 15, 45, 94;

  /* Accent: Knowledge Green */
  --accent: #00875a;
  --accent-dark: #006644;
  --accent-light: #36b37e;
  --accent-rgb: 0, 135, 90;

  /* Highlight: Gold CTA */
  --gold: #e8a020;
  --gold-dark: #c8851a;
  --gold-light: #f0b840;

  /* Neutrals */
  --bg: #f4f6f9;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --surface: #eef1f6;
  --border: #d8dde8;

  /* Text */
  --text: #1a2332;
  --text-muted: #5a6882;
  --text-light: #8898aa;

  /* Status */
  --success: #00875a;
  --warning: #e8a020;
  --danger: #de350b;
  --info: #0065ff;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.18);

  /* Spacing & Shape */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  /* Typography */
  --font-sans: 'Sarabun', -apple-system, sans-serif;
  --font-serif: 'Noto Serif Thai', Georgia, serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--accent); }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}

.hero-title { font-family: var(--font-serif); }

/* =============================================
   NAVBAR
   ============================================= */
.main-navbar {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}

.brand-text-main {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  line-height: 1.1;
}

.brand-text-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  display: block;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 1.2rem 0.9rem !important;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: white !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent-light);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 60%; }

.nav-cta-btn {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%) !important;
  color: white !important;
  border-radius: var(--radius-full) !important;
  padding: 0.55rem 1.4rem !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  margin-left: 0.5rem;
  box-shadow: 0 4px 12px rgba(232, 160, 32, 0.35);
  transition: var(--transition) !important;
}
.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,160,32,0.5) !important;
  color: white !important;
}
.nav-cta-btn::after { display: none !important; }

.navbar-toggler {
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* Top bar */
.topbar {
  background: var(--primary-dark);
  padding: 5px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}

.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--gold-light); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: white;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-title .highlight {
  color: var(--gold-light);
  position: relative;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-stat {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 12px 18px;
  text-align: center;
  backdrop-filter: blur(8px);
  min-width: 90px;
}

.hero-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-top: 3px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-hero-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  box-shadow: 0 6px 24px rgba(232,160,32,0.4);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(232,160,32,0.55); color: white; }

.btn-hero-secondary {
  background: rgba(255,255,255,0.12);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.2); color: white; transform: translateY(-2px); }

/* Hero Cards (right side) */
.hero-card-stack {
  position: relative;
  padding: 20px 0;
}

.hero-info-card {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  margin-bottom: 16px;
  position: relative;
  transition: var(--transition);
}
.hero-info-card:hover { transform: translateX(-5px); }

.hero-info-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.hero-info-card .card-title { font-size: 0.9rem; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.hero-info-card .card-value { font-size: 0.8rem; color: var(--text-muted); }

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.trust-item i { color: var(--accent); font-size: 1rem; }

/* =============================================
   SECTION LAYOUT
   ============================================= */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }

.section-header { margin-bottom: 48px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
}

/* =============================================
   KNOWLEDGE HUB - CATEGORY CARDS
   ============================================= */
.category-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1.5px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  height: 100%;
}

.category-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: inherit;
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.icon-green { background: #e6f7ef; color: var(--accent); }
.icon-navy { background: #e8edf6; color: var(--primary); }
.icon-gold { background: #fdf4e3; color: var(--gold-dark); }
.icon-red { background: #fde8e3; color: var(--danger); }
.icon-blue { background: #e3f0ff; color: var(--info); }
.icon-purple { background: #f0e8ff; color: #6554c0; }

.category-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.category-card-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =============================================
   ARTICLE CARDS
   ============================================= */
.article-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }

.article-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  position: relative;
}

.article-card-img img { width: 100%; height: 100%; object-fit: cover; }

.article-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  border: 1px solid var(--border);
}

.article-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-excerpt {
  font-size: 0.83rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.article-card-meta { 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  font-size: 0.75rem; 
  color: var(--text-light); 
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1.5px solid var(--border);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--accent);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #e6f7ef 0%, #ccf0e0 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.service-card-title { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.service-card-desc { font-size: 0.87rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }

.service-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* =============================================
   TOOL CARDS
   ============================================= */
.tool-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1.5px solid var(--border);
  transition: var(--transition);
  height: 100%;
}

.tool-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

/* TAX CALCULATOR STYLES */
.calculator-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f4ee 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1.5px solid var(--border);
}

.calc-input-group { margin-bottom: 16px; }
.calc-label { font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; display: block; }
.calc-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  background: white;
  color: var(--text);
  transition: var(--transition-fast);
}
.calc-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1); }

.calc-result {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 16px;
}

.calc-result-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 0.9rem; }
.calc-result-row.total { border-top: 1.5px solid rgba(255,255,255,0.2); padding-top: 12px; margin-top: 4px; font-size: 1.1rem; font-weight: 700; }
.calc-result-label { color: rgba(255,255,255,0.75); }
.calc-result-value { font-weight: 700; color: white; }
.calc-total-value { color: var(--gold-light) !important; font-size: 1.3rem; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1.5px solid var(--border);
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; right: 24px;
  font-size: 4.5rem;
  color: var(--surface);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.testimonial-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 12px; }
.testimonial-content { font-size: 0.92rem; color: var(--text); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-name { font-size: 0.9rem; font-weight: 700; color: var(--primary); }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,135,90,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-title { font-size: clamp(1.5rem, 3vw, 2.2rem); color: white; font-weight: 700; margin-bottom: 12px; }
.cta-subtitle { color: rgba(255,255,255,0.75); font-size: 0.97rem; max-width: 500px; margin-bottom: 28px; }

.btn-cta-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  box-shadow: 0 6px 24px rgba(232,160,32,0.4);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-cta-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(232,160,32,0.55); color: white; }

.btn-cta-line {
  background: #06c755;
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  box-shadow: 0 4px 16px rgba(6,199,85,0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-cta-line:hover { background: #05b34e; transform: translateY(-2px); color: white; }

/* =============================================
   FOOTER
   ============================================= */
.main-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding-top: 60px;
}

.footer-brand { margin-bottom: 20px; }

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.footer-brand-desc { font-size: 0.85rem; margin-top: 8px; line-height: 1.7; }

.footer-heading { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.87rem; transition: var(--transition-fast); display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--accent-light); padding-left: 5px; }

.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.85rem; }
.footer-contact-item i { color: var(--accent-light); margin-top: 2px; width: 16px; }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.social-btn:hover { background: var(--accent); color: white; transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 14px 0;
  margin-top: 40px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent-light); }

/* =============================================
   STICKY CONTACT FLOAT
   ============================================= */
.contact-float {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 54px; height: 54px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  text-decoration: none;
  color: white;
}

.float-line { background: #06c755; }
.float-phone { background: var(--primary); }

.float-btn:hover { transform: scale(1.1); color: white; }

.float-tooltip {
  position: absolute;
  right: 62px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  transition: var(--transition-fast);
  pointer-events: none;
}
.float-btn:hover .float-tooltip { opacity: 1; }

/* =============================================
   GENERAL BUTTONS
   ============================================= */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.4); color: white; }

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  border: 2px solid var(--primary);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-outline-custom:hover { background: var(--primary); color: white; }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb-section {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.breadcrumb { margin: 0; background: transparent; padding: 0; }
.breadcrumb-item { font-size: 0.8rem; }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--primary); font-weight: 600; }
.breadcrumb-item+.breadcrumb-item::before { color: var(--text-light); }

/* =============================================
   BLOG DETAIL
   ============================================= */
.article-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--surface);
}

.article-content h3 { font-size: 1.15rem; color: var(--primary); margin: 24px 0 10px; }

.article-content p { margin-bottom: 16px; }

.article-content ul, .article-content ol { margin-bottom: 16px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }

.article-content strong { color: var(--primary); font-weight: 700; }

.article-content table {
  width: 100%; border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}
.article-content table th {
  background: var(--primary);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.article-content table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.article-content table tr:nth-child(even) td { background: var(--surface); }

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form-wrapper {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border);
}

.form-label-custom { font-size: 0.87rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.form-control-custom {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  background: #fafbfc;
  color: var(--text);
  transition: var(--transition-fast);
}
.form-control-custom:focus { outline: none; border-color: var(--accent); background: white; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08); }

/* =============================================
   ADMIN SHARED STYLES (used by admin panel CSS too)
   ============================================= */
.badge-category {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

/* =============================================
   UTILITIES
   ============================================= */
.text-primary-custom { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-gold { color: var(--gold-dark) !important; }
.text-muted-custom { color: var(--text-muted) !important; }

.bg-primary-custom { background: var(--primary) !important; }
.bg-accent { background: var(--accent) !important; }
.bg-surface { background: var(--surface) !important; }

.divider { height: 1px; background: var(--border); margin: 32px 0; }

.highlight-box {
  background: linear-gradient(135deg, #e6f7ef 0%, #f0fdf9 100%);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.warning-box {
  background: linear-gradient(135deg, #fdf4e3 0%, #fef9f0 100%);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Page Hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 48px 0 44px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-title { color: white; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 8px; position: relative; }
.page-hero-subtitle { color: rgba(255,255,255,0.75); font-size: 0.95rem; position: relative; }

/* Step indicator */
.step-number {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Sticky side CTA (article pages) */
.sticky-cta-box {
  position: sticky;
  top: 80px;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: white;
}

.cta-box-title { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 8px; }
.cta-box-desc { font-size: 0.82rem; color: rgba(255,255,255,0.75); margin-bottom: 16px; }

/* Animated counter */
@keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
  .main-navbar .navbar-collapse { background: rgba(9,30,66,0.98); padding: 16px; border-radius: 0 0 var(--radius) var(--radius); }
  .navbar-nav .nav-link { padding: 10px 12px !important; border-radius: var(--radius-sm); }
  .navbar-nav .nav-link::after { display: none; }
  .nav-cta-btn { margin: 8px 0 0 0; }
  .hero-section { padding: 48px 0; }
  .hero-card-stack { display: none; }
  .section, .section-sm { padding: 48px 0; }
  .calculator-section { padding: 24px 20px; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { justify-content: center; }
  .trust-bar .d-flex { flex-wrap: wrap; gap: 12px !important; }
  .contact-form-wrapper { padding: 24px 20px; }
  .topbar { display: none; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: 6px; }
}

/* =============================================
   NAVBAR SCROLLED STATE
   ============================================= */
.main-navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  background: rgba(9,30,66,0.97);
  backdrop-filter: blur(12px);
}

/* =============================================
   FORM SELECT STYLING
   ============================================= */
select.form-control-custom,
select.admin-form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235a6882' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px !important;
}

/* =============================================
   BLOG LISTING FILTER ACTIVE
   ============================================= */
.cat-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.cat-filter-btn:hover,
.cat-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
  .main-navbar, .main-footer, .contact-float,
  .sticky-cta-box, .breadcrumb-section, .cta-section { display: none !important; }
  .article-content { font-size: 12pt; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
}
