/* =====================================================
   ROOT VARIABLES – MODERN, TRUSTED, ADSENSE SAFE
===================================================== */
:root {
  --primary: #2563eb;         /* Modern blue */
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --warning: #f59e0b;

  --bg-light: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;

  --text-dark: #0f172a;
  --text-muted: #475569;

  --border-light: #e5e7eb;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;

  --shadow-sm: 0 4px 14px rgba(0,0,0,.06);
  --shadow-md: 0 14px 36px rgba(0,0,0,.10);
  --shadow-lg: 0 25px 60px rgba(0,0,0,.12);
}

/* =====================================================
   GLOBAL BASE
===================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* =====================================================
   PAGE WRAPPER (PREMIUM LAYOUT)
===================================================== */
.page-wrapper {
  max-width: 1220px;
  margin: 28px auto;
  padding: 32px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .page-wrapper {
    margin: 14px;
    padding: 20px;
    border-radius: var(--radius);
  }
}

/* =====================================================
   TYPOGRAPHY (SEO + MODERN)
===================================================== */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-dark);
}

h1 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.65rem;
  margin-top: 2.4rem;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  border-radius: 2px;
  margin-top: 6px;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.6rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  /*max-width: 75ch;*/
}

/* =====================================================
   LINKS (HIGH CTR)
===================================================== */
a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* =====================================================
   NAVBAR (MODERN CLEAN)
===================================================== */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 700;
}

.navbar-brand span {
  color: var(--primary);
}

.nav-link {
  font-weight: 500;
  padding: .55rem .95rem;
  color: var(--text-muted);
}

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

/* =====================================================
   SEARCH INPUT
===================================================== */
.search-input {
  border-radius: 999px;
  padding: .55rem 1.1rem;
  border: 1px solid var(--border-light);
}

/* =====================================================
   MAIN CONTAINER
===================================================== */
main.container {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

/* =====================================================
   CARDS (LATEST TEMPLATE STYLE)
===================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

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

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
}

/* =====================================================
   FORMS (CALCULATORS)
===================================================== */
input,
select,
textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(37,99,235,.15);
}

/* =====================================================
   BUTTONS (SOFT, MODERN)
===================================================== */
.btn {
  border-radius: 999px;
  padding: .5rem 1.4rem;
  font-weight: 600;
  font-size: 14px;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

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

/* =====================================================
   LIST GROUPS
===================================================== */
.list-group-item {
  border: none;
  border-bottom: 1px solid var(--border-light);
  padding: .75rem 1rem;
}

.list-group-item:last-child {
  border-bottom: none;
}

/* =====================================================
   BREADCRUMBS (SEO)
===================================================== */
.breadcrumb {
  background: transparent;
  padding: 0;
}

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

.breadcrumb-item.active {
  color: var(--text-dark);
}

/* =====================================================
   SEO CONTENT
===================================================== */
.content {
  font-size: 1rem;
}

.content ul {
  padding-left: 1.4rem;
}

.content li {
  margin-bottom: .55rem;
}

/* =====================================================
   FAQ
===================================================== */
.content h3 {
  border-left: 4px solid var(--primary);
  padding-left: .7rem;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  margin-top: 60px;
}

footer p,
footer span {
  color: var(--text-muted);
  font-size: 14px;
}

/* =====================================================
   BADGES
===================================================== */
.badge {
  border-radius: 999px;
  font-weight: 600;
  padding: .35rem .65rem;
}

/* =====================================================
   MOBILE OPTIMIZATION
===================================================== */
@media (max-width: 768px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.45rem; }
  .navbar-brand { font-size: 1.15rem; }
}

/* =====================================================
   DARK MODE (CLEAN & TRUSTED)
===================================================== */
[data-theme="dark"] {
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --success: #4ade80;

  --bg-light: #16181d;
  --bg-soft: #0f1115;
  --bg-card: #1c1f26;

  --text-dark: #e5e7eb;
  --text-muted: #94a3b8;

  --border-light: #2c2f36;

  --shadow-sm: 0 6px 18px rgba(0,0,0,.45);
  --shadow-md: 0 20px 50px rgba(0,0,0,.65);
}

[data-theme="dark"] body {
  background: var(--bg-soft);
}

[data-theme="dark"] .navbar {
  background: #14161b;
}

[data-theme="dark"] footer {
  background: #14161b;
}

/* =====================================================
   FAQ CONTENT
===================================================== */
.faq-content h3 {
  font-size: 1.05rem;
  margin-top: 1.6rem;
}

.faq-content p {
  margin-left: .5rem;
  color: var(--text-muted);
}
