:root {
  --container-width: 1280px;
  --font-family: 'Open Sans', sans-serif;
  --page-link-color: #fff;
  /* Light mode colors (Facebook-inspired) */
  --bg-color: #f0f2f5;
  --vbg-color: #f0f2f5;
  --text-color: #050505;
 --video-border: #111111;
  --header-bg: #3a161a;
  --nav-bg: #1d2327;
  --nav-text: #ffffff;
  --link-color: #73001d;
 --footer-bg: #1d2327;
  --footer-text: #fff;
  --footer-text-hover: #fff;
   --accent-color: #333;
  --logo-icon: red;
  --logo-text: #fff;
  --slider-off: #A3A3A3;
  --slider-on: green;
--audio-accent-bg: #fdf5e6;      /* normal background now yellow */
--audio-background:  #fff9e6;       /* normal background white */
--audio-text:  #000;             /* normal text black */
--normal-border: #ffd27f;        /* normal border yellow */
--featured-border: #73001d;      /* featured border green */
--keyword-highlight:#73001d;
}



body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  margin: 0;
}

.inner_container {
   width:100%;
   max-width: var(--container-width);
   margin:auto;
}

#site-header {
  background: var(--header-bg);
}

.top-bar {
  background: var(--nav-bg);
  color: var(--nav-text);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

#theme-toggle {
  background: none;
  border: 1px solid var(--nav-text);
  color: var(--nav-text);
  padding: 0.3rem 0.6rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

#site-navigation {
  display: flex;
  align-items: center;
}

#site-navigation ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

#site-navigation ul li a {
  text-decoration: none;
  color: var(--nav-text);
}
#site-navigation ul li a:hover {
  text-decoration: none;
  color: var(--footer-text-hover)!important;
}
#burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  #site-navigation {
    width: 100%;
    display: none;
    flex-direction: column;
  }

  #site-navigation.open {
    display: flex;
  }

  #burger {
    display: block;
  }
}


html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 2rem 1rem;
}

footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem 1rem 1rem;
  box-sizing: border-box;
  width: 100%;
}
footer a{
  color: var(--footer-text);
}
footer a:hover{
  color: var(--footer-text-hover);
}
/* Sticky footer layout & Open Sans fix */
html,
* { box-sizing: border-box; }
.container {
}
header {
  background: var(--header-bg);
}
.footer-widgets {
  display: flex;
  justify-content: space-between;
}
.site-logo img {
  max-height: 60px;
  width: auto;
  display: block;
}


.related-posts {
  margin-top: 4rem;
}

.related-posts h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--link-color);
  padding-bottom: 0.5rem;
}

.related-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, 1fr);
}

.related-item a {
  color: inherit;
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease;
}

.related-item a:hover {
  transform: translateY(-4px);
}

.related-item img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.5rem;
}

.related-item h4 {
  font-size: 1rem;
  margin: 0;
  color: var(--link-color);
}

