.articles-header {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}
.gold {
  color: var(--hover-col) !important;
}
.page-heading {
  margin-top: 20px;
}

.articles-list {
  list-style-type: none;
  padding: 0;
  margin: 0 auto;
  max-width: 700px;
}

.article-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 8px;
  background-color: #000;
}

.article-content {
  flex: 2;
}

.fa-telegram {
  background-color: #24a1de !important;
}
.emas {
  color: var(--hover-col);
}
.article-link {
  text-decoration: none;
  font-size: 1.2rem;
  color: var(--page-col);
  transition: color 0.3s, text-shadow 0.3s;
}

.article-link:hover {
  color: var(--link-col);
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.article-thumbnail {
  flex: 1;
  text-align: right;
}

.article-thumbnail img {
  max-width: auto; /* Adjust the size */
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ========================================
   ENHANCED NAVBAR STYLES - UX & SEO OPTIMIZED
   ======================================== */

/* Logo fade effect on scroll - targeting all logo elements */
.navbar-brand,
.navbar-brand-logo,
.avatar-container,
.avatar-img-border {
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
  transform: scale(1);
}

/* Logo hover effect */
.navbar-brand:hover,
.navbar-brand-logo:hover,
.avatar-container:hover,
.avatar-img-border:hover {
  opacity: 1 !important;
  transform: scale(1.05) !important;
}

/* Logo image specific styling */
.navbar-brand-logo img,
.avatar-img {
  transition: filter 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
}

.navbar-brand-logo:hover img,
.avatar-container:hover .avatar-img,
.avatar-img-border:hover .avatar-img {
  filter: brightness(1.2) !important;
  opacity: 1 !important;
}

/* Skip to main content link for accessibility */
.skip-to-main-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--hover-col);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: bold;
  z-index: 10000;
  border-radius: 0 0 4px 0;
  transition: top 0.3s ease;
}

.skip-to-main-content:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Enhanced navbar with better visual hierarchy */
.navbar-custom {
  background-color: #000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Smooth transitions for navbar state changes */
.navbar-custom,
.navbar-custom .nav-link,
.navbar-custom .dropdown-menu {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile menu toggle button enhancement */
.navbar-toggler {
  border: 2px solid var(--hover-col);
  border-radius: 8px;
  padding: 8px 12px;
  position: relative;
  overflow: hidden;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
  background-color: rgba(200, 169, 112, 0.1);
  border-color: var(--hover-col);
  box-shadow: 0 0 0 3px rgba(200, 169, 112, 0.2);
}

.navbar-toggler-text {
  display: inline-block;
  margin-left: 8px;
  color: var(--hover-col);
  font-weight: 600;
  font-size: 0.875rem;
  vertical-align: middle;
}

/* Active state for current page */
.navbar-custom .nav-link.active {
  color: var(--hover-col) !important;
  position: relative;
  font-weight: 900;
}

.navbar-custom .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--hover-col), transparent);
  border-radius: 2px;
}

/* Dropdown active state */
.navbar-custom .dropdown-item.active {
  background-color: var(--hover-col);
  color: white;
  font-weight: 700;
}

/* Enhanced hover effects */
.navbar-custom .nav-link {
  position: relative;
  overflow: hidden;
}

.navbar-custom .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--hover-col);
  transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover::before,
.navbar-custom .nav-link:focus::before {
  width: 100%;
}

/* Improved dropdown menu */
.navbar-custom .dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  margin-top: 8px;
  padding: 8px 0;
  display: none;
}

.navbar-custom .dropdown-menu.show {
  display: block;
  animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure dropdown shows on desktop when clicked */
@media (min-width: 1200px) {
  .navbar-custom .dropdown.show > .dropdown-menu {
    display: block !important;
  }
}

.navbar-custom .dropdown-item {
  padding: 12px 20px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
  border-left-color: var(--hover-col);
  padding-left: 24px;
  background-color: rgba(200, 169, 112, 0.1);
}

/* Search button enhancement */
.nav-search-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

#nav-search-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.nav-search-link:hover #nav-search-icon,
.nav-search-link:focus #nav-search-icon {
  transform: scale(1.2) rotate(15deg);
}

/* Responsive enhancements */
@media (max-width: 1199px) {
  .navbar-toggler-text {
    display: inline-block;
  }

  .navbar-custom .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.98);
    border-radius: 0 0 12px 12px;
    padding: 16px 0;
    margin-top: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Enable scrolling for mobile navbar when content exceeds screen height */
    max-height: calc(100vh - 80px); /* Account for navbar header height */
    overflow-y: auto;
    overflow-x: hidden;

    /* Smooth scrolling with momentum on iOS */
    -webkit-overflow-scrolling: touch;

    /* Custom scrollbar styling for better UX */
    scrollbar-width: thin;
    scrollbar-color: var(--hover-col) rgba(0, 0, 0, 0.3);
  }

  /* Webkit scrollbar styling for Chrome/Safari */
  .navbar-custom .navbar-collapse::-webkit-scrollbar {
    width: 6px;
  }

  .navbar-custom .navbar-collapse::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
  }

  .navbar-custom .navbar-collapse::-webkit-scrollbar-thumb {
    background: var(--hover-col);
    border-radius: 3px;
  }

  .navbar-custom .navbar-collapse::-webkit-scrollbar-thumb:hover {
    background: #d4b87c;
  }

  .navbar-custom .nav-link {
    padding: 12px 20px;
    border-left: 3px solid transparent;
  }

  .navbar-custom .nav-link:hover,
  .navbar-custom .nav-link:focus {
    border-left-color: var(--hover-col);
    background-color: rgba(200, 169, 112, 0.1);
  }

  .navbar-custom .nav-link.active {
    border-left-color: var(--hover-col);
    background-color: rgba(200, 169, 112, 0.15);
  }

  .navbar-custom .dropdown-menu {
    background-color: rgba(20, 20, 20, 0.95);
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
    display: none !important;
  }

  /* Ensure dropdown shows on mobile when clicked */
  .navbar-custom .dropdown.show > .dropdown-menu,
  .navbar-custom .dropdown-menu.show {
    display: block !important;
  }

  .navbar-custom .dropdown-item {
    padding-left: 40px;
    font-size: 0.9rem;
  }
}

/* Desktop-specific enhancements */
@media (min-width: 1200px) {
  .navbar-toggler-text {
    display: none;
  }

  /* Mega menu support for large dropdowns */
  .navbar-custom .dropdown-menu {
    min-width: 220px;
  }

  /* Smooth dropdown arrow rotation */
  .navbar-custom .dropdown-toggle::after {
    transition: transform 0.3s ease;
  }

  .navbar-custom .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

/* Focus visible for keyboard navigation */
.navbar-custom .nav-link:focus-visible,
.navbar-custom .dropdown-item:focus-visible,
.navbar-toggler:focus-visible {
  outline: 3px solid var(--hover-col);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth scroll behavior when using skip link */
html {
  scroll-behavior: smooth;
}

/* Loading state for navigation */
.navbar-custom.loading {
  opacity: 0.7;
  pointer-events: none;
}



/* Improve container fluid spacing */
.navbar-custom .container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1200px) {
  .navbar-custom .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Better visual feedback for touch devices */
@media (hover: none) and (pointer: coarse) {
  .navbar-custom .nav-link:active,
  .navbar-custom .dropdown-item:active {
    background-color: rgba(200, 169, 112, 0.2);
    transform: scale(0.98);
  }
}

/* Prefers reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .navbar-custom,
  .navbar-custom .nav-link,
  .navbar-custom .dropdown-menu,
  .skip-to-main-content,
  .navbar-toggler {
    transition: none !important;
    animation: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .navbar-custom {
    border-bottom: 3px solid var(--hover-col);
  }

  .navbar-custom .nav-link.active::after {
    height: 4px;
  }
}

/* ========================================
   CATEGORY-SPECIFIC VISUAL ENHANCEMENTS
   ======================================== */

/* Professional look without emoji icons - using subtle color coding instead */
.navbar-custom .nav-item:nth-child(1) .nav-link {
  /* Beranda - Home */
  position: relative;
}

.navbar-custom .nav-item:nth-child(2) .nav-link {
  /* Kitab Suci - Scripture (highest priority) */
  font-weight: 900;
}

.navbar-custom .nav-item:nth-child(3) .nav-link {
  /* Iman & Devosi - Faith & Devotion */
  position: relative;
}

.navbar-custom .nav-item:nth-child(4) .nav-link {
  /* Ajaran Gereja - Church Teaching */
  position: relative;
}

.navbar-custom .nav-item:nth-child(5) .nav-link {
  /* Apologetika - Apologetics */
  position: relative;
}

.navbar-custom .nav-item:nth-child(6) .nav-link {
  /* Media */
  position: relative;
}

/* Dropdown menu visual improvements for better scanning */
.navbar-custom .dropdown-menu {
  max-height: 70vh;
  overflow-y: auto;

  /* Smooth scrolling */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Smooth scrollbar for long dropdowns */
.navbar-custom .dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.navbar-custom .dropdown-menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.navbar-custom .dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--hover-col);
  border-radius: 3px;
}

.navbar-custom .dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 169, 112, 0.8);
}

/* Add subtle dividers between dropdown sections (if needed) */
.navbar-custom .dropdown-item:nth-child(3n) {
  border-bottom: 1px solid rgba(200, 169, 112, 0.1);
  /* margin-bottom: 4px; */
  padding-bottom: 12px;
}

