:root {
  --bg: linear-gradient(to right, rgb(248, 248, 248), rgb(248, 248, 248));
  --card: linear-gradient(to right, rgb(255, 255, 255), rgb(255, 255, 255));
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #0ea5e9;
  --accent-2: #22c55e;
  --ring: rgba(14, 165, 233, 0.35);
  --compas1: rgba(255, 255, 255, 0.027);
  --jumacolor: linear-gradient(135deg, #ace8ff, #a5f8e3);
  --date: rgb(141, 255, 126);
  --datebg: linear-gradient(to right, rgb(255, 255, 255), rgb(255, 255, 255));
  --menuColor: #c9e8ff;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --border: rgba(2, 6, 23, 0.08);
  --banner-grad: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
  --pattern: url('data:image/svg+xml;utf8,\
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40">\
          <g fill="none" stroke="%23ffffff" stroke-opacity="0.22" stroke-width="1">\
            <path d="M0 20h40M20 0v40"/>\
            <path d="M0 0l40 40M40 0L0 40"/>\
          </g>\
        </svg>');
}

[data-theme="dark"] {
  --bg: #0b1220;
  --card: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #34d399;
  --ring: rgba(56, 189, 248, 0.35);
  --compas1: rgba(0, 0, 0, 0.452);
  --jumacolor: linear-gradient(135deg, #866e00, #006875);
  --date: rgb(11, 94, 0);
  --datebg: #1c2435;
  --menuColor: #01508d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --border: rgba(148, 163, 184, 0.15);
  --banner-grad: linear-gradient(135deg, #1d4ed8 0%, #059669 100%);
}

/* Ramadan Widget Styles */
.ramadan-widget {
  max-width: 850px;
  margin: 0 auto;
  color: var(--text);
}

.ramadan-header {
  background: var(--banner-grad);
  color: white;
  padding: 30px;
  border-radius: 24px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.ramadan-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pattern);
  opacity: 0.1;
  pointer-events: none;
}

.ramadan-header h2 {
  margin: 0 0 10px 0;
  font-size: 1.8rem;
}

.ramadan-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.current-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.status-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.status-time {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
}

.ramadan-table-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ramadan-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ramadan-table th {
  background: rgba(0, 0, 0, 0.03);
  padding: 15px;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.ramadan-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.ramadan-table tr:last-child td {
  border-bottom: none;
}

.ramadan-table tr.today {
  background: rgba(14, 165, 233, 0.1);
  font-weight: 700;
}

.ramadan-table tr.today td {
  color: var(--accent);
}

.ramadan-table .date-bn {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 600px) {

  .ramadan-table th,
  .ramadan-table td {
    padding: 10px;
    font-size: 0.85rem;
  }

  .ramadan-header {
    padding: 20px;
  }
}

/* Ramadan Info & Dua Sections */
.ramadan-info-section {
  max-width: 850px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-card {
  background: var(--card);
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.info-card h3 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-card ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 15px;
  line-height: 1.6;
}

.info-card ul li:last-child {
  border-bottom: none;
}

.info-card ul li span {
  color: var(--accent-2);
  font-weight: bold;
}

.dua-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
  gap: 20px;
}

.dua-card {
  background: var(--card);
  padding: 25px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.dua-card:hover {
  transform: translateY(-5px);
}

.dua-card h4 {
  margin: 0 0 15px 0;
  color: var(--accent-2);
  font-size: 1.2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}

.arabic-text {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  direction: rtl;
  text-align: right;
  margin: 15px 0;
  color: var(--text);
  line-height: 1.8;
}

.dua-meta {
  margin-top: 15px;
  font-size: 0.95rem;
}

.dua-meta p {
  margin: 8px 0;
}

.dua-meta strong {
  color: var(--accent);
}

/*Namaj time  ################################################ */



.jumaDiv {
  background: var(--jumacolor);
  color: var(--text);
}

/*quranApp  ################################################ */

/* Quran & Hadis Apps Modern Design ################################################ */

.quranApp,
.Hadis {
  max-width: 900px;
  margin: 30px auto;
  font-family: "Noto Sans Bengali", sans-serif;
  line-height: 1.8;
  padding: 30px;
  background: var(--card);
  border-radius: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  overflow: visible;
  /* Sticky work properties */
}

/* Ultra Minimal Sticky Player */
.quran-player-ui {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 85px;
  z-index: 1000;
  border-radius: 15px;
  padding: 8px 5px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

[data-theme="dark"] .quran-player-ui {
  background: rgba(15, 23, 42, 0.9);
}

.compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}

.mini-icon-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 5px;
  transition: color 0.2s;
}

.mini-icon-btn:hover {
  color: var(--accent);
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.timer-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 5px;
}

.timer-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sleep-timer-input {
  width: 60px !important;
  height: 28px !important;
  border-radius: 8px !important;
  text-align: center;
  font-weight: 700;
  border: 1px solid var(--accent) !important;
  font-size: 0.8rem !important;
}

.timer-section label {
  margin-bottom: 0 !important;
  white-space: nowrap;
}

.timer-status {
  font-size: 0.75rem !important;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.action-bar.compact-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.player-btn {
  height: 30px !important;
  padding: 0 12px !important;
  font-size: 0.75rem !important;
  border-radius: 8px !important;
}

.play-pause-btn {
  background: var(--banner-grad);
  min-width: 110px;
}

.play-pause-btn.playing {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.minimized-dot {
  position: fixed;
  top: 85px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: var(--banner-grad);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid white;
}

.minimized-dot:hover {
  transform: scale(1.1) rotate(15deg);
}

.minimized-dot i {
  font-size: 1.1rem;
}

.stop-timer-btn {
  background: #64748b;
  font-size: 0.75rem !important;
  height: 35px !important;
  padding: 0 15px !important;
}

.multi-surah-list {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 15px;
  max-height: 250px;
  padding: 12px;
  margin-top: 10px;
}

.multi-surah-item {
  background: var(--card);
  border: 1px solid transparent;
  margin-bottom: 8px;
  padding: 10px 15px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.multi-surah-item.active {
  border-color: var(--accent);
  background: rgba(14, 165, 233, 0.05);
}

.ayah-range-mini input {
  border: 1px solid var(--accent) !important;
  border-radius: 6px !important;
  width: 50px !important;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0px;
  text-align: left;
}

.num-controls {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  height: 30px;
}

.num-controls button {
  background: transparent !important;
  color: var(--accent) !important;
  box-shadow: none !important;
  padding: 0 8px !important;
  border-radius: 0 !important;
  height: 100% !important;
  width: auto !important;
  margin: 0 !important;
  font-size: 0.8rem !important;
}

.num-controls button:hover {
  background: rgba(14, 165, 233, 0.1) !important;
  transform: none !important;
  box-shadow: none !important;
}

.num-controls input {
  border: none !important;
  border-left: 1px solid var(--border) !important;
  border-right: 1px solid var(--border) !important;
  border-radius: 0 !important;
  width: 40px !important;
  text-align: center;
  height: 100%;
  margin: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  font-size: 0.85rem !important;
}

.checkbox-group {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 2px;
}

.checkbox-label {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0px !important;
  cursor: pointer;
  font-size: 0.8rem !important;
  color: var(--text) !important;
  padding: 0px 5px;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.quranApp select,
.Hadis select,
.TopTitt>input {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
  outline: none;
  height: 30px;
}

.quranApp select:focus,
.Hadis select:focus,
.TopTitt>input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--ring);
}

.multi-surah-list {
  display: none;
  width: 100%;
  min-width: 250px;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 8px;
  margin-top: 5px;
  text-align: left;
  box-shadow: var(--shadow);
  z-index: 100;
}

.multi-surah-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 0px 10px !important;
  font-size: 0.8rem !important;
  border-radius: 6px !important;
  cursor: default;
  transition: all 0.2s ease;
  color: var(--text);
  margin-bottom: 3px;
  background: rgba(var(--accent-rgb), 0.03);
}

.ayah-range-mini input {
  width: 50px !important;
  height: 20px !important;
  font-size: 0.7rem !important;
  border-radius: 4px !important;
}

.multi-surah-list {
  max-height: 180px;
  overflow-y: auto;
}

.quranApp button,
.Hadis button,
.primary-btn {
  padding: 0 16px;
  height: 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: var(--banner-grad);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
  width: auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.quranApp button:hover,
.Hadis button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  filter: brightness(1.1);
}

/* Content Cards */
.verse,
.hadith {
  margin: 0 0 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

[data-theme="light"] .verse,
[data-theme="light"] .hadith {
  background: rgba(0, 0, 0, 0.02);
}

.verse:hover,
.hadith:hover {
  border-color: var(--accent);
}

.verse .ar,
.hadith .ar {
  font-size: 1.8rem;
  direction: rtl;
  text-align: right;
  margin-bottom: 15px;
  font-family: "Amiri", serif;
  color: var(--text);
  line-height: 2.2;
}

.verse .bn,
.hadith .bn {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 400;
}

.hadith .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: block;
}

.quranApp .verse audio {
  width: 100%;
  height: 35px;
  margin-top: 15px;
  border-radius: 30px;
  filter: hue-rotate(180deg) brightness(1.1);
}

.loader {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
}

.Hadis .hadith .meta {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}

.Hadis .loader {
  padding: 20px;
  text-align: center;
  color: #666;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
    "Noto Sans Bengali", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* Layout */
.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100dvh;
}

main {
  min-width: 0;
  /* CRITICAL: Prevents grid from expanding to fit long content like topBar2 */
}

.sidebar {
  background: var(--card);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 24px 16px;
  transition: transform 0.3s ease;
  z-index: 30;
  overflow-y: auto;
  /* Enable scroll if menu is long */
  display: flex;
  flex-direction: column;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand .logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white url('../icons/icon-192.png') no-repeat center;
  background-size: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--accent);
  position: relative;
  overflow: hidden;
}

/* Logo pattern removed */

.brand .title {
  font-size: 1.05rem;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
}

.menu a:hover {
  background: var(--menuColor);
  color: var(--text);
  border-color: var(--border);
}

.menu .small {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 8px 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menuClose {
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  color: red;
  border: 1px solid red;
  font-size: 1.1rem;
  font-weight: 500;
}

#installBtn {
  color: #ffffff;
  display: none;
  /* Controlled by JS */
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  width: 100%;
  margin-top: 20px;
  cursor: pointer;
  background: var(--banner-grad);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 10px;
}

#installBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(14, 165, 233, 0.25);
  filter: brightness(1.1);
}

#installBtn:active {
  transform: translateY(0);
}

#installBtn i {
  color: #ffffff !important;
  margin: 0;
  font-size: 1.2rem;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--banner-grad);
  color: white;
  padding: 16px clamp(12px, 2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pattern);
  pointer-events: none;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

