﻿.mp-festival-card {
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(193, 145, 24, 0.38);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff9df, #f4ffe9);
  box-shadow: 0 8px 18px rgba(193, 145, 24, 0.12);
}

.mp-festival-title {
  margin-bottom: 4px;
  color: #967018;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.mp-festival-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid rgba(193, 145, 24, 0.2);
  color: #263b2e;
  font-size: 0.78rem;
}

.mp-festival-row span {
  display: grid;
  gap: 2px;
}

.mp-festival-row small {
  color: #66756c;
  font-size: 0.62rem;
  font-weight: 500;
}

.mp-festival-row > strong {
  color: #267a4e;
  white-space: nowrap;
}
:root {
  --primary: #009252;
  --secondary: #56E78E;
  --dark: #1a1a1a;
  --green: #2d6a4f;
  --cream: #fff8f0;
  --cream2: #fef0dc;
  --light: #f9f5f0;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.18);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  color: #444;
  background: #fff;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: "Playfair Display", serif;
  color: var(--dark);
}
a {
  text-decoration: none;
  transition: all 0.3s;
}
img {
  max-width: 100%;
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* ===================== TOP BAR ===================== */
#topbar {
  background: #111;
  padding: 8px 0;
  font-size: 0.82rem;
}
#topbar span {
  color: #aaa;
  margin-right: 16px;
}
#topbar span i {
  color: var(--secondary);
  margin-right: 5px;
}
#topbar .tsoc a {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.75rem;
  margin-left: 5px;
  transition: 0.3s;
}
#topbar .tsoc a:hover {
  background: var(--primary);
  color: #fff;
}
.ttag {
  background: var(--primary);
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ===================== NAVBAR ===================== */
#nav {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 990;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  transition: 0.4s;
}
#nav.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.14);
}
.blogo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 4px 15px var(--secondary);
}
.bname {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark);
}
.bname span {
  color: var(--primary);
}
.bsub {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #aaa;
}
.navbar-nav .nav-link {
  font-size: 0.87rem;
  font-weight: 500;
  color: #333 !important;
  padding: 26px 13px !important;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transition: 0.3s;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 55%;
}
.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}

.utility-menu .nav-link {
  padding: 18px 14px !important;
  font-size: 0.8rem;
}

.navbar .container {
  position: relative;
}

.lang-switch-wrap {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
  padding: 3px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  margin: 0 10px 0 auto;
}

.lang-toggle {
  min-width: 46px;
  border: 0;
  background: transparent;
  color: var(--dark);
  padding: 0.34rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-toggle:first-child {
  border-radius: 999px 0 0 999px;
}

.lang-toggle:last-child {
  border-radius: 0 999px 999px 0;
}

.lang-toggle:not(.active):hover {
  background: rgba(0, 146, 82, 0.08);
}

.lang-toggle.active {
  background: linear-gradient(135deg, var(--primary), #2aa86d);
  color: #fff;
  box-shadow: 0 4px 15px var(--secondary);
}

.user-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 8px 15px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.user-login-btn:hover,
.user-login-btn:focus-visible {
  background: #087f5b;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 146, 82, 0.2);
  transform: translateY(-1px);
}

.mobile-login-btn,
.mobile-language-row {
  display: none;
}

.desktop-login-btn {
  margin: 0 8px;
}

.desktop-language-wrap {
  margin: 0 0 0 12px;
}

.login-preview-modal .modal-content {
  border: 1px solid rgba(0, 146, 82, 0.16);
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.2);
}

.login-preview-modal .modal-title {
  margin: 0;
  font-size: 1.35rem;
}

.login-preview-modal .modal-body {
  color: #475569;
  line-height: 1.7;
}

@media (min-width: 992px) {
  .desktop-login-item {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 991.98px) {
  .navbar .container {
    column-gap: 8px;
  }

  .mobile-login-btn {
    display: inline-flex;
    margin-left: auto;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .desktop-login-item,
  .desktop-language-wrap {
    display: none;
  }

  .mobile-language-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 7px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
  }

  .mobile-language-row .lang-switch-wrap {
    margin: 0;
    direction: ltr;
  }

  html[lang="ur"] .mobile-language-row {
    direction: rtl;
  }
}

.page-refresh-btn {
  position: fixed;
  top: 0;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 146, 82, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -120%);
  transition: transform 0.28s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10001;
}

.page-refresh-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 12px);
}

.page-refresh-btn:hover {
  transform: translate(-50%, 10px) scale(1.02);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.page-refresh-btn i {
  font-size: 1rem;
}

.page-refresh-btn.refreshing i {
  animation: page-refresh-spin 0.8s linear infinite;
}

@keyframes page-refresh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.primary-tabs {
  position: relative;
  z-index: 1;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  padding: 10px 0 2px;
}

.primary-tabs-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  /*border: 1.5px solid rgba(20, 22, 25, 0.9);*/
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.primary-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  border-radius: 14px;
  color: #2f383d;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}

.primary-tab i {
  font-size: 0.95rem;
}

.primary-tab:hover {
  background: rgb(255 255 255 / 26%);
  color: var(--primary);
  transform: translateY(-1px);
}

.primary-tab.active {
  background: linear-gradient(180deg, rgba(29, 203, 118, 0.18), rgba(17, 170, 95, 0.12));
  color: var(--primary);
  /*border-color: rgba(20, 22, 25, 0.8);*/
  box-shadow: inset 0 0 0 1px rgba(20, 22, 25, 0.06), 0 4px 10px rgba(22, 163, 74, 0.12);
}

.welcome-home {
  padding: clamp(34px, 7vw, 82px) 0;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(86, 231, 142, 0.15), transparent 34%),
    linear-gradient(180deg, #f5fbf7 0%, #fff 78%);
}

.auth-dialog {
  width: calc(100% - 1rem);
  max-width: 500px;
  margin-right: auto;
  margin-left: auto;
  min-width: 0;
}

.modal.auth-keyboard-active {
  top: var(--auth-modal-viewport-top, 0px);
  bottom: auto;
  height: var(--auth-modal-visible-height, 100dvh);
  overflow-y: auto;
}

.modal.auth-keyboard-active .auth-dialog {
  min-height: 0;
  max-height: calc(var(--auth-modal-visible-height, 100dvh) - 16px);
  margin-top: 8px;
  margin-bottom: 8px;
}

.auth-dialog .modal-content {
  max-width: 100%;
  min-width: 0;
  max-height: 100%;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 64px rgba(13, 35, 25, 0.24);
}

.auth-dialog .modal-header {
  direction: ltr;
  min-height: 64px;
  border-bottom: 1px solid #edf1ee;
  padding: 16px 22px;
  background: #fff;
}

.auth-dialog .modal-title {
  flex: 1 1 auto;
  text-align: start;
  color: #24352b;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-dialog .btn-close {
  opacity: 0.55;
}

.auth-dialog .btn-close:hover {
  opacity: 0.85;
}

.auth-dialog .modal-body {
  min-width: 0;
  padding: 20px 24px 24px;
  background: #fff;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 12px;
  background: #f0f5f2;
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #52615a;
  font: inherit;
  font-weight: 700;
}

.auth-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(15, 45, 30, 0.1);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form[hidden],
.auth-account-panel[hidden],
.user-dashboard[hidden] {
  display: none !important;
}

html.auth-session-pending #loggedOutHome {
  visibility: hidden;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #35443b;
  font-size: 0.81rem;
  font-weight: 650;
  line-height: 1.35;
}

