:root {
  --body-bg-color: #1a1a1a;
  --body-text-color: #ffffff;
  --heading-color: #ffffff;
  --hero-gradient1: #667eea;
  --hero-gradient2: #764ba2;
  --footer-bg-color: #0e0b32;
  --link-color: #2563eb;
  --header-bg-color: #ffffff;
  --font-family: system-ui;
}

body {
  background-color: var(--body-bg-color) !important;
  color: var(--body-text-color) !important;
  font-family: var(--font-family), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  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;
}

.navbar {
  background-color: #0000008c !important;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.hero-section {
  padding: 55px 0;
  position: relative;
  overflow: hidden;
}

.hero-section.gradient-bg {
  background: linear-gradient(135deg, var(--hero-gradient1), var(--hero-gradient2));
}

.hero-section.with-bg {
  background-image: url('/images/digital-side-effects.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;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

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

a {
  color: var(--link-color) !important;
}

a:hover {
  color: var(--link-color);
  opacity: 0.8;
}

.footer {
  background-color: var(--footer-bg-color);
  color: white;
}

.footer a {
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }
}

.navbar-light .navbar-toggler {
  color: rgb(255, 255, 255) !important;
  border-color: rgb(241 230 230) !important;
  background-color: white;
}

.nav-link {
  color: white !important;
}

@media (max-width: 1200px) {
  .nav-link {
    color: rgb(0, 0, 0) !important;
  }
}

/* Mobile nav */
@media (max-width: 1200px) {
  .navbar-collapse {
    position: fixed;
    top: 61px;
    left: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.97);
    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;
  }
}

.sidebar-page-list {
  padding: 7px;
  margin: 0;
  margin-bottom: 17px;
  width: 279px;
  background-color: white;
  border-radius: 15px;
}

.sidebar-page-list li {
  list-style-type: disc;
  list-style-position: inside;
  color: var(--heading-color);
}

.sidebar-page-list li::marker {
  color: var(--link-color);
  font-size: 1.2em;
}

.sidebar-page-list li:last-child {
  border-bottom: none;
}

.sidebar-page-list li a {
  padding: 12px 0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.sidebar-page-list li a:hover {
  color: #ffffff;
  padding-left: 11px;
}

.twitter-tweet {
  width: 279px !important;
}

.x {
  display: flex;
  justify-content: center;
}

.error_page {
  min-height: 70vh;
}

.cust-bg {
  background-color: #dfdfdf;
  padding: 15px;
  border-radius: 10px;
  color: black;
}

.cust-bg h2 {
  color: black;
}

.box {
  background-color: #dfdfdf;
  padding: 15px;
  border-radius: 10px;
  color: black;
  height: 100%;
}

.box h3 {
  color: black;
}

.colored {
  color: var(--link-color);
}

.cust-card {
  background: linear-gradient(135deg, #667eea 0%, #03286a 100%);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(46, 36, 110, 0.18);
  padding: 24px 20px;
  transition: transform 0.18s cubic-bezier(.4, 2, .6, 1), box-shadow 0.18s;
  position: relative;
  isolation: isolate;
  border: none;

  &:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(46, 36, 110, 0.28);
  }

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    border-radius: 18px;
  }

  >* {
    position: relative;
    z-index: 1;
  }
}

.custom-blog-section .blog-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.custom-blog-section .blog-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}

.custom-blog-section .card-img-top {
  height: 250px;
  object-fit: cover;
}

.custom-blog-section .card-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.custom-blog-section .btn-primary {
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
}

.card-body p {
  color: white;
}

.card-body h3 {
  color: white;
}

.card-body {
  background: linear-gradient(135deg, #0e1a47 0%, #233a7c 100%);
}

.card {
  background: linear-gradient(135deg, #0e1a47 0%, #233a7c 100%);
  color: white;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.flex-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 25px;
  list-style-position: inside;
}

.img_el {
  padding: 50px 0;
  position: relative;
  margin-top: 17px;
}

.img_el:before {
  content: "";
  background: color-mix(in srgb, #00000091, transparent 10%);
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 17px;
}

.img_el .img_el-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("/images/safer-password.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  border-radius: 17px;
}

.img_el .container {
  position: relative;
  z-index: 3;
}

.img_el .container h2,
.img_el .container p {
  color: white !important;
}

.img_el .container h3 {
  color: #EF8A54;
}