/* Better visual hierarchy for dropdown items */
.navbar-custom .dropdown-item {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Highlight important items in dropdowns */
.navbar-custom .dropdown-item[href*="kalender"],
.navbar-custom .dropdown-item[href*="rosario"],
.navbar-custom .dropdown-item[href*="kgk"],
.navbar-custom .dropdown-item[href*="kitabsuci"] {
  font-weight: 600;
}

/* ========================================
   MEGA MENU IMPLEMENTATION
   ======================================== */

/* Enable mega menu for specific dropdowns on desktop */
@media (min-width: 1200px) {
  /* Mega menu container - make parent static for full-width dropdown */
  .navbar-custom .dropdown.mega-menu {
    position: static;
  }

  .navbar-custom .dropdown.mega-menu .dropdown-menu {
    position: absolute;
    left: 0;
    right: 0;
    width: auto;
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.98);
    border: 2px solid var(--hover-col);
    transform: none;
  }

  /* Mega menu grid layout */
  .navbar-custom .dropdown.mega-menu .mega-menu-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
  }

  /* Mega menu columns */
  .navbar-custom .dropdown.mega-menu .mega-menu-column {
    display: flex;
    flex-direction: column;
  }

  /* Mega menu column headers */
  .navbar-custom .dropdown.mega-menu .mega-menu-header {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hover-col);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--hover-col);
  }

  /* Mega menu items */
  .navbar-custom .dropdown.mega-menu .dropdown-item {
    padding: 0.5rem 0;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: normal;
  }

  /* Mega menu item hover */
  .navbar-custom .dropdown.mega-menu .dropdown-item:hover {
    padding-left: 0.5rem;
    background-color: rgba(200, 169, 112, 0.1);
    color: var(--hover-col);
  }

  /* Featured items in mega menu */
  .navbar-custom .dropdown.mega-menu .dropdown-item.featured {
    font-weight: 700;
    color: var(--hover-col);
  }

  .navbar-custom .dropdown.mega-menu .dropdown-item.featured::before {
    content: '★ ';
    margin-right: 4px;
  }
}

/* Mobile: Mega menu behaves like regular dropdown */
@media (max-width: 1199px) {
  .navbar-custom .dropdown.mega-menu .dropdown-menu {
    background: rgba(0, 0, 0, 0.98);
    border: 1px solid var(--hover-col);
    /* Ensure mega menu content is scrollable if needed */
    max-height: none; /* Let parent navbar-collapse handle scrolling */
  }

  .navbar-custom .dropdown.mega-menu .mega-menu-content {
    display: block;
  }

  .navbar-custom .dropdown.mega-menu .mega-menu-column {
    margin-bottom: 1.5rem;
  }

  .navbar-custom .dropdown.mega-menu .mega-menu-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--hover-col);
    margin: 1rem 0 0.5rem 0;
    padding-left: 1rem;
    border-bottom: 1px solid rgba(200, 169, 112, 0.3);
    padding-bottom: 0.5rem;
  }

  .navbar-custom .dropdown.mega-menu .dropdown-item {
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
  }

  .navbar-custom .dropdown.mega-menu .dropdown-item:hover {
    background-color: rgba(200, 169, 112, 0.1);
    color: var(--hover-col);
  }

  /* Add padding to bottom of navbar to ensure last item is visible when scrolling */
  .navbar-custom .navbar-nav {
    padding-bottom: 20px;
  }

  /* Visual indicator that content is scrollable - subtle gradient at bottom */
  .navbar-custom .navbar-collapse::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98), transparent);
    pointer-events: none;
    display: block;
  }
}

/* ========================================
   BREADCRUMB NAVIGATION
   ======================================== */

.breadcrumb-nav {
  margin: 1rem 0;
  padding: 0;
}

.breadcrumb {
  background-color: transparent;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(200, 169, 112, 0.05), rgba(200, 169, 112, 0.02));
  border: 1px solid rgba(200, 169, 112, 0.2);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  padding: 0 0.5rem;
  color: var(--hover-col);
  opacity: 0.5;
}

.breadcrumb-item a {
  color: var(--text-col);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
  color: var(--hover-col);
  background-color: rgba(200, 169, 112, 0.1);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--hover-col);
  font-weight: 600;
}

/* Responsive breadcrumbs */
@media (max-width: 768px) {
  .breadcrumb {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    padding: 0 0.25rem;
  }

  /* Truncate long breadcrumb items on mobile */
  .breadcrumb-item span,
  .breadcrumb-item a {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }

  .breadcrumb-item.active span {
    max-width: none;
    white-space: normal;
  }
}

/* Dark mode support */
body[data-dark-mode="true"] .breadcrumb {
  background: linear-gradient(135deg, rgba(200, 169, 112, 0.1), rgba(200, 169, 112, 0.05));
  border-color: rgba(200, 169, 112, 0.3);
}

body[data-dark-mode="true"] .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
}

body[data-dark-mode="true"] .breadcrumb-item a:hover {
  color: var(--hover-col);
}

/* ========================================
   COMPREHENSIVE FOOTER NAVIGATION
   ======================================== */

/* Unified footer design - all dark with consistent background */
footer {
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.85);
  border-top: 3px solid var(--hover-col);
  margin-top: 4rem;
}

.footer-sitemap {
  background: #0a0a0a;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(200, 169, 112, 0.15);
}

.footer-column {
  margin-bottom: 2rem;
}

.footer-heading {
  color: #C8A970;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(200, 169, 112, 0.25);
}

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

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  display: inline-block;
  padding: 0.25rem 0;
  position: relative;
}

.footer-links a::before {
  content: '›';
  margin-right: 0.5rem;
  color: var(--hover-col);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--hover-col);
  padding-left: 0.5rem;
  text-decoration: none;
}

.footer-links a:hover::before,
.footer-links a:focus::before {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive footer */
@media (max-width: 991px) {
  .footer-sitemap {
    padding: 2rem 0 1rem;
  }

  .footer-column {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767px) {
  .footer-sitemap {
    padding: 1.5rem 0 1rem;
  }

  .footer-heading {
    font-size: 0.9rem;
  }

  .footer-links a {
    font-size: 0.8rem;
  }
}

/* Copyright section styling - unified with sitemap */
.footer-copyright {
  background: #0a0a0a;
  padding: 2.5rem 0;
  border-top: none;
}

.copyright-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  text-align: center;
  margin: 1.5rem 0 0.75rem;
  line-height: 2;
}

.copyright-author,
.copyright-year {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.copyright-separator {
  margin: 0 0.6rem;
  color: #C8A970;
  opacity: 0.4;
}

.copyright-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.25s ease;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.copyright-link:hover,
.copyright-link:focus {
  color: #C8A970;
  text-decoration: none;
  background-color: rgba(200, 169, 112, 0.12);
}

.powered-by {
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}

.powered-icon {
  display: inline-block;
  animation: pulse 2s infinite;
}

.powered-link {
  color: #C8A970;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.powered-link:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Social links in footer */
.footer-copyright .social-links {
  text-align: center;
  margin-bottom: 1.75rem;
}

.footer-copyright .social-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.6rem;
  margin: 0 0.85rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-copyright .social-links a:hover {
  color: #C8A970;
  transform: translateY(-3px);
}

/* Responsive footer copyright */
@media (max-width: 767px) {
  .footer-copyright {
    padding: 1.5rem 0;
  }

  .copyright-text {
    font-size: 0.75rem;
    line-height: 2;
  }

  .copyright-separator {
    margin: 0 0.25rem;
  }

  .powered-by {
    font-size: 0.7rem;
  }
}

/* Dark mode adjustments - keep unified */
body[data-dark-mode="true"] footer {
  background: #0a0a0a;
}

body[data-dark-mode="true"] .footer-sitemap {
  background: #0a0a0a;
}

body[data-dark-mode="true"] .footer-copyright {
  background: #0a0a0a;
}

/* ========================================
   INLINE NAVBAR SEARCH
   ======================================== */

.nav-search-container {
  position: relative;
}

/* Desktop inline search */
.nav-search-inline {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.nav-search-input-inline {
  width: 100px;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 2px solid rgba(200, 169, 112, 0.3);
  border-radius: 25px;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  outline: none;
}

.nav-search-input-inline:focus {
  width: 200px;
  border-color: var(--hover-col);
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(200, 169, 112, 0.2);
}

.nav-search-input-inline::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.nav-search-button-inline {
  position: absolute;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: var(--hover-col);
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.2s ease;
}

.nav-search-button-inline:hover {
  color: white;
  transform: scale(1.1);
}

/* Search results dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 400px;
  max-height: 500px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.98);
  border: 2px solid var(--hover-col);
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 10000;
  padding: 1rem;
}

.search-results-dropdown.active {
  display: block;
  animation: searchDropdownFadeIn 0.3s ease;
}

@keyframes searchDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-results-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-results-dropdown li {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(200, 169, 112, 0.2);
  transition: all 0.2s ease;
}

.search-results-dropdown li:last-child {
  border-bottom: none;
}

.search-results-dropdown li:hover {
  background-color: rgba(200, 169, 112, 0.1);
  padding-left: 1rem;
}

.search-results-dropdown a {
  color: white;
  text-decoration: none;
  display: block;
}

.search-results-dropdown a:hover {
  color: var(--hover-col);
}

.search-result-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--hover-col);
}

.search-result-excerpt {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.search-no-results {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* Scrollbar for search results */
.search-results-dropdown::-webkit-scrollbar {
  width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
  background: var(--hover-col);
  border-radius: 3px;
}

/* Mobile search adjustments */
@media (max-width: 1199px) {
  .search-results-dropdown {
    width: 100vw;
    max-width: 100%;
    left: 0;
    right: 0;
    border-radius: 0;
  }
}

/* Enhanced mobile search overlay */
#beautifuljekyll-search-overlay {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#nav-search-input {
  border: 2px solid var(--hover-col);
  border-radius: 25px;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
}

#nav-search-input:focus {
  box-shadow: 0 0 0 4px rgba(200, 169, 112, 0.3);
  outline: none;
}

#search-results-container {
  margin-top: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

#search-results-container li {
  background: rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--hover-col);
  transition: all 0.2s ease;
}