.auth-phone-inputs {
  display: grid;
  grid-template-columns: minmax(116px, 0.9fr) minmax(0, 1.4fr);
  gap: 8px;
}

.auth-country-select {
  position: relative;
  min-width: 0;
  direction: ltr;
}

.auth-country-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  width: 100%;
  min-height: 46px;
  border: 1px solid #dce5df;
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #fff, #f5faf7);
  color: #26342b;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-country-trigger:hover,
.auth-country-select.open .auth-country-trigger,
.auth-country-trigger:focus-visible {
  border-color: var(--primary);
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 146, 82, 0.1);
}

.auth-country-trigger i {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.auth-country-select.open .auth-country-trigger i {
  transform: rotate(180deg);
}

.auth-country-menu {
  position: fixed;
  z-index: 1060;
  top: 0;
  left: 0;
  display: none;
  width: max(100%, 178px);
  max-height: 230px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid #dfe8e2;
  border-radius: 12px;
  background: #fff;
  direction: ltr;
  box-shadow: 0 14px 30px rgba(18, 55, 42, 0.18);
}

.auth-country-select.open .auth-country-menu {
  display: block;
}

.auth-country-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  background: transparent;
  color: #35443b;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}

.auth-country-option:hover,
.auth-country-option:focus-visible,
.auth-country-option.active,
.auth-country-option[aria-selected="true"] {
  outline: 0;
  background: rgba(0, 146, 82, 0.09);
  color: var(--primary);
}

.auth-country-code {
  font-weight: 750;
  letter-spacing: 0.03em;
}

.auth-country-dial {
  color: #66756c;
  font-weight: 600;
}

.auth-country-select [data-phone-country] {
  display: none;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #dce5df;
  border-radius: 10px;
  padding: 10px 12px;
  background-color: #fcfdfc;
  color: #26342b;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--primary);
  outline: 0;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 146, 82, 0.11);
}

.auth-form input[readonly] {
  border-color: #e4ebe6;
  background: #f3f6f4;
  color: #69776f;
  cursor: not-allowed;
}

.auth-form select {
  color-scheme: light;
  cursor: pointer;
}

.auth-form input::placeholder {
  color: #87938b;
  opacity: 1;
}

@media (max-width: 380px) {
  .auth-phone-inputs {
    grid-template-columns: minmax(108px, 0.9fr) minmax(0, 1.2fr);
    gap: 6px;
  }

  .auth-phone-inputs select,
  .auth-phone-inputs input,
  .auth-country-trigger {
    padding-right: 8px;
    padding-left: 8px;
  }
}

.auth-profile-form {
  margin-bottom: 20px;
  border-bottom: 1px solid #e9efeb;
  padding-bottom: 22px;
}

.auth-password-control {
  position: relative;
  display: block;
}

.auth-password-control input {
  padding-right: 48px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64736a;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  background: #e9f7ee;
  color: var(--primary);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.auth-account-panel h3:not(:first-child) {
  margin-top: 20px;
}

.auth-logout-btn {
  margin-top: 4px;
  border-color: #c63830;
  border-radius: 10px;
  background: #c63830;
}

.auth-dialog .auth-logout-btn:hover,
.auth-dialog .auth-logout-btn:focus-visible {
  border-color: #a92c26;
  background: #a92c26;
  box-shadow: 0 4px 12px rgba(169, 44, 38, 0.18);
}

.auth-verification-note {
  margin: 0;
  color: #6b5540;
  font-size: 0.8rem;
  line-height: 1.55;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.auth-submit-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSubmitSpinner 0.75s linear infinite;
}

.auth-submit-spinner[hidden] {
  display: none;
}

@keyframes authSubmitSpinner {
  to {
    transform: rotate(360deg);
  }
}

.auth-form-message {
  margin: 0 0 14px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #e9f7ee;
  color: #17653e;
  font-size: 0.88rem;
}

.auth-form-message.is-error {
  background: #fff0ef;
  color: #a52b24;
}

.auth-account-panel > p {
  margin-bottom: 20px;
  color: #52615a;
}

.auth-account-panel h3,
.user-dashboard-favorites h2 {
  margin-bottom: 14px;
  color: #26392e;
  font-size: 1.4rem;
  font-weight: 700;
}

.auth-favorites-list {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.mosque-card-source {
  display: none !important;
}

.auth-favorites-carousel {
  width: 100%;
  margin-bottom: 18px;
}

.auth-favorites-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.auth-favorites-track::-webkit-scrollbar {
  display: none;
}

.auth-favorite-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 0 8px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.auth-favorite-wrap {
  flex: 0 0 100%;
  max-width: 100%;
  padding-right: 12px;
  padding-left: 12px;
}

.auth-favorite-slide .mcard {
  height: 100%;
}

.auth-favorites-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 7px 0 2px;
}

.auth-favorite-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #cbd5ce;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auth-favorite-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.auth-favorite-dot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.auth-favorite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e7ede9;
  border-radius: 10px;
  padding: 12px 13px;
  background: #fbfcfb;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.auth-favorite-row:hover {
  border-color: #d5e5db;
  background: #f7faf8;
}

.auth-favorite-row a {
  color: #2b4936;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.45;
}

.auth-favorite-row a:hover {
  color: var(--primary);
}

.auth-favorite-remove {
  border: 0;
  background: transparent;
  color: #bd3a3a;
  font-size: 1.05rem;
  cursor: pointer;
}

.auth-empty-favorites {
  margin: 0;
  color: #6b7870;
  font-size: 1.1rem;
  line-height: 1.55;
  height: 170px;
  background: white;
  border-radius: 10px;
  padding-top: 40px;
}

.auth-toast {
  position: fixed;
  z-index: 2000;
  inset-inline: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  width: fit-content;
  max-width: min(460px, calc(100vw - 32px));
  margin-inline: auto;
  border-radius: 10px;
  padding: 12px 16px;
  background: #174b32;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-toast.is-error {
  background: #8b2925;
}

.user-dashboard {
  /*min-height: 52vh;*/
  padding: clamp(34px, 7vw, 82px) 0;
  background: linear-gradient(180deg, #f5fbf7 0%, #fff 78%);
}

.user-dashboard-heading {
  margin-bottom: 40px;
  text-align: center;
}

.user-dashboard-heading p {
  margin-bottom: 5px;
  color: #66756c;
}

.user-dashboard-heading h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.user-dashboard-favorites {
  max-width: 720px;
  margin: 0 auto;
}

.home-tile-section {
  width: 100%;
  margin: 0px auto 0;
}

.home-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(9px, 2.5vw, 18px);
  max-width: 660px;
  margin: 0 auto;
}

