:root {
  --body-bg-color: #f8fafc;
  --body-text-color: #222222;
  --heading-color: #222222;
  --hero-gradient1: #168295;
  --hero-gradient2: #0b5e3a;
  --footer-bg-color: #0d0d0d;
  --link-color: #e61725;
  --header-bg-color: #ffffff;
  --font-family: system-ui;
  --nav-link-color: #141414;
  --footer-text-color: #ffffff;
  --header-text-color: #ffffffff;
}
html {
  overflow-x: hidden;
}
body {
  background-color: var(--body-bg-color);
  color: var(--body-text-color) !important;
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.5rem) !important;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2rem) !important;
}
h3 {
  font-size: clamp(1.4rem, 3vw, 1.7rem) !important;
}
p {
  margin-bottom: 0.5rem !important;
}

section {
  padding: 15px 0;
  scroll-margin-top: 70px;
}

h2,
h3 {
  color: var(--heading-color) !important;
}

.content-area a {
  color: var(--link-color) !important;
  text-decoration: none !important;
}

.content-area a:hover {
  color: var(--link-color) !important;
  opacity: 0.8;
}

.sidebar-links {
  background: #ffffff;
  padding: 28px 11px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border-top: 6px solid #b11226; /* Presidential red accent */
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  width: 279px;
  margin-bottom: 15px;
}

/* Sidebar Heading */
.sidebar-links h2 {
  font-size: 1.25rem;
  margin-bottom: 18px;
  font-weight: 700;
  color: #111827;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-links h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: #b11226;
  border-radius: 999px;
}

/* List Reset */
.sidebar-page-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* List Items */
.sidebar-page-list li {
  margin-bottom: 8px;
}

/* Links */
.sidebar-page-list a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  color: #374151;
  transition: all 0.25s ease;
  position: relative;
}

/* Subtle hover animation */
.sidebar-page-list a:hover {
  background: rgba(177, 18, 38, 0.08);
  color: #b11226;
  padding-left: 18px;
}

/* Active link (optional if you add class="active") */
.sidebar-page-list a.active {
  background: #b11226;
  color: #ffffff;
  font-weight: 600;
}

/* Small arrow indicator */
.sidebar-page-list a::before {
  content: "›";
  position: absolute;
  left: 8px;
  opacity: 0;
  color: #b11226;
  transition: all 0.25s ease;
}

.sidebar-page-list a:hover::before {
  opacity: 1;
  left: 4px;
}
.x {
  display: flex;
  justify-content: center;
}

.sidebar-search-box {
  background: #ffffff;
  padding: 21px 17px;
  margin-bottom: 15px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  width: 279px;
}

/* Heading */
.sidebar-search-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
}

.sidebar-search-box h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: #b11226;
  border-radius: 999px;
}

/* Form Layout */
.sidebar-search-box form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Input Field */
.sidebar-search-box input[type="search"] {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s ease;
}

/* Focus State */
.sidebar-search-box input[type="search"]:focus {
  border-color: #b11226;
  box-shadow: 0 0 0 3px rgba(177, 18, 38, 0.15);
}

/* Button */
.sidebar-search-box button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #b11226;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Hover */
.sidebar-search-box button:hover:not(:disabled) {
  background: #8f0e1e;
}

/* Disabled State */
.sidebar-search-box button:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

.error_page {
  min-height: 70vh;
}

/* ===============================
   Footer – US Presidential Elections
================================== */

.footer {
  background: #111827; /* Deep navy/dark for contrast */
  color: #e5e7eb;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  position: relative;
}

/* Subtle red top accent line */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #b11226;
}

/* Logo spacing */
.footer img {
  margin-bottom: 18px;
}

/* Section titles */
.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #ffffff !important;
  position: relative;
  padding-bottom: 8px;
}
/* Default (mobile = centered) */
.footer-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 45px;
  height: 3px;
  background: #b11226;
  border-radius: 999px;
}

/* Large screens (lg and up = left aligned) */
@media (min-width: 992px) {
  .footer-title::after {
    left: 0;
    transform: none;
  }
}
/* Footer text */
.footer-text {
  font-size: 0.95rem;
  color: #9ca3af;
  margin-bottom: 15px;
}