#activePage {
  background-color: var(--menuColor);
}

.hamburger {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  box-shadow: var(--shadow);
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: white;
  display: block;
  position: relative;
}

.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: white;
}

.hamburger span::before {
  top: -6px;
}

.hamburger span::after {
  top: 6px;
}

.banner {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.banner .moon-star {
  width: 28px;
  height: 28px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.btn {
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Content */
.content {
  padding: 24px clamp(12px, 3vw, 32px);
}

.container {
  max-width: 850px;
  margin: 0 auto;
}

.hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.2rem, 1.2rem + 1.2vw, 2rem);
}

.hero p {
  margin: 0;
  color: var(--muted);
}

/* Accordion */
.accordion {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.accordion-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  transition: background 0.2s ease;
  position: relative;
}

.accordion-header:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.accordion-header:hover {
  background: rgba(14, 165, 233, 0.06);
}

.accordion-header .num {
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent);
  border: 1px solid var(--border);
}

.accordion-header .label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.accordion-header .chev {
  transition: transform 0.2s ease;
}

.accordion-header[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.accordion-panel {
  display: none;
  border-top: 1px dashed var(--border);
}

.accordion-panel.open {
  display: block;
}

.panel-inner {
  padding: 14px 16px;
  gap: 12px;
}

.dua-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg,
      rgba(14, 165, 233, 0.06),
      transparent 45%);
}