.home-tile {
  display: flex;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(0, 146, 82, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: #173b2a;
  box-shadow: 0 8px 22px rgba(15, 65, 40, 0.08);
  font-size: clamp(0.74rem, 2.3vw, 0.98rem);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.home-tile i {
  display: grid;
  width: clamp(38px, 10vw, 56px);
  height: clamp(38px, 10vw, 56px);
  place-items: center;
  border-radius: 16px;
  background: #e6f5ed;
  color: var(--primary);
  font-size: clamp(1.1rem, 4vw, 1.55rem);
}

.home-tile span {
  overflow-wrap: anywhere;
}

.home-tile:hover,
.home-tile:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(0, 146, 82, 0.32);
  color: var(--primary);
  box-shadow: 0 12px 26px rgba(15, 65, 40, 0.14);
}

.home-tile:focus-visible {
  outline: 3px solid rgba(0, 146, 82, 0.2);
  outline-offset: 3px;
}

.prayer-section {
  min-height: 240px;
  padding: 38px 0px;
  scroll-margin-top: 24px;
}

.prayer-section h2 {
  margin: 0 0 8px;
  color: #23362b;
  font-size: 1.25rem;
  text-align: center;
}

.prayer-date {
  min-height: 1.3em;
  margin: 0 0 4px;
  color: #718077;
  font-size: 0.82rem;
  text-align: center;
}

.prayer-school {
  margin: 0 0 16px;
  color: #718077;
  font-size: 0.72rem;
  text-align: center;
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 660px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(0, 146, 82, 0.16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 65, 40, 0.14);
}

.prayer-time-card {
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 6px;
  background: #56e78e;
  text-align: center;
}

.prayer-time-card:not(:nth-child(3n)) {
  border-right: 1px solid rgba(0, 146, 82, 0.14);
}

.prayer-time-card:nth-child(-n+3) {
  border-bottom: 1px solid rgba(0, 146, 82, 0.14);
}

.prayer-time-card i {
  color: #000000;
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
}

.prayer-time-card span {
  color: #44584b;
  font-size: clamp(0.66rem, 2vw, 0.82rem);
  font-weight: 600;
  line-height: 1.25;
}

.prayer-time-card strong {
  color: #173b2a;
  font-size: clamp(0.8rem, 2.4vw, 0.98rem);
  font-variant-numeric: tabular-nums;
}

.prayer-times-footer {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1px;
}

.prayer-times-footer p {
  margin: 0;
  color: #718077;
  font-size: 0.75rem;
  text-align: center;
}

.prayer-times-footer p.is-error {
  color: #a52b24;
}

.prayer-times-retry {
  border: 0;
  padding: 4px 8px;
  background: transparent;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
}

.prayer-times-retry[hidden] {
  display: none;
}

.qibla-page {
  min-height: 72vh;
  padding: clamp(28px, 6vw, 64px) 0;
  background:
    radial-gradient(ellipse at 90% 0, rgba(86, 231, 142, 0.15), transparent 38%),
    linear-gradient(180deg, #f5fbf7 0%, #fff 78%);
}

.qibla-panel {
  width: min(100% - 28px, 480px);
  margin: 0 auto;
  border: 1px solid rgba(0, 146, 82, 0.12);
  border-radius: 24px;
  padding: clamp(22px, 6vw, 34px);
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 65, 40, 0.1);
  text-align: center;
}

.qibla-panel h1 {
  margin-bottom: 20px;
  color: #183b2a;
  font-family: "Playfair Display", serif;
}

.qibla-panel > p {
  margin: 0 auto 20px;
  color: #64746b;
  line-height: 1.7;
}

.qibla-compass {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto 18px;
  overflow: visible;
}

.qibla-compass-ring {
  fill: #f8fcf9;
  stroke: #d9ebe0;
  stroke-width: 2;
}

.qibla-compass-inner-ring {
  fill: none;
  stroke: #e7f0ea;
  stroke-width: 1;
}

.qibla-cardinal {
  fill: #496257;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
}

.qibla-north-pointer {
  fill: #128653;
}

.qibla-center {
  fill: #fff;
  stroke: #128653;
  stroke-width: 3;
}

.qibla-center-dot {
  fill: #128653;
}

.qibla-marker-shadow {
  fill: rgba(24, 61, 42, 0.16);
}

.qibla-marker-bg {
  fill: #fff;
  stroke: #d9ebe0;
  stroke-width: 2;
}

.qibla-kaaba {
  fill: #18231d;
}

.qibla-kaaba-band {
  fill: #d4ad55;
}

.qibla-readings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 20px;
}

.qibla-reading {
  border-radius: 14px;
  padding: 12px 9px;
  background: #f1f8f4;
}

.qibla-reading span {
  display: block;
  margin-bottom: 5px;
  color: #64746b;
  font-size: 0.74rem;
}

.qibla-reading strong {
  color: #137847;
  font-size: 1.03rem;
}

.qibla-status {
  min-height: 2.8em;
  margin: 14px 0 0 !important;
  color: #52655a !important;
  font-size: 0.85rem;
}

.qibla-status.is-error {
  color: #a52b24 !important;
}

.qibla-enable {
  width: 100%;
  min-height: 48px;
}

.qibla-kaaba-label {
  fill: #173b2a;
  font-family: "Poppins", sans-serif;
  font-size: 8px;
  font-weight: 700;
  text-anchor: middle;
}

.welcome-hero .container {
  max-width: 1040px;
}

.welcome-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.welcome-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.welcome-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 6vw, 3.7rem);
  line-height: 1.13;
}

.welcome-copy > p {
  max-width: 650px;
  margin: 0 auto;
  color: #5f6b65;
  font-size: clamp(0.96rem, 2vw, 1.1rem);
  line-height: 1.8;
}

.welcome-copy > .welcome-login-note {
  margin-top: 15px;
  color: #7a6651;
  font-size: 0.82rem;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.welcome-login-btn,
.welcome-browse-btn {
  min-height: 48px;
  padding: 12px 20px;
}

.welcome-browse-btn {
    background: linear-gradient(135deg, var(--primary), #56E78E);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.93rem;
    box-shadow: 0 8px 24px rgb(132 230 187);
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
}

.welcome-browse-btn:hover,
.welcome-browse-btn:focus-visible {
  color: var(--primary);
  background: #effaf3;
  transform: translateY(-1px);
}

.welcome-copy .welcome-login-note {
  margin-top: 12px;
  font-size: 0.8rem;
}

.welcome-quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 6vw, 58px);
}

.welcome-quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(0, 146, 82, 0.12);
  border-radius: 16px;
  color: #26352d;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome-quick-card:hover,