@media (max-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Alphabetical Index Styles */
.alphabetical-container {
  width: 100%;
  max-width: var(--container-width);
  font-family: var(--font-family);
}

.alphabetical-container h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.alphabetical-heading {
  margin-top: 3rem;
  border-bottom: 2px solid var(--footer-text);
  padding-bottom: 0.5rem;
  font-size: 1.5rem;
}

.alphabetical-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.alphabetical-list li {
  margin-bottom: 0.75rem;
}

.alphabetical-list a {
  text-decoration: none;
  color: var(--link-color);
  font-size: 1rem;
}

.alphabetical-list a:hover {
  text-decoration: underline;
}

.pagination {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.pagination a {
  margin: 0 5px;
  text-decoration: none;
  color: var(--link-color);
}

.pagination a:hover {
  text-decoration: underline;
}


/* Custom Search Page Styles */
.search-page {
  text-align: center;
}

.search-page form.search-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.search-page input[type="search"] {
  flex: 1 1 60%;
  padding: 0.5rem;
  font-size: 1rem;
  max-width: 600px;
}

.search-page input[type="submit"] {
  flex: 0 1 120px;
  padding: 0.5rem 1rem;
  background-color: var(--link-color);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.search-page input[type="submit"]:hover {

}


/* Video Post Template Styles */
.video-container {
  text-align: center;
  margin-bottom: 20px;
}

.video-thumbnail {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 10px;
  background: black;
  overflow: hidden;
  margin-bottom: 15px;
}

.video-thumbnail iframe,
.video-thumbnail embed,
.video-thumbnail object {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.post-content {
  margin-top: 20px;
  margin-bottom: 40px;
}

.video-description,
.video-transcript,
.video-meta {
  margin-top: 20px;
}

.video-description h2,
.video-transcript h3,
.video-meta p {
  color: var(--text-color);
}

.video-description p,
.video-transcript p {
  font-size: 1.2em!important;
  line-height: 1.6;
}

.video-meta {
  color: var(--footer-text);
}

.video-meta p {
  font-size: 1em;
  margin-top: -18px;
  color: var(--footer-text);
  margin-bottom: 5px;
}

.related-videos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.related-video-item {

  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.related-video-item:hover {
  transform: scale(1.05);
}

.related-video-item .video-thumbnail {
  padding-bottom: 56.25%;
  margin-bottom: 10px;
}

.related-video-item h3 {
  font-size: 1.1em;
  color: var(--text-color);
}

.related-videos a {
  text-decoration: none;
  color: inherit;
}

.related-videos a:hover {
  color: var(--link-color);
}

@media (max-width: 768px) {
  .related-videos {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .related-videos {
    grid-template-columns: 2fr;
  }
}


/* Video Gallery Template Styles */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.video-item {
  background: var(--vbg-color);
  border: 1px solid var(--video-border)!important;
  color: var(--text-color);
  padding: 10px;
  border-radius: 8px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.video-item:hover {

}

.video-item .video-thumbnail {
  position: relative;
  padding-bottom: 100%;
  height: 0;
  overflow: hidden;
  margin-bottom: 10px;
}

.video-item .video-thumbnail iframe,
.video-item .video-thumbnail embed,
.video-item .video-thumbnail object {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-item .video-title {
  font-size: 1.2em;
  margin: 0 0 10px;
  color: var(--text-color);
}
.cat_prefix {
  color: var(--text-color);
  text-decoration: none;
}
.video-item .video-categories a {
  color: var(--link-color);
  text-decoration: none;
}

.video-item .video-categories a:hover {
  color: var(--accent-color);
}

.pagination {
  text-align: center;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 10px;
  margin: 0 5px;
  border-radius: 4px;
  text-decoration: none;

  color: var(--text-color);
}

.pagination a:hover,
.pagination .current {

  color: white;
}

.video-item:hover {
  color: white;
}

@media (max-width: 768px) {
  .video-gallery {
    grid-template-columns: 1fr;
  }

  .video-item {
    padding: 15px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .video-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-item {
    padding: 15px;
  }
}

@media (min-width: 1025px) {
  .video-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* Post Category Styles */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.post-item h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-item p {
  font-size: 1rem;
  color: var(--text-color);
}

/* Pagination Styling Reuse */
.pagination {
  text-align: center;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 10px;
  margin: 0 5px;
  border-radius: 4px;
  text-decoration: none;

  color: var(--text-color);
}

.pagination a:hover,
.pagination .current {

  color: white;
}


/* Theme Toggle UI Enhancements */






/* Navigation & Burger Fix */






@media (max-width: 768px) {





}

/* ========== DARK MODE TOGGLE STYLES ========== */
.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
}

.toggle-label {
  font-size: 1rem;
  white-space: nowrap;
  color: var(--footer-text);
}

/* Slider Container */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

/* Hide Checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider background */
.slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--slider-off)!important;
  transition: 0.4s;
  border-radius: 26px;
}

/* The toggle ball */
.slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

/* When Checked */
.switch input:checked + .slider {
  background-color: var(--slider-on)!important;
}

.switch input:checked + .slider:before {
  transform: translateX(24px);
}

/* Layout Fixes v2.9.2 */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#site-header {
  display: flex;
  flex-direction: column;
}

.header-top,
.header-main {
  width: 100%;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
}

/* v2.9.3 - Dark Mode Patch for rogue white areas */
main,
.wrap,
.content-area,
.site-main,
#primary {
  background-color: var(--bg-color);
}

/* Footer toggle styling */
.footer-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
}

.footer-toggle label {
  color: var(--footer-text);
  font-size: 1rem;
}

.logo img {
    max-width: 420px;
    margin-top: 10px;
    height: auto;
}

/* For smaller screens */
@media (max-width: 768px) {
    .logo img {
        max-width: 100%; /* Allows the image to scale down on mobile */
        margin-top: 4px;
    }
}

@media (max-width: 768px) {
  .text-logo {
    font-size: 1.5rem;
  }
}

/* Dark Mode Bar */
.darkmode-bar {
  background-color: var(--footer-bg);
  color: var(--text-color);
  text-align: center;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-top: 1px solid rgba(0,0,0,0.1);
}

/* Full-width Green Nav Area under Orange Header */
.nav-full-wrap {
  background-color: var(--nav-bg);
  width: 100%;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-container nav {
  width: 100%;
}

/* Burger Fix v2.9.8 */
#burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 768px) {
  #burger {
    display: block;
  }

  #site-navigation {
    display: none;
    flex-direction: column;
    background-color: var(--nav-bg);
    padding: 1rem;
  }

  #site-navigation.open {
    display: flex;
  }

  #site-navigation ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Ensure max-width container is active */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1rem;

}



/* Burger Nav Restored from v2.9.8 */
#burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 768px) {
  #burger {
    display: block;
  }

  #site-navigation {
    display: none;
    flex-direction: column;
    background-color: var(--nav-bg);
    padding: 1rem;
  }

  #site-navigation.open {
    display: flex;
  }

  #site-navigation ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Logo Icon + Box */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-box {
  background-color: var(--logo-icon);
  color: var(--nav-text);
  font-size: 1.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-logo {
  font-family: 'Open Sans', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--logo-text);
  text-decoration: none;
}