.dua-ar {
  font-family: Amiri, serif;
  font-size: 1.15rem;
  line-height: 2;
  direction: rtl;
  text-align: right;
}

.dua-tr {
  font-family: "Noto Sans Bengali", sans-serif;
  color: var(--muted);
  font-size: 0.98rem;
}

.ref {
  background: rgba(34, 197, 94, 0.08);
  border: 1px dashed var(--border);
  padding: 10px;
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Footer */
footer {
  margin: 30px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dua-tr .fa {
  color: red;
}

.fa {
  color: var(--text);
  font-size: 20px;
  /* margin-left: 5px; */
  align-items: center;
  align-content: center;
}

footer>strong>a {
  color: green;
}

.topMenu {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  /* Prevent menu from breaking responsiveness */
  position: relative;
}

.topBar2 {
  margin: 15px 0;
  padding: 10px 0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  list-style: none;
  width: 100%;
  max-width: 100%;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.topBar2::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.topBar2 li {
  flex: 0 0 auto;
  text-decoration: none;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--card);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.topBar2::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 20px;
}

.topBar2 li {
  flex: 0 0 auto;
  text-decoration: none;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--card);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.topBar2 li a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  /* Prevent text wrapping inside buttons */
}

.topBar2 li:hover {
  background-color: var(--menuColor);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.topBar2 li a:hover {
  color: var(--text);
}

/* Floating Scroll Buttons */
.scroll-arrows {
  position: fixed;
  bottom: 80px;
  /* Moved up */
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.scroll-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--banner-grad);
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-size: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.scroll-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-btn:active {
  transform: scale(0.9);
}

@media (max-width: 600px) {
  .scroll-arrows {
    bottom: 70px;
    right: 15px;
    gap: 8px;
  }

  .scroll-btn {
    width: 38px;
    height: 38px;
    font-size: 16px !important;
  }
}

/*Gaja ################################################ */

.gallery {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.donate {
  background: #e0f3ff;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 2rem;
}

.donate a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: #0074cc;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.donate a:hover {
  background: #005999;
}

.gajacont>ul>li>a {
  color: rgb(99, 170, 7);
}

/*Contact us ################################################ */

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #34495e;
  font-weight: 500;
}

#contactForm input,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  transition: all 0.3s;
}

