/* ==========================================================================
   Phuriphat Accounting & Advisory - Modern Minimal Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&display=swap');

:root {
  /* Color Palette - Modern Slate, Emerald Trust & Muted Gold */
  --navy-dark: #0b1325;
  --navy-main: #0f172a;
  --navy-surface: #1e293b;
  
  --emerald-primary: #0d9488;
  --emerald-hover: #0f766e;
  --emerald-light: #f0fdf4;
  --emerald-border: #a7f3d0;
  
  --gold-accent: #d97706;
  --gold-light: #fffbeb;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --bg-body: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --text-title: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.08);

  --font-main: 'Prompt', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: 'Plus Jakarta Sans', 'Prompt', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Mode Theme Overrides */
[data-theme="dark"] {
  --bg-body: #0b1325;
  --bg-card: rgba(15, 23, 42, 0.85);
  --text-title: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --slate-100: #1e293b;
  --slate-200: #334155;
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Reset & Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(13, 148, 136, 0.1);
  color: var(--emerald-primary);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  font-weight: 400;
}

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy-main);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.btn-primary:hover {
  background: var(--emerald-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.btn-emerald {
  background: var(--emerald-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-emerald:hover {
  background: var(--emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-title);
  border: 1px solid var(--slate-300);
}

.btn-outline:hover {
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
  background: rgba(13, 148, 136, 0.04);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Glassmorphism Card Element */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

[data-theme="dark"] .glass-card {
  border-color: rgba(255, 255, 255, 0.08);
}

/* Sticky Header Wrapper (Fix topbar overlapping navbar) */
.site-header-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-body);
}

.announcement-bar {
  background: var(--navy-dark);
  color: #fff;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1001;
}

/* Navbar */
.navbar {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1000;
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--slate-200);
  transition: all var(--transition-normal);
}

.site-header-wrapper.scrolled .navbar {
  padding: 0.65rem 0;
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .navbar {
  background: rgba(11, 19, 37, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-title);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--navy-main), var(--emerald-primary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-body);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--emerald-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--emerald-primary);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid var(--slate-200);
}

.lang-btn {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: #ffffff;
  color: var(--navy-main);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .lang-btn.active {
  background: var(--navy-surface);
  color: var(--emerald-primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-title);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(15, 23, 42, 0.04) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-800);
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .hero-badge {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--slate-300);
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--navy-main) 30%, var(--emerald-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .text-gradient {
  background: linear-gradient(135deg, #ffffff 40%, var(--emerald-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.trust-bullets {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
}

.trust-icon {
  color: var(--emerald-primary);
  font-size: 1.1rem;
}

.hero-visual {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-img-wrapper:hover .hero-img {
  transform: scale(1.03);
}

/* Floating Stats Badge on Hero */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

[data-theme="dark"] .floating-card {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-top-right {
  top: 1.5rem;
  right: -1.5rem;
  animation: float 4s ease-in-out infinite;
}

.card-bottom-left {
  bottom: 1.5rem;
  left: -1.5rem;
  animation: float 4s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-icon {
  width: 46px;
  height: 46px;
  background: var(--emerald-light);
  color: var(--emerald-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.float-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.1;
}

.float-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Stats Counter Band */
.stats-band {
  padding: 3rem 0;
  background: var(--navy-main);
  color: #ffffff;
  margin-top: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-en);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number span {
  color: var(--emerald-primary);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--slate-300);
}

/* Services Section */
.section-padding {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--emerald-primary);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--slate-100);
  color: var(--navy-main);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--emerald-primary);
  color: #ffffff;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-list li {
  font-size: 0.875rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.service-list li svg {
  color: var(--emerald-primary);
  flex-shrink: 0;
}

/* Interactive Accounting Fee Calculator */
.calc-section {
  background: linear-gradient(180deg, var(--slate-100) 0%, var(--bg-body) 100%);
  position: relative;
}

.calc-card {
  max-width: 960px;
  margin: 3rem auto 0;
  padding: 3rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xl);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 0.6rem;
}

.form-select, .form-input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-300);
  background: var(--bg-body);
  color: var(--text-title);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-select:focus, .form-input:focus {
  border-color: var(--emerald-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Range Slider Styling */
.range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.range-val-badge {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--emerald-primary);
  background: var(--emerald-light);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--slate-200);
  outline: none;
  accent-color: var(--emerald-primary);
  cursor: pointer;
}

.calc-result-box {
  background: var(--navy-main);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
}

.result-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
  margin-bottom: 0.5rem;
}

.result-price-range {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-en);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.price-unit {
  font-size: 0.9rem;
  color: var(--emerald-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.calc-breakdown {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  margin-top: auto;
  margin-bottom: 1.5rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--slate-300);
  margin-bottom: 0.5rem;
}

/* Tax Calendar Section */
.tax-calendar-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-300);
  background: transparent;
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--navy-main);
  color: #ffffff;
  border-color: var(--navy-main);
}