#search-results-container li:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateX(5px);
}

.page-subheading {
  color: var(--hover-col) !important;
  font-weight: bolder !important;
}

#search-results-container a {
  color: var(--hover-col) !important;
}

.btn-whatsapp {
  color: #fff;
  background-color: #168e00;
  border-color: rgba(0, 0, 0, 0.2);
}
.btn-whatsapp:focus,
.btn-whatsapp.focus {
  color: #fff;
  background-color: #bcddff;
  border-color: rgba(0, 0, 0, 0.2);
}
.btn-whatsapp:hover {
  color: #fff;
  background-color: #398c2a;
  border-color: rgba(0, 0, 0, 0.2);
}
.btn-whatsapp:active,
.btn-whatsapp.active,
.open > .dropdown-toggle.btn-whatsapp {
  color: #fff;
  background-color: #bcddff;
  border-color: rgba(0, 0, 0, 0.2);
}
.btn-whatsapp:active:hover,
.btn-whatsapp.active:hover,
.open > .dropdown-toggle.btn-whatsapp:hover,
.btn-whatsapp:active:focus,
.btn-whatsapp.active:focus,
.open > .dropdown-toggle.btn-whatsapp:focus,
.btn-whatsapp:active.focus,
.btn-whatsapp.active.focus,
.open > .dropdown-toggle.btn-whatsapp.focus {
  color: #000;
  background-color: #98ccff;
  border-color: rgba(0, 0, 0, 0.2);
}
.btn-whatsapp:active,
.btn-whatsapp.active,
.open > .dropdown-toggle.btn-whatsapp {
  background-image: none;
}
.btn-whatsapp.disabled,
.btn-whatsapp[disabled],
fieldset[disabled] .btn-whatsapp,
.btn-whatsapp.disabled:hover,
.btn-whatsapp[disabled]:hover,
fieldset[disabled] .btn-whatsapp:hover,
.btn-whatsapp.disabled:focus,
.btn-whatsapp[disabled]:focus,
fieldset[disabled] .btn-whatsapp:focus,
.btn-whatsapp.disabled.focus,
.btn-whatsapp[disabled].focus,
fieldset[disabled] .btn-whatsapp.focus,
.btn-whatsapp.disabled:active,
.btn-whatsapp[disabled]:active,
fieldset[disabled] .btn-whatsapp:active,
.btn-whatsapp.disabled.active,
.btn-whatsapp[disabled].active,
fieldset[disabled] .btn-whatsapp.active {
  background-color: #eff7ff;
  border-color: rgba(0, 0, 0, 0.2);
}
.btn-whatsapp .badge {
  color: #eff7ff;
  background-color: #000;
}

.youtube-container {
  display: flex;
  justify-content: center;
}

iframe {
  aspect-ratio: 16 / 9;
  height: auto;
  width: 100% !important;
}

#toc-container {
  top: 50px; /* Adjust to #main-navbar height */
  z-index: 0;
  width: 250px; /* Adjust width */
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  background-color: white;
  width: 100%;
}

#toc h2 {
  margin-top: 0.5rem;
}

#toc {
  width: 100%;
  padding-left: 10px;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

#toc.collapsed {
  max-height: calc(1.5em + 25px); /* Approximate h2 height */
  position: absolute;
  background-color: white;
  width: 100%;
}

#toc a {
  font-weight: bold;
}

#toc.collapsed::after {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  content: "+"; /* Down arrow */
  font-weight: bold;
}

#toc a.active {
  color: var(--hover-col); /* Use consistent theme color */
  font-weight: bold;
}

.toc-depth-1 {
  list-style-type: disc; /* Default disc for level 1 */
}

.toc-depth-2 {
  list-style-type: circle; /* Circle for level 2 */
}

.toc-depth-3 {
  list-style-type: square; /* Square for level 3 */
}

.toc-depth-4,
.toc-depth-5,
.toc-depth-6 {
  list-style-type: none; /* Optional for deeper levels */
  margin-left: 20px;
}

.toc-depth-4::before {
  content: "• "; /* Custom bullet style for deeper levels */
}

.toc-depth-5::before {
  content: "◦ "; /* Custom bullet for level 5 */
}

.toc-depth-6::before {
  content: "▪ "; /* Custom bullet for level 6 */
}

#scrollToTop {
  background-color: var(--hover-col);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 20px;
  transition: opacity 0.3s;
}

#scrollToTop:hover {
  background-color: var(--hover-col);
}

/* General Styles for the Text */
.page-heading,
.page-subheading {
  position: relative;
  display: inline-block;
  color: inherit;
  font-size: 2rem;
  font-weight: bold;
  overflow: hidden;
  cursor: pointer;
}

#social-share-section {
  position: fixed;
  left: 0; /* Changed from right: 0 */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#social-share-section {
  display: flex;
  flex-direction: column; /* Stack icons vertically on larger screens */
  align-items: center; /* Center icons vertically */
}

#social-share-section a {
  margin: 2px 0; /* Add vertical space between icons */
}

@media only screen and (max-width: 768px) {
  #social-share-section {
    position: static;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
  #social-share-section a {
    margin: 0 10px;
  }
}

.page-heading h1,
.intro-header .page-heading h1,
.intro-header .page-heading {
  display: block !important;
  text-align: center !important;
}

.navbar-expand-xl .navbar-nav .nav-link {
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}

/* Base styles for mobile */
.calendar-container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

.sidebar {
  width: 100%;
  background-color: var(--footer-link-col);
  color: white;
  padding: 10px;
  border-radius: 10px 10px 0 0;
}

.sidebar h2 {
  margin-top: 0;
  font-size: 1.2em; /* Reduced font size for mobile */
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.row {
  display: flex;
  border-bottom: 1px solid #ddd;
  padding: 5px 0;
}

.row:last-child {
  border-bottom: none;
}

.cell {
  flex: 1;
  padding: 5px 10px;
  font-size: 0.9em; /* Reduced font size for better fit */
}

.cell:first-child {
  background-color: rgba(255, 255, 255, 0.1);
}

.calendar {
  flex: 1;
  background-color: var(--page-col);
  border-radius: 0 0 10px 10px;
  display: flex;
  flex-direction: column;
}

.calendar-header {
  display: flex;
  background-color: #f2f2f2;
  border-bottom: 1px solid #ddd;
  flex: 0 0 auto;
}

.calendar-header > div,
.day {
  flex: 1;
  text-align: center;
  padding: 5px;
  font-size: 0.8em; /* Reduced font size for header and days */
}

.calendar-header > div:last-child,
.week:last-child .day:last-child {
  border-right: none;
}

.calendar-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 10px 10px;
}

.week {
  display: flex;
  flex: 1;
}

.popup {
  display: none;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  text-align: left;
  overflow-y: auto;
  max-height: 80vh;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
}

