:root{
  --bg:#f5f6fb;
  --ink:#1f2430;
  --muted:#6b7280;
  --line:#e5e7ef;
  --card:#ffffff;
  --chip:#f0f2f8;
  --accent:#3163ff;
  --accent-2:#1e3a8a;
  --shadow:0 8px 30px rgba(16,24,40,.08);
  --radius:16px;
    --transparent-light: #fcfcfdd9;
    --transparent-light-hover: #b9bbc620;
    --transparent-dark: #101010d9;
    --transparent-dark-hover: #80828d14;
    --bpPrimary-1: #fdfdfd;
    --bpPrimary-50: #f5f8fe;
    --bpPrimary-100: #ebf1fd;
    --bpPrimary-200: #ccddfa;
    --bpPrimary-300: #adc8f7;
    --bpPrimary-400: #709ff0;
    --bpPrimary-500: #3276ea;
    --bpPrimary-600: #2d6ad3;
    --bpPrimary-700: #1e478c;
    --bpPrimary-800: #173569;
    --bpPrimary-900: #0f2346;
    --bpPrimary-950: #0a182f;
    --bpGray-1: #fdfdfd;
    --bpGray-50: #f8f8f9;
    --bpGray-100: #f0f0f3;
    --bpGray-200: #dadbe0;
    --bpGray-300: #c3c5cd;
    --bpGray-400: #9699a8;
    --bpGray-500: #696d83;
    --bpGray-600: #5f6276;
    --bpGray-700: #3f414f;
    --bpGray-800: #2f313b;
    --bpGray-900: #202127;
    --bpGray-950: #15161a;
    --bpError: #f05656;
    --bpRadius-scale: 1;
    --bpRadius-sm: .125rem;
    --bpRadius-md: .375rem;
    --bpRadius-lg: .5rem;
    --bpRadius-xl: .75rem;
    --bpRadius-2xl: 1rem;
    --bpRadius-3xl: 1.5rem;
    --bpRadius-full: 9999px;
    --bpSpacing-0: 0px;
    --bpSpacing-px: 1px;
    --bpSpacing-0_5: .125rem;
    --bpSpacing-1: .25rem;
    --bpSpacing-1_5: .375rem;
    --bpSpacing-2: .5rem;
    --bpSpacing-2_5: .625rem;
    --bpSpacing-3: .75rem;
    --bpSpacing-3_5: .875rem;
    --bpSpacing-4: 1rem;
    --bpSpacing-4_5: 1.125rem;
    --bpSpacing-5: 1.25rem;
    --bpSpacing-6: 1.5rem;
    --bpSpacing-7: 1.75rem;
    --bpSpacing-8: 2rem;
    --bpSpacing-9: 2.25rem;
    --bpSpacing-10: 2.5rem;
    --bpSpacing-11: 2.75rem;
    --bpSpacing-12: 3rem;
    --bpSpacing-14: 3.5rem;
    --bpSpacing-16: 4rem;
    --bpSpacing-20: 5rem;
    --bpSpacing-24: 6rem;
    --bpSpacing-28: 7rem;
    --bpSpacing-32: 8rem;
    --bpSpacing-36: 9rem;
    --bpSpacing-40: 10rem;
    --bpSpacing-44: 11rem;
    --bpSpacing-48: 12rem;
    --bpSpacing-52: 13rem;
    --bpSpacing-56: 14rem;
    --bpSpacing-60: 15rem;
    --bpSpacing-64: 16rem;
    --bpSpacing-72: 18rem;
    --bpSpacing-80: 20rem;
    --bpSpacing-96: 24rem;
    --rubik-font: "Rubik", sans-serif;
    --inter-font: "Inter", sans-serif;
    --ibm-font: "IBM Plex Sans", sans-serif;
    --fira-font: "Fira Code", monospace;
    --font-family: var(--inter-font);
    --header-bg: var(--transparent-light);
    --header-bg-hover: var(--transparent-light-hover);
    --header-hover-dark: var(--bpGray-200);
    --header-title: var(--bpGray-900);
    --header-description: var(--bpGray-800);
    --header-description-icon: var(--bpPrimary-800);
    --header-description-link: var(--bpPrimary-900);
    --header-avatar-bg: var(--bpPrimary-600);
    --header-avatar-text: var(--bpPrimary-50);
    --message-bg: var(--bpPrimary-100);
    --message-bg-hover: var(--bpPrimary-200);
    --message-text: var(--bpPrimary-900);
    --send-button-bg: var(--bpPrimary-600);
    --send-button-bg-hover: var(--bpPrimary-700);
    --send-button-text: var(--bpPrimary-50);
    --button-bg: var(--bpPrimary-500);
    --button-bg-hover: var(--bpPrimary-600);
    --button-text: var(--bpPrimary-50);
    --fab-bg: var(--bpPrimary-100);
    --fab-bg-hover: var(--bpPrimary-200);
    --fab-icon: var(--bpPrimary-700);
    --scrollbar: var(--bpGray-200);
    --scrollbar-hover: var(--bpGray-400);
    --modal-submit-bg: var(--bpPrimary-200);
    --modal-submit-bg-hover: var(--bpPrimary-300);
    --error-header-bg: #3d63dd;
    --error-header-text: white;
    --error-content-icon: var(--bpGray-400);
    --error-content-title: var(--bpGray-700);
    --error-content-message: var(--bpGray-600);
}