.tax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.tax-card {
  background: var(--bg-card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all var(--transition-normal);
}

.tax-card:hover {
  border-color: var(--emerald-primary);
  box-shadow: var(--shadow-md);
}

.tax-date-box {
  background: var(--emerald-light);
  color: var(--emerald-primary);
  padding: 0.75rem;
  border-radius: 12px;
  text-align: center;
  min-width: 68px;
  font-weight: 700;
}

.tax-date-num {
  font-size: 1.5rem;
  line-height: 1;
}

.tax-date-month {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.tax-info-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.35rem;
}

.tax-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--slate-100);
  color: var(--slate-800);
  margin-bottom: 0.5rem;
}

/* Step Process Timeline */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  position: relative;
}

.step-num {
  font-size: 2.75rem;
  font-weight: 800;
  color: rgba(13, 148, 136, 0.2);
  font-family: var(--font-en);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.6rem;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-title);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform var(--transition-normal);
  color: var(--emerald-primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Contact Footer Section */
.footer {
  background: var(--navy-dark);
  color: #ffffff;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-desc {
  color: var(--slate-400);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--slate-400);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--emerald-primary);
}

.contact-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--slate-300);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.contact-meta-icon {
  color: var(--emerald-primary);
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--slate-400);
  font-size: 0.85rem;
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 19, 37, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-body);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-bounce);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--slate-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* Float CTA Widget */
.float-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform var(--transition-bounce);
  border: none;
}

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

.float-line {
  background: #06c755;
}

.float-top {
  background: var(--navy-main);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.float-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-body);
    padding: 2rem;
    flex-direction: column;
    gap: 1.25rem;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-top-right, .card-bottom-left {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   KNOWLEDGE HUB & BLOG ENGINE STYLES (SEO & GEO)
   ========================================================================== */

/* Blog Hub Layout */
.blog-header {
  text-align: center;
  padding: 4rem 1rem 2.5rem;
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.05) 0%, transparent 100%);
}

.blog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-pill {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--slate-200);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--emerald-primary);
  color: #ffffff;
  border-color: var(--emerald-primary);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-box input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-300);
  background: var(--bg-card);
  color: var(--text-title);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--emerald-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--emerald-border);
}

.article-card-cover {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--slate-100);
}

.article-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.article-card:hover .article-card-cover img {
  transform: scale(1.05);
}

.article-badge-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.article-meta-row i {
  color: var(--emerald-primary);
  margin-right: 0.25rem;
}

.article-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-title);
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.article-card:hover .article-card-title {
  color: var(--emerald-primary);
}

.article-card-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--slate-100);
  padding-top: 1rem;
  margin-top: auto;
  font-size: 0.85rem;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-title);
}

.article-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--emerald-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* ==========================================================================
   SINGLE ARTICLE VIEW (SEO, GEO & ADSENSE ENGINE)
   ========================================================================== */

.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.article-breadcrumb a:hover {
  color: var(--emerald-primary);
}

.article-header {
  margin-bottom: 2rem;
}

.article-main-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-title);
  margin: 1rem 0;
}

.article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 1.5rem;
}

.byline-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.byline-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--emerald-primary), var(--navy-main));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.byline-text .author-name {
  font-weight: 700;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cpa-pill {
  background: var(--gold-light);
  color: var(--gold-accent);
  border: 1px solid #fde68a;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.byline-text .author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.byline-meta {
  display: flex;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* 🤖 GEO DIRECT-ANSWER SUMMARY BOX (AI GENERATIVE ENGINE OPTIMIZATION) */
.geo-summary-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 2px solid var(--emerald-primary);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 1.75rem 0;
  position: relative;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.12);
}

[data-theme="dark"] .geo-summary-box {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(30, 41, 59, 0.95) 100%);
  border-color: var(--emerald-primary);
}

.geo-summary-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.geo-ai-badge {
  background: var(--emerald-primary);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.5px;
}

.geo-ai-badge i {
  color: #fef08a;
}

.geo-summary-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
}

.geo-summary-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-title);
  font-weight: 500;
}