/* Facebook-inspired blue colors for header, footer, and nav */
header {
  background-color: var(--header-bg); /* Facebook blue */
}

#site-navigation {
  background-color: var(--nav-bg); /* Darker blue for nav */
}

footer {
  background-color: var(--footer-bg); /* Same as nav background for consistency */
  color: var(--nav-text); /* Light text on dark footer */
}

#burger {
  color:white;
  font-size:16px;
}

#site-navigation a {
  color: var(--nav-text); /* White text for links in nav */
}

#site-navigation ul li a:hover {
  color: var(--footer-text-hover)!important;
}

/* Light mode link color */
a {
  color: var(--link-color); /* Facebook blue */
}

a:hover {
  color: var(--accent-color); /* Gold on hover */
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #site-navigation {
    background-color: var(--nav-bg); /* Ensuring the nav bg stays on mobile */
  }
}

/* Dark/Light Mode Toggle colors */
#theme-toggle-footer {
  background-color: red; /* Red for light mode (off) */
  border-radius: 12px;
  width: 50px;
  height: 25px;
  position: relative;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

#theme-toggle-footer:checked {
  background-color: green; /* Green for dark mode (on) */
}

#theme-toggle-footer::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: white;
  transition: left 0.3s ease;
}

#theme-toggle-footer:checked::before {
  left: 29px; /* Move to the right when toggled */
}

/* Dark/Light Mode Toggle styling */
#theme-toggle-footer {
  background-color: red; /* Red for light mode (off) */
  border-radius: 25px;
  width: 50px;
  height: 25px;
  position: relative;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

#theme-toggle-footer:checked {
  background-color: green; /* Green for dark mode (on) */
}

#theme-toggle-footer::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: white;
  transition: left 0.3s ease;
}

