/* ─── Theme Variables ─── */
:root {
  --bg-primary: #0a1628;
  --bg-secondary: #0f1f3d;
  --bg-card: #132444;
  --text-primary: #e8ecf1;
  --text-secondary: #b0bdd0;
  --accent: #4a90d9;
  --accent-hover: #6baaf0;
  --border: rgba(255, 255, 255, 0.08);
}

/* ─── Base ─── */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-hover);
}

.text-muted-light {
  color: var(--text-secondary) !important;
}
.text-accent {
  color: var(--accent) !important;
}

/* ─── Navbar ─── */
.navbar {
  background-color: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.navbar-brand {
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}
.nav-link {
  color: var(--text-secondary) !important;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--text-primary) !important;
}

/* ─── Hero ─── */
.hero-section {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, #1a3a6b 100%);
  padding: 8rem 0 6rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.hero-section h1 {
  color: #fff;
  letter-spacing: -1px;
}
.hero-section .lead {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 500;
}
.hero-sub {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Buttons ─── */
.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ─── Sections ─── */
.section-heading {
  color: #fff;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-alt {
  background-color: var(--bg-secondary);
}

/* ─── Service Cards ─── */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 0.2s, border-color 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.service-card .card-title {
  color: #fff;
  font-weight: 600;
}
.service-card .card-text {
  color: var(--text-secondary);
}

/* ─── Timeline ─── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.3;
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
}
.timeline-content h5 {
  color: #fff;
  margin-bottom: 0.25rem;
}
.timeline-role {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.timeline-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.timeline-content p:last-child {
  color: var(--text-secondary);
}

/* ─── Stats ─── */
.stat-block .stat-number {
  color: var(--accent);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.stat-block p {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── Auth Card ─── */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.auth-card h3 {
  color: #fff;
}
.auth-card .form-control {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text-primary);
}
.auth-card .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 217, 0.25);
}
.auth-card .form-label {
  color: var(--text-secondary);
}

::placeholder {
  color: var(--text-secondary) !important;
  opacity: 0.6 !important;
}

/* ─── RTE Editor ─── */
.rte-editor-wrap,
.rte-editor-wrap [contenteditable] {
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
}
.rte-editor-wrap [contenteditable] p,
.rte-editor-wrap [contenteditable] li,
.rte-editor-wrap [contenteditable] span {
  color: var(--text-primary) !important;
}
.rte-editor-wrap [contenteditable] h1,
.rte-editor-wrap [contenteditable] h2,
.rte-editor-wrap [contenteditable] h3,
.rte-editor-wrap [contenteditable] h4,
.rte-editor-wrap [contenteditable] h5,
.rte-editor-wrap [contenteditable] h6 {
  color: #fff !important;
}
.rte-editor-wrap [contenteditable] a {
  color: var(--accent) !important;
}

/* ─── Admin ─── */
.table-dark {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--border);
  color: var(--text-primary);
}
.table-dark thead th {
  border-bottom-color: var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text-primary);
}
.form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 217, 0.25);
}
.progress {
  background: rgba(255, 255, 255, 0.1);
}
.bg-accent {
  background-color: var(--accent) !important;
}

/* ─── Footer ─── */
footer {
  background-color: rgba(10, 22, 40, 0.95);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ─── Utilities ─── */
.min-vh-75 {
  min-height: 75vh;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-section {
    padding: 6rem 0 4rem;
  }
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .stat-block .stat-number {
    font-size: 2rem;
  }
}