.welcome-quick-card:focus-visible {
  color: #26352d;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.welcome-quick-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--primary);
  background: rgba(0, 146, 82, 0.1);
}

.welcome-quick-card > span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.welcome-quick-card strong {
  color: #183728;
  font-size: 0.92rem;
}

.welcome-quick-card small {
  color: #6b7771;
  font-size: 0.74rem;
  line-height: 1.5;
}

.welcome-quick-arrow {
  margin-left: auto;
  color: var(--primary);
  font-size: 0.8rem;
}

html[lang="ur"] .welcome-quick-arrow {
  transform: rotate(180deg);
}

@media (max-width: 991.98px) {
  .utility-menu {
    border-top: 1px solid rgba(17, 24, 39, 0.07);
    margin-top: 10px;
  }

  .utility-menu .navbar-nav {
    padding: 6px 0 4px;
  }

  .utility-menu .nav-link {
    padding: 11px 4px !important;
  }
}

@media (max-width: 575.98px) {
  .primary-tabs {
    padding-top: 8px;
  }

  .primary-tabs-list {
    gap: 6px;
    padding: 7px 6px;
    border-radius: 16px;
  }

  .primary-tab {
    min-height: 50px;
    gap: 3px;
    font-size: 0.66rem;
    border-radius: 12px;
  }
}

@media (max-width: 700px) {
  .welcome-quick-links {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 440px;
    margin-right: auto;
    margin-left: auto;
  }

  .welcome-quick-card {
    padding: 14px;
  }
}

@media (max-width: 767.98px) {
  html {
    background: #1a1a1a;
  }

  body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
    background-clip: content-box;
  }

  .primary-tabs {
    position: fixed;
    z-index: 1050;
    right: 0;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 0;
    padding: 0;
    pointer-events: none;
  }

  .primary-tabs .container {
    width: min(100%, 440px);
    pointer-events: auto;
  }

  .primary-tabs-list {
    gap: 5px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: var(--primary);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .primary-tab {
    min-height: 52px;
    color: rgba(255, 255, 255, 0.88);
    border-radius: 22px;
  }

  .primary-tab:hover {
    color: #fff;
  }

  .primary-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
  }
}
/* FIX 1 Ã¢â‚¬â€ Search btn in navbar */
#navSearchBtn {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 8px;
  transition: 0.3s;
}
#navSearchBtn:hover {
  background: rgba(232, 40, 26, 0.08);
  color: var(--primary);
}
.nav-cta {
  background: linear-gradient(135deg, var(--primary), #56E78E);
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 20px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(232, 40, 26, 0.3);
  margin-left: 6px;
}
.nav-cta::after {
  display: none !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232, 40, 26, 0.4);
}

/* ===================== SECTION COMMONS ===================== */
section {
  padding: 88px 0;
}
.slbl {
  font-family: "Dancing Script", cursive;
  font-size: 1.35rem;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}
.stitle {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}
.stitle span {
  color: var(--primary);
}
.sline {
  width: 58px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 0 auto 12px;
}
.sline.lft {
  margin-left: 0;
}
.sdesc {
  color: #777;
  font-size: 0.93rem;
  line-height: 1.8;
}
.btn-red {
  background: linear-gradient(135deg, var(--primary), #56E78E);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.93rem;
  box-shadow: 0 8px 24px rgb(132 230 187);
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}
.btn-red:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgb(0 0 0 / 45%);
  color: #fff;
}

.feature-showcase {
  background: linear-gradient(180deg, #f7faf8 0%, #ffffff 100%);
  padding-top: 30px;
}

.notice-banner {
  padding-top: 0;
  padding-bottom: 18px;
}

.notice-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid rgba(0, 146, 82, 0.12);
  border-top: 5px solid var(--primary);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 146, 82, 0.06), rgba(86, 231, 142, 0.08));
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.notice-box-highlight {
  animation: notice-box-highlight 1.8s ease-out;
}

@keyframes notice-box-highlight {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
  }
  35% {
    transform: scale(1.015);
    box-shadow: 0 0 0 5px rgba(0, 146, 82, 0.16), 0 16px 34px rgba(0, 146, 82, 0.2);
  }
}

.notice-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 146, 82, 0.12);
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.notice-box p {
  margin: 0;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.7;
  font-weight: 500;
}

.notice-box strong {
  color: var(--dark);
  font-weight: 700;
}

.notice-box a {
  color: var(--primary);
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  display: block;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 146, 82, 0.12);
  border-radius: 24px;
  padding: 30px 28px 26px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 55px rgba(0, 146, 82, 0.12);
  border-color: rgba(0, 146, 82, 0.28);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.feature-icon {
  /*width: 64px;*/
  width: 100%;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 24px rgba(0, 146, 82, 0.22);
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 146, 82, 0.08);
  color: var(--primary);
  border: 1px solid rgba(0, 146, 82, 0.12);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.feature-card p {
  margin: 0;
  color: #526071;
  line-height: 1.8;
  font-size: 0.96rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 700;
  color: var(--primary);
}