@font-face {
  font-family:'KFGQPC Uthmanic Script HAFS';
  src: url('/fonts/KFGQPC-Uthmanic-Script-HAFS-Regular.otf') format('opentype');
  font-display: swap;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; 
  font:16px/1.6 "Poppins", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:white; background:var(--bg);
  box-sizing: border-box;
  display: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("1. HOMEPAGE/photo/background.webp") no-repeat center center / cover;
  opacity: 90%; /* adjust transparency here */
  z-index: -1; /* keeps it behind content */
}

img{display:block; max-width:100%; height:auto}
.container{width:min(1200px,92vw); margin-inline:auto}

.wrap{max-width:1140px; margin:auto; padding:0 3%}

/* Topbar */
.topbar{margin-left: auto; margin-right: auto; position:sticky; top:40px; z-index:40; background: rgba(255, 255, 255, 0.1);border-radius: 20px;box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);backdrop-filter: blur(25px);width: 80%;}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; height: 100px; max-width: 1140px; width: 90%; margin: 0 auto;}
.brand{display:flex; align-items:center; gap:10px; font-weight:700; color:var(--ink)}
.brand__logo {
  width: 250px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  background: none;
}

.nav{display:flex; gap:24px}
.nav__link{color:#ffffff; text-decoration:none}
.nav__link:hover{color:var(--bpPrimary-200)}

/* Dropdown (Explore) */
.nav__item {
  position: relative;
  transition: all 0.3s ease;
}

.dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(100%);
  min-width: 160px;
  padding: 8px 0;
  z-index: 50;
}

.dropdown__link {
  display: block;
  padding: 10px 16px;
  color:white;
  text-decoration: none;
  font-size: 15px;
}

