/* Global Variables */
:root {
    --bg-dark: #1a1d23;
    --text-light: #f8f9fa;
    --primary-blue: #2563eb;
    --accent-blue: #60a5fa;
}

/* Base Styles */
body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Bootstrap Utility Overrides for Color Safety */
.bg-dark {
    background-color: var(--bg-dark) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.bg-secondary {
    background-color: #2d323b !important;
}

.text-info {
    color: var(--accent-blue) !important;
}

.text-white {
    color: var(--text-light) !important;
}

.text-muted {
    color: #a0a5b1 !important;
}

/* Button Styling */
.btn-info {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

.btn-info:hover,
.btn-info:focus {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

.btn-info:disabled {
    background-color: #1e40af;
    border-color: #1e40af;
}

.btn-outline-light {
    color: #fff;
    border-color: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: #fff;
    color: #000;
}

.btn-outline-light:disabled {
    background-color: transparent;
    color: #fff;
}

/* Card Styling */
.card {
    border: 1px solid #2d323b;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-title {
    color: var(--accent-blue);
}

/* Form Styling */
.form-control,
.form-select {
    background-color: #1a1d23;
    border-color: #2d323b;
    color: #f8f9fa;
}

.form-control:focus,
.form-select:focus {
    background-color: #1a1d23;
    border-color: var(--primary-blue);
    color: #f8f9fa;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Navbar Styling */
.navbar-dark .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(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Accordion Styling */
.accordion-button {
    color: var(--text-light);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.accordion-item {
    background-color: transparent;
    border-color: #2d323b;
}

.accordion-body {
    color: #a0a5b1;
}

/* Table Styling */
.table-dark {
    background-color: #1a1d23;
}

.table-dark td,
.table-dark th,
.table-dark thead th {
    border-color: #2d323b;
}

/* Hover Lift Utility */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Accessibility Focus */
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Hero Section specific */
.hero-section {
    background: linear-gradient(135deg, #1a1d23 0%, #2563eb 100%);
}

/* Link Styling */
a {
    color: var(--accent-blue);
    transition: color 0.2s;
}

a:hover {
    color: #93c5fd;
}

.text-muted a {
    color: #a0a5b1;
}

.text-muted a:hover {
    color: #fff;
}
.card img,
.bg-light img,
.container img {
  display: block;
  width: 100%;
  height: auto;
}
/* Font safety overrides */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
.navbar,
.btn,
input,
textarea,
select {
  font-family: var(--font-sans);
}
/* WP Generator feature helpers */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  z-index: 9999;
  transition: width 120ms ease-out;
}
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 9998;
}
.scroll-top.is-visible {
  opacity: 0.95;
  transform: translateY(0);
}
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

