/* Skip to main content - accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.6rem 1rem;
  background: #bfa742;
  color: #111;
  font-weight: 600;
  border-radius: 8px;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* Error/Toast notification */
.error-toast {
  position: fixed;
  bottom: max(90px, calc(90px + env(safe-area-inset-bottom)));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 0.75rem 1.25rem;
  background: #1f2937;
  color: #fff;
  border-radius: 10px;
  font-size: 0.9rem;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  max-width: 90%;
  text-align: center;
}
.error-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.error-toast.offline {
  background: #92400e;
}
.error-toast.success {
  background: #065f46;
}

/* =====================================================
   ROOT THEME VARIABLES — UNIFIED PREMIUM SYSTEM
===================================================== */
:root {

  /* ========== MOTION & EASING ========== */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.45s;

  /* ========== BACKGROUNDS ========== */
  --bg-main: #f9fafb;
  --bg-elevated: rgba(255,255,255,0.88);
  --bg-elevated-strong: rgba(255,255,255,0.96);
  --bg-nav: rgba(255,255,255,0.6);
  
  --bg-header: rgba(255,255,255,0.80);

  /* ========== TEXT ========== */
  --text-main: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;

  /* ========== BORDERS ========== */
  --border-soft: rgba(0,0,0,0.08);
  --border-gold: rgba(181,155,58,0.35);

  /* ========== GOLD ========== */
  --accent: #b59b3a;
  --gold-soft: rgba(181,155,58,0.18);

  /* ========== SHADOWS ========== */
  --shadow-md: 0 18px 45px rgba(0,0,0,0.12);
  --lighter-sh: 0 8px 20px rgba(0,0,0,0.15);

  --radius-lg: 1.25rem;
  --radius-md: 0.85rem;

  --blur-lg: blur(16px);
  --border: rgba(0,0,0,0.08);
  --light_grey: #dbdcde;
}

/* ================= DARK ================= */
body.dark {

  --bg-main: #020617;
  --bg-elevated: rgba(6,11,38,0.85);
  --bg-elevated-strong: rgba(6,11,38,0.95);
  --bg-nav: rgba(2,6,23,0.6);
  

  --text-main: #f1f5f9;
  --text-secondary: #cbd5f5;
  --text-muted: #98a5b7;

  --border-soft: rgba(255,255,255,0.06);

  --shadow-md: 0 20px 50px rgba(0,0,0,0.6);
  --lighter-sh: 0 8px 20px rgba(0,0,0,0.4);
}



/* =====================================================
   PREMIUM BODY — RAMADAN STYLE GLOW
===================================================== */


/* Dim mode refinement */
body.dim.premium-body {
  background:
    radial-gradient(circle at top, rgba(250,204,21,0.10), transparent 60%),
    var(--bg-main);
}

/* Dark mode refinement */
body.dark.premium-body {
  background:
    radial-gradient(circle at top, rgba(212,175,55,0.12), transparent 60%),
    var(--bg-main);
}





body.dim {

  --bg-main: #111827;
  --bg-elevated: rgba(31,41,55,0.85);
  --bg-elevated-strong: rgba(31,41,55,0.95);
  --bg-nav: rgba(31,41,55,0.6);
  

  --text-main: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #94a3b8;

  --border-soft: rgba(255,255,255,0.08);

  --shadow-md: 0 18px 45px rgba(0,0,0,0.4);
  --lighter-sh: 0 8px 20px rgba(0,0,0,0.3);
}


.quote-card_2{
  margin: 1rem;
}


/* ===================================================== */
* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Poppins', system-ui, sans-serif;

  background:
    radial-gradient(circle at top, var(--gold-soft), transparent 60%),
    var(--bg-main);

  color: var(--text-main);
  transition: background .4s, color .4s;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}



/* =====================================================
   HEADER
===================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-normal) var(--ease-smooth);
}

body.dim .app-header{

  background: rgba(17, 24, 39, 0.726)

}

body.dark .app-header{

  background:  #020617b4;

}


/* active */

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}


.mobile-nav .nav-item:active {
  transform: scale(0.92);
}

.mobile-nav .nav-item.active {
  background: rgba(37,99,235,0.12);
  color: var(--accent);
}



