@media only screen and (max-width: 1200px) {
  .lyric-alphabet ul li a {
    font-size: 13px;
    padding: 0px 11px;
    display: inline-block;
  }

  .js .navigate {
    display: none;
  }

  .js .slicknav_menu {
    display: block;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
  .full-screen-list-inside ul li {
    margin-right: 17px !important;
  }

  .full-screen-inside-responsive ul li {
    margin-right: 15px !important;
  }
}

@media only screen and (max-width: 991px) {
  .js .navigate {
    display: none;
  }

  .js .slicknav_menu {
    display: block;
  }

  .social-icons {
    margin-right: 60px;
  }

  .pre-header {
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
  }

  .pre-header::-webkit-scrollbar {
    display: none;
  }

  .owl-next {
    right: 0 !important;
    width: 50px !important;
    height: 80px !important;
  }

  .owl-prev {
    left: 0 !important;
    width: 50px !important;
    height: 80px !important;
  }

  #popular-list .owl-prev:after {
    top: 20px;
    left: 10px;
  }

  #popular-list .owl-next:after {
    top: 20px;
    left: 15px;
  }

  #popular-listr .owl-prev {
    position: absolute;
    left: -45px;
    top: 50%;
    width: 75px;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    margin-top: -50px;
  }
  #popular-listr .owl-prev:after {
    content: "\f053";
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    text-decoration: inherit;
    color: #000 !important;
    font-size: 35px;
    position: absolute;
    top: 30px;
    left: 15px;
  }
  #popular-listr .owl-next {
    position: absolute;
    right: -45px;
    top: 50%;
    width: 75px;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    margin-top: -50px;
  }
  #popular-listr .owl-next:after {
    content: "\f054";
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    text-decoration: inherit;
    color: #000 !important;
    font-size: 35px;
    position: absolute;
    top: 30px;
    left: 15px;
  }

  .lyric-search {
    padding: 7% 0 !important;
  }
}

@media only screen and (max-width: 767px) {
  .latest-lyrics ul li {
    width: 50%;
  }

  .logo {
    padding-left: 15px;
  }

  .latest-lyrics ul li:nth-child(2n + 1) {
    background: #fff;
  }

  .search-wrapper {
    width: 75%;
  }

  .social-icons {
    margin-right: 65px;
  }

  .full-screen-list-inside ul li {
    width: 96% !important;
    height: 400px;
    background-position: center top !important;
  }

  .item {
    height: 400px;
  }

  .background-single-lyrics,
  .single-lyrics-overlay {
    height: 350px !important;
    padding-bottom: 350px !important;
  }

  .big-letter {
    margin-top: 50px;
  }

  .full-screen-inside-responsive ul li {
    margin-left: 8px !important;
  }

  .lyric-search h1 {
    font-size: 29px;
    line-height: 29px;
  }

  .lyrics-title h1 {
    font-size: 25px;
    /* line-height: 5px; */
  }
  body.dark-mode .lyrics-title h1 {
    font-size: 25px;
    /* line-height: 5px; */
  }

  .footer-menu #nav li {
    float: none;
    margin: 0;
    padding: 0;
  }

  .footer-menu {
    text-align: right;
  }

  .header-search,
  .social-icons {
    display: none;
  }
}

/* Tablet Portrait size to Tablet Landscape (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .full-screen-list-inside ul li {
    margin-right: 21px !important;
  }

  .full-screen-inside-responsive ul li {
    margin-right: 18px !important;
  }
}

@media only screen and (max-width: 767px) {
  .latest-lyrics ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .latest-lyrics ul li {
    padding: 16px 24px;
    display: flex;
  }

  .latest-lyrics ul li .lyric-content {
    flex: 1;
  }

  .latest-lyrics ul li:nth-child(2n + 2) {
    background: transparent;
  }

  .latest-lyrics ul li:nth-child(4n-1),
  .latest-lyrics ul li:nth-child(4n) {
    background: #f9f9f9;
  }
}

/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
@media only screen and (max-width: 479px) {
  .latest-lyrics ul li {
    width: 100%;
  }

  .footer-logo {
    width: 30%;
  }

  .footer-menu {
    width: 70%;
  }

  #mini-search-wrapper {
    left: -160px;
  }

  #mini-search-wrapper:before {
    right: 120px !important;
  }

  .latest-lyrics ul {
    display: grid;
    grid-template-columns: 1fr;
  }

  .latest-lyrics ul li:nth-child(2n + 2) {
    background: transparent;
  }

  .latest-lyrics ul li:nth-child(4n-1),
  .latest-lyrics ul li:nth-child(4n) {
    background: transparent;
  }

  .latest-lyrics ul li:nth-child(2n) {
    background: #f9f9f9;
  }
}
/* Bible Quiz Responsive Styles with Accessibility Enhancements */