.day {
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.date {
  text-align: center;
  font-weight: bold;
  padding: 5px;
  font-size: 0.8em; /* Reduced font size for date */
}

.tooltip {
  visibility: hidden;
  width: 200px;
  background-color: #555;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.7em; /* Reduced font size for tooltip */
}

.day:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.loading img {
  width: 50px;
  height: 50px;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.nav-buttons button {
  padding: 10px 20px;
  font-size: 0.9em; /* Reduced font size for buttons */
  cursor: pointer;
  border: none;
  background-color: var(--footer-hover-col);
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.1s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-buttons button:hover {
  background-color: #bda26f;
  transform: scale(1.05);
}

.nav-buttons button:active {
  transform: scale(0.95);
}

.calendar-title {
  flex: 1 0 100%;
  text-align: center;
  padding: 20px 0;
  background-color: var(--footer-hover-col);
  color: rgb(226, 226, 226);
}

.calendar-title h1 {
  margin: 0;
  font-size: 1.2em; /* Reduced font size for the title */
  color: rgb(255, 255, 255);
}

.expandable-content {
  display: none;
  width: 100%;
  padding: 10px;
  background-color: #f2f2f2;
  border-top: 1px solid #ddd;
  font-size: 0.9em; /* Reduced font size for expandable content */
}

/* Media query for tablet and larger screens */
@media (min-width: 768px) {
  .sidebar {
    width: 100%;
    border-radius: 10px 10px 0 0;
  }

  .calendar {
    width: 70%;
    border-radius: 0 10px 10px 0;
  }

  .popup {
    width: 60%;
    max-width: 600px;
  }

  /* Reset font sizes for larger screens */
  .sidebar h2,
  .cell,
  .calendar-header > div,
  .day,
  .date,
  .tooltip,
  .nav-buttons button,
  .calendar-title h1,
  .expandable-content {
    font-size: inherit; /* This will revert to the default or parent font size */
  }
}

#darkModeToggle {
  position: fixed !important;
  top: 50% !important;
  right: 20px !important;
  transform: translateY(-50%) !important;
  z-index: 10000 !important;
  font-size: 24px;
  border: none;
  background: #f5f5f5; /* Light text on dark background */
  color: #1e1e1e; /* Dark text for contrast */
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out;
}
.latin-text,
.jesus {
  color: #d80707 !important;
}
.document-item {
  background-color: #f9f9f9 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}
.capitalize {
  text-transform: capitalize;
}

@media (min-width: 1000px) {
  .container-md {
    min-width: 970px !important;
    max-width: 100% !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

/*
Header text readability improvements for cover images
*/

.page-author {
  /* Multiple layered text shadows for better contrast */
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6),
    2px 2px 4px rgba(0, 0, 0, 0.9), -1px -1px 2px rgba(0, 0, 0, 0.7);

  /* Semi-transparent background for additional readability */
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  padding: 10px 15px;
}
/* Enhanced text shadows and backgrounds for better readability over cover images */
.intro-header.big-img .page-heading h1,
.intro-header.big-img .post-heading h1 {
  /* Multiple layered text shadows for better contrast */
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6),
    2px 2px 4px rgba(0, 0, 0, 0.9), -1px -1px 2px rgba(0, 0, 0, 0.7);

  /* Semi-transparent background for additional readability */
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );

  /* Subtle border for extra definition */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px 30px;
  margin: 0 auto;
  display: inline-block;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.intro-header.big-img .page-heading .page-subheading,
.intro-header.big-img .post-heading .post-subheading,
.page-heading h2 {
  /* Enhanced text shadows for subtitles */
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.6),
    1px 1px 3px rgba(0, 0, 0, 0.9);

  /* Semi-transparent background for subtitles */
  background: rgba(0, 0, 0, 0.75);
  border-radius: 6px;
  padding: 10px 20px;
  margin: 15px auto 0;
  display: inline-block;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* Add a subtle gradient overlay to cover images for better text contrast */
.intro-header.big-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Ensure text content appears above the overlay */
.intro-header.big-img .container-md {
  position: relative;
  z-index: 2;
}

/* Additional styling for post meta text over cover images */
.intro-header.big-img .post-heading .post-meta {
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.75);
  border-radius: 4px;
  padding: 5px 15px;
  display: inline-block;
}

/* Enhanced styling for tags over cover images */
.intro-header.big-img .badge-danger {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .intro-header.big-img .page-heading h1,
  .intro-header.big-img .post-heading h1 {
    padding: 15px 20px;
    font-size: 2rem;
  }

  .intro-header.big-img .page-heading .page-subheading,
  .intro-header.big-img .post-heading .post-subheading {
    padding: 8px 15px;
    font-size: 1.2rem;
  }
}

/*
main page kategori
*/
#full-tags-list {
  margin: 2rem 0; /* Matches my-4 */
}

.featured-article {
  overflow: hidden;
}

.featured-article .card-header {
  padding: 0;
  height: 150px;
}
.card-header {
  max-height: 150px; /* Adjust as needed */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-header h2 {
  background: rgba(
    0,
    0,
    0,
    0.8
  ); /* Semi-transparent background for readability */
  padding: 0px;
  margin: 0px;
  width: 100%;
  height: 150px;
}

.card-body {
  padding: 15px;
}

.tag-entry {
  margin-bottom: 10px;
}

.entry-date {
  font-size: 0.9em;
  color: #666;
}

/* Ensure cards stretch to equal height in each row */
.row-cols-md-3 > .col {
  display: block;
  margin-top: 30px;
}
.row-cols-md-3 .featured-article {
  width: 100%;
}

/* Code block copy button styles */
.copy-code-container {
  position: relative;
}

.copy-code-button {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  background-color: var(--navbar-col, #eaeaea) !important;
  color: var(--text-col, #404040) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  font-family: var(--header-font, "Open Sans", sans-serif) !important;
  cursor: pointer !important;
  z-index: 10 !important;
  transition: all 0.2s ease !important;
  opacity: 0.7 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

.copy-code-button:hover {
  opacity: 1 !important;
  background-color: var(--hover-col, #c8a970) !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.copy-code-button:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.copy-code-button.copied {
  background-color: #28a745 !important;
  color: white !important;
  opacity: 1 !important;
}

/* Ensure code blocks have relative positioning for the copy button */
.highlight,
.highlight > pre,
pre {
  position: relative !important;
}

/* Hide copy button on small screens to avoid overlap */
@media (max-width: 768px) {
  .copy-code-button {
    font-size: 10px !important;
    padding: 2px 4px !important;
    top: 4px !important;
    right: 4px !important;
  }
}

/* Ensure copy button doesn't interfere with code selection */
.copy-code-button {
  pointer-events: auto !important;
}

.highlight pre,
pre code {
  padding-right: 60px !important; /* Make room for copy button */
}

/* Text selection copy button in palette */
.salin {
  background-color: white !important;
  color: #28a745 !important;
  border: 1px solid #28a745 !important;
  transition: all 0.2s ease !important;
}

.salin:hover {
  background-color: #28a745 !important;
  color: white !important;
  transform: scale(1.05) !important;
}

/* Copy notification styles */
.copy-notification {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  padding: 10px 15px !important;
  border-radius: 5px !important;
  font-family: var(--header-font, "Open Sans", sans-serif) !important;
  font-size: 14px !important;
  z-index: 10000 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
  transition: opacity 0.3s ease !important;
}

.copy-notification.success {
  background-color: #28a745 !important;
  color: white !important;
}

.copy-notification.error {
  background-color: #dc3545 !important;
  color: white !important;
}

/* ===== ROSARY PRAYER STYLES ===== */

/* Rosary Container - Enhanced Light Mode with High Contrast */
.rosary-prayer-container {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #e9ecef;
  color: #212529;
}

/* Mystery Image Styling */
.mystery-image-container {
  text-align: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  border: 2px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mystery-image {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mystery-image:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Ensure mystery images maintain light mode in rosary pages */
.rosary-prayer-container .mystery-image-container,
.current-prayer-display .mystery-image-container,
.mystery-meditation .mystery-image-container {
  background: #ffffff !important;
  border-color: #d4af37 !important; /* Golden spiritual theme */
  color: #212529 !important;
}

.rosary-prayer-container .mystery-image,
.current-prayer-display .mystery-image,
.mystery-meditation .mystery-image {
  border-color: #d4af37 !important; /* Golden border for spiritual theme */
}

/* Clickable mystery images */
.clickable-mystery-image {
  cursor: pointer;
  transition: all 0.3s ease;
}

.clickable-mystery-image:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border-color: #d4af37 !important;
}

.clickable-mystery-image:focus {
  outline: 3px solid #d4af37;
  outline-offset: 2px;
}

/* Rosary Navigation - High Specificity to Override Bootstrap */
.rosary-nav .nav-pills .nav-link,
.rosary-nav .nav.nav-pills .nav-link {
  background-color: transparent !important;
  border: 2px solid var(--hover-col) !important;
  color: var(--hover-col) !important;
  font-weight: 600;
  margin: 0 5px;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.rosary-nav .nav-pills .nav-link:hover,
.rosary-nav .nav.nav-pills .nav-link:hover,
.rosary-nav .nav-pills .nav-link:focus,
.rosary-nav .nav.nav-pills .nav-link:focus {
  background-color: var(--hover-col) !important;
  color: white !important;
  border-color: var(--hover-col) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(200, 169, 112, 0.3);
  text-decoration: none;
}

.rosary-nav .nav-pills .nav-link.active,
.rosary-nav .nav.nav-pills .nav-link.active,
.rosary-nav .nav-pills .nav-link.show,
.rosary-nav .nav.nav-pills .nav-link.show {
  background-color: var(--hover-col) !important;
  color: white !important;
  border-color: var(--hover-col) !important;
  text-decoration: none;
}

/* Section Transitions */
.rosary-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  background-color: white;
  color: #2c3e50;
  padding: 2rem;
  border-radius: 10px;
  margin: 1rem 0;
}

.rosary-section.active {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure proper text contrast in rosary sections */
.rosary-section h1,
.rosary-section h2,
.rosary-section h3,
.rosary-section h4,
.rosary-section h5,
.rosary-section h6 {
  color: var(--hover-col);
  font-weight: 600;
}

.rosary-section p,
.rosary-section li,
.rosary-section span {
  color: #2c3e50;
  line-height: 1.6;
}

/* Mystery Cards - Enhanced Light Mode */
.mystery-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e9ecef;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 12px;
  color: #212529;
}

.mystery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: var(--hover-col);
}

.mystery-card.selected {
  border: 3px solid var(--hover-col);
  background: linear-gradient(
    135deg,
    rgba(200, 169, 112, 0.1),
    rgba(200, 169, 112, 0.05)
  );
  box-shadow: 0 8px 25px rgba(200, 169, 112, 0.3);
}

/* Mystery Preview Images on Home Page */
.mystery-preview-image {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.mystery-preview-image img {
  transition: transform 0.3s ease;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mystery-card:hover .mystery-preview-image img {
  transform: scale(1.05);
}

/* ===== MYSTERY IMAGE MODAL STYLES ===== */

/* Modal overlay and container */
.mystery-image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.mystery-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.mystery-modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
  border: 2px solid #d4af37;
  display: flex;
  flex-direction: column;
}

/* Close button */
.mystery-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #d4af37;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mystery-modal-close:hover {
  background: #d4af37;
  color: white;
  transform: scale(1.1);
}

.mystery-modal-close:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Image container */
.mystery-modal-image-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  overflow: hidden;
  cursor: grab;
  min-height: 400px;
}

.mystery-modal-image-container.panning {
  cursor: grabbing;
}

.mystery-modal-image-container:hover {
  background: #f0f2f5;
}

.mystery-modal-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease-out;
  transform-origin: center center;
}

.mystery-modal-image-wrapper.no-transition {
  transition: none;
}

.mystery-modal-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  user-select: none;
  pointer-events: none;
}

/* Zoom controls */
.mystery-modal-zoom-controls {
  position: absolute;
  top: 70px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1001;
}

.mystery-modal-zoom-btn {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #d4af37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #d4af37;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.mystery-modal-zoom-btn:hover {
  background: #d4af37;
  color: white;
  transform: scale(1.1);
}

.mystery-modal-zoom-btn:active {
  transform: scale(0.95);
}

.mystery-modal-zoom-level {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  min-width: 60px;
  margin-top: 5px;
}

/* Caption */
.mystery-modal-caption {
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-top: 1px solid #e9ecef;
  flex-shrink: 0;
}

.mystery-modal-caption h3 {
  margin: 0 0 10px 0;
  color: #d4af37;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

.mystery-modal-caption p {
  margin: 0;
  color: #495057;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Step Container */
.step-container {
  position: relative;
  padding-left: 2rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  position: relative;
}

.step-number {
  background: linear-gradient(135deg, var(--hover-col), var(--hover-col) !important);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(200, 169, 112, 0.3);
}

.step-content {
  flex: 1;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--hover-col);
  border: 1px solid #e9ecef;
  color: #212529;
}

.step-content h5 {
  color: var(--hover-col);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Prayer Text Styling - Enhanced High Contrast */
.prayer-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #212529;
  font-style: italic;
  padding: 1.5rem;
  margin: 1rem 0;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  /* border-radius: 10px;
  border: 2px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
  font-weight: 500;
}

/* Interactive Guide Styles */
.interactive-guide {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.prayer-controls {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 2px solid #e9ecef;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  color: #212529;
}

.mystery-selector select {
  border: 2px solid var(--hover-col);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  background-color: white;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.prayer-progress .progress {
  height: 10px;
  border-radius: 5px;
  background-color: #e9ecef;
}

.prayer-progress .progress-bar {
  background: linear-gradient(90deg, var(--hover-col), var(--hover-col) !important);
  border-radius: 5px;
  transition: width 0.5s ease;
}

.prayer-controls-buttons .btn {
  margin: 0.25rem;
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.prayer-controls-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Current Prayer Display - Enhanced High Contrast Light Mode */
.current-prayer-display {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 15px;
  padding: 2rem;
  border: 3px solid var(--hover-col);
  box-shadow: 0 10px 30px rgba(200, 169, 112, 0.3);
  color: #212529;
  transition: all 0.3s ease;
}

.prayer-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--hover-col);
  text-align: center;
  margin-bottom: 1rem;
  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); */
  position: relative;
  padding: 0.5rem 0;
  border-bottom: 2px solid rgba(200, 169, 112, 0.3);
}
}

/* Counter badge for Salam Maria */
.prayer-counter-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--hover-col), var(--hover-col) !important);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 1rem;
  box-shadow: 0 2px 8px rgba(200, 169, 112, 0.3);
  animation: pulse 2s infinite;
}

/* Enhanced progress text */
.progress-detail {
  font-weight: 600;
  color: var(--hover-col);
}

.mystery-meditation {
  background: linear-gradient(135deg, rgba(200, 169, 112, 0.15), rgba(200, 169, 112, 0.08));
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
  font-style: italic;
  color: #495057;
  border-left: 5px solid var(--hover-col);
  border: 1px solid rgba(200, 169, 112, 0.3);
  box-shadow: 0 4px 15px rgba(200, 169, 112, 0.1);
  font-weight: 500;
}

/* Mystery info styling */
.mystery-info {
  background: linear-gradient(
    135deg,
    rgba(200, 169, 112, 0.05),
    rgba(212, 175, 55, 0.05)
  );
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(200, 169, 112, 0.2);
}

.mystery-info h6 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.mystery-info .small {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Special styling for opening Salam Maria explanations */
.mystery-meditation .small {
  font-size: 0.85rem;
  line-height: 1.3;
  font-style: normal;
  opacity: 0.8;
}

/* Tab Styling for Mysteries */
.nav-tabs .nav-link {
  border: none;
  color: var(--text-col);
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: 10px 10px 0 0;
  margin-right: 5px;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  background-color: rgba(200, 169, 112, 0.1);
  color: var(--hover-col);
}

.nav-tabs .nav-link.active {
  background-color: var(--hover-col);
  color: white;
  border-color: var(--hover-col);
}

/* Accordion Styling for Prayers */
.accordion .card {
  border: none;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.accordion .card-header {
  background: linear-gradient(135deg, var(--hover-col), var(--hover-col) !important);
  border: none;
  padding: 0;
}

.accordion .btn-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 1rem 1.5rem;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
}

.accordion .btn-link:hover {
  color: white;
  text-decoration: none;
}

.accordion .card-body {
  background: white;
  padding: 1.5rem;
}

/* Audio Player Styles */
.rosary-audio-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: 25px;
  padding: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.audio-title {
  font-size: 0.9rem;
  color: var(--text-col);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive Design for Rosary Page */
@media (max-width: 768px) {
  .rosary-prayer-container {
    padding: 1rem;
    margin: 1rem 0;
  }

  .step-container {
    padding-left: 1rem;
  }

  .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    margin-right: 1rem;
  }

  .step-content {
    padding: 1rem;
  }

  .prayer-text {
    font-size: 1rem;
    padding: 1rem;
  }

  .interactive-guide {
    padding: 1rem;
  }

  .prayer-controls {
    padding: 1rem;
  }

  .current-prayer-display {
    padding: 1rem;
  }

  .prayer-title {
    font-size: 1.2rem;
  }

  .nav-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .accordion .btn-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .rosary-audio-player {
    bottom: 10px;
    right: 10px;
    padding: 0.75rem;
  }

  .audio-title {
    max-width: 150px;
    font-size: 0.8rem;
  }

  /* Mobile responsive mystery images */
  .mystery-image-container {
    padding: 0.75rem;
    margin: 1rem 0;
  }

  .mystery-image {
    max-height: 200px;
  }

  /* Mobile responsive modal */
  .mystery-modal-content {
    max-width: 98vw;
    max-height: 98vh;
    margin: 5px;
  }

  .mystery-modal-image-container {
    min-height: 300px;
  }

  .mystery-modal-zoom-controls {
    top: 50px;
    right: 10px;
    gap: 6px;
  }

  .mystery-modal-zoom-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .mystery-modal-zoom-level {
    font-size: 12px;
    padding: 6px 10px;
    min-width: 50px;
  }

  .mystery-modal-caption {
    padding: 15px;
  }

  .mystery-modal-caption h3 {
    font-size: 1.2rem;
  }

  .mystery-modal-caption p {
    font-size: 0.9rem;
  }

  .mystery-modal-close {
    width: 35px;
    height: 35px;
    top: 10px;
    right: 10px;
    font-size: 20px;
  }
}

  /* Stack mystery cards vertically on mobile */
  .mystery-card {
    margin-bottom: 1rem;
  }

  /* Adjust button sizes for mobile */
  .prayer-controls-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin: 0.1rem;
  }

  /* Ensure consistent colors on mobile devices - Override Bootstrap completely */
  .rosary-nav .nav-pills .nav-link,
  .rosary-nav .nav.nav-pills .nav-link,
  .rosary-nav ul.nav-pills .nav-link {
    background-color: transparent !important;
    border: 2px solid var(--hover-col) !important;
    color: var(--hover-col) !important;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin: 2px;
  }

  .rosary-nav .nav-pills .nav-link:hover,
  .rosary-nav .nav.nav-pills .nav-link:hover,
  .rosary-nav ul.nav-pills .nav-link:hover,
  .rosary-nav .nav-pills .nav-link:focus,
  .rosary-nav .nav.nav-pills .nav-link:focus,
  .rosary-nav ul.nav-pills .nav-link:focus {
    background-color: var(--hover-col) !important;
    color: white !important;
    border-color: var(--hover-col) !important;
  }

  .rosary-nav .nav-pills .nav-link.active,
  .rosary-nav .nav.nav-pills .nav-link.active,
  .rosary-nav ul.nav-pills .nav-link.active,
  .rosary-nav .nav-pills .nav-link.show,
  .rosary-nav .nav.nav-pills .nav-link.show,
  .rosary-nav ul.nav-pills .nav-link.show {
    background-color: var(--hover-col) !important;
    color: white !important;
    border-color: var(--hover-col) !important;
  }

  /* Fix any blue coloring issues on mobile - Complete button override */
  .btn-primary,
  .prayer-controls-buttons .btn-primary,
  #start-prayer,
  button.btn-primary {
    background: linear-gradient(
      135deg,
      var(--hover-col) 0%,
      #b8956a 100%
    ) !important;
    border-color: var(--hover-col) !important;
    color: white !important;
  }

  .btn-primary:hover,
  .btn-primary:focus,
  .btn-primary:active,
  .prayer-controls-buttons .btn-primary:hover,
  #start-prayer:hover {
    background: linear-gradient(
      135deg,
      #d4b87a 0%,
      var(--hover-col) 100%
    ) !important;
    border-color: #d4b87a !important;
    color: white !important;
  }

  .btn-secondary,
  .prayer-controls-buttons .btn-secondary,
  #prev-prayer,
  button.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6c7d 100%) !important;
    border-color: #6c757d !important;
    color: white !important;
  }

  .btn-secondary:hover,
  .btn-secondary:focus,
  .btn-secondary:active,
  #prev-prayer:hover {
    background: linear-gradient(135deg, #7a8288 0%, #6c757d 100%) !important;
    border-color: #7a8288 !important;
    color: white !important;
  }

  .btn-success,
  .prayer-controls-buttons .btn-success,
  #next-prayer,
  button.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-color: #28a745 !important;
    color: white !important;
  }

  .btn-success:hover,
  .btn-success:focus,
  .btn-success:active,
  #next-prayer:hover {
    background: linear-gradient(135deg, #34ce57 0%, #28a745 100%) !important;
    border-color: #34ce57 !important;
    color: white !important;
  }

  .btn-warning,
  .prayer-controls-buttons .btn-warning,
  #reset-prayer,
  button.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
  }

  .btn-warning:hover,
  .btn-warning:focus,
  .btn-warning:active,
  #reset-prayer:hover {
    background: linear-gradient(135deg, #ffcd39 0%, #ffc107 100%) !important;
    border-color: #ffcd39 !important;
    color: #212529 !important;
  }

  /* Override any remaining Bootstrap button styles */
  .btn:not(.btn-link) {
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  }
}