.feature-jummah .feature-icon {
  background: linear-gradient(135deg, #0f9f7f, #52d39c);
}

.feature-locator .feature-icon {
  background: linear-gradient(135deg, #178a66, #6ad5a4);
}

@media (max-width: 767.98px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 24px 20px 22px;
  }
}

/* ===================== HERO ===================== */
#hero {
  background: var(--cream);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hbgtxt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22vw;
  font-weight: 900;
  font-family: "Playfair Display", serif;
  color: rgba(0, 0, 0, 0.04);
  pointer-events: none;
  white-space: nowrap;
}
.hs {
  position: absolute;
  border-radius: 50%;
}
.hs1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(232, 40, 26, 0.07), transparent 70%);
  top: -90px;
  right: -80px;
  animation: fsh 8s ease-in-out infinite;
}
.hs2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(246, 166, 35, 0.09),
    transparent 70%
  );
  bottom: -50px;
  left: 8%;
  animation: fsh 10s ease-in-out infinite reverse;
}
@keyframes fsh {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-28px);
  }
}
.hbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 30px;
  padding: 6px 16px 6px 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 22px;
}
.hbadge .hbi {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.78rem;
}
.hbadge span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--dark);
}
.htitle {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
}
.htitle .hl {
  color: var(--primary);
  position: relative;
  display: inline-block;
}
.htitle .hl::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 7px;
  background: rgba(232, 40, 26, 0.14);
  border-radius: 4px;
  z-index: -1;
}
.hdesc {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  max-width: 470px;
  margin-bottom: 30px;
}
/* FIX 2 Ã¢â‚¬â€ Video play button */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  transition: 0.3s;
  cursor: pointer;
}
.btn-play .pico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  color: var(--primary);
  font-size: 0.95rem;
  transition: 0.3s;
  flex-shrink: 0;
}
.btn-play:hover .pico {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}
.btn-play:hover {
  color: var(--primary);
}
.hstats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hstat .snum {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--dark);
  display: block;
  line-height: 1;
}
.hstat .snum em {
  color: var(--primary);
  font-style: normal;
}
.hstat small {
  font-size: 0.7rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sdiv {
  width: 1px;
  background: #ddd;
  height: 38px;
  align-self: center;
}
.hcircle {
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff8f0, #ffe5c8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 28px 76px rgba(232, 40, 26, 0.14);
}
.hcircle img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
}
.fcard {
  position: absolute;
  background: #fff;
  border-radius: 11px;
  padding: 10px 15px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 9px;
}
.fcard.fc1 {
  top: 55px;
  left: -15px;
  animation: fltc 4s ease-in-out infinite;
}
.fcard.fc2 {
  bottom: 75px;
  right: -25px;
  animation: fltc 4s ease-in-out infinite 1.5s;
}
.fcard.fc3 {
  top: 38%;
  right: -45px;
  animation: fltc 4s ease-in-out infinite 0.8s;
}
@keyframes fltc {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
.fcoi {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.fcoi.r {
  background: rgba(232, 40, 26, 0.11);
  color: var(--primary);
}
.fcoi.y {
  background: rgba(246, 166, 35, 0.14);
  color: var(--secondary);
}
.fcoi.g {
  background: rgba(45, 106, 79, 0.11);
  color: var(--green);
}
.fcnum {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--dark);
  display: block;
  line-height: 1;
}
.fcsm {
  font-size: 0.66rem;
  color: #999;
}

/* ===================== MARQUEE ===================== */
.mqsec {
  background: var(--primary);
  padding: 13px 0;
  overflow: hidden;
}
.mqtrack {
  display: flex;
  gap: 38px;
  white-space: nowrap;
  animation: mqrun 22s linear infinite;
}
.mqitem {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
}
.mqitem i {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.55rem;
}
@keyframes mqrun {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===================== ABOUT ===================== */
#about {
  background: #fff;
}
.astack {
  position: relative;
}
.amain {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.amain img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}
.asm {
  position: absolute;
  bottom: -26px;
  right: -26px;
  width: 170px;
  height: 170px;
  border-radius: 14px;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}
.asm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aexp {
  position: absolute;
  top: 28px;
  left: -16px;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(232, 40, 26, 0.4);
}
.aexp .anum {
  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}
.aexp small {
  font-size: 0.7rem;
  opacity: 0.9;
}
.fti {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
}
.ftico {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: 0.3s;
}
.ftico.r {
  background: rgba(232, 40, 26, 0.1);
  color: var(--primary);
}
.ftico.y {
  background: rgba(246, 166, 35, 0.11);
  color: var(--secondary);
}
.ftico.g {
  background: rgba(45, 106, 79, 0.1);
  color: var(--green);
}
.fti:hover .ftico {
  transform: scale(1.1);
}
.fti h6 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
  font-family: "Poppins", sans-serif;
}
.fti p {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
  line-height: 1.6;
}

/* ===================== MENU ===================== */
#menu {
  background: var(--light);
}
/* FIX 3 Ã¢â‚¬â€ Filter buttons */
.filtbtn {
  border: 2px solid #e5e5e5;
  background: #fff;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: 0.3s;
  margin: 3px;
  font-family: "Poppins", sans-serif;
}
.menu-search-panel {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.menu-search-section {
  position: relative;
  z-index: 10;
}

#mgrid {
  position: relative;
  z-index: 0;
}

.menu-search-wrapper,
.menu-city-wrapper {
  flex: 1 1 420px;
  min-width: 220px;
  max-width: 560px;
}

.menu-city-wrapper {
  flex-basis: 220px;
  max-width: 220px;
  position: relative;
  z-index: 1;
}
.menu-no-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 2;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0;
  color: red;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  pointer-events: none;
}

.menu-search-wrapper input,
.custom-select-trigger {
  width: 100%;
  height: 52px;
  border: 1px solid #dfe5e2;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 16px;
  color: #333;
  background: #fff;
  outline: none;
  -webkit-text-size-adjust: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.menu-search-wrapper input:focus,
.custom-select-trigger:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 6px rgba(0, 146, 82, 0.12);
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  color: #0f172a;
  box-shadow: none;
}