#theme-toggle-footer:checked::before {
  left: 29px; /* Move to the right when toggled */
}

/* Navbar background colors for light and dark modes */
#site-navigation {
  background-color: var(--link-color); /* Light mode - Facebook blue */
  color: var(--nav-text); /* White text for links in nav */
}

#site-navigation a {
  color: var(--nav-text); /* White text for links */
}

#site-navigation a:hover {
  color: var(--accent-color); /* Gold on hover for links */
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
  #site-navigation {
    background-color: var(--nav-bg); /* Dark blue for nav */
  }

  #site-navigation a {
    color: var(--nav-text); /* White text on dark nav */
  }

  #site-navigation a:hover {
    color: var(--accent-color); /* Gold on hover for links */
  }

  /* Content links */
  a {
    color: #66b2ff; /* Lighter blue for dark mode links */
  }

  a:hover {
    color: var(--accent-color); /* Gold on hover for dark mode links */
  }
}

/* Light mode links */
@media (prefers-color-scheme: light) {
  a {
    color: var(--link-color); /* Facebook blue for links */
  }

  a:hover {
    color: var(--accent-color); /* Gold on hover for links */
  }
}

/* Navbar styles */
#site-navigation {
  background-color: transparent!important; /* Facebook blue for light mode */
  color: var(--nav-text); /* White text for light mode */
  font-family: Arial, sans-serif; /* Ensure font is correct */
}

#site-navigation a {
  color: var(--nav-text); /* White links in light mode */
  font-family: Arial, sans-serif;
}

#site-navigation a:hover {
  color: var(--accent-color); /* Gold on hover for links */
}

/* Dark Mode Navbar */
@media (prefers-color-scheme: dark) {
  #site-navigation {
    background-color: var(--nav-bg); /* Darker blue for dark mode */
  }

  #site-navigation a {
    color: var(--nav-text); /* White text for dark mode navbar */
  }

  #site-navigation a:hover {
    color: var(--accent-color); /* Gold on hover for links */
  }

  /* Dark Mode Links */
  a {
    color: #66b2ff; /* Lighter blue for dark mode links */
  }

  a:hover {
    color: var(--accent-color); /* Gold on hover for links */
  }
}

/* Light Mode Links */
@media (prefers-color-scheme: light) {
  a {
    color: var(--link-color); /* Facebook blue for links */
  }

  a:hover {
    color: var(--accent-color); /* Gold on hover for links */
  }
}

/* Dark/Light Mode Toggle */
#theme-toggle-footer {
  background-color: red; /* Red for light mode (off) */
  border-radius: 25px;
  width: 50px;
  height: 25px;
  position: relative;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: 1px solid white;
}

#theme-toggle-footer:checked {
  background-color: green; /* Green for dark mode (on) */
}

#theme-toggle-footer::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: white;
  transition: left 0.3s ease;
}

#theme-toggle-footer:checked::before {
  left: 29px; /* Move to the right when toggled */
}

/* Navbar styles with Facebook blue for light and dark mode */
#site-navigation {
  background-color: var(--link-color); /* Light mode - Facebook blue */
  color: var(--nav-text); /* White text for links */
  font-family: Arial, sans-serif; /* Correct font */
}

#site-navigation a {
  color: var(--nav-text); /* White links in light mode */
  font-family: Arial, sans-serif;
}

#site-navigation a:hover {
  color: var(--accent-color); /* Gold on hover for links */
}

/* Dark Mode Navbar */
@media (prefers-color-scheme: dark) {
  #site-navigation {
    background-color: var(--nav-bg); /* Darker blue for nav */
  }

  #site-navigation a {
    color: var(--nav-text); /* White text for dark mode navbar */
  }

  #site-navigation a:hover {
    color: var(--accent-color); /* Gold on hover for links */
  }

  /* Dark Mode Links */
  a {
    color: #66b2ff; /* Lighter blue for dark mode links */
  }

  a:hover {
    color: var(--accent-color); /* Gold on hover for dark mode links */
  }
}