@media (max-width: 576px) {
  .rosary-nav .nav-pills {
    flex-direction: column;
  }

  .rosary-nav .nav-pills .nav-link {
    margin: 2px 0;
    text-align: center;
  }

  .prayer-controls-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .prayer-controls-buttons .btn {
    flex: 1 1 45%;
    min-width: 120px;
  }

  .nav-tabs {
    flex-direction: column;
  }

  .nav-tabs .nav-link {
    margin-right: 0;
    margin-bottom: 2px;
    border-radius: 8px;
  }
}

/* Enhanced Light Mode Styling for Better Readability */
.rosary-section {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  color: #212529;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.rosary-section h1,
.rosary-section h2,
.rosary-section h3,
.rosary-section h4,
.rosary-section h5,
.rosary-section h6 {
  color: var(--hover-col);
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.rosary-section p,
.rosary-section li,
.rosary-section span {
  color: #495057;
  line-height: 1.7;
  font-weight: 500;
}

.rosary-section a {
  color: var(--hover-col);
  font-weight: 600;
  text-decoration: underline;
}

.rosary-section a:hover {
  color: #b8956a;
  text-decoration: none;
}

/* Enhanced Interactive Guide Styling */
.interactive-guide {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  color: #212529;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== FORCE LIGHT MODE FOR ROSARY PRAYER PAGE ===== */
/* Complete override of global dark mode for spiritual prayer experience */

/* Main containers - Force white/light backgrounds */
body[data-dark-mode="true"] #rosary-container,
body[data-dark-mode="true"] .rosary-prayer-container,
body[data-dark-mode="true"] .current-prayer-display,
body[data-dark-mode="true"] .prayer-controls,
body[data-dark-mode="true"] .mystery-card,
body[data-dark-mode="true"] .step-content,
body[data-dark-mode="true"] .prayer-text,
body[data-dark-mode="true"] .mystery-meditation,
body[data-dark-mode="true"] .interactive-guide,
body[data-dark-mode="true"] .rosary-section,
body[data-dark-mode="true"] .rosary-nav,
body[data-dark-mode="true"] .nav-pills,
body[data-dark-mode="true"] .accordion,
body[data-dark-mode="true"] .card,
body[data-dark-mode="true"] .card-body,
body[data-dark-mode="true"] .tab-content,
body[data-dark-mode="true"] .tab-pane {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  background-color: #ffffff !important;
  color: #212529 !important;
  border-color: #e9ecef !important;
}

/* Universal text readability - Dark text on light backgrounds (EXCLUDING BUTTONS & BOOTSTRAP UTILITIES) */
body[data-dark-mode="true"] #rosary-container *:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] .rosary-prayer-container *:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] .current-prayer-display *:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] .prayer-controls *:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] .mystery-card *:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] .step-content *:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] .prayer-text *:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] .interactive-guide *:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] .rosary-section *:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] .accordion *:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] .card *:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] .tab-content *:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] .tab-pane *:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation) {
  color: #212529 !important;
  background: transparent !important;
}

/* Specific text elements for maximum coverage (EXCLUDING BUTTONS & BOOTSTRAP UTILITIES) */
body[data-dark-mode="true"] #rosary-container p:not(.btn):not(.bg-success):not(.text-primary),
body[data-dark-mode="true"] #rosary-container span:not(.btn):not(.bg-success):not(.text-primary),
body[data-dark-mode="true"] #rosary-container div:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] #rosary-container li:not(.btn):not(.bg-success):not(.text-primary),
body[data-dark-mode="true"] #rosary-container small:not(.btn):not(.bg-success):not(.text-primary),
body[data-dark-mode="true"] #rosary-container strong:not(.btn):not(.bg-success):not(.text-primary),
body[data-dark-mode="true"] #rosary-container em:not(.btn):not(.bg-success):not(.text-primary),
body[data-dark-mode="true"] #rosary-container i:not(.btn):not(.bg-success):not(.text-primary),
body[data-dark-mode="true"] #rosary-container b:not(.btn):not(.bg-success):not(.text-primary),
body[data-dark-mode="true"] #current-prayer-text:not(.mystery-meditation) {
  color: #212529 !important;
  background: transparent !important;
}

/* Preserve Golden Spiritual Theme - Headings and Accents */
body[data-dark-mode="true"] .prayer-title,
body[data-dark-mode="true"] #current-prayer-title,
body[data-dark-mode="true"] .rosary-section h1,
body[data-dark-mode="true"] .rosary-section h2,
body[data-dark-mode="true"] .rosary-section h3,
body[data-dark-mode="true"] .rosary-section h4,
body[data-dark-mode="true"] .rosary-section h5,
body[data-dark-mode="true"] .rosary-section h6,
body[data-dark-mode="true"] .step-content h5,
body[data-dark-mode="true"] .mystery-card h3,
body[data-dark-mode="true"] .mystery-card h4,
body[data-dark-mode="true"] .mystery-card h5,
body[data-dark-mode="true"] .mystery-card .card-title,
body[data-dark-mode="true"] .step-number,
body[data-dark-mode="true"] .progress-detail,
body[data-dark-mode="true"] .mystery-info h4,
body[data-dark-mode="true"] .mystery-info h5 {
  color: var(--hover-col) !important;
  background: transparent !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Golden accents and borders */
body[data-dark-mode="true"] .current-prayer-display,
body[data-dark-mode="true"] .mystery-card.selected,
body[data-dark-mode="true"] .step-content {
  border-color: var(--hover-col) !important;
}

body[data-dark-mode="true"] .progress-bar {
  background: linear-gradient(90deg, var(--hover-col), var(--hover-col) !important) !important;
}

/* Navigation - Preserve Golden Theme */
body[data-dark-mode="true"] .rosary-nav .nav-link,
body[data-dark-mode="true"] .rosary-nav .nav-pills .nav-link,
body[data-dark-mode="true"] .nav-pills .nav-link {
  background-color: transparent !important;
  color: var(--hover-col) !important;
  border: 2px solid var(--hover-col) !important;
  font-weight: 600 !important;
}

body[data-dark-mode="true"] .rosary-nav .nav-link:hover,
body[data-dark-mode="true"] .rosary-nav .nav-pills .nav-link:hover,
body[data-dark-mode="true"] .nav-pills .nav-link:hover {
  background-color: rgba(200, 169, 112, 0.1) !important;
  color: var(--hover-col) !important;
  border-color: var(--hover-col) !important;
}

body[data-dark-mode="true"] .rosary-nav .nav-link.active,
body[data-dark-mode="true"] .rosary-nav .nav-pills .nav-link.active,
body[data-dark-mode="true"] .nav-pills .nav-link.active,
body[data-dark-mode="true"] .nav-pills .show > .nav-link {
  background-color: var(--hover-col) !important;
  color: #ffffff !important;
  border-color: var(--hover-col) !important;
}

/* Prayer Control Buttons - Preserve EXACT Light Mode Appearance */
body[data-dark-mode="true"] .btn-primary,
body[data-dark-mode="true"] #start-prayer,
body[data-dark-mode="true"] .prayer-controls-buttons .btn-primary,
body[data-dark-mode="true"] .prayer-navigation-buttons .btn-primary {
  background: linear-gradient(135deg, var(--hover-col) 0%, #b8956a 100%) !important;
  background-color: var(--hover-col) !important;
  color: #ffffff !important;
  border-color: var(--hover-col) !important;
  font-weight: 600 !important;
  border-radius: 25px !important;
}

body[data-dark-mode="true"] .btn-primary:hover,
body[data-dark-mode="true"] #start-prayer:hover {
  background: linear-gradient(135deg, #d4b87a 0%, var(--hover-col) 100%) !important;
  color: #ffffff !important;
  border-color: #d4b87a !important;
}

body[data-dark-mode="true"] .btn-success,
body[data-dark-mode="true"] #next-prayer,
body[data-dark-mode="true"] .prayer-controls-buttons .btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  background-color: #28a745 !important;
  color: #ffffff !important;
  border-color: #28a745 !important;
  font-weight: 600 !important;
  border-radius: 25px !important;
}

body[data-dark-mode="true"] .btn-success:hover,
body[data-dark-mode="true"] #next-prayer:hover {
  background: linear-gradient(135deg, #34ce57 0%, #28a745 100%) !important;
  color: #ffffff !important;
  border-color: #34ce57 !important;
}

body[data-dark-mode="true"] .btn-secondary,
body[data-dark-mode="true"] #prev-prayer,
body[data-dark-mode="true"] .prayer-controls-buttons .btn-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #5a6c7d 100%) !important;
  background-color: #6c757d !important;
  color: #ffffff !important;
  border-color: #6c757d !important;
  font-weight: 600 !important;
  border-radius: 25px !important;
}

body[data-dark-mode="true"] .btn-secondary:hover,
body[data-dark-mode="true"] #prev-prayer:hover {
  background: linear-gradient(135deg, #7a8288 0%, #6c757d 100%) !important;
  color: #ffffff !important;
  border-color: #7a8288 !important;
}

body[data-dark-mode="true"] .btn-warning,
body[data-dark-mode="true"] #reset-prayer,
body[data-dark-mode="true"] .prayer-controls-buttons .btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
  background-color: #ffc107 !important;
  color: #212529 !important;
  border-color: #ffc107 !important;
  font-weight: 600 !important;
  border-radius: 25px !important;
}