.custom-select-label {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #1f2937;
  transition: transform 0.2s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 10px 8px;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.custom-select.open .custom-select-menu {
  display: block;
}

.custom-select-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #111827;
  font-size: 1.02rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.custom-select-option:hover,
.custom-select-option.active {
  background: rgba(0, 146, 82, 0.08);
  color: var(--primary);
}

@media (max-width: 576px) {
  .menu-search-panel {
    gap: 10px;
  }

  .menu-search-wrapper,
  .menu-city-wrapper {
    flex-basis: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .menu-search-wrapper input,
  .custom-select-trigger {
    padding: 12px 16px;
    font-size: 0.92rem;
  }

  .menu-no-results {
    position: static;
    width: auto;
    max-width: none;
    margin: 45px 0 0;
    font-size: 1rem;
    text-align: center;
    white-space: normal;
  }
}
.filtbtn.active,
.filtbtn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 5px 18px rgba(232, 40, 26, 0.24);
}
.mwrap {
  transition: 0.35s;
}
.mwrap.gone {
  display: none !important;
}
.mcard {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  transition: 0.4s;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.mcard:hover {
  transform: translateY(-9px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.13);
}
.mimg {
  position: relative;
  overflow: hidden;
  height: 215px;
  background: var(--cream2);
}

.mosque-favorite-toggle {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #46534b;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.mosque-favorite-toggle.is-favorite {
  color: #d52d48;
}

.mosque-favorite-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.mosque-favorite-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.mpbox .mpimg {
  position: relative;
}

.mp-favorite-toggle {
  top: 16px;
  right: auto;
  left: 16px;
}

.mimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.mcard:hover .mimg img {
  transform: scale(1.09);
}
.mbdg {
  position: absolute;
  top: 13px;
  left: 13px;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  padding: 3px 11px;
  font-size: 0.7rem;
  font-weight: 700;
}
.mbdg.new {
  background: var(--green);
}
.mbdg.hot {
  background: var(--secondary);
  color: var(--dark);
}
.mbdg.estd {
  left: 13px;
  right: auto;
}
/* FIX 4 Ã¢â‚¬â€ Heart & Plus buttons stop propagation */
.mhrt {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.1);
}
.mhrt:hover {
  color: var(--primary);
  transform: scale(1.18);
}
.mbody {
  padding: 18px;
}
.mcat {
  font-size: 0.7rem;
  font-weight: 800;
  color: black;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.mtit {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: "Playfair Display", serif;
}
.mdesc {
  font-size: 0.85rem;
  color: black;
  margin-bottom: 5px;
  line-height: 1.5;
}
.mcard-timings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 0;
  margin: 15px -2px 2px;
  padding: 11px 7px 10px;
  border: 1px solid rgba(45, 106, 79, 0.1);
  border-radius: 13px;
  background: linear-gradient(135deg, #f3faf5 0%, #edf6f0 100%);
}
.mcard-time {
  min-width: 0;
  padding: 1px 8px;
  text-align: center;
  border-right: 1px solid rgba(45, 106, 79, 0.12);
}
.mcard-time:nth-child(3n) {
  border-right: 0;
}
.mcard-time:nth-child(n + 4) {
  padding-top: 8px;
  border-top: 1px solid rgba(45, 106, 79, 0.1);
}
.mcard-time span {
  display: block;
  overflow: hidden;
  color: #668077;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.mcard-time strong {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}
.mcard-time-jummah strong {
  color: var(--primary);
}
.mfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mprice {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  font-family: "Playfair Display", serif;
}
.mprice small {
  font-size: 0.72rem;
  font-weight: 400;
  color: #ccc;
  text-decoration: line-through;
  margin-left: 5px;
}
.mstars {
  font-size: 0.73rem;
  color: var(--secondary);
}
/* FIX 4 Ã¢â‚¬â€ Plus button opens detail popup */
.madd {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #c01e12);
  border: none;
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 11px rgba(232, 40, 26, 0.28);
}
.madd:hover {
  transform: scale(1.15) rotate(90deg);
}



/* ===================== HISTORY Ã¢â‚¬â€ FIX 8 ===================== */
#history {
  background: var(--cream);
}
.timeline {
  position: relative;
  padding: 18px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  top: 0;
  bottom: 0;
}
/* Grid: left-col | dot-col | right-col */
.tli {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  margin-bottom: 50px;
  align-items: start;
}
.tl-left {
  padding-right: 32px;
  text-align: right;
}
.tl-center {
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.tl-right {
  padding-left: 32px;
  text-align: left;
}
/* ODD Ã¢â€ â€™ show LEFT text, hide RIGHT */
.tli:nth-child(odd) .tl-right {
  visibility: hidden;
}
/* EVEN Ã¢â€ â€™ hide LEFT, show RIGHT */
.tli:nth-child(even) .tl-left {
  visibility: hidden;
}
.tldot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px rgba(232, 40, 26, 0.3);
  flex-shrink: 0;
}
.tlyear {
  font-family: "Dancing Script", cursive;
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 3px;
}
.tl-left h5,
.tl-right h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 7px;
  font-family: "Playfair Display", serif;
  color: var(--dark);
}
.tl-left p,
.tl-right p {
  font-size: 0.83rem;
  color: #888;
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 767px) {
  .timeline::before {
    left: 16px;
  }
  .tli {
    grid-template-columns: 32px 1fr;
    gap: 0;
  }
  .tl-left {
    display: none;
  }
  .tl-right {
    display: block !important;
    visibility: visible !important;
    padding-left: 18px;
    text-align: left;
  }
  .tl-center {
    padding-top: 5px;
  }
  .tli:nth-child(even) .tl-left {
    display: none;
  }
  .tli:nth-child(odd) .tl-right {
    visibility: visible !important;
  }
}

/* ===================== CHEFS ===================== */
#chefs {
  background: #fff;
}
.chcard {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition: 0.4s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}
.chcard:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow-lg);
}
.chimg {
  position: relative;
  overflow: hidden;
  height: 268px;
  background: var(--cream2);
}
.chimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: 0.5s;
}
.chcard:hover .chimg img {
  transform: scale(1.05);
}
.chsoc {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  transition: 0.4s;
  padding: 10px 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}
.chcard:hover .chsoc {
  bottom: 0;
}
.chsoc a {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.78rem;
  transition: 0.3s;
}
.chsoc a:hover {
  background: var(--primary);
}
.chbody {
  padding: 18px;
  text-align: center;
}
.chnm {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.chrole {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.chexp {
  font-size: 0.76rem;
  color: #bbb;
  margin-top: 5px;
}

/* ===================== HOURS ===================== */
#hours {
  background: linear-gradient(135deg, var(--green), #1a4a35);
  position: relative;
  overflow: hidden;
}
.hrsbg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background: repeating-linear-gradient(
    45deg,
    #fff 0,
    #fff 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 28px 28px;
}
.hrscard {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 28px;
}
.hrsrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  white-space: nowrap;
}
.hrsrow:last-child {
  border: none;
}
.hrsday {
  color: rgba(255, 255, 255);
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}
.hrstime {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-left: auto;
}
.hdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.hdot.on {
  background: #4ade80;
  box-shadow: 0 0 7px #4ade80;
}
.hdot.off {
  background: #ff6b6b;
}
.hrscta {
  background: var(--primary);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 18px 48px #56E78E;
}
.hrscta h4 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
}
.hrscta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  margin: 9px 0 18px;
}
.btnw {
  background: #fff;
  color: var(--primary);
  border-radius: 50px;
  padding: 11px 28px;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-block;
  transition: 0.3s;
}
.btnw:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  color: var(--primary);
}

/* ===================== TESTIMONIALS ===================== */
#testimonials {
  background: #fff;
}
.tescard {
  background: var(--cream);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: 0.4s;
}
.tescard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.tesq {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 4.5rem;
  color: rgba(232, 40, 26, 0.07);
  font-family: "Playfair Display", serif;
  line-height: 1;
}
.tess {
  color: var(--secondary);
  font-size: 0.83rem;
  margin-bottom: 12px;
}
.testxt {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 18px;
}
.tesauth {
  display: flex;
  align-items: center;
  gap: 11px;
}
.tesauth img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}
.tesnm {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 1px;
  font-family: "Poppins", sans-serif;
}
.tesrl {
  font-size: 0.73rem;
  color: #aaa;
}