/* Light Mode Links */
@media (prefers-color-scheme: light) {
  a {
    color: var(--link-color); /* Facebook blue for links */
  }

  a:hover {
    color: var(--accent-color); /* Gold on hover for links */
  }
}

/* Dark/Light Mode Toggle - with distinct slider class */
#theme-toggle-footer {
  background-color: red; /* Red for light mode (off) */
  border-radius: 25px;
  width: 50px;
  height: 25px;
  position: relative;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: 1px solid white;
}

#theme-toggle-footer:checked {
  background-color: green; /* Green for dark mode (on) */
}

#theme-toggle-footer::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: white;
  transition: left 0.3s ease;
}

#theme-toggle-footer:checked::before {
  left: 29px; /* Move to the right when toggled */
}

/* Dark/Light Mode Toggle with unique slider class */
#theme-toggle-footer {
  background-color: red; /* Red for light mode (off) */
  border-radius: 25px;
  width: 50px;
  height: 25px;
  position: relative;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: 1px solid white;
}

#theme-toggle-footer:checked {
  background-color: green; /* Green for dark mode (on) */
}

#theme-toggle-footer::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: white;
  transition: left 0.3s ease;
}

#theme-toggle-footer:checked::before {
  left: 29px; /* Move to the right when toggled */
}

/* Unique class for the slider to apply color transitions */
input:checked + .slider {
  background-color: var(--link-color);
}

/* Default slider style for light/dark mode */
.slider {
  background-color: var(--footer-text); /* Default slider background color (light mode) */
}

/* Define custom variables for the slider toggle states */
:root {
    --slideroff: red;  /* Light mode (off) - Red */
    --slideron: green; /* Dark mode (on) - Green */
}

/* Dark/Light Mode Toggle */
#theme-toggle-footer {
  background-color: var(--slideroff); /* Default to red (off) for light mode */
  border-radius: 25px;
  width: 50px;
  height: 25px;
  position: relative;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: 1px solid white;
}

#theme-toggle-footer:checked {
  background-color: var(--slideron); /* Green (on) for dark mode */
}

#theme-toggle-footer::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: white;
  transition: left 0.3s ease;
}

#theme-toggle-footer:checked::before {
  left: 29px; /* Move to the right when toggled */
}

/* Define custom variables for the slider off and slider on states */
:root {
    --slideroff: red;  /* Light mode (off) - Red */
    --slideron: green; /* Dark mode (on) - Green */
}

/* Dark/Light Mode Toggle - with distinct slider class */
#theme-toggle-footer {
  background-color: var(--slideroff); /* Default to red (off) for light mode */
  border-radius: 25px;
  width: 50px;
  height: 25px;
  position: relative;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: 1px solid white;
}

#theme-toggle-footer:checked {
  background-color: var(--slideron); /* Green (on) for dark mode */
}

#theme-toggle-footer::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: white;
  transition: left 0.3s ease;
}

#theme-toggle-footer:checked::before {
  left: 29px; /* Move to the right when toggled */
}

/* Define custom variables for the slider off and slider on states */
:root {
    --slideroff: red;  /* Light mode (off) - Red */
    --slideron: green; /* Dark mode (on) - Green */
}

/* Dark/Light Mode Toggle with proper switch look */
#theme-toggle-footer {
  background-color: var(--slideroff); /* Default to red (off) for light mode */
  border-radius: 25px;
  width: 60px;
  height: 30px;
  position: relative;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: 1px solid white;
}

#theme-toggle-footer:checked {
  background-color: var(--slideron); /* Green (on) for dark mode */
}

#theme-toggle-footer::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;  /* Circle size */
  height: 24px;
  border-radius: 50%;
  background-color: white;
  transition: left 0.3s ease; /* Smooth sliding effect */
}

#theme-toggle-footer:checked::before {
  left: 33px; /* Move to the right when toggled */
}

/* Dark/Light Mode Toggle with proper switch look */
#theme-toggle-footer {
  background-color: var(--slideroff); /* Default to red (off) for light mode */
  border-radius: 25px;
  width: 60px;
  height: 30px;
  position: relative;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: 1px solid white;
}