/* High contrast and accessibility improvements */
.bible-quiz-container {
  /* Ensure sufficient color contrast */
  color: #333;
  background: #fff;
}

.quiz-question {
  /* High contrast for readability */
  color: #222;
  font-weight: 600;
  line-height: 1.5;
  /* Better focus management */
  outline: none;
}

.quiz-option {
  /* Improved touch targets for mobile */
  min-height: 48px;
  min-width: 48px;
  /* High contrast borders */
  border: 2px solid #666;
  /* Better focus indicators */
  outline: none;
  transition: all 0.2s ease;
  /* Ensure text is readable */
  color: #333;
  font-weight: 500;
  line-height: 1.4;
}

.quiz-option:focus {
  /* High contrast focus indicator */
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
  background: #f0f8ff;
}

.quiz-option:hover {
  /* Maintain accessibility on hover */
  border-color: #e4422e;
  background: #fff5f5;
  /* Ensure text remains readable */
  color: #333;
}

.quiz-option.selected {
  /* Clear visual feedback for selection */
  border-color: #0066cc;
  background: #e6f3ff;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.quiz-option.correct {
  /* High contrast success state */
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.quiz-option.incorrect {
  /* High contrast error state */
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.quiz-option.disabled {
  /* Clear disabled state */
  opacity: 0.7;
  cursor: not-allowed;
}

/* Button accessibility improvements */
.quiz-btn {
  /* Adequate touch target size */
  min-height: 44px;
  min-width: 44px;
  padding: 12px 24px;
  /* High contrast */
  background: #e4422e;
  color: #fff;
  border: 2px solid #e4422e;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.quiz-btn:focus {
  /* Clear focus indicator */
  box-shadow: 0 0 0 3px rgba(228, 66, 46, 0.3);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.quiz-btn:hover {
  background: #c73622;
  border-color: #c73622;
}

.quiz-btn:disabled {
  background: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

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

/* Skip link for keyboard navigation */
.skip-quiz {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
}

.skip-quiz:focus {
  top: 6px;
}

/* Progress indicators with better accessibility */
.quiz-progress-container {
  margin: 15px 0;
  background: #f0f0f0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: #28a745;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.quiz-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.quiz-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  border: 2px solid #ccc;
  transition: all 0.2s ease;
}

.quiz-dot.current {
  background: #0066cc;
  border-color: #0066cc;
  transform: scale(1.2);
}

.quiz-dot.completed {
  background: #28a745;
  border-color: #28a745;
}

/* Ensure consistent spacing with other sections on all screen sizes */
@media only screen and (max-width: 1200px) {
  .bible-quiz-container {
    padding: 25px 18px 18px 18px;
  }
}

/* Tablet and smaller screens */
@media only screen and (max-width: 991px) {
  .bible-quiz-container {
    padding: 22px 16px 16px 16px;
  }

  .quiz-options {
    gap: 12px;
  }

  .quiz-option {
    padding: 12px;
    min-height: 55px;
    font-size: 13px;
  }

  .quiz-question {
    font-size: 16px;
    padding: 12px;
  }
}

/* Mobile screens with enhanced accessibility */
@media only screen and (max-width: 767px) {
  .bible-quiz-container {
    padding: 20px 15px 15px 15px;
  }

  .quiz-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quiz-option {
    padding: 18px;
    min-height: 56px; /* Larger touch target for mobile */
    font-size: 16px; /* Prevent zoom on iOS */
    /* Enhanced mobile touch feedback */
    -webkit-tap-highlight-color: rgba(0, 102, 204, 0.2);
    touch-action: manipulation;
  }

  .quiz-option:hover {
    transform: none; /* Remove hover effects on touch devices */
  }

  .quiz-option:active {
    /* Immediate feedback on touch */
    background: #e6f3ff;
    transform: scale(0.98);
  }

  .quiz-question {
    font-size: 18px; /* Larger text for mobile readability */
    padding: 18px;
    line-height: 1.6;
  }

  .quiz-btn {
    padding: 16px 32px;
    font-size: 16px; /* Prevent zoom on iOS */
    width: 100%;
    max-width: 280px;
    min-height: 48px;
    /* Enhanced touch feedback */
    -webkit-tap-highlight-color: rgba(228, 66, 46, 0.2);
    touch-action: manipulation;
  }

  .quiz-btn:active {
    transform: scale(0.98);
  }

  .quiz-completion {
    padding: 25px 15px;
  }

  .quiz-completion h4 {
    font-size: 22px;
    line-height: 1.4;
  }

  .quiz-score {
    font-size: 20px;
    line-height: 1.5;
  }

  /* Mobile-specific progress indicators */
  .quiz-dots {
    gap: 12px;
  }

  .quiz-dot {
    width: 16px;
    height: 16px;
    /* Better touch targets */
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile feedback improvements */
  .quiz-feedback {
    padding: 18px;
    font-size: 16px;
    line-height: 1.6;
    border-radius: 8px;
    margin: 15px 0;
  }

  /* Ensure text remains readable on mobile */
  .quiz-option-text,
  .quiz-question-text {
    word-wrap: break-word;
    hyphens: auto;
  }
}

/* Small mobile screens with maximum accessibility */
@media only screen and (max-width: 479px) {
  .bible-quiz-container {
    padding: 15px 10px 10px 10px;
    margin-top: 15px;
  }

  .quiz-question {
    font-size: 16px; /* Maintain readable size */
    padding: 15px;
    line-height: 1.6;
  }

  .quiz-option {
    padding: 16px;
    min-height: 52px; /* Maintain adequate touch target */
    font-size: 15px; /* Readable text size */
    /* Enhanced touch feedback for small screens */
    -webkit-tap-highlight-color: rgba(0, 102, 204, 0.3);
  }

  .quiz-option-label {
    font-size: 16px;
    font-weight: 600;
  }

  .quiz-feedback {
    padding: 15px;
    font-size: 15px;
    line-height: 1.6;
  }

  .quiz-btn {
    padding: 14px 28px;
    font-size: 15px; /* Readable button text */
    min-height: 48px;
  }

  .quiz-completion h4 {
    font-size: 20px;
    line-height: 1.4;
  }

  .quiz-score {
    font-size: 18px;
    line-height: 1.5;
  }

  /* Enhanced small screen optimizations */
  .bible-quiz-container * {
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
  }

  /* Improved spacing for small screens */
  .quiz-options {
    gap: 10px;
  }

  .quiz-progress-container {
    margin: 12px 0;
  }

  .quiz-dots {
    gap: 8px;
  }

  .quiz-dot {
    width: 14px;
    height: 14px;
    min-width: 20px;
    min-height: 20px;
  }

  /* Ensure adequate spacing between elements */
  .quiz-feedback {
    margin: 12px 0;
  }

  .quiz-controls {
    margin-top: 15px;
  }
}

/* Dark mode support for Bible Quiz */
body.dark-mode #quiz-feedback-container.incorrect {
  background: #f8d7da;
  border-left-color: #dc3545 !important;
  color: #000 !important;
  animation: incorrectFeedback 0.5s ease;
}
body.dark-mode #quiz-progress {
  margin-bottom: 20px;
  padding: 15px;
  background: #555;
  border-color: #666 !important;
  border-radius: 6px;
  text-align: center;
}
body.dark-mode .question-text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: #333;
  padding: 20px;
  background: #555;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  border-color: #666 !important;
}
body.dark-mode .question-metadata {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px 15px;
  background: #555 !important;
  border-radius: 6px;
  border-left: 4px solid #e4422e !important;
}
body.dark-mode .bible-quiz-container {
  background: #444 !important;
  color: #fff !important;
}

body.dark-mode .quiz-question {
  background: #555 !important;
  color: #fff !important;
  border-left-color: #e4422e;
}

body.dark-mode .quiz-option {
  background: #555 !important;
  border-color: #666 !important;
  color: #fff !important;
}

body.dark-mode .quiz-option:hover {
  background: #666 !important;
  border-color: #e4422e !important;
}

body.dark-mode .quiz-option.selected {
  background: #666 !important;
  border-color: #e4422e !important;
}

body.dark-mode .quiz-completion {
  background: #555 !important;
  color: #fff !important;
}

body.dark-mode .quiz-feedback-reference {
  color: #ccc !important;
}

body.dark-mode .quiz-question-counter {
  color: #ccc !important;
}

/* Print Styles - Hide Bible Quiz when printing */
@media print {
  .bible-quiz-container {
    display: none !important;
  }

  /* Ensure proper spacing when quiz is hidden */
  .latest-lyrics-container {
    margin-bottom: 0 !important;
  }
}
/* Additional integration styles for Bible Quiz */

/* Ensure quiz integrates well with existing layout on all screen sizes */
@media only screen and (min-width: 1201px) {
  .bible-quiz-container {
    max-width: none;
    width: 100%;
  }
}

/* Integration fixes for tablet landscape */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .bible-quiz-container {
    padding: 24px 18px 18px 18px;
  }

  .bible-quiz-container .title h3 {
    font-size: 20px;
  }
}

/* Ensure quiz doesn't interfere with other homepage features */
@media only screen and (max-width: 1200px) {
  .bible-quiz-container .quiz-option {
    transition: all 0.2s ease;
  }

  .bible-quiz-container .quiz-feedback {
    animation-duration: 0.2s;
  }
}

/* Hide quiz-related elements in print */
@media print {
  .quiz-content,
  .quiz-question,
  .quiz-options,
  .quiz-feedback,
  .quiz-controls,
  .quiz-completion {
    display: none !important;
  }
}