/* ===================== RESERVATION Ã¢â‚¬â€ FIX 5 ===================== */
#reservation {
  background: var(--light);
}
.resico {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: rgba(232, 40, 26, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.flbl {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
  display: block;
}
.fctrl {
  width: 100%;
  border: 2px solid #eee;
  border-radius: 9px;
  padding: 11px 15px;
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: 0.3s;
  color: var(--dark);
  background: #fff;
  appearance: auto;
}
.fctrl:focus {
  border-color: var(--primary);
}
.fcard {
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}
.sucmsg {
  display: none;
  text-align: center;
  padding: 16px;
  background: rgba(45, 106, 79, 0.07);
  border-radius: 11px;
  margin-top: 14px;
}
.sucmsg i {
  color: var(--green);
  font-size: 1.7rem;
  display: block;
  margin-bottom: 7px;
}
.sucmsg p {
  color: var(--green);
  font-weight: 600;
  margin: 0;
  font-size: 0.88rem;
}

/* ===================== BLOG ===================== */
#blog {
  background: var(--light);
}
.blcard {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  transition: 0.4s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.blcard:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}
.blimg {
  position: relative;
  height: 195px;
  overflow: hidden;
}
.blimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.blcard:hover .blimg img {
  transform: scale(1.06);
}
.bldatebdg {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 9px;
  padding: 5px 11px;
  text-align: center;
  line-height: 1.2;
}
.bldatebdg .bd {
  font-size: 1.15rem;
  font-weight: 800;
  display: block;
}
.bldatebdg .bm {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.blbody {
  padding: 20px;
}
.bltag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 7px;
}
.bltit {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 9px;
  line-height: 1.4;
}
.bltit a {
  color: var(--dark);
}
.bltit a:hover {
  color: var(--primary);
}
.blmeta {
  display: flex;
  gap: 14px;
  font-size: 0.76rem;
  color: #bbb;
  margin-bottom: 13px;
}
.blmeta i {
  color: var(--primary);
  margin-right: 3px;
}
.blmore {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.blmore i {
  transition: 0.3s;
}
.blmore:hover {
  color: var(--dark);
}
.blmore:hover i {
  transform: translateX(5px);
}

/* ===================== NEWSLETTER ===================== */
#newsletter {
  background: linear-gradient(135deg, var(--primary), #56E78E);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.nlbg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='white' stroke-width='.4' opacity='.1'/%3E%3C/svg%3E");
  background-size: 75px;
}
.nlw {
  position: relative;
  z-index: 2;
}
.nlw h2 {
  color: #fff;
  font-size: 2.1rem;
}
/* Newsletter form Ã¢â‚¬â€ fixed layout */
.nl-form-wrap {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  align-items: center;
}
.nlinput {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  font-size: 0.9rem;
  outline: none;
  font-family: "Poppins", sans-serif;
  color: #333;
}
.nlbtn {
  flex-shrink: 0;
  background: var(--secondary);
  color: var(--dark);
  border: none;
  border-radius: 50px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s;
  font-family: "Poppins", sans-serif;
}
.nlbtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
@media (max-width: 540px) {
  .nl-form-wrap {
    flex-direction: column;
    padding: 0 10px;
  }
  .nlinput {
    width: 100%;
    border-radius: 12px;
  }
  .nlbtn {
    width: 100%;
    border-radius: 12px;
  }
}

/* ===================== CONTACT Ã¢â‚¬â€ FIX 6 ===================== */
#contact-section {
  background: #fff;
}
.ctdark {
  background: var(--dark);
  border-radius: 18px;
  padding: 38px;
  height: 100%;
}
.ctdark h4 {
  color: #fff;
  margin-bottom: 7px;
}
.ctdark .ctsub {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  margin-bottom: 26px;
}
.ctitem {
  display: flex;
  gap: 13px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.cticon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: rgba(232, 40, 26, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.ctinfo strong {
  display: block;
  color: #aaa;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1px;
  font-family: "Poppins", sans-serif;
}
.ctinfo span {
  color: #fff;
  font-size: 0.87rem;
}
.ctsocrow {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.ctsocrow a {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  transition: 0.3s;
}
.ctsocrow a:hover {
  background: var(--primary);
  color: #fff;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--dark);
  padding: 68px 0 0;
}

footer::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--dark);
}

.fnm {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
}
.fnm span {
  color: var(--primary);
}
.fdesc {
  color: #777;
  font-size: 0.86rem;
  line-height: 1.8;
  margin-top: 15px;
  text-align: center;
  display: none;
}
.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.app-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 146, 82, 0.18), rgba(86, 231, 142, 0.1));
  border: 1px solid rgba(86, 231, 142, 0.34);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 146, 82, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  max-width: 100%;
}
.app-download-btn:hover {
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 146, 82, 0.24);
  border-color: rgba(86, 231, 142, 0.6);
}
.app-download-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  color: var(--secondary);
  font-size: 1rem;
  flex-shrink: 0;
}
.app-download-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.app-download-text small {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.app-download-text strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
.footer-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-grid {
  align-items: center;
}

.fsoc {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 5px;
}
.fsoc a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 0.88rem;
  transition: 0.3s;
}
.fsoc a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}
.ftit {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 5px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  font-family: "Poppins", sans-serif;
  text-align: center;
}
.flinks li {
  list-style: none;
  margin-bottom: 9px;
}
.flinks a {
  color: #777;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: 0.3s;
}
.flinks a:hover {
  color: var(--secondary);
  padding-left: 5px;
}
.flinks a i {
  color: var(--primary);
  font-size: 0.68rem;
}
.fci {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-bottom: 14px;
}

@media (max-width: 767.98px) {
  .fdesc {
    display: block;
  }

  .footer-grid {
    display: flex;
    flex-wrap: wrap;
  }

  .footer-brand-col {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    margin-bottom: 0px;
  }

  .footer-brand-wrap {
    width: 100%;
    align-items: center;
  }

  .app-download-btn {
    width: 85%;
    justify-content: center;
    padding: 12px 14px;
  }

  .footer-center-col {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
    width: calc(50% - 12px);
    min-height: 170px;
  }
}

.fciico {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgb(255 255 255);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.82rem;
  flex-shrink: 0;
}
.fciinfo {
  color: #777;
  font-size: 0.83rem;
  line-height: 1.6;
}
.fciinfo strong {
  color: #bbb;
  display: block;
  font-size: 0.77rem;
}
.fbot {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
  margin-top: 0px;
}
.fbot p {
  color: #ffffff;
  font-size: 0.9rem;
  margin: 0;
}
.fbot span {
  color: var(--secondary);
}
.fbot a {
  color: #555;
  font-size: 1.1rem;
  margin-left: 18px;
}
.fbot a:hover {
  color: var(--secondary);
}

.credit-rotator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 1.5em;
  text-decoration: none;
  margin-left: 0 !important;
}

.credit-rotator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  min-height: 1.7em;
  text-decoration: none;
  margin-left: 0 !important;
  overflow: hidden;
}

.credit-word {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  white-space: nowrap;
  animation: creditSwap 5s ease-in-out infinite;
}

.credit-word-en {
  animation-delay: 0s;
}

.credit-word-ar {
  animation-delay: 2.5s;
}

@keyframes creditSwap {
  0%, 8% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  18%, 42% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  52%, 100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

/* ===================== UTILITIES ===================== */
#btt {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), #56E78E);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgb(132 230 187);;
  opacity: 0;
  transform: translateY(18px);
  transition: 0.4s;
}
#btt.show {
  opacity: 1;
  transform: translateY(0);
}
#btt:hover {
  transform: translateY(-4px) !important;
}
.cartfl {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9990;
  background: var(--secondary);
  border-radius: 50px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 7px 22px rgba(246, 166, 35, 0.38);
  cursor: pointer;
  transition: 0.3s;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.88rem;
}
.cartfl:hover {
  transform: translateY(-4px);
}
.cartfl .ccount {
  background: var(--primary);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
}

/* ====================================================
   ALL POPUP / MODAL STYLES
==================================================== */