.dropdown__link:hover {
  background: white;
  color:var(--bpPrimary-500);
  border-radius: 6px;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown__menu {
  display: block;
  transition: all 0.3s ease;
}

/* Add to existing hamburger styles */
.hamburger {
  display: none;
  width: 42px;
  height: 38px;
  background: none;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger-line {
  position: absolute;
  left: 8px;
  height: 2px;
  background: #e9e9e9;
  border-radius: 2px;
  transition: all 0.3s ease;
  width: 26px;
}

.hamburger-line:nth-child(1) {
  top: 10px;
}

.hamburger-line:nth-child(2) {
  top: 18px;
}

.hamburger-line:nth-child(3) {
  top: 26px;
}

/* Hamburger animation when open */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu transition */
.mobile {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  width: 90%;
  margin: 0 auto;
}

.mobile.open {
  max-height: 500px;
  opacity: 1;
}


/* Mobile menu */
.mobile{background:transparent;}
.mobile__link{display:block; padding:12px 20px; color:white; text-decoration:none; border-bottom: 1px solid rgba(255,255,255,0.1);margin-bottom: 5px;}
.mobile__link:hover{background:none;}
.mobile__item {border-bottom:1px solid rgba(255,255,255,0.1);}

.mobile__toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  padding: 12px 20px;
  color: white;
  cursor: pointer;
}

.mobile__submenu {
  display: none;
}

.mobile__sublink {
  display: block;
  padding: 10px 36px;
  text-decoration: none;
  color: white;
  font-size: 15px;
}

.mobile__sublink:hover {
  background: #eef3ff;
  color: var(--accent);
}

/* Show submenu when active */
.mobile__item.open .mobile__submenu {
  display: block;
}

/* layout */
.main-grid{display:flex;flex-direction:column;gap:22px;margin-top:20px}

/* cards */
.verse-card {background: rgba(255, 255, 255, 0.01); border-radius: 20px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); backdrop-filter: blur(100px); padding: 18px; margin-top: 80px;}
.tafsir-card {background: rgba(255, 255, 255, 0.01); border-radius: 20px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); backdrop-filter: blur(100px);padding: 25px 30px}
.verse-top h3{margin-top:0px;}
.page-title{margin:20px auto 0px auto;color: white; font-family: 'Roboto'; font-weight: bold; text-align: center;}
.audio-controls{display:flex;gap:8px;align-items:center; justify-self: center;}
.btn{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:10px;border:none;cursor:pointer;font-weight:600}
.btn.primary{background:var(--accent-2);color:#fff}
.btn.outline{background:transparent;border:1px solid var(--accent-2);color:var(--accent-2)}
.btn.ghost{background:transparent;border:1px solid #eef2f7;color:var(--muted)}
.btn.small{padding:6px 10px;font-size:0.9rem}
.btn .fa {color: white; font-size: inherit;}

#munir {font-family: "helvetica"; line-height:2; text-align: justify;}
#kauniyah {font-family: "helvetica"; line-height:2;text-align: justify;}
#kauniyah li {margin:25px 0px}
#kauniyah li li {margin:0}
/* #kauniyah li p {margin:10px 0px 0px 0px} */
#kauniyah ol ol  {margin:16px 0px}
#kauniyah li ol li {margin:16px 0px}
#kauniyah ol  {padding-left: 16px;}

/* wave */
.wave-wrap{margin-top:14px;border-radius:10px;background:linear-gradient(180deg,#f8fbff,#ffffff);padding:8px;box-shadow:inset 0 2px 6px rgba(2,6,23,0.02)}
#audioWave{display:block;width:100%;height:70px;border-radius:8px}

/* arabic */
.arabic-box{margin-top:14px;padding:22px;border-radius:20px;background: rgba(255, 255, 255, 0.05); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); text-align:justify;direction:rtl; font-family:"KFGQPC Uthmanic Script HAFS","Scheherazade New","serif";font-size:32px;color:white; line-height: 70px;}
.arab-word{cursor:pointer;padding:2px;border-radius:6px;transition:background 0.18s}
.arab-word:hover{background:rgba(0,122,255,0.08)}
@media(max-width:600px){.arabic-box{font-size:25px;padding:14px}}

.refs-section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap; /* Makes it responsive */
}

.refs-container {
  flex: 2;
  min-width: 250px;
}

.refs {
  margin: 0;
  padding-left: 20px;
}

.media {
  flex: 1;
  min-width: 150px;
  text-align: -webkit-center;
}

.media img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 10px;
}

.media .meta {
  margin-top: 10px;
  font-size: 0.9rem;
  color:white;
  max-width: 200px;
}

.media a {
text-decoration: none;
color: #999999;
}



/* tooltip */
#tooltip{position:absolute;pointer-events:none;background:#0f1724;color:#fff;padding:8px 10px;border-radius:8px;font-size:0.95rem;box-shadow:0 8px 30px rgba(2,6,23,0.2);display:none;z-index:90}

/* translation */
.translation{font-family: "helvetica"; line-height:2; text-align: justify; margin-top:20px;background: rgba(255, 255, 255, 0.05); padding:20px 25px;border-radius:20px;box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);}
.translation h4{margin:0 0 8px;color:var(--bpPrimary-300)}
details summary{cursor:pointer;color:var(--accent-2);font-weight:600}