#theme-toggle-footer:checked {
  background-color: var(--slideron); /* Green (on) for dark mode */
}

#theme-toggle-footer::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;  /* Circle size */
  height: 24px;
  border-radius: 50%;
  background-color: white;
  transition: left 0.3s ease; /* Smooth sliding effect */
}

#theme-toggle-footer:checked::before {
  left: 33px; /* Move to the right when toggled */
}

/* Define custom variables for the slider off and slider on states */
:root {
    --slideroff: red;  /* Light mode (off) - Red */
    --slideron: green; /* Dark mode (on) - Green */
}

/* Dark/Light Mode Toggle with proper switch look (no more using --link-color) */
#theme-toggle-footer {
  background-color: var(--slideroff); /* Default to red (off) for light mode */
  border-radius: 25px;
  width: 60px;
  height: 30px;
  position: relative;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: 1px solid white;
}

#theme-toggle-footer:checked {
  background-color: var(--slideron); /* Green (on) for dark mode */
}

#theme-toggle-footer::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;  /* Circle size */
  height: 24px;
  border-radius: 50%;
  background-color: white;
  transition: left 0.3s ease; /* Smooth sliding effect */
}

#theme-toggle-footer:checked::before {
  left: 33px; /* Move to the right when toggled */
}
p {
    margin-bottom: 15px;
    line-height: 1.6 !important;
    font-size: 1.2rem !important;
}

/* =========================================================
   Rich site polish / consolidated custom CSS
   Keeps the current visual style while removing duplicate rules.
   ========================================================= */

:root {
  color-scheme: light !important;
  --content-width: 1024px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light !important;
    background: #fff !important;
    color: #000 !important;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
  }
}

body {
  background-color: #fff !important;
  color: var(--text-color);
  font-family: var(--font-family);
}

.container,
.inner_container,
.alphabetical-container {
  width: 100%;
  max-width: var(--content-width) !important;
  margin-right: auto;
  margin-left: auto;
}

.inner_container {
  background: #fff !important;
}

.alphabetical-container,
.inner_container,
.inner_contrainer {
  padding: 10px !important;
}

.logo img {
  max-width: 420px;
  max-height: 70px;
  height: auto;
  margin-top: 10px;
}

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

.full_logo img {
  width: 100%;
  max-width: 820px;
  height: auto;
  margin: auto;
}

@media (max-width: 600px) {
  .logo img {
    display: block;
    max-width: 90%;
    margin-right: auto;
    margin-left: auto;
  }
}

blockquote {
  color: var(--link-color);
}

.keyword_highlight,
.attention,
.mobile-tag-word {
  color: var(--keyword-highlight, #b22222) !important;
  font-weight: bold;
}

html.dark *[style*="color: #000080"],
html.dark *[style*="color:#000080"],
html.dark *[style*="color: navy"] {
  color: #add8e6 !important;
}

ul {
  font-size: 1.2rem !important;
}

.post-meta {
  margin-top: -15px;
  margin-bottom: 5px;
}

.article_featured {
  margin-top: 10px !important;
}

.article_featured img,
.featured-title a {
  display: block;
  width: 100%;
}

.featured-post-title-large {
  display: block;
  width: 100%;
  font-size: 2rem !important;
  font-weight: bold;
  line-height: 1.1;
  text-decoration: none;
}

.featured-title {
  padding-right: 20px;
  padding-left: 20px;
}

.banner-wrapper {
  position: relative;
}

/* Alphabetical index */
.alphabetical-container {
  font-family: Arial, sans-serif;
}

.alphabetical-container h4 {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: bold;
}

.alphabetical-heading {
  margin-top: 40px;
  padding-bottom: 5px;
  border-bottom: 2px solid #ccc;
}

.alphabetical-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.alphabetical-list a {
  color: inherit;
  font-size: 1em;
  text-decoration: none;
}

/* Consolidated pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem auto;
  padding: 1rem;
  border-radius: 6px;
  color: var(--link-color) !important;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  margin: 0 5px;
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  background: #000 !important;
  color: #fff !important;
  font-family: var(--font-family);
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pagination a:hover,
.pagination a:focus,
.pagination .current,
.pagination span.current {
  background: var(--link-color) !important;
  border-color: var(--link-color) !important;
  color: #fff !important;
  font-weight: bold;
  text-decoration: none;
}

/* Rich Pagination Style */
.rich-pagination {
  margin: 24px 0;
  font-family: inherit;
  text-align: center;
}

.rich-pagination__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rich-pagination__item a,
.rich-pagination__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #000 !important;
  color: #fff;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rich-pagination__item.is-current span,
.rich-pagination__item.is-current a[aria-current="page"],
.rich-pagination__item a:hover,
.rich-pagination__item a:focus {
  background: #3a161a !important;
  color: #fff;
  outline: none;
}

.rich-pagination__item.is-dots span {
  background: #1a1a1a;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .rich-pagination__item a,
  .rich-pagination__item span {
    width: 38px;
    height: 38px;
    font-size: 0.9em;
  }
}

/* Responsive embeds */
.youtube-responsive,
.rich-drive-embed-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 0;
  margin: 1em auto;
  overflow: hidden;
  padding-bottom: 56.25%;
}

