:root {
  --link-color: #d5eaff;
}

/* Dark mode for mobile nav toggle and popup */
html.dark .nav-toggle span {
  background: #e0e0e0 !important;
}
@media (max-width: 800px) {
  html.dark .nav-links {
    background: #23272a !important;
    box-shadow: 0 4px 16px #0006 !important;
  }
  html.dark .nav-links li a {
    color: #e0e0e0 !important;
  }
  html.dark .nav-links li a:hover {
    background: #181a1b !important;
    color: var(--link-color) !important;
  }
  .dark-mode-toggle {
    position: relative;
    left: 5px;
  }
  .light-icon {
    position: relative;
    left: 8px !important;
  }
}
/* Dark mode for privacy policy and terms pages */
html.dark .privacy-container,
html.dark .terms-container {
  background: #23272a !important;
  color: #e0e0e0 !important;
  box-shadow: 0 2px 8px #0001;
}
html.dark .privacy-container h1,
html.dark .privacy-container h2,
html.dark .terms-container h1,
html.dark .terms-container h2 {
  color: #d9d9d9 !important;
}
html.dark .privacy-container a,
html.dark .terms-container a {
  color: var(--link-color) !important;
}
html.dark .privacy-container a:hover,
html.dark .terms-container a:hover {
  color: #fff !important;
}
/* Dark mode footer styles */
html.dark footer,
html.dark .site-footer {
  background: #23272a !important;
  color: #e0e0e0 !important;
  border-top: 1px solid #333 !important;
}
html.dark footer a,
html.dark .site-footer a {
  color: var(--link-color) !important;
}
html.dark footer a:hover,
html.dark .site-footer a:hover {
  color: #fff !important;
}
/* Dark mode styles */
html.dark,
html.dark body {
  /* background: #181a1b !important; */
  background: #23272a !important;
  color: #e0e0e0 !important;
}
html.dark .container,
html.dark .about-main {
  background: #23272a !important;
  color: #e0e0e0 !important;
  box-shadow: 0 2px 8px #0001;
}
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
  color: #d9d9d9 !important;
}
html.dark .navbar {
  background: #23272a !important;
  box-shadow: 0 2px 8px #0001;
}
html.dark .nav-logo,
html.dark .nav-links li a,
html.dark .nav-links li a span {
  color: #e0e0e0 !important;
}
html.dark .nav-links li a:hover {
  background: #23272a !important;
  color: #ffd700 !important;
}
html.dark .blog-title,
html.dark .blog-label-link {
  color: #dbe3eb !important;
}
html.dark .blog-labels {
  /* background: #333 !important; */
  color: #e0e0e0 !important;
}
html.dark .category-link,
html.dark .related-articles,
html.dark .recent-blogs {
  background: #23272a !important;
  color: #e0e0e0 !important;
  box-shadow: 0 2px 8px #00000024;
}
html.dark .blog-label-link {
  color: #788c9f !important;
}
html.dark .category-link {
  color: var(--link-color) !important;
}
html.dark .category-link:hover {
  background: #181a1b !important;
  color: #fff !important;
}
html.dark .related-articles a,
html.dark .recent-blogs a {
  color: var(--link-color) !important;
}
html.dark .related-articles a:hover,
html.dark .recent-blogs a:hover {
  color: #fff !important;
}
.dark-mode-toggle span {
  position: relative;
}
.dark-mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 10px;
  outline: none;
  padding: 0 6px 0 0;
  vertical-align: middle;
  position: relative;
  top: -3px;
}
body {
  font-family: "Google Sans", sans-serif;
  font-optical-sizing: auto;
  /* font-weight: <weight>; */
  font-style: normal;
  font-variation-settings: "GRAD" 0;
  margin-top: 0px;
  /* background-color: #f9f9f9; */
  background-color: #fff;
  letter-spacing: 0.7px;
  box-sizing: border-box;
  margin: 0;
  color: #222;
}

h1 {
  color: #333;
  line-height: 3rem;
  margin: 0px;
}

h2 {
  color: #4b4b4b;
}

p {
  /* line-height: 1.6; */
  line-height: 2rem;
  color: #555;
  margin-bottom: 4rem;
}

.blog-author {
  margin-left: 3px;
  color: #676767;
  font-size: 14px;
  margin-bottom: 1rem;
}
html.dark .blog-author {
  color: #939393;
}

.blog-date {
  color: #777;
  font-size: 14px;
  font-style: italic;
  margin-bottom: 40px;
  margin-left: 3px;
}
html.dark .blog-date {
  color: #8d8d8d;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 0.7rem 20px 0.7rem 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.nav-logo {
  font-family: "Italianno", cursive;
  font-size: 2.7rem;
  color: #2d2d2d;
  letter-spacing: 2px;
  font-weight: 700;
  position: relative;
  top: 4px;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 7px 0;

  /* padding: 7px 1px; */
}

/* .nav-links li {
        padding: 7px 1px;
        } */
/* .nav-links li {
    } */

.nav-links li a {
  padding-left: 7px;
  width: -webkit-fill-available;
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
  /* padding: 8px 18px; */
  display: inline-block;
  /* border-radius: 6px; */
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-links li a span {
  display: inline-block;
  padding: 5px 14px 5px 7px;
}

.nav-links li a:hover {
  /* background: #f2    f2f2; */
  color: #0077ff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
  width: 25px;
  height: 3px;
}

.container {
  max-width: 700px;
  margin: 0rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  padding: 1rem 1rem 1rem 1rem;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

ul.blog-list {
  list-style: none;
  padding: 0;
}

ul.blog-list li {
  margin-bottom: 1.5rem;
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a4d8f;
  text-decoration: none;
}

.blog-title:hover {
  text-decoration: underline;
}

.blog-meta {
  color: #888;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}
.blog-meta a {
  color: #888;
  text-decoration: none;
}
.blog-meta a:hover {
  text-decoration: underline;
}
.blog-meta a:visited {
  color: #888;
}

@media (max-width: 800px) {
  .navbar {
    flex-wrap: wrap;
    padding: 0.7rem 1.4rem 0.7rem 1.4rem;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 180px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 12px 12px;
    display: none;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    /* padding: 14px 18px; */
    font-size: 1.08rem;
  }

  .nav-toggle {
    display: flex;
  }
}

@media screen and (max-width: 900px) {
  body {
    /* padding: 0px 10px; */
    margin: 0px;
    margin-top: 0px;
    font-size: 1.5rem;
    letter-spacing: 0.4px;
  }

  h1 {
    font-size: 2.5rem;
    line-height: 3.4rem;
  }

  h2 {
    font-size: 2rem;
    line-height: 2.8rem;
    letter-spacing: 0.7px;
  }

  p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    letter-spacing: 0.9px;
    line-height: 2.4rem;
  }

  .blog-author {
    font-size: 1.02rem;
    margin-bottom: 10px;
  }

  .blog-date {
    font-size: 1rem;
    margin-bottom: 20px;
  }
}

.blog-container {
  padding: 0 2rem;
}

@media screen and (max-width: 900px) {
  .blog-container {
    padding: 0 1.1rem;
  }
}