/* --- FIX 4: MENU DETAIL POPUP --- */
#menuPop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
#menuPop.open {
  display: flex;
  animation: fadeov 0.28s ease;
}
#menuPop.auth-modal-underlay {
  z-index: 1040;
}
/* Added to fix the scroll issue */
.mpbox {
  background: #fff;
  border-radius: 28px;
  max-width: 900px;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(33, 33, 33, 0.06);
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.mpbox::-webkit-scrollbar {
  width: 5px;
}
.mpbox::-webkit-scrollbar-thumb {
  background: rgba(0, 146, 82, 0.35);
  border-radius: 999px;
}
.mpbox .mpimg {
  width: 42%;
  background: var(--cream2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px 0 0 28px;
  overflow: hidden;
  min-height: 420px;
}
.mpbox .mpimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Added to fix the scroll issue */
.mpbox .mpbody {
  width: 58%;
  padding: 36px 34px;
  display: block;
  overflow: visible;
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mpclose {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f6f6f6;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  z-index: 2;
}
.mpclose:hover {
  background: var(--primary);
  color: #fff;
}
#mpCat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1.3px;
  margin-bottom: 7px;
}
#mpTitle {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 9px;
  font-family: "Playfair Display", serif;
  color: var(--dark);
}
#mpStars {
  color: var(--secondary);
  font-size: 0.88rem;
  margin-bottom: 14px;
}
#mpDesc {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.8;
  margin-bottom: 18px;
}
#mpPrice {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 14px;
  font-family: "Playfair Display", serif;
}
#mpPrice small {
  font-size: 0.95rem;
  color: #ccc;
  text-decoration: line-through;
  margin-left: 7px;
}
.mpmeta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.mpm {
  text-align: center;
  background: var(--light);
  border-radius: 9px;
  padding: 9px 14px;
}
.mpmv {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--dark);
}
.mpml {
  font-size: 0.68rem;
  color: #bbb;
}
.mpqty {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}
.mpqbtn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  font-weight: 700;
}
.mpqbtn:hover {
  background: var(--primary);
  color: #fff;
}
.mpqnum {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  min-width: 30px;
  text-align: center;
}
.mptags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
}
.mptag {
  background: rgba(246, 166, 35, 0.11);
  color: var(--dark);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 0.73rem;
  font-weight: 600;
}
.mpaddcart {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 0px;
  padding: 14px 20px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  transition: 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.mpaddcart:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}



/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
  .hcircle {
    width: 320px;
    height: 320px;
  }
  .fc1,
  .fc2,
  .fc3 {
    transform: scale(0.82);
    transform-origin: center;
  }
  .ggrid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gitem:first-child {
    grid-row: span 1;
  }
  .asm {
    display: none;
  }
  .mpbox .mpimg,
  .mpbox .mpbody {
    width: 100%;
  }
  .mpbox .mpimg {
    border-radius: 0px;
    min-height: 240px;
  }
  .mpbox .mpbody {
    padding: 22px 18px;
  }
  /* Timeline mobile: collapse to single column */
  .timeline::before {
    left: 16px;
  }
  .tli {
    grid-template-columns: 32px 1fr !important;
  }
  .tl-left {
    display: none !important;
  }
  .tl-right {
    display: block !important;
    visibility: visible !important;
    padding-left: 18px !important;
    text-align: left !important;
  }
  .tl-center {
    padding-top: 5px;
  }
  .tli:nth-child(odd) .tl-right,
  .tli:nth-child(even) .tl-right {
    visibility: visible !important;
    display: block !important;
  }
}
@media (max-width: 767px) {
  section {
    padding: 55px 0;
  }
  /* For Overflow issue fix */
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .container,
  .container-fluid {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  .row > * {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
    width: 100%;
  }
  .swiper,
  .swiper-wrapper,
  .swiper-slide {
    max-width: 100%;
    overflow: hidden;
  }
  .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
  }
  .tesSwiper,
  .tesSwiper .swiper-wrapper,
  .tesSwiper .swiper-slide {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  #testimonials {
    overflow-x: hidden;
  }
  #testimonials .swiper {
    overflow: hidden;
    max-width: 100%;
  }
  #testimonials .swiper-wrapper {
    display: block !important;
    transform: none !important;
    width: 100% !important;
  }
  #testimonials .swiper-slide {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-right: 0 !important;
    margin-bottom: 18px;
  }
  .tesSwiper .tescard {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  /* For Overflow issue fix */
  [data-aos] {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .aos-init,
  .aos-animate {
    transform: none !important;
    opacity: 1 !important;
  }
  .tescard,
  .hrscard,
  .hrscta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  #hours .row > [class*="col-"],
  #hours .row > div,
  #testimonials .swiper-slide,
  #testimonials .swiper-wrapper,
  #testimonials .swiper {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  /* For Overflow issue fix */
  #topbar .top-contact span:last-child {
    display: none;
  }
  .hcircle {
    width: 260px;
    height: 260px;
  }
  /* Hide only hero floating cards, NOT form cards */
  .fcard.fc1,
  .fcard.fc2,
  .fcard.fc3 {
    display: none !important;
  }
  .hstats {
    display: none !important;
  }
  .ggrid {
    grid-template-columns: 1fr 1fr;
  }
  .cdwrap {
    gap: 8px;
  }
  .cditem {
    min-width: 56px;
    padding: 9px;
  }
  .nl-form-wrap {
    flex-direction: column;
    padding: 0 8px;
  }
  .nlinput,
  .nlbtn {
    width: 100%;
    border-radius: 12px;
  }
  /* For Overflow issue fix */
  .hrscard,
  .hrscta,
  .fcard {
    padding: 20px;
  }
  .hrscard,
  .hrscta {
    min-width: 0;
  }
  .hrsrow {
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    min-width: 0;
  }
  .hrsday,
  .hrstime {
    font-size: 0.84rem;
    line-height: 1.2;
    white-space: nowrap;
  }
  .hrstime {
    width: auto;
    text-align: right;
    word-break: normal;
    margin-left: auto;
  }
  .hrsday {
    word-break: normal;
  }
  .hrscta h4 {
    font-size: 1.2rem;
  }
  .fcard {
    padding: 24px 20px;
  }
}
/* For Overflow issue fix */
@media (max-width: 480px) {
  .mcard-timings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 9px;
    margin-top: 13px;
    padding: 9px 6px;
  }
  .mcard-time {
    padding: 2px 3px;
  }
  .mcard-time:nth-child(n + 4) {
    padding-top: 2px;
    border-top: 0;
  }
  .mcard-time:nth-child(3) {
    border-right: 0;
  }
  .mcard-time:nth-child(4) {
    border-right: 1px solid rgba(45, 106, 79, 0.12);
  }
  .mcard-time span {
    font-size: 0.56rem;
  }
  .mcard-time strong {
    font-size: 0.76rem;
  }
  .hcircle {
    width: 220px;
    height: 220px;
  }
  .htitle {
    font-size: 2.4rem;
  }
  .stitle {
    font-size: 1.8rem;
  }
}