/* Footer links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: #d1d5db;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.social-icons span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 1.1rem;
}

.social-icons span:hover {
  background: #b11226;
  transform: translateY(-3px);
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
  outline: none;
}

.newsletter-form button {
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  background: #b11226;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.newsletter-form button:hover:not(:disabled) {
  background: #8f0e1e;
}

.newsletter-form button:disabled {
  background: #374151;
  cursor: not-allowed;
}

/* Divider */
.footer-divider {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 30px 0;
}

/* Bottom section */
.footer a {
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer a:hover {
  color: #ffffff;
}

.footer-icon {
  margin-right: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }

  .social-icons {
    justify-content: center;
  }
}
.footer img {
  filter: brightness(0) invert(1);
}

.navbar {
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: var(--header-bg-color) !important;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.hero-section {
  padding: 55px 0;
  position: relative;
  overflow: hidden;
  color: var(--header-text-color);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.246);
}

.hero-section.with-bg {
  background-image: url("/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section.with-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgb(0, 0, 0));
  opacity: 0.5;
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }
}
.navbar-light .navbar-nav .nav-link {
  color: var(--nav-link-color, #141414) !important;
  font-weight: 500;
  padding: 0 1rem;
  transition:
    color 0.3s ease,
    transform 0.2s ease;
}
.navbar-light .navbar-nav .nav-link:hover {
  color: var(--link-color) !important;
  transform: translateY(-1px);
}
.navbar-light .navbar-nav .nav-link.active {
  color: var(--link-color) !important;
  font-weight: 600;
  border-bottom: 2px solid var(--link-color);
}

/* Mobile nav */
@media (max-width: 1199.98px) {
  .navbar-collapse {
    position: fixed;
    top: 61px;
    left: 15px;
    right: 15px;
    background-color: color-mix(
      in srgb,
      var(--header-bg-color) 65%,
      transparent
    );
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 15px;
    margin: 0;
  }

  .navbar-nav {
    width: 100%;
  }

  .navbar-nav .nav-item {
    margin: 7px 0;
  }

  .navbar-nav .nav-item:hover {
    transform: translateY(-1px);
  }

  .navbar-nav .nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 0;
  }

  .navbar-toggler {
    z-index: 10000;
    position: relative;
    border: var(--bs-border-width) solid var(--nav-link-color, #141414) !important;
  }
}

.custom-dropdown {
  border: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 220px;
  background: color-mix(
    in srgb,
    var(--header-bg-color) 65%,
    transparent
  ) !important;
  backdrop-filter: blur(12px);
}

.custom-dropdown .dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  color: var(--nav-link-color, #141414) !important;
  font-weight: 500;
  border-radius: 0;
  text-wrap: wrap;
}
.dropdown-menu {
  display: none;
}

.custom-dropdown .dropdown-item:hover {
  color: #fff;
  background: color-mix(
    in srgb,
    var(--header-bg-color) 95%,
    transparent
  ) !important;
}
.nav-item.dropdown > .nav-link {
  display: flex;
  align-items: center;
}

.nav-item.dropdown > .nav-link .arrow {
  position: relative;
  margin-left: auto;
  border: solid var(--nav-link-color, #141414);
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.25s;
}

.dropdown.open .dropdown-menu {
  display: block;
}

@media (min-width: 1200px) {
  .nav-item.dropdown {
    position: relative;
  }
  .nav-item.dropdown > .nav-link .arrow {
    margin-left: 7px;
  }
  .custom-dropdown.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    z-index: 1000;
  }

  .nav-item.dropdown:hover > .nav-link .arrow {
    transform: rotate(-135deg);
  }
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block !important;
  }
}
@media (max-width: 1199px) {
  .nav-item.dropdown > .nav-link .arrow {
    padding: 4px;
  }
}

.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--link-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}
.scroll-top i {
  font-size: 24px;
  color: var(--footer-bg-color);
  line-height: 0;
}
.scroll-top:hover {
  background-color: color-mix(in srgb, var(--link-color), transparent 20%);
  color: var(--footer-bg-color);
}
.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

.heading {
  margin-bottom: 1.6rem;
  position: relative;
}

.heading h2 {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.heading h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #eb2525, #f6673b);
  display: block;
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.heading p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #475569;
  line-height: 1.7;
  margin: 0 auto;
  font-weight: 400;
}

.box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 19px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
}