/* DESKTOP NAV */
/* =====================================================
   HEADER + DESKTOP NAV
===================================================== */


.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem max(1.25rem, env(safe-area-inset-right)) 1rem max(1.25rem, env(safe-area-inset-left));

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 2vw, 1.5rem);
}

.brand-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* ---- Desktop Nav ---- */
.desktop-nav {
  display: none;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
  transition: color .25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .25s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions button {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast), transform var(--duration-fast);
}

.header-actions button:hover {
  background: rgba(191, 167, 66, 0.12);
}

.header-actions button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* THEME TOGGLE */
#themeToggle {
  cursor: pointer;
  font-size: 1.2rem;
}


body.dim .desktop-nav a {
   color: var(--lighter-sh)

}



/* =====================================================
   location_button
===================================================== */
/* =====================================================
   location_button — PREMIUM THEME ALIGNED
===================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  gap: 10px;
  
  /* Use your Theme Variables */
  background: var(--bg-elevated-strong);
  color: var(--accent); /* Gold text/icon */
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md); /* Matches your cards */
  
  /* Typography */
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 1rem);
  
  /* Effects */
  cursor: pointer;
  backdrop-filter: var(--blur-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  white-space: nowrap;
}

/* Hover: Slight glow and lift */
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px var(--gold-soft);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Dark/Dim specific adjustment for better contrast */
body.dark .btn-primary, 
body.dim .btn-primary {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
  .btn-primary {
    width: 100%;
    padding: 0.8rem;
  }
}

/* =====================================================
   MAIN
===================================================== */
.app-main {
  max-width: 1100px;
  margin: auto;
  padding: clamp(1rem, 3vw, 1.8rem) max(1rem, env(safe-area-inset-right)) clamp(1rem, 3vw, 1.4rem) max(1rem, env(safe-area-inset-left));
  padding-bottom: max(6rem, calc(6rem + env(safe-area-inset-bottom)));
}

/* =====================================================
   CARDS
===================================================== */
#gold_text{
  color:var(--accent)
}

.card {
  background: var(--bg-elevated);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);

  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);

  padding: 1.6rem;

  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-smooth),
    border-color var(--duration-normal) var(--ease-smooth);

  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 10px 20px -5px rgba(0,0,0,0.08);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.12), 0 0 0 1px rgba(191,167,66,0.08);
}

.card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}



body.dim .card,
body.dark .card {
  box-shadow: var(--lighter-sh);
}




/* =====================================================
   PRAYER CARD — PREMIUM UPGRADE
===================================================== */

.premium-card {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(circle at top, var(--gold-soft), transparent 65%),
    var(--bg-elevated);

  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);

  backdrop-filter: var(--blur-lg);

  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}


/* Subtle Islamic pattern overlay */
.prayer-overlay {
  position: absolute;
  inset: 0;
  background-image: url("https://www.transparenttextures.com/patterns/arabesque.png");
  opacity: 0.05;
  pointer-events: none;
}
.prayer-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.2rem;
  font-size: 0.9rem;
}
.prayer-times {
  text-align: center;
  font-size: 1rem;
}
/* Header */
.prayer-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.prayer-title .latin {
  font-size: 1.1rem;
}

.prayer-title .arabic {
  font-family: 'Amiri', serif;
  color: var(--accent);
  font-size: 1.5rem;
}

.prayer-title .divider {
  opacity: 0.4;
}

/* Date Styling */
.date-wrap {
  margin-top: 0.6rem;
}