body[data-dark-mode="true"] .btn-warning:hover,
body[data-dark-mode="true"] #reset-prayer:hover {
  background: linear-gradient(135deg, #ffcd39 0%, #ffc107 100%) !important;
  color: #212529 !important;
  border-color: #ffcd39 !important;
}

/* Form Elements - Light Mode Styling */
body[data-dark-mode="true"] .form-select,
body[data-dark-mode="true"] .form-control,
body[data-dark-mode="true"] #mystery-select,
body[data-dark-mode="true"] #font-size-toggle {
  background-color: #ffffff !important;
  color: #212529 !important;
  border: 2px solid #e9ecef !important;
  border-radius: 8px !important;
}

body[data-dark-mode="true"] .form-select:focus,
body[data-dark-mode="true"] .form-control:focus,
body[data-dark-mode="true"] #mystery-select:focus {
  background-color: #ffffff !important;
  color: #212529 !important;
  border-color: var(--hover-col) !important;
  box-shadow: 0 0 0 0.2rem rgba(200, 169, 112, 0.25) !important;
}

/* Progress Elements */
body[data-dark-mode="true"] .progress {
  background-color: #e9ecef !important;
  border: 1px solid #dee2e6 !important;
}

body[data-dark-mode="true"] .progress-text,
body[data-dark-mode="true"] .progress-detail {
  color: #495057 !important;
  background: transparent !important;
}

