/* ----------------------------------------------------------
   Modern Quran Interface Stylesheet
   Clean, Contemporary, and Responsive
   ---------------------------------------------------------- */

/* Font Imports */
@font-face {
  font-family: "me_quran";
  src: local("me_quran"), url("../fonts/me_quran.ttf");
}
@font-face {
  font-family: "KFGQPC Uthmanic Script HAFS";
  src: local("KFGQPC Uthmanic Script HAFS"), url("../fonts/UthmanicHafs.ttf");
}
@font-face {
  font-family: "kitab";
  src: local("kitab"), url("../fonts/Kitab-Regular.ttf");
}
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

html {
  scroll-behavior: smooth;
}

body {
    background: #1d181a url("https://images.pexels.com/photos/774146/pexels-photo-774146.jpeg") repeat center top;
  color: #333;
  font-family: "Roboto", Tahoma, Arial, sans-serif;
  line-height: 1.7;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

#languages {
    display: none;
}

/* ==========================================================
   Dropdown style to match your screenshot (grey pill + icon)
   Target: <select id="quranLanguage">...</select>
   ========================================================== */

#quranLanguage{
  width: 100%;
  max-width: 520px;
  height: 44px;

  /* pill look */
  background-color: #6f737a;        /* grey like screenshot */
  border: 1px solid #5f636a;
  border-radius: 6px;

  /* text */
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;

  /* Arabic alignment */
  direction: rtl;
  text-align: right;

  /* spacing (leave room for the arrow box on the left) */
  padding: 0 14px 0 52px;

  /* remove default select styles */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* subtle inset feel */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  outline: none;

  /* custom arrow on the LEFT (pure CSS via background SVG) */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23e9e9e9' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"),
    linear-gradient(to right, rgba(0,0,0,.18), rgba(0,0,0,.18));
  background-repeat: no-repeat, no-repeat;
  background-size: 14px 14px, 44px 100%;
  background-position: 18px 50%, 0 0; /* arrow left + darker left strip */
}

/* Hover */
#quranLanguage:hover{
  background-color: #777c83;
  border-color: #666b72;
}

/* Focus */
#quranLanguage:focus{
  border-color: #f9c875;
  box-shadow: 0 0 0 3px rgba(249,200,117,.28), inset 0 1px 0 rgba(255,255,255,.12);
}

/* Options (dropdown list) */
#quranLanguage option{
  color: #251e20;
  background: #ffffff;
  font-weight: 500;
}
#quranLanguage option[disabled]{
  color: #666;
}

/* If the dropdown sits on dark sections, keep label readable */
label[for="quranLanguage"]{
  display: inline-block;
  margin: 0 0 10px;
  font-weight: 700;
}
.section-1 label[for="quranLanguage"],
.section-2 label[for="quranLanguage"],
.section-3 label[for="quranLanguage"]{
  color: #fff;
}

/* Links */
a {
  color: #777;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #f9c875;
}

/* Header */
.header-wrapper {
  background: url(images/header-bg.png) no-repeat center center;
  background-size: cover;
}
.header-wrapper .container {
  padding-top: 0;
  background: none;
}

/* Ads Section */
.ads {
  padding: 15px 0;
  text-align: center;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #3a3127, #56493d);
      background: #1d181a url("https://images.pexels.com/photos/774146/pexels-photo-774146.jpeg") repeat center top;
  color: #000000;
  padding: 20px;
  text-align: center;
  border-top: 4px solid #f9c875;
}
footer a {
  color: #000000;
  transition: opacity 0.3s ease;
}
footer a:hover {
  opacity: 0.8;
}
.powered {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.9;
}

/* Breadcrumb */
.custom-breadcrumb {
  margin-top: 15px;
}
.custom-breadcrumb .breadcrumb {
  background: #f9c875;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.custom-breadcrumb .breadcrumb li a {
  color: #fff;
}
.custom-breadcrumb .breadcrumb .active {
  color: #333;
}

/* Cards */
.card-custom {
  margin-bottom: 15px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.card-custom .card-header {
  background: #4a3f33;
  color: #fff;
  padding: 12px 16px;
  border-bottom: 5px solid #f9c875;
  font-weight: 600;
}

/* Sections */
.section-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.section-title {
  text-align: center;
  margin-bottom: 25px;
}
.section-title h1 {
  font-size: 26px;
  font-weight: 700;
  display: inline-block;
  border-bottom: 4px solid #f9c875;
  padding-bottom: 10px;
  color: #251e20;
}

.books-languages {
        background-color: #fff;
    padding: 10px 10px 10px 10px;
}

.section-1,
.section-3 {
    background: #1d181a url("https://images.pexels.com/photos/774146/pexels-photo-774146.jpeg") repeat center top;
  padding: 40px 0;
}
.section-2 {
  background: #251e20;
    background: #1d181a url("https://images.pexels.com/photos/774146/pexels-photo-774146.jpeg") repeat center top;
  border-top: 4px solid #56493d;
  border-bottom: 4px solid #56493d;
  padding: 40px 0;
}

/* Ayat Styling */
.ayat,
.ayat2,
.ayat4tafseer {
  font-family: "KFGQPC Uthmanic Script HAFS";
  font-size: 1.9em;
  line-height: 1.8em;
  font-weight: 500;
  position: relative;
  transition: background 0.3s ease;
}
.ayat:hover,
.ayat2:hover {
  background: #fdf8e3;
}
.aya-number {
  font-family: "Traditional Arabic", "Times New Roman";
  font-size: 24px;
  color: #1774b1;
}

/* Tafseer */
.tafseer {
  text-align: justify;
  padding: 10px;
  font-size: 1.1em;
  background: #fff;
  border-left: 4px solid #f9c875;
  border-radius: 5px;
}

/* Share Section */
.share {
  margin: 20px auto;
  text-align: center;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.share h5 {
  margin-bottom: 15px;
  color: #251e20;
}
.share a {
  font-size: 30px;
  margin: 0 10px;
  color: #3499cc;
  transition: transform 0.3s ease, color 0.3s ease;
}
.share a:hover {
  color: #f9c875;
  transform: scale(1.2);
}

/* Books Section */
.books {
  margin-top: 40px;
  text-align: center;
}
.books h1,
.books h2 {
  font-size: 22px;
  font-weight: 700;
}
.book-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.book-image:hover .overlay {
  opacity: 1;
}
.overlay-text {
  color: #fff;
  font-size: 18px;
  padding: 20px;
  text-align: center;
}

/* Pagination */
.page-item.active .page-link {
  background-color: #f9c875;
  border-color: #f9c875;
  color: #fff;
}
.page-link {
  color: #251e20;
  transition: all 0.3s ease;
}
.page-link:hover {
  color: #f9c875;
}

/* Navbar */
.custom-nav {
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px);
}
.custom-navbar-brand {
  font-size: 24px;
  font-weight: 700;
  color: #251e20 !important;
  letter-spacing: 0px !important;
}

/* Flags */
.flags {
  width: 32px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  .ads_hidden {
    display: none;
  }
  .logo,
  .ads {
    text-align: center;
    width: 100%;
  }
  .section-content {
    padding: 15px;
  }
}