.geo-source-tag {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ADSENSE CONTAINERS (MODERN RESPONSIVE AD SLOTS) */
.adsense-slot-container {
  margin: 2.25rem 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  border: 1px dashed var(--slate-300);
  transition: all var(--transition-fast);
}

.adsense-slot-container:hover {
  border-color: var(--emerald-primary);
}

.ad-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--slate-400);
  padding: 0.35rem 0.5rem;
  background: var(--slate-100);
  display: block;
  font-weight: 600;
  border-bottom: 1px solid var(--slate-200);
}

/* Ad Preview Box (Placeholder Mode) */
.ad-preview-box {
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.4) 0%, rgba(241, 245, 249, 0.8) 100%);
  min-height: 120px;
}

.ad-preview-icon {
  font-size: 1.8rem;
  color: #f59e0b;
}

.ad-preview-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-title);
}

.ad-preview-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 480px;
}

.ad-preview-slot-id {
  font-family: monospace;
  font-size: 0.75rem;
  background: var(--slate-200);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: var(--text-body);
}

/* AFFILIATE RECOMMENDATION PROMO BOX */
.affiliate-promo-box {
  background: var(--bg-card);
  border: 2px solid var(--emerald-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.08);
  position: relative;
  overflow: hidden;
}

.affiliate-promo-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--emerald-primary);
}

.affiliate-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--emerald-light);
  color: var(--emerald-hover);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.affiliate-box-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.affiliate-partner-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--navy-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.affiliate-partner-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-title);
}

.affiliate-box-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.affiliate-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--slate-50);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
}

[data-theme="dark"] .affiliate-action-row {
  background: var(--navy-surface);
}

.promo-code-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.promo-code-wrap span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.code-pill {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.95rem;
  background: #fef08a;
  color: #854d0e;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px dashed #eab308;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.affiliate-cta-btn {
  background: var(--emerald-primary);
  color: #ffffff;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.affiliate-cta-btn:hover {
  background: var(--emerald-hover);
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.35);
  transform: translateY(-2px);
}

.affiliate-tiny-notice {
  font-size: 0.75rem;
  color: var(--slate-400);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Article Body Typography */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}

.article-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-title);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--slate-200);
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-title);
  margin: 1.75rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--emerald-primary);
  background: var(--slate-100);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--text-title);
}

/* Article Semantic Tables (Core Web Vitals & Mobile Optimized) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
}

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

.article-table th {
  background: var(--slate-100);
  color: var(--text-title);
  padding: 0.85rem 1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--slate-200);
}

.article-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--slate-200);
  color: var(--text-body);
}

.article-table tr:hover {
  background: rgba(13, 148, 136, 0.03);
}

/* FAQ Section in Article */
.article-faq-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
}

.article-faq-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Author E-E-A-T Card */
.author-profile-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  margin: 3rem 0 2rem;
}

.author-big-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--emerald-primary), var(--navy-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.author-bio-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 0.35rem;
}

.author-bio-role {
  font-size: 0.88rem;
  color: var(--emerald-hover);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.author-bio-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   PAGE CMS STYLES (ABOUT, SERVICES, CONTACT, LEGAL)
   ========================================================================== */

.page-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 6rem;
}

.page-header-box {
  text-align: center;
  margin-bottom: 3.5rem;
}

.page-main-heading {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 1rem;
}

.page-subheading {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.legal-doc-content {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-body);
}

.legal-doc-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-title);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--slate-200);
}

.legal-doc-content p {
  margin-bottom: 1rem;
}

.legal-doc-content ul, .legal-doc-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.legal-doc-content li {
  margin-bottom: 0.5rem;
}

.alert-info-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  color: var(--navy-dark);
}

.alert-info-box i {
  font-size: 1.75rem;
  color: var(--emerald-primary);
}

/* Values Grid in About Page */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.val-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

[data-theme="dark"] .val-card {
  background: var(--navy-surface);
}

.val-card i {
  font-size: 2rem;
  color: var(--emerald-primary);
  margin-bottom: 1rem;
}

.val-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.5rem;
}

.val-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cpa-credential-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--navy-main), #1e3a5f);
  color: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin: 2.5rem 0;
}

.cpa-credential-box .cpa-icon {
  font-size: 3rem;
  color: #fbbf24;
}

.cpa-credential-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.cpa-credential-box ul {
  list-style: none;
  font-size: 0.9rem;
}

.cpa-credential-box li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cpa-credential-box li::before {
  content: "✓";
  color: var(--emerald-border);
  font-weight: bold;
}

/* Contact Page Grid */
.contact-page-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition-fast);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-primary);
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--emerald-primary);
  margin-bottom: 1rem;
}

.contact-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   COOKIE CONSENT BANNER & MODAL (PDPA & GOOGLE CONSENT MODE V2)
   ========================================================================== */