.rich-drive-embed-wrapper {
  max-width: 920px;
  margin: 30px auto;
}

.youtube-responsive iframe,
.rich-drive-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.rich-drive-embed-wrapper iframe {
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .youtube-responsive {
    width: 80%;
  }
}

.wp-video {
  width: 100%;
  height: auto;
  margin: auto;
}

@media (min-width: 1024px) {
  .wp-video {
    width: 80%;
  }
}

.ytpi-video {
  padding: 1rem;
  border-radius: 0.5rem;
  background: var(--bg-color) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-videos h3 {
  display: block;
  clear: both;
  margin-bottom: 0.5em;
  font-weight: bold;
}

.related-videos ul {
  clear: both;
  padding-left: 1.5em;
  margin-top: 0;
  list-style: disc;
}

/* MediaElement/audio */
.mejs-container,
.mejs-container .mejs-controls,
.mejs-embed,
.mejs-embed body {
  background: #3c171c !important;
}

.disciple-audio-player {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 15px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #3a161a;
}

.dap-play-btn {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: 0.2s ease-in-out;
}

.dap-play-btn:hover {
  background: #73001d;
}

.dap-track {
  position: relative;
  flex-grow: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 4px;
  background: #5c2830;
  cursor: pointer;
}

.dap-progress {
  width: 0%;
  height: 100%;
  border-radius: 4px;
  background: #fff;
  transition: width 0.1s linear;
}

.dap-audio {
  display: none;
}

.dap-download-btn {
  padding: 8px 12px;
  margin-left: 12px;
  border-radius: 8px;
  background: #73001d;
  color: #fff !important;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.2s ease-in-out;
}

.dap-download-btn:hover {
  background: #f3e7e7;
  color: #73001d !important;
}

@media (max-width: 768px) {
  #site-navigation ul {
    padding-left: 20px;
  }

  #site-navigation ul li a {
    position: relative;
    display: block;
    padding: 8px;
    margin: 3px;
    color: var(--nav-text);
    text-decoration: none;
  }

  #site-navigation ul li a::before {
    position: absolute;
    left: 0;
    color: var(--nav-text);
    content: "▪ ";
  }
}


/* =========================================================
   v4.0.3 scoped links + WordPress admin bar hard reset
   ========================================================= */
:root {
  --body-link-color: #111111;
  --body-link-hover: #73001d;
  --footer-link-color: #ffffff;
  --footer-link-hover: #d6b27b;
}

/* WordPress admin bar: keep it completely separate from theme link styles. */
html body.admin-bar #wpadminbar,
html body.admin-bar #wpadminbar * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

html body.admin-bar #wpadminbar {
  background: #1d2327 !important;
}