/* Audio Player Elements */
body[data-dark-mode="true"] .rosary-audio-player,
body[data-dark-mode="true"] .audio-player {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  color: #212529 !important;
  border-color: #e9ecef !important;
}

/* Audio Player Dark Mode - Fixed Player Container */
body[data-dark-mode="true"] #player-container {
  background: #2d2d2d !important;
  border-top: 1px solid #444 !important;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3) !important;
}

body[data-dark-mode="true"] #player-container .audio-player {
  background: #2d2d2d !important;
}

body[data-dark-mode="true"] #player-container .play-button,
body[data-dark-mode="true"] #player-container .volume-button,
body[data-dark-mode="true"] #player-container .settings-button {
  color: #e0e0e0 !important;
}

body[data-dark-mode="true"] #player-container .play-button:hover,
body[data-dark-mode="true"] #player-container .volume-button:hover,
body[data-dark-mode="true"] #player-container .settings-button:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

body[data-dark-mode="true"] #player-container .time-display {
  color: #b0b0b0 !important;
}

body[data-dark-mode="true"] #player-container .progress-bar {
  background: #444 !important;
}

body[data-dark-mode="true"] #player-container .progress-bar::-webkit-slider-thumb {
  background: var(--hover-col) !important;
}

body[data-dark-mode="true"] #player-container .progress-bar::-moz-range-thumb {
  background: var(--hover-col) !important;
}

body[data-dark-mode="true"] #player-container .volume-slider {
  background: #444 !important;
}

body[data-dark-mode="true"] #player-container .volume-slider::-webkit-slider-thumb {
  background: var(--hover-col) !important;
}

body[data-dark-mode="true"] #player-container .volume-slider::-moz-range-thumb {
  background: var(--hover-col) !important;
}

/* Accordion and Tab Elements */
body[data-dark-mode="true"] .accordion .card-header,
body[data-dark-mode="true"] .accordion .btn-link,
body[data-dark-mode="true"] .nav-tabs .nav-link {
  background-color: #ffffff !important;
  color: #212529 !important;
  border-color: #e9ecef !important;
}

body[data-dark-mode="true"] .accordion .btn-link:hover,
body[data-dark-mode="true"] .nav-tabs .nav-link:hover {
  color: var(--hover-col) !important;
  background-color: rgba(200, 169, 112, 0.1) !important;
}

/* Ultimate Override - Catch-all for any missed elements (EXCLUDING BUTTONS & BOOTSTRAP UTILITIES) */
body[data-dark-mode="true"] [id*="rosary"]:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] [class*="rosary"]:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] [id*="prayer"]:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] [class*="prayer"]:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation),
body[data-dark-mode="true"] [id*="mystery"]:not(.btn):not(.nav-link):not(.bg-success):not(.text-primary):not(.progress):not(.progress-bar):not(.mystery-meditation) {
  background-color: inherit !important;
  color: inherit !important;
}

/* Ensure the main rosary container overrides everything */
body[data-dark-mode="true"] #rosary-container {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  color: #212529 !important;
  border-radius: 15px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Force light mode for any potential dark mode classes */
body[data-dark-mode="true"] .dark,
body[data-dark-mode="true"] .dark-mode,
body[data-dark-mode="true"] .bg-dark {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #212529 !important;
}

/* ===== PRESERVE SPECIFIC BOOTSTRAP AND ROSARY COMPONENTS ===== */

/* 1. Bootstrap Success Elements - Preserve Green Background */
body[data-dark-mode="true"] .bg-success,
body[data-dark-mode="true"] #rosary-container .bg-success,
body[data-dark-mode="true"] .rosary-prayer-container .bg-success {
  background-color: #28a745 !important;
  color: #ffffff !important;
  border-color: #28a745 !important;
}

/* 2. Primary Text Elements - Preserve Brand Primary Color */
body[data-dark-mode="true"] .text-primary,
body[data-dark-mode="true"] #rosary-container .text-primary,
body[data-dark-mode="true"] .rosary-prayer-container .text-primary,
body[data-dark-mode="true"] .display-4.text-primary,
body[data-dark-mode="true"] div.text-primary,
body[data-dark-mode="true"] span.text-primary,
body[data-dark-mode="true"] h1.text-primary,
body[data-dark-mode="true"] h2.text-primary,
body[data-dark-mode="true"] h3.text-primary,
body[data-dark-mode="true"] h4.text-primary,
body[data-dark-mode="true"] h5.text-primary,
body[data-dark-mode="true"] h6.text-primary {
  color: #007bff !important;
  background: transparent !important;
}

/* 3. Progress Bar Components - Preserve Light Mode Styling */
body[data-dark-mode="true"] .progress,
body[data-dark-mode="true"] #rosary-container .progress,
body[data-dark-mode="true"] .prayer-progress .progress {
  background-color: #e9ecef !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 0.375rem !important;
}

body[data-dark-mode="true"] .progress-bar,
body[data-dark-mode="true"] #prayer-progress-bar,
body[data-dark-mode="true"] #rosary-container .progress-bar,
body[data-dark-mode="true"] .prayer-progress .progress-bar {
  background: linear-gradient(90deg, var(--hover-col), var(--hover-col) !important) !important;
  background-color: var(--hover-col) !important;
  color: #000000 !important;
  font-weight: bold !important;
}

/* 4. Mystery Meditation Section - Preserve Light Golden Theme */
body[data-dark-mode="true"] .mystery-meditation,
body[data-dark-mode="true"] #current-mystery-meditation,
body[data-dark-mode="true"] #rosary-container .mystery-meditation {
  background: linear-gradient(135deg, rgba(200, 169, 112, 0.15), rgba(200, 169, 112, 0.08)) !important;
  color: #495057 !important;
  border-left: 5px solid var(--hover-col) !important;
  border: 1px solid rgba(200, 169, 112, 0.3) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 15px rgba(200, 169, 112, 0.1) !important;
  font-weight: 500 !important;
  font-style: italic !important;
  padding: 1.5rem !important;
}

/* Mystery Meditation Content - All nested elements */
body[data-dark-mode="true"] .mystery-meditation *,
body[data-dark-mode="true"] #current-mystery-meditation *,
body[data-dark-mode="true"] .mystery-meditation p,
body[data-dark-mode="true"] .mystery-meditation strong,
body[data-dark-mode="true"] .mystery-meditation em,
body[data-dark-mode="true"] .mystery-meditation span,
body[data-dark-mode="true"] .mystery-meditation small {
  color: #495057 !important;
  background: transparent !important;
}

/* ===== END ROSARY LIGHT MODE OVERRIDE ===== */

/* ===== HOME PAGE ROSARY RECOMMENDATION DARK MODE STYLING ===== */

/* Today's Rosary Recommendation Section - Dark Mode Contrast */
body[data-dark-mode="true"] #todays-recommendation {
  background-color: #1a1a1a !important;
  border-color: #444444 !important;
  color: #ffffff !important;
}

body[data-dark-mode="true"] #todays-recommendation h5 {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

body[data-dark-mode="true"] #todays-recommendation p {
  color: #e0e0e0 !important;
}

body[data-dark-mode="true"] #todays-recommendation strong {
  color: var(--hover-col) !important;
  font-weight: 700 !important;
}

body[data-dark-mode="true"] #todays-recommendation .btn-primary {
  background: linear-gradient(135deg, var(--hover-col) 0%, #b8956a 100%) !important;
  background-color: var(--hover-col) !important;
  color: #ffffff !important;
  border-color: var(--hover-col) !important;
  font-weight: 600 !important;
  border-radius: 25px !important;
}