/* tabs */
.tabs{display:grid;grid-auto-flow: column; gap:8px;margin-bottom:12px;flex-wrap:wrap}
.tab{flex:1 1 160px;padding:10px;border-radius:20px;border:none;background: rgba(255, 255, 255, 0.05);cursor:pointer;font-weight:600;color:white;text-align:center;box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);}
.tab.active{background:var(--bpPrimary-500);color:#fff}

/* tabpanel */
.tabpanel{display:none}
.tabpanel.active{display:block}

/* fullwidth */
.fullwidth{margin-top:20px; margin-bottom:20px}
.refs{color:#e5e5e5;font-family: "helvetica"; line-height:2;}

/* modal */
.modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(2,6,23,0.45);opacity:0;pointer-events:none;transition:all .18s}
.modal[aria-hidden="false"]{opacity:1;pointer-events:auto}
.modal-inner{background:#fff;padding:18px;border-radius:12px;max-width:760px;width:92%;box-shadow:0 30px 80px rgba(2,6,23,0.12);color:var(--text)}
.modal-arabic{direction:rtl;text-align:right;font-family:"Scheherazade New","Amiri",serif;font-size:22px;margin:0 0 8px}
.modal-trans{margin:0;color:var(--muted)}

/* small util */
.small{font-size:0.9rem}
.muted{color:#9d9d9d}
.reveal{opacity:0;transform:translateY(16px);transition:all .6s ease}

/* Footer */
.footer{background:rgba(255, 255, 255, 0.1); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); backdrop-filter: blur(25px);}
.foot__top{display:grid; grid-template-columns:1.2fr 1fr 2fr; gap:20px;}
.foot__brand{display:flex; align-items:center; gap:10px; justify-content: center;}
.foot__logo{width:250px; height:auto; border-radius:10px; background:none;}
.foot__social{display:flex; align-items:center}
.foot__social .ico{border-radius:6px; background-color: transparent; color:#5b84ff;}
.foot__links{display:flex; gap:18px; align-items:center; flex-wrap:wrap; justify-content: center; padding-bottom: 20px;}
.foot__links a{color:#ededed; text-decoration:none}
.foot__bottom{margin-left: auto; margin-right: auto; display:grid; justify-content:space-between; align-items:center; gap:16px; padding:12px 12px; border-top:1px solid var(--line); justify-content: center;}
.fa {font-size: 30px;}
.ico, .ph-ico{width:28px; height:28px; border-radius:8px; background:#d3d8e7; margin:0 auto 6px; color: rgb(85, 26, 139);}

.toTop{
  position:fixed; right:16px; bottom:16px; width:40px; height:40px; border-radius:999px;
  border:1px solid var(--line); background:#fff; box-shadow:var(--shadow); cursor:pointer; display:none;
  margin-bottom: 90px;
  margin-right: 20px;
}

/* responsive */

@media (max-width: 902px){
  .nav{display:none}
  .hamburger{display:block; border: none; right:10px;}
  .foot__top{grid-template-columns:1fr}
  .topbar__inner{width: max-content;}
  .header-inner{grid-template-columns:auto 1fr auto 42px}
}

@media (max-width: 560px){
  .topbar__inner{width: max-content;}
}

    @media (max-width: 344px) {
  .topbar {width: max-content;}
  }


.audio-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px 20px;
  border-radius: 20px;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif;
  justify-content: center;
  margin-top: 20px;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 90%;
}

.reciter{
  margin: 0px;
  font-size: 14px;
  color: #ccc;
  text-align: center;
}

.btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: scale(1.2);
}

.progress-container {
  flex: 1;
  height: 6px;
  background: #ddd;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  transition: width 0.1s linear;
}

.time-display {
  font-size: 0.85rem;
  color: white;
  min-width: 90px;
  text-align: right;
}