.box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #eb2525, #f6513b);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.box:hover::before {
  transform: scaleY(1);
}

.box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.3;
  position: relative;
  padding-bottom: 0.75rem;
}

.box h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #eb2525, #f6513b);
  border-radius: 2px;
}

.box p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

/* Optional: Add alternating accent colors for visual variety */
.row .col-lg-6:nth-child(odd) .box::before {
  background: linear-gradient(180deg, #eb2525, #f6513b);
}

.row .col-lg-6:nth-child(even) .box::before {
  background: linear-gradient(180deg, #dc2626, #ef4444);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .box {
    padding: 17px;
  }
}
/* ===============================
   US Presidential Elections Theme
   Light Theme with Red Accent
================================== */

/* Section Container */
.cust-bg {
  background: #ffffff;
  margin: 30px auto;
  padding: 21px 19px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-top: 6px solid #b11226; /* Deep presidential red */
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  transition: all 0.3s ease;
}

/* Main Section Heading */
.cust-bg h2 {
  font-size: 2rem;
  color: #b11226;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Subheading */
.cust-bg h3 {
  font-size: 1.4rem;
  color: #1f2933;
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 600;
  position: relative;
  padding-left: 14px;
}

.cust-bg h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  height: 18px;
  width: 4px;
  background: #e63946;
  border-radius: 2px;
}

/* Paragraph Styling */
.cust-bg p {
  font-size: 1rem;
  color: #5f6c7b;
  margin-bottom: 18px;
}

/* Subtle hover polish */
.cust-bg:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.modern-bg {
  margin: 30px auto;
  padding: 35px 21px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
  border: 1px solid rgba(177, 18, 38, 0.12);
  border-left: 3px solid #b11226; /* strong red spine */
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
}

/* Heading: underline accent */
.modern-bg h2 {
  font-size: 2.05rem;
  color: #111827;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.4px;
  position: relative;
  padding-bottom: 12px;
}

.modern-bg h2::after {
  content: "";
  display: block;
  width: 84px;
  height: 4px;
  background: #b11226;
  border-radius: 999px;
  margin-top: 10px;
}

/* Intro paragraphs slightly larger */
.modern-bg > p {
  font-size: 1.05rem;
  color: #374151;
  margin: 0 0 16px;
}

/* Subsections: block styling with subtle separators */
.modern-bg h3 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 750;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modern-bg h3 + p {
  margin-top: 6px;
}

.modern-bg p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

/* Icon badge (works for Bootstrap icons OR emoji) */
.modern-bg .sec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(177, 18, 38, 0.1);
  border: 1px solid rgba(177, 18, 38, 0.16);
  color: #b11226;
  flex: 0 0 auto;
  font-size: 1.05rem;
}

/* Subsection divider line (visual rhythm) */
.modern-bg h3 {
  padding-top: 16px;
  border-top: 1px dashed rgba(17, 24, 39, 0.12);
}

.modern-bg h3:first-of-type {
  border-top: 0;
  padding-top: 0;
}
/* Title styling (matches your light + red accent theme) */
.title {
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
  line-height: 1.2;
  position: relative;
  padding-bottom: 12px;
}

/* Red underline accent */
.title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90px;
  height: 4px;
  background: #b11226;
  border-radius: 999px;
}

/* Optional: subtle top accent bar (remove if you want it simpler) */
.title::before {
  content: "";
  position: absolute;
  left: 0;
  top: -10px;
  width: 42px;
  height: 4px;
  background: rgba(177, 18, 38, 0.25);
  border-radius: 999px;
}
.electors {
  column-count: 4; /* number of columns */
  column-gap: 40px; /* space between columns */
  list-style: none;
  padding: 0;
  margin: 0;
}

.electors li {
  break-inside: avoid; /* prevents items from splitting */
  padding: 6px 0;
  font-size: 15px;
  border-bottom: 1px solid #eee;
}
.electors {
  column-count: 4;
  column-gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.electors li {
  break-inside: avoid;
  padding: 6px 0;
  font-size: 15px;
  border-bottom: 1px solid #eee;
}

/* Tablet */
@media (max-width: 992px) {
  .electors {
    column-count: 3;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .electors {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .electors {
    column-count: 1;
  }
}
.flex-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 25px;
  list-style-position: inside;
}
.wrap_word {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