html body.admin-bar #wpadminbar a,
html body.admin-bar #wpadminbar a:visited,
html body.admin-bar #wpadminbar .ab-item,
html body.admin-bar #wpadminbar .ab-label,
html body.admin-bar #wpadminbar .display-name,
html body.admin-bar #wpadminbar .username,
html body.admin-bar #wpadminbar .ab-icon::before,
html body.admin-bar #wpadminbar .ab-icon,
html body.admin-bar #wpadminbar .ab-empty-item {
  color: #f0f0f1 !important;
  fill: #f0f0f1 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  text-shadow: none !important;
}

html body.admin-bar #wpadminbar a:hover,
html body.admin-bar #wpadminbar a:focus,
html body.admin-bar #wpadminbar .ab-item:hover,
html body.admin-bar #wpadminbar .ab-item:focus,
html body.admin-bar #wpadminbar .menupop.hover > .ab-item,
html body.admin-bar #wpadminbar .menupop:hover > .ab-item {
  color: #72aee6 !important;
  text-decoration: none !important;
}

html body.admin-bar #wpadminbar .ab-sub-wrapper,
html body.admin-bar #wpadminbar .ab-submenu {
  background: #2c3338 !important;
}

html body.admin-bar #wpadminbar .ab-sub-wrapper a,
html body.admin-bar #wpadminbar .ab-sub-wrapper a:visited,
html body.admin-bar #wpadminbar .ab-sub-wrapper .ab-item,
html body.admin-bar #wpadminbar .ab-sub-wrapper .ab-label {
  color: #f0f0f1 !important;
}

html body.admin-bar #wpadminbar .ab-sub-wrapper a:hover,
html body.admin-bar #wpadminbar .ab-sub-wrapper a:focus,
html body.admin-bar #wpadminbar .ab-sub-wrapper .ab-item:hover,
html body.admin-bar #wpadminbar .ab-sub-wrapper .ab-item:focus {
  color: #72aee6 !important;
}

/* Normal site/content links only. No global a{} rule. */
body:not(.wp-admin) :where(.entry-content, .post-content, .page-content, article, .category-posts, .alphabetical-container, .related-videos, .widget) a:not(.button):not(.btn):not(.read-more):not(.rich-pagination a):not(.dap-download-btn),
body:not(.wp-admin) :where(.entry-content, .post-content, .page-content, article, .category-posts, .alphabetical-container, .related-videos, .widget) a:visited:not(.button):not(.btn):not(.read-more):not(.rich-pagination a):not(.dap-download-btn) {
  color: var(--body-link-color) !important;
  font-weight: 600;
  text-decoration: none;
}

body:not(.wp-admin) :where(.entry-content, .post-content, .page-content, article, .category-posts, .alphabetical-container, .related-videos, .widget) a:hover:not(.button):not(.btn):not(.read-more):not(.rich-pagination a):not(.dap-download-btn),
body:not(.wp-admin) :where(.entry-content, .post-content, .page-content, article, .category-posts, .alphabetical-container, .related-videos, .widget) a:focus:not(.button):not(.btn):not(.read-more):not(.rich-pagination a):not(.dap-download-btn) {
  color: var(--body-link-hover) !important;
  text-decoration: underline;
}

/* Footer contrast, including Privacy Policy. */
footer a,
footer a:visited,
.site-footer a,
.site-footer a:visited,
.footer a,
.footer a:visited,
#colophon a,
#colophon a:visited {
  color: var(--footer-link-color) !important;
  font-weight: 600 !important;
  text-decoration: none;
}

footer a:hover,
footer a:focus,
.site-footer a:hover,
.site-footer a:focus,
.footer a:hover,
.footer a:focus,
#colophon a:hover,
#colophon a:focus {
  color: var(--footer-link-hover) !important;
  text-decoration: underline;
}


/* v4.2 safe image sizing: reserve browser-known dimensions without forcing card heights. */
.feature-bg-img,
.banner-wrapper img,
.home-block img,
.featured-block img {
    display: block;
    max-width: 100%;
    height: auto;
}