#contactForm input:focus,
textarea:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

#contactForm textarea {
  min-height: 130px;
  resize: vertical;
}

button {
  background: var(--banner-grad);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.required {
  color: #e74c3c;
}

.success-message {
  background-color: #2ecc71;
  color: white;
  padding: 14px;
  border-radius: 8px;
  text-align: center;
  margin-top: 20px;
  display: none;
  animation: fadeIn 0.5s;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  color: #7f8c8d;
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  /*.container {
                 padding: 20px;
            } */

  h1 {
    font-size: 24px;
  }

  input,
  textarea {
    padding: 12px;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content {
    padding-top: 14px;
  }

  .hamburger {
    display: grid;
    justify-content: center;
  }

  .menuClose {
    display: flex;
  }

  .prayTime {
    font-size: 0.8rem;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }

  .scroll-btn:active {
    transform: scale(0.9);
  }

  @media (max-width: 600px) {
    .scroll-arrows {
      bottom: 70px;
      right: 15px;
      gap: 8px;
    }

    .scroll-btn {
      width: 38px;
      height: 38px;
      font-size: 16px !important;
    }
  }

  /*Gaja ################################################ */

  .gallery {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
  }

  .gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .donate {
    background: #e0f3ff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
  }

  .donate a {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: #0074cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
  }

  .donate a:hover {
    background: #005999;
  }

  .gajacont>ul>li>a {
    color: rgb(99, 170, 7);
  }

  /*Contact us ################################################ */

  .form-group {
    margin-bottom: 20px;
  }

  label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
  }

  #contactForm input,
  textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    font-size: 15px;
    transition: all 0.3s;
  }

  #contactForm input:focus,
  textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  }

  #contactForm textarea {
    min-height: 130px;
    resize: vertical;
  }

  button {
    background: var(--banner-grad);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
  }

  .required {
    color: #e74c3c;
  }

  .success-message {
    background-color: #2ecc71;
    color: white;
    padding: 14px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    display: none;
    animation: fadeIn 0.5s;
  }

  .form-footer {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 14px;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @media (max-width: 600px) {
    /*.container {
                 padding: 20px;
            } */

    h1 {
      font-size: 24px;
    }

    input,
    textarea {
      padding: 12px;
    }
  }

  /* Responsive */
  @media (max-width: 960px) {
    .app {
      grid-template-columns: 1fr;
    }

    .sidebar {
      position: fixed;
      left: 0;
      top: 0;
      bottom: 0;
      transform: translateX(-100%);
    }

    .sidebar.open {
      transform: translateX(0);
    }

    .content {
      padding-top: 14px;
    }

    .hamburger {
      display: grid;
      justify-content: center;
    }

    .menuClose {
      display: flex;
    }

    .prayTime {
      font-size: 0.8rem;
    }

    .smallDivs {
      padding: 5px;
    }
  }

  /* Minimized Controls Dot */
  .minimized-dot {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 45px;
    height: 45px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    border: 4px solid var(--card);
    /* Border matches bg to visual separation */
  }

  .minimized-dot:hover {
    transform: translateX(-50%) scale(1.1);
    background: var(--accent-2);
  }

  .minimized-dot i {
    font-size: 20px;
    margin: 0;
    color: white;
  }

  @keyframes popIn {
    from {
      transform: translateX(-50%) scale(0);
      opacity: 0;
    }

    to {
      transform: translateX(-50%) scale(1);
      opacity: 1;
    }
  }

  /* Controls Animation */
  .controls {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
    opacity: 1;
    transform: translateY(0) scale(1);
  }

}