.cookie-banner-wrapper {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  animation: slideUpCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cookie-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-text p {
  font-size: 0.85rem;
  color: var(--slate-300);
  line-height: 1.5;
  margin: 0;
}

.cookie-text a {
  color: var(--emerald-border);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background: var(--emerald-primary);
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cookie-accept:hover {
  background: var(--emerald-hover);
}

.btn-cookie-reject {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cookie-reject:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-cookie-custom {
  background: transparent;
  color: var(--slate-300);
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.5rem;
}

.btn-cookie-custom:hover {
  color: #fff;
}

/* Cookie Preference Modal */
.cookie-pref-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--slate-200);
}

.cookie-pref-info h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-pref-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--slate-300);
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--emerald-primary);
}

input:disabled + .slider {
  opacity: 0.6;
  cursor: not-allowed;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* ==========================================================================
   ADMIN CMS CONTROL PANEL STYLES
   ========================================================================== */

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 85vh;
  background: var(--bg-body);
  border-top: 1px solid var(--slate-200);
}

.admin-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--slate-200);
  padding: 2rem 1.25rem;
}

.admin-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-nav-item:hover, .admin-nav-item.active {
  background: var(--emerald-light);
  color: var(--emerald-hover);
}

[data-theme="dark"] .admin-nav-item:hover, [data-theme="dark"] .admin-nav-item.active {
  background: rgba(13, 148, 136, 0.15);
  color: var(--emerald-border);
}

.admin-nav-item i {
  font-size: 1.1rem;
  width: 22px;
}

.admin-content-area {
  padding: 2.5rem;
  overflow-y: auto;
}

.admin-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-view-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-title);
}

/* Admin Metric Stats Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-metric-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--slate-100);
  color: var(--emerald-primary);
}

.stat-metric-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-metric-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Admin Data Table */
.admin-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

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

.admin-table th {
  background: var(--slate-100);
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--text-title);
  border-bottom: 1px solid var(--slate-200);
}

.admin-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--slate-200);
  color: var(--text-body);
  vertical-align: middle;
}

.admin-table tr:hover {
  background: rgba(13, 148, 136, 0.02);
}

.admin-actions-cell {
  display: flex;
  gap: 0.5rem;
}

.btn-icon-action {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  background: var(--bg-card);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon-action:hover {
  background: var(--emerald-primary);
  color: #fff;
  border-color: var(--emerald-primary);
}

.btn-icon-action.btn-del:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* Admin Form Controls */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.admin-form-group {
  margin-bottom: 1.25rem;
}

.admin-form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-title);
  margin-bottom: 0.5rem;
}

.admin-form-group input[type="text"],
.admin-form-group input[type="email"],
.admin-form-group input[type="number"],
.admin-form-group select,
.admin-form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: var(--bg-card);
  color: var(--text-title);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
  border-color: var(--emerald-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.admin-form-group small {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.35rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--slate-200);
  }
  .cookie-banner-wrapper {
    flex-direction: column;
    text-align: center;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 1.25rem;
  }
  .cookie-actions {
    justify-content: center;
    width: 100%;
  }
}


/* ==========================================================================
   IMAGE CROPPER & WEBP COMPRESSOR (1200x630 SOCIAL FEATURE IMAGE)
   ========================================================================== */

.crop-preview-container {
  width: 100%;
  aspect-ratio: 1200 / 630;
  max-height: 380px;
  position: relative;
  overflow: hidden;
  background: #0b1325;
  border-radius: var(--radius-md);
  border: 2px dashed var(--emerald-primary);
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: grab;
}

.crop-preview-container:active {
  cursor: grabbing;
}

.crop-preview-container img {
  position: absolute;
  max-width: none;
  transform-origin: center center;
  pointer-events: none;
  transition: none;
}

.crop-ratio-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-family: monospace;
  pointer-events: none;
  z-index: 10;
}

.crop-controls-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--slate-100);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .crop-controls-bar {
  background: var(--navy-surface);
}

.crop-controls-bar label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.crop-zoom-slider {
  flex-grow: 1;
}

.cover-upload-trigger-box {
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  background: var(--slate-50);
  transition: all var(--transition-fast);
  margin-top: 0.5rem;
}

[data-theme="dark"] .cover-upload-trigger-box {
  background: var(--navy-surface);
  border-color: var(--slate-600);
}

.cover-upload-trigger-box:hover {
  border-color: var(--emerald-primary);
  background: var(--emerald-light);
}

.cover-preview-display {
  margin-top: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  position: relative;
  aspect-ratio: 1200 / 630;
  background: var(--slate-100);
}

.cover-preview-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