.date-g {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.date-h {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.detected-city {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-height: 1.25em;
}

.detected-city:empty::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  vertical-align: middle;
  margin-right: 0.35rem;
}

@media (prefers-reduced-motion: no-preference) {
  .detected-city:empty::before {
    animation: pulse 1.5s ease-in-out infinite;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.moon-sighting-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.moon-sighting-link:hover {
  opacity: 1;
  color: var(--accent);
}

.premium-prayer-box {
  padding: 1rem 0.6rem;
  border-radius: var(--radius-md);

  background: var(--bg-elevated-strong);
  border: 1px solid var(--border-soft);

  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-normal),
    box-shadow var(--duration-normal);
}

.premium-prayer-box:hover {
  transform: translateY(-3px);
  border-color: rgba(198,169,74,0.4);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.12);
}

.prayer-time {
  font-weight: 600;
  margin-top: 0.3rem;
}


.prayer-box {
  width: 100%;
  text-align: center;
}


.premium-prayer-box {
  min-height: 75px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 0.6rem;
}



/* Hide extra prayers by default */
.extra-prayer {
  display: none;
}

/* Show them when expanded */
.prayer-grid.expanded .extra-prayer {
  display: flex;
}



.prayer-toggle {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}



.prayer-system {
  display: flex;
  flex-direction: column;
  align-items: center;   /* ← THIS centers everything */
}



/* =====================================================
   COUNTRY SELECT
===================================================== */
.country-select {
  width: 100%;
  max-width: 260px;
  padding: .7rem 1rem;

  border-radius: 999px;
  border: 1px solid var(--border-soft);

  background: var(--bg-elevated-strong);
  color: var(--text-main);

  backdrop-filter: var(--blur-lg);
}


/* =====================================================
   FEATURE GRID
===================================================== */
.feature-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}


.feature-desc { font-size: .85rem; color: var(--text-muted); }

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;

  text-align: center;
  text-decoration: none;
  color: inherit;

  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-smooth),
    border-color var(--duration-normal) var(--ease-smooth),
    background var(--duration-fast);

  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--border-gold);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.12);
  background: var(--bg-elevated-strong);
}

.feature-card:active {
  transform: translateY(-2px) scale(0.99);
}

.feature-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1;
  filter: grayscale(0.1);
}

.feature-title {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.feature-desc {
  margin-top: 0.25rem;
}


/* =====================================================
   PROFESSIONAL PRAYER GRID SYSTEM (FIXED)
===================================================== */
/* =====================================================
   CLEAN PRAYER GRID (FINAL VERSION)
===================================================== */

.prayer-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.8rem;
  width: 100%;
  max-width: 800px;
}

/* Mobile → always 2 columns */
.prayer-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Tablet */
@media (min-width: 640px) {
  .prayer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .prayer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .prayer-grid.expanded {
    grid-template-columns: repeat(5, 1fr);
  }
}



/* Center Maghrib when collapsed on mobile */
@media (max-width: 639px) {
  .prayer-grid:not(.expanded) .prayer-box:nth-child(4) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 200px;
  }
}



/* Center Isha when expanded on mobile */
@media (max-width: 639px) {
  .prayer-grid.expanded .prayer-box:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 200px;
  }
}


/* =====================================================
   QUOTE
===================================================== */
.quote-text {
  font-size: .95rem;
  color: var(--text-muted);
}

/* =====================================================
   CALENDAR ICON
===================================================== */

/* --- calendar live ----*/

/* ================= REAL CALENDAR ICON ================= */

.calendar-icon {
  width: 66px;
  height: 72px;
  border-radius: 0.9rem;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.103);
  background: #fff;
  font-family: 'Poppins', sans-serif;
}

.calendar-month {
  background: linear-gradient(135deg,#facc15,#bfa742);
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  padding: 0.35rem 0;
  letter-spacing: .08em;
}

.calendar-day {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 680;
  color: #111;
  line-height: 1.4;
}

/* Dark & Dim support */
body.dim .calendar-icon,
body.dark .calendar-icon {
  background: #17173b9f;
}

body.dim .calendar-day,
body.dark .calendar-day {
  color: #e5e7eb;
}



/*-- calandar live end ----*/

/* =====================================================
   MOBILE NAV
===================================================== */
.mobile-nav {
  position: fixed;
  bottom: max(0.9rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 420px);
  background: var(--bg-nav);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem clamp(0.4rem, 2vw, 0.75rem);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 4px 24px -4px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  z-index: 50;
}

.mobile-nav .nav-item {
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem clamp(0.5rem, 2vw, 1rem);
  border-radius: 999px;
  font-size: clamp(0.7rem, 2.5vw, 0.8rem);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast), background var(--duration-fast);
}

.mobile-nav .nav-item:hover {
  color: var(--accent);
}

.mobile-nav .nav-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mobile-nav .nav-item.gold {
  color: var(--accent);
  font-weight: 600;
}