body[data-dark-mode="true"] #todays-recommendation .btn-primary:hover {
  background: linear-gradient(135deg, #d4b87a 0%, var(--hover-col) 100%) !important;
  color: #ffffff !important;
  border-color: #d4b87a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(200, 169, 112, 0.3) !important;
}

/* ===== END HOME PAGE ROSARY RECOMMENDATION STYLING ===== */

/* Print Styles for Rosary Page */
@media print {
  .rosary-nav,
  .prayer-controls,
  .rosary-audio-player {
    display: none !important;
  }

  .rosary-prayer-container {
    background: white !important;
    box-shadow: none !important;
    padding: 1rem !important;
  }

  .prayer-text {
    background: white !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  .step-content {
    background: white !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  .current-prayer-display {
    background: white !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* Touch Gesture Styles */
.current-prayer-display.touch-enabled {
  touch-action: pan-y; /* Allow vertical scrolling but handle horizontal gestures */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.current-prayer-display.touching {
  cursor: grabbing;
  -webkit-cursor: grabbing;
}

/* Swipe Animation Styles */
.current-prayer-display {
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
  transform-origin: center center;
  position: relative;
  overflow: hidden;
}

/* Enhanced swipe visual feedback */
.current-prayer-display.touching {
  cursor: grabbing;
  -webkit-cursor: grabbing;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Smooth transitions for prayer changes */
.current-prayer-display.swipe-transition {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Spiritual glow effect during interactions */
.current-prayer-display:hover {
  box-shadow: 0 10px 30px rgba(200, 169, 112, 0.1);
}

/* Final Bootstrap Override - Ensure no blue colors anywhere */
.rosary-nav .nav-pills .nav-link.active,
.rosary-nav .nav-pills .show > .nav-link,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--hover-col) !important;
  color: white !important;
  border-color: var(--hover-col) !important;
}

/* Remove any Bootstrap focus outlines that might show blue */
.rosary-nav .nav-pills .nav-link:focus {
  outline: none !important;
  box-shadow: 0 0 0 0.2rem rgba(200, 169, 112, 0.25) !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Progress Statistics Cards */
#progress-stats .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#progress-stats .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Today's Recommendation Banner */
#todays-recommendation, .misteri-rosario-berdasarkan-hari {
  border: 2px solid var(--hover-col);
  background: linear-gradient(
    135deg,
    rgba(200, 169, 112, 0.1),
    rgba(212, 175, 55, 0.1)
  );
  animation: fadeIn 1s ease-in;
}

#todays-recommendation .btn, .misteri-rosario-berdasarkan-hari .btn {
  background: linear-gradient(135deg, var(--hover-col), var(--hover-col) !important);
  border: none;
  transition: all 0.3s ease;
}

#todays-recommendation .btn:hover, .misteri-rosario-berdasarkan-hari .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(200, 169, 112, 0.4);
}

/* Completion Message Styling */
.completion-message {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border: 2px solid #28a745;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  animation: fadeIn 1s ease-in;
}

/* Badge for "Hari Ini" */
.mystery-card .badge {
  animation: pulse 2s infinite;
  color: white;
}

/* ===== ACCESSIBILITY FEATURES ===== */

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .rosary-prayer-container {
    border: 3px solid #000;
    background: #fff;
    color: #000;
  }

  .mystery-card {
    border: 2px solid #000;
    background: #fff;
    color: #000;
  }

  .prayer-text {
    /* border: 2px solid #000;
    background: #fff;
    color: #000; */
  }

  .step-number {
    background: #000;
    color: #fff;
    border: 2px solid #000;
  }

  .btn {
    border: 2px solid #000 !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .rosary-section,
  .mystery-card,
  .step-content,
  .prayer-text,
  .fade-in,
  .slide-in-left,
  .pulse {
    animation: none !important;
    transition: none !important;
  }

  .mystery-card:hover,
  .prayer-controls-buttons .btn:hover {
    transform: none !important;
  }
}

/* Font Size Control */
#font-size-toggle {
  min-width: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  position: relative;
  transition: all 0.3s ease;
}

#font-size-toggle:hover {
  background-color: var(--hover-col);
  border-color: var(--hover-col);
  color: white;
  transform: translateY(-1px);
}

#font-size-toggle:active {
  transform: translateY(0);
}

/* Prayer Navigation Buttons */
.prayer-navigation-buttons {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid rgba(200, 169, 112, 0.2);
  margin-top: 20px;
}

/* Ensure proper spacing between all buttons */
.prayer-navigation-buttons .btn:not(:last-child) {
  margin-right: 15px;
}

.prayer-navigation-buttons .btn {
  min-height: 44px;
  min-width: 120px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.prayer-navigation-buttons .btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.prayer-navigation-buttons .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Font Size Classes */
.prayer-text.font-small {
  font-size: 0.9rem;
  line-height: 1.4;
}

.prayer-text.font-medium {
  font-size: 1.1rem;
  line-height: 1.5;
}

.prayer-text.font-large {
  font-size: 1.3rem;
  line-height: 1.6;
}

/* Mobile Responsiveness for New Controls */
@media (max-width: 768px) {
  .prayer-navigation-buttons {
    flex-direction: column;
    gap: 20px;
    padding: 25px 15px;
    margin-top: 25px;
  }

  .prayer-navigation-buttons .btn {
    width: 100%;
    min-width: auto;
    padding: 16px 20px;
    font-size: 1.1rem;
    margin-bottom: 0;
  }

  .prayer-navigation-buttons .btn + .btn {
    margin-top: 15px;
  }

  .prayer-controls-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .prayer-controls-buttons .btn {
    min-height: 48px;
    padding: 14px 20px;
    width: 100%;
    font-size: 1.1rem;
    margin: 0;
    border-radius: 8px;
    font-weight: 500;
  }

  /* Reorder buttons for better mobile UX */
  #start-prayer {
    order: 1;
  }

  #next-prayer {
    order: 2;
  }

  #prev-prayer {
    order: 3;
  }

  #font-size-toggle {
    order: 4;
    min-width: auto;
    width: 100%;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
  }

  #reset-prayer {
    order: 5;
  }

  .prayer-controls {
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .current-prayer-display {
    padding: 20px 15px;
  }

  .prayer-text {
    padding: 15px 0;
    line-height: 1.6;
  }

  .prayer-title {
    padding: 10px 0;
    font-size: 1.2rem;
  }

  .mystery-meditation {
    margin: 15px 0;
    padding: 15px;
  }

  /* Ensure touch targets are large enough */
  .prayer-controls-buttons .btn,
  .prayer-navigation-buttons .btn {
    min-height: 48px;
    touch-action: manipulation;
  }

  /* Main navigation buttons spacing on mobile */
  .text-center .btn-lg {
    display: block;
    width: 100%;
    margin: 0 0 15px 0 !important;
  }

  .text-center .btn-lg:last-child {
    margin-bottom: 0 !important;
  }

  /* Override any margin-left classes on mobile */
  .text-center .btn-lg.ml-2 {
    margin-left: 0 !important;
  }

  /* Better spacing for mystery selector */
  .mystery-selector {
    margin-bottom: 20px;
  }

  .mystery-selector .form-select,
  .mystery-selector select {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Progress bar improvements */
  .prayer-progress {
    margin-bottom: 20px;
  }

  .progress {
    height: 8px;
    border-radius: 4px;
  }
}

/* Focus Indicators for Keyboard Navigation */
.rosary-nav .nav-link:focus,
.mystery-card:focus,
.prayer-controls-buttons .btn:focus,
.prayer-navigation-buttons .btn:focus,
.accordion .btn-link:focus {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.3);
}

/* Skip to Content Link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  font-weight: bold;
}

.skip-to-content:focus {
  top: 6px;
  color: #fff;
  text-decoration: none;
}

/* Screen Reader Only Content */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Ensure sufficient color contrast */
.text-muted {
  color: #6c757d !important; /* Meets WCAG AA contrast ratio */
}

/* Focus management for interactive elements */
.mystery-card {
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mystery-card:focus {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

.mystery-card[tabindex="0"] {
  /* Make mystery cards keyboard accessible */
}

/* Ensure buttons have sufficient size for touch targets */
.prayer-controls-buttons .btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 1.5rem;
}

/* Progress bar accessibility */
.progress {
  background-color: #e9ecef;
  border: 1px solid #dee2e6;
}

.progress-bar {
  background: linear-gradient(90deg, var(--hover-col), var(--hover-col) !important);
  color: #000; /* Ensure text is readable */
  font-weight: bold;
}

/* Form labels and inputs */
.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-select {
  border: 2px solid #ced4da;
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 1rem;
  background-color: #fff;
  color: #495057;
  box-sizing: border-box;
}

.form-select:focus {
  border-color: #005fcc;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 95, 204, 0.25);
}

/* Error and success states */
.alert {
  border-radius: 8px;
  border: 2px solid;
  font-weight: 500;
}

.alert-info {
  border-color: #bee5eb;
  background-color: #d1ecf1;
  color: #0c5460;
}

.alert-success {
  border-color: #c3e6cb;
  background-color: #d4edda;
  color: #155724;
}

/* Ensure interactive elements are distinguishable */
button,
.btn {
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

button:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Language and reading direction support */
[lang="id"] {
  font-family: "Open Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Print accessibility */
@media print {
  .skip-to-content,
  .rosary-nav,
  .prayer-controls,
  .rosary-audio-player {
    display: none !important;
  }

  .rosary-prayer-container {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }

  .prayer-text {
    background: white !important;
    color: black !important;
    border: 1px solid black !important;
  }

  /* Ensure page breaks don't split important content */
  .step-item,
  .mystery-card,
  .prayer-text {
    page-break-inside: avoid;
  }
}
