:root {
    --primary-color: #0C4535;
    --secondary-color: #085c44;
    --text-color: #333;
    --light-bg: #f8f9fa;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    background: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
  }

  h1, h2, h3, h4, h5 {
    font-weight: 600;
    line-height: 1.3;
  }

  .para-title {
    color: var(--primary-color);
  }

  .breadcrumb {
    background: transparent;
    font-size: 0.9rem;
  }

  .reader-container {
    border-radius: 12px;
    background: #fff;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
  }
  
  .reader-container:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  .quran-page {
    display: none;
    text-align: center;
    padding: 1rem;
  }
  
  .quran-page.active {
    display: block;
    animation: fadeIn 0.5s ease;
  }
  
  @keyframes fadeIn {
    from {opacity:0;}
    to {opacity:1;}
  }

  .quran-image {
    max-width: 100%;
    height: 500px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  
  /* Responsive image container */
  .image-container {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
  }

  /* Navigation Buttons */
  .nav-button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 10;
  }
  
  .nav-button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
  }
  
  .nav-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
  }

  .card-header {
    border-radius: 12px 12px 0 0 !important;
  }

  .translation-panel .btn.active {
    background: var(--primary-color);
    color: #fff;
  }

  .list-group-item {
    border: none;
    padding: 0.7rem 1rem;
  }

 
  
  /* Loading spinner */
  .loader {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(12, 69, 53, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .nav-button {
      padding: 0.6rem 0.8rem;
      font-size: 1rem;
    }
    
    .display-5 {
      font-size: 2rem;
    }
    
    .reader-container {
      border-radius: 8px;
    }
  }
  
  @media (max-width: 576px) {
    .nav-button {
      padding: 0.5rem 0.6rem;
      font-size: 0.9rem;
      position: relative;
      margin: 0 5px;
    }
    
    .page-viewer {
      padding: 0.5rem;
    }
    
    .quran-page {
      padding: 0.5rem;
    }
  }
  
  /* Quran Page Image Sizing */
  .quran-image {
    width: 100%;
    height: auto;
    max-width: 480px;  /* Keeps readability size like real Mushaf */
    margin: 0 auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  /* Make container centered */
  .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }

  /* Adjust for tablets */
  @media (max-width: 992px) {
    .quran-image {
      max-width: 400px;
    }
  }

  /* Adjust for mobiles */
  @media (max-width: 576px) {
    .quran-image {
      max-width: 95%; /* almost full screen */
    }
  }
  
  .readbutton {
    display: block;
    margin: 20px auto;
    background-color: #0C4535; /* your theme primary */
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: absolute;
  }

  .readbutton:hover {
    background-color: #1a6d54; /* lighter green */
    transform: scale(1.05);
  }

  .readbutton:active {
    transform: scale(0.97);
  }
  
  /* Reading Mode Styles */
  .reading-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  .reading-mode.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }
  
  .reading-header {
    width: 100%;
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
  }
  
  .reading-content {
    width: 100%;
    height: calc(100% - 120px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
  }
  
  .reading-image {
    max-width: 42%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  }
  
  .reading-nav {
    width: 100%;
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10000;
    gap: 200px;
  }
  
  .close-reading {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .reading-nav-button {
    background: #1a6d54;
    color: white;
    border: none;
    padding: 5px 13px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .reading-nav-button:hover {
    background:rgb(22, 95, 73);
  }
  
  .reading-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .page-indicator {
    color: white;
    font-size: 1.1rem;
    margin: 0 15px;
  }
  
  @media (max-width: 768px) {
    .reading-image {
      max-width: 95%;
      max-height: 95%;
    }
    
    .reading-nav-button {
      padding: 3px 8px;
      font-size: 0.98rem;
    }
  }
@media (max-width: 768px) {
  .reading-image {
      max-width: 75%;
      max-height: 95%;
  }
  .reading-header span{
          font-size: 12px;
      margin: 2px;
  }
}
/* Tablet only: between 601px and 768px */
@media (min-width: 601px) and (max-width: 768px) {
.reading-image {
  max-width: 41%;
  max-height: 12%;
}
  .reading-header span {
  font-size: 12px;
}
}
.reading-header span{
          font-size: 12px;
      margin: 2px;
  }