body.dark .mobile-nav .nav-item,
body.dim .mobile-nav .nav-item {
  color: var(--light_grey);
}



/* -- filter Nav Blur -- */





body.dim .mobile-nav {
  backdrop-filter: blur(16px);
   border-top: 1px solid rgba(0,0,0,.08);
   background-color: #1f29374b;
}


body.dark .mobile-nav {
   backdrop-filter: blur(16px);
   border-top: 1px solid rgba(0,0,0,.08);
   background-color: #17202c4b;
}



/* -- filter Nav End Blur -- */


  body.dark .app-footer,
  body.dim .app-footer {
  color: #9ca3af;

}


/* ---------- FOOTER ---------- */
.app-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
  border-top: 1px solid var(--border-soft);
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer-link:hover {
  color: var(--accent);
}

.footer-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- End FOOTER ---------- */

/* =====================================================
   RESPONSIVE — Small mobile → Tablet → Desktop
===================================================== */

/* Small mobile (< 360px) */
@media (max-width: 359px) {
  .header-inner { padding: 0.75rem 1rem; }
  .brand-title { font-size: 1.1rem; }
  .brand-subtitle { font-size: 0.65rem; }
  .app-main { padding: 1rem 1rem 5.5rem; }
  .card { padding: 1.2rem; }
  .feature-card { padding: 1rem 1rem; }
  .feature-icon { font-size: 1.75rem; }
  .feature-title { font-size: 0.9rem; }
  .prayer-grid { gap: 0.8rem; margin-top: 1.2rem; }
  .premium-prayer-box { min-height: 65px; padding: 0.6rem 0.4rem; }
  .prayer-header { font-size: 0.8rem; }
  .prayer-time { font-size: 0.9rem; }
  .mobile-nav .nav-item { padding: 0.4rem 0.6rem; font-size: 0.7rem; }
  .calendar-icon { width: 56px; height: 62px; }
  .calendar-day { font-size: 1.75rem; }
}

/* Mobile (360px - 479px) */
@media (min-width: 360px) and (max-width: 479px) {
  .app-main { padding: 1.2rem 1.2rem 5.5rem; }
  .card { padding: 1.4rem; }
}

/* Tablet (640px - 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
  .app-main { padding: 1.6rem 2rem 6rem; }
  .feature-grid { gap: 1.5rem; }
  .header-inner { padding: 1rem 1.5rem; }
}

/* Desktop */
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .mobile-nav { display: none; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .app-main { padding-bottom: 2rem; }
}

/* Large desktop */
@media (min-width: 1280px) {
  .header-inner { padding: 1rem 2rem; }
  .app-main { padding: 2rem 2rem 3rem; }
}

/* ===================================================== */
.no-copy {
  user-select: none;
}



/* ================= UPDATED THEME VARIABLES ================= */



.artistic-calligraphy-box {
  background:
    radial-gradient(circle at top, var(--gold-soft), transparent 60%),
    var(--bg-elevated);

  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);

  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);

  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 10px 20px -5px rgba(0,0,0,0.08);
}

.artistic-calligraphy-box .section-title {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calligraphy-wrapper {
  padding: 1.25rem 0;
}

.arabic-calligraphy {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--accent);
  margin: 0.5rem 0 1rem 0;
  line-height: 1.7;
  text-shadow: 0 0 20px rgba(198, 169, 74, 0.15);
}

.divider-gold {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 1rem auto;
  border-radius: 2px;
  opacity: 0.6;
}

.quote-author {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Enhancing the card for Dark/Dim modes specifically */
body.dark .artistic-calligraphy-box {
    background: linear-gradient(145deg, var(--bg-card), rgba(0,0,0,0.2));
    box-shadow: var(--lighter-sh), inset 0 0 20px rgba(198, 169, 74, 0.05);
}


body.dim .artistic-calligraphy-box {
    background: linear-gradient(145deg, var(--bg-card), rgba(0,0,0,0.2));
    box-shadow: var(--lighter-sh), inset 0 0 20px rgba(198, 169, 74, 0.05);
}

/* Responsive adjustment */
@media (max-width: 480px) {
  .arabic-calligraphy {
    font-size: 1.6rem;
  }
}