/* ==========================================================================
   BAJUS Gold Price - Main Luxury & Responsive Stylesheet
   Color Theme: Premium Gold (#D4AF37), Dark Navy (#0F172A), Clean White (#FFFFFF)
   Typography: Inter (English) & Hind Siliguri (Bengali)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --gold-primary: #D4AF37;
  --gold-light: #F6E05E;
  --gold-dark: #B45309;
  --gold-accent: #EAB308;
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.28);
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F59E0B 50%, #B45309 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(245, 158, 11, 0.05) 100%);

  /* Light Theme */
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  --border-color: #E2E8F0;
  --border-gold: rgba(212, 175, 55, 0.35);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.1);
  --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.2);

  /* Status */
  --success: #10B981;
  --danger: #EF4444;
  --info: #3B82F6;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --header-height: 72px;

  /* Fonts */
  --font-bangla: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-english: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-body: #0B1120;
  --bg-surface: #0F172A;
  --bg-surface-alt: #1E293B;
  --bg-card: #131D33;
  --bg-card-hover: #1A2642;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-light: #CBD5E1;
  --border-color: #1E293B;
  --border-gold: rgba(212, 175, 55, 0.45);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 35px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.25);
  --gold-gradient-soft: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
}

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

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

body {
  font-family: var(--font-bangla);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

.font-en {
  font-family: var(--font-english);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Luxury Gold Utilities */
.text-gold {
  color: var(--gold-primary);
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 700;
}

.bg-gold {
  background-color: var(--gold-primary);
  color: #0F172A;
}

.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  background: rgba(212, 175, 55, 0.15);
  color: #B45309;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

[data-theme="dark"] .badge-gold {
  color: #F6E05E;
}

/* Top Announcement Bar */
.top-ticker {
  background: #0B132B;
  color: #E2E8F0;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  white-space: nowrap;
}

.top-ticker-content {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.top-ticker-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.top-ticker-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #94A3B8;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}

.logo-icon svg {
  width: 26px;
  height: 26px;
}

.logo-text-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.logo-text-subtitle {
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="dark"] .logo-text-subtitle {
  color: var(--gold-light);
}

/* Nav Menu Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0.2rem;
  transition: color 0.2s ease;
}

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

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

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

.theme-toggle-btn {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: var(--bg-surface);
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold-gradient);
  color: #0F172A !important;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1.5rem;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 340px;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 1100;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

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

.mobile-nav-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s;
}

.mobile-nav-item a:hover, .mobile-nav-item a.active {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 3rem 0 2rem;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge-wrap {
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-top: 0.2rem;
}

[data-theme="dark"] .stat-sub {
  color: var(--gold-light);
}

/* ==========================================================================
   Live Price Widget Section (GoldRateBD Integration)
   ========================================================================== */
.live-price-section {
  padding: 1rem 0 3.5rem;
}

.luxury-widget-container {
  background: var(--bg-card);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-gold), var(--shadow-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.luxury-widget-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.widget-header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.widget-title-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.widget-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-gradient-soft);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
}

.widget-heading-main {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
}

.widget-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.widget-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
}

[data-theme="dark"] .widget-status-badge {
  color: #34D399;
}

/* Skeleton Loading for Price Table */
.price-skeleton-loader {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-line {
  height: 45px;
  background: linear-gradient(90deg, var(--bg-surface-alt) 25%, var(--border-color) 50%, var(--bg-surface-alt) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: skeletonPulse 1.5s infinite;
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Custom Overrides for GoldRateBD's injected widget */
#priceTable {
  min-height: 250px;
  width: 100%;
  position: relative;
}

.grbd-pw-card {
  border: 1px solid var(--border-color) !important;
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
  border-radius: var(--radius-md) !important;
}

[data-theme="dark"] .grbd-pw-card {
  background: var(--bg-surface) !important;
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}

.grbd-pw-table th {
  background: var(--bg-surface-alt) !important;
  color: var(--text-main) !important;
  font-weight: 700 !important;
  border-bottom: 2px solid var(--gold-primary) !important;
  padding: 12px 14px !important;
}

.grbd-pw-table td {
  border-bottom: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  padding: 12px 14px !important;
}

.widget-footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Gold Calculator Component & Card
   ========================================================================== */
.calc-section {
  padding: 3.5rem 0;
  background: var(--bg-surface);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.calc-card-input {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.calc-card-result {
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-gold), var(--shadow-md);
  position: sticky;
  top: 90px;
}

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

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.925rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-label span.help-tip {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: normal;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.unit-mode-tabs {
  display: flex;
  background: var(--bg-surface-alt);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  gap: 4px;
}

.unit-mode-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.unit-mode-btn.active {
  background: var(--bg-surface);
  color: var(--gold-primary);
  box-shadow: var(--shadow-sm);
}

.traditional-units-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.carat-selector-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.carat-pill {
  padding: 0.75rem 0.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carat-pill.active {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  font-weight: 800;
}

.carat-pill-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.carat-pill-purity {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calc-receipt-card {
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  padding: 1.5rem;
  margin-top: 1rem;
  border: 1px solid var(--border-color);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.925rem;
}

.receipt-row.total-row {
  border-bottom: none;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--gold-primary);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.btn-group-calc {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-primary-gold {
  flex: 1;
  background: var(--gold-gradient);
  color: #0F172A;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
  transition: all 0.2s;
}

.btn-primary-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.btn-secondary {
  background: var(--bg-surface-alt);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--border-color);
}

/* Hallmark & Carat Guide Cards */
.guide-section {
  padding: 3.5rem 0;
}

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

.carat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.carat-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md);
}

.carat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.carat-tag {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.hallmark-stamp {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border: 1px dashed var(--gold-primary);
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  letter-spacing: 0.05em;
}

.carat-purity-bar-wrap {
  margin: 1rem 0;
}

.purity-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.purity-bar-bg {
  height: 8px;
  background: var(--bg-surface-alt);
  border-radius: 4px;
  overflow: hidden;
}

.purity-bar-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 4px;
}

.carat-features-list {
  list-style: none;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.carat-features-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 3.5rem 0;
  background: var(--bg-surface);
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: var(--gold-primary);
}

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

.faq-icon-arrow {
  transition: transform 0.3s ease;
  color: var(--gold-primary);
  flex-shrink: 0;
}

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

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

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

/* Blog & Guide Cards */
.blog-section {
  padding: 3.5rem 0;
}

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

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md);
}

.blog-thumb-wrap {
  height: 180px;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-thumb-wrap svg {
  width: 64px;
  height: 64px;
  color: var(--gold-primary);
  opacity: 0.85;
}

.blog-badge-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold-primary);
  color: #0F172A;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

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

.blog-meta-time {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-primary);
}

.blog-read-more:hover {
  gap: 0.6rem;
}

/* AdSense Slot Placeholders */
.ad-slot-container {
  margin: 2rem auto;
  text-align: center;
  padding: 1rem;
  border: 1px dashed var(--border-color);
  background: var(--bg-surface-alt);
  border-radius: var(--radius-sm);
  max-width: 970px;
}

.ad-slot-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.ad-slot-box {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Article Detail Page Styles */
.article-header {
  padding: 3rem 0 2rem;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
}

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

.article-breadcrumbs a:hover {
  color: var(--gold-primary);
}

.article-body-wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.article-prose {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-prose h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  border-left: 4px solid var(--gold-primary);
  padding-left: 0.75rem;
}

.article-prose h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

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

.article-prose ul, .article-prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

.article-prose blockquote {
  border-left: 4px solid var(--gold-primary);
  background: var(--bg-surface-alt);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.article-prose th, .article-prose td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.article-prose th {
  background: var(--bg-surface-alt);
  font-weight: 700;
}

/* Footer Section */
.site-footer {
  background: #080D1A;
  color: #94A3B8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  margin-top: auto;
}

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

.footer-col-title {
  color: #F8FAFC;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold-primary);
}

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

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

.footer-links-list a {
  color: #94A3B8;
  font-size: 0.925rem;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links-list a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-disclaimer-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: #94A3B8;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid #1E293B;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--gold-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* Unit Converter Grid */
.converter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.converter-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.converter-switch-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: none;
  cursor: pointer;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  transition: transform 0.3s;
}

.converter-switch-btn:hover {
  transform: rotate(180deg);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

/* Print Stylesheet for Invoices */
@media print {
  .site-header, .top-ticker, .site-footer, .ad-slot-container, .btn-group-calc, .theme-toggle-btn {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .calc-receipt-card {
    border: 2px solid #000 !important;
    background: #fff !important;
  }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .calc-card-result {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .converter-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .converter-switch-btn {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    font-size: 1.4rem;
    padding: 0.25rem 0.4rem;
  }
  .btn-header-cta {
    display: none !important;
  }
  .site-header {
    height: 64px;
  }
  .header-inner {
    height: 64px;
  }
  .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .logo-icon svg {
    width: 20px;
    height: 20px;
  }
  .logo-text-title {
    font-size: 1.15rem;
  }
  .logo-text-subtitle {
    font-size: 0.65rem;
  }
  .header-actions {
    gap: 0.5rem;
  }
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  /* Mobile Top Ticker Single Line */
  .top-ticker {
    padding: 0.35rem 0;
    font-size: 0.775rem;
  }
  .top-ticker-content {
    justify-content: center;
  }
  .top-ticker-left {
    gap: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pulse-dot {
    width: 7px;
    height: 7px;
  }

  .hero-title {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .traditional-units-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .carat-selector-pills {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .widget-header-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