.hidden-controls {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Gaza Page Premium Styles */
.gaza-hero-v2 {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 40px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 40px 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
}

.gaza-hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.gaza-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.gaza-hero-v2 h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.gaza-hero-v2 p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  line-height: 1.6;
}

.gaza-section-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 50px 0 30px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.gaza-section-title i {
  color: var(--accent);
  font-size: 1.5rem;
}

.stats-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card-v2 {
  background: var(--card);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card-v2:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.stat-card-v2 .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.stat-card-v2 .label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: block;
}

.stat-card-v2 .desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.stat-card-v2 .source {
  display: block;
  margin-top: 15px;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.gaza-info-card {
  background: var(--card);
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  line-height: 1.8;
}

.gaza-info-card p {
  margin-bottom: 20px;
}

.gaza-gallery-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}

.gaza-gallery-v2 img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gaza-gallery-v2 img:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.donate-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}

.donate-btn-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  gap: 10px;
}

.donate-btn-v2 i {
  font-size: 1.5rem;
  color: var(--accent-2);
}

.donate-btn-v2:hover {
  background: var(--accent-2);
  color: white;
  border-color: transparent;
}

.donate-btn-v2:hover i {
  color: white;
}

@media (max-width: 768px) {
  .gaza-hero-v2 {
    min-height: 300px;
    padding: 30px 15px;
  }
}/* Gaza Hero Slider */
.gaza-hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    /* Increased height for better impact */
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* Smoother transition */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.gaza-hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    padding: 30px;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
    animation: fadeUp 1s ease-out;
}

.gaza-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.gaza-hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 500;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .gaza-hero-slider {
        height: 350px;
        border-radius: 16px;
    }
}

/* Comparison Card Styles */
.comparison-row { display: flex; align-items: center; justify-content: space-between; margin: 15px 0; background: rgba(0,0,0,0.03); padding: 10px; border-radius: 12px; }
.comp-item { display: flex; flex-direction: column; align-items: center; }
.comp-val { font-weight: 800; font-size: 1.4rem; }
.comp-lbl { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.comp-arrow { font-size: 1.2rem; color: var(--muted); opacity: 0.5; }
.text-red { color: #ef4444; }
.text-green { color: #22c55e; }
.text-dark { color: var(--text); }
