/*
Theme Name: وايت ماء 6 طن - الرياض
Theme URI: https://wayet-riyadh.com
Author: Web Logic
Author URI: https://wa.me/201066726354
Description: قالب ووردبريس وإليمنتور ديناميكي متكامل لخدمة توصيل وايت ماء 6 طن بالرياض، متوافق مع جميع إضافات السيو و LiteSpeed Cache ويدعم الوضع الليلي والنهاري والتحكم الشامل بنسبة 100%.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wayet-riyadh-6ton
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, elementor, seo-ready
*/

:root {
  --brand-primary: #023788;
  --brand-primary-hover: #012a6b;
  --brand-accent: #D9EFF6;
  --brand-heading: #0B2F00;
  --brand-highlight: #1E5B8C;
  --brand-text: #333333;
  --brand-muted: #526377;
  --brand-white: #FFFFFF;

  --bg-primary: #FFFFFF;
  --bg-secondary: #D9EFF6;
  --bg-card: #FFFFFF;
  --bg-card-tint: #EAF6FB;
  --border-subtle: rgba(2, 55, 136, 0.14);
  --header-bg: rgba(255, 255, 255, 0.96);
  --footer-bg: #EAF6FB;
  --footer-heading: #0f172a;
  --footer-text: #1e293b;
  --footer-border: rgba(2, 55, 136, 0.16);
}

html.dark,
body.dark {
  --brand-heading: #FFFFFF;
  --brand-text: #E2EDF7;
  --brand-muted: #B6CBE0;
  --bg-primary: #081521;
  --bg-secondary: #10283B;
  --bg-card: #183D58;
  --bg-card-tint: #14334A;
  --border-subtle: rgba(168, 201, 224, 0.2);
  --header-bg: rgba(8, 21, 33, 0.96);
  --footer-bg: #081521;
  --footer-heading: #FFFFFF;
  --footer-text: #E2E8F0;
  --footer-border: rgba(255, 255, 255, 0.14);
}

/* Base Layout & Zero White Space Below Footer */
html {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--brand-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

main,
.wy-main {
  flex: 1 0 auto;
}

body > *:last-child {
  margin-bottom: 0 !important;
}

*, *::before, *::after {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  color: var(--brand-heading);
  line-height: 1.38;
  text-wrap: balance;
}

p, a, li, input, textarea, select, button, .btn, .btn span {
  font-family: 'Tajawal', sans-serif;
}

.btn, .btn span, button span {
  font-family: 'Tajawal', sans-serif !important;
}

/* Container 1440px + Elementor Sync */
.wy-container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .wy-container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .wy-container {
    padding-inline: 2rem;
  }
}

.elementor-section.elementor-section-boxed > .elementor-container,
.e-con.e-con-boxed > .e-con-inner {
  max-width: 1440px !important;
}

/* Header, 4px Progress Bar, 3-Level RTL Dropdown & Sliding Box */
.wy-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  overflow: visible !important;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 783px) {
  .admin-bar .wy-header {
    top: 32px;
  }
}

@media (min-width: 601px) and (max-width: 782px) {
  .admin-bar .wy-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .wy-header {
    top: 0;
  }
}

.wy-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 76px;
  position: relative;
  width: 100%;
}

.wy-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  text-decoration: none;
}

.wy-logo-img {
  height: 48px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

@media (max-width: 639px) {
  .wy-header-inner {
    min-height: 64px;
    gap: 0.5rem;
  }
  .wy-logo-img {
    height: 38px;
    max-width: 150px;
  }
}

@media (max-width: 380px) {
  .wy-logo-img {
    height: 34px;
    max-width: 132px;
  }
}

.wy-scroll-progress {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
  z-index: 65;
}

.wy-scroll-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: right center;
  transform: scaleX(0);
  will-change: transform;
  background-color: #023788;
}

html.dark .wy-scroll-progress-bar {
  background-color: #4D82AB;
}

/* Desktop Navigation & Sliding Indicator */
.wy-desktop-nav {
  position: relative;
  display: none;
  align-items: center;
}

@media (min-width: 1024px) {
  .wy-desktop-nav {
    display: flex;
  }
}

.wy-nav-sliding-box {
  position: absolute;
  top: 50%;
  left: 0;
  height: 38px;
  border-radius: 10px;
  background-color: var(--brand-accent);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, -50%, 0);
  will-change: transform, width, opacity;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), width 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

html.dark .wy-nav-sliding-box {
  background-color: rgba(168, 201, 224, 0.16);
}

.wy-nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.wy-nav-list > li {
  position: relative;
  list-style: none;
}

.wy-nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-text);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 10px;
  transition: color 0.2s ease;
  position: relative;
  z-index: 2;
}

.wy-nav-list > li > a:hover,
.wy-nav-list > li.current-menu-item > a,
.wy-nav-list > li.current-menu-ancestor > a {
  color: var(--brand-primary);
}

html.dark .wy-nav-list > li > a:hover,
html.dark .wy-nav-list > li.current-menu-item > a,
html.dark .wy-nav-list > li.current-menu-ancestor > a {
  color: #A8C9E0;
}

/* 3-Level RTL Dropdowns with Hover Bridge */
.wy-nav-list .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 80;
}

.wy-nav-list .sub-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.wy-nav-list li:hover > .sub-menu,
.wy-nav-list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wy-nav-list .sub-menu li {
  position: relative;
  list-style: none;
}

.wy-nav-list .sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-text);
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wy-nav-list .sub-menu a:hover {
  background-color: var(--brand-accent);
  color: var(--brand-primary);
}

html.dark .wy-nav-list .sub-menu a:hover {
  background-color: rgba(168, 201, 224, 0.15);
  color: #FFFFFF;
}

/* 3rd level submenu opens to the left in RTL */
.wy-nav-list .sub-menu .sub-menu {
  top: 0;
  right: calc(100% + 10px);
}

.wy-nav-list .sub-menu .sub-menu::before {
  top: 0;
  bottom: 0;
  right: -14px;
  left: auto;
  width: 14px;
  height: auto;
}

/* Header Action Visibility Protection (Immune to .wy-btn cascade override) */
.wy-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .wy-hide-mobile {
    display: none !important;
  }
  .wy-header-actions {
    gap: 0.45rem;
  }
  .wy-theme-btn,
  .wy-mobile-toggle {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1023px) {
  .wy-hide-tablet {
    display: none !important;
  }
  .wy-mobile-toggle {
    display: inline-flex !important;
  }
}

.wy-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--brand-primary);
  cursor: pointer;
  flex-shrink: 0;
}

html.dark .wy-mobile-toggle {
  color: #FFFFFF;
}

@media (min-width: 1024px) {
  .wy-mobile-toggle {
    display: none !important;
  }
}

/* Mobile Drawer with 3-Level Accordion (Above WP Admin Bar) */
.wy-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
}

.wy-mobile-drawer.is-open {
  display: block;
}

.wy-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 21, 33, 0.62);
  backdrop-filter: blur(4px);
}

.wy-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(330px, 88vw);
  background: var(--bg-primary);
  border-left: 1px solid var(--border-subtle);
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wy-mobile-nav-list,
.wy-mobile-nav-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wy-mobile-nav-list ul {
  display: none;
  padding-right: 0.9rem;
  margin-top: 0.25rem;
}

.wy-mobile-nav-list li.is-submenu-open > ul {
  display: block;
}

.wy-mobile-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
}

.wy-mobile-nav-list a {
  display: block;
  flex: 1;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-text);
  text-decoration: none;
  border-radius: 10px;
}

.wy-mobile-nav-list ul a {
  font-weight: 500;
  font-size: 0.9rem;
}

.wy-accordion-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--brand-text);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.wy-mobile-nav-list li.is-submenu-open > .wy-mobile-nav-row .wy-accordion-btn {
  transform: rotate(180deg);
}

/* Outline-to-Solid Hover Button System + Tactile Press */
.wy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.65rem 1.4rem;
  border-radius: 12px;
  border: 2px solid var(--brand-primary);
  background-color: transparent;
  color: var(--brand-primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
}

.wy-btn:hover {
  background-color: var(--brand-primary);
  color: #FFFFFF;
}

.wy-btn:active {
  transform: scale(0.98);
}

html.dark .wy-btn {
  border-color: #6B9AC0;
  color: #FFFFFF;
}

html.dark .wy-btn:hover {
  background-color: #1E5B8C;
  border-color: #1E5B8C;
  color: #FFFFFF;
}

.wy-btn-solid {
  background-color: transparent;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.wy-btn-solid:hover {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
}

html.dark .wy-btn-solid {
  background-color: transparent;
  border-color: #6B9AC0;
  color: #FFFFFF;
}

html.dark .wy-btn-solid:hover {
  background-color: #1E5B8C;
  border-color: #1E5B8C;
  color: #FFFFFF;
}

.wy-btn-hero-wa {
  border: 2px solid #6EC191;
  background-color: rgba(21, 115, 71, 0.14);
  color: #FFFFFF;
}

.wy-btn-hero-wa:hover {
  background-color: #157347;
  border-color: #157347;
  color: #FFFFFF;
}

.wy-btn-hero-outline {
  border: 2px solid rgba(255, 255, 255, 0.88);
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.wy-btn-hero-outline:hover {
  background-color: #1E5B8C;
  border-color: #1E5B8C;
  color: #FFFFFF;
}

/* Blog Card Button (Zero Glow) */
.wy-blog-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  border-radius: 10px;
  border: 2px solid var(--brand-primary);
  background: transparent;
  color: var(--brand-primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none !important;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.wy-blog-read-btn:hover {
  background-color: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: none !important;
}

.wy-blog-read-btn:active {
  transform: scale(0.98);
}

html.dark .wy-blog-read-btn {
  border-color: #6B9AC0;
  color: #E2EDF7;
}

html.dark .wy-blog-read-btn:hover {
  background-color: #1E5B8C;
  border-color: #1E5B8C;
  color: #FFFFFF;
}

/* Hero Section + Ken Burns + Typewriter + Seamless Bottom Wave */
.wy-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4.5rem 0 7rem;
  background-color: #021D4A;
  color: #FFFFFF;
  margin-bottom: 0 !important;
}

.elementor-widget-wayet_hero,
.elementor-widget-wayet_hero > .elementor-widget-container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.wy-hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.wy-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.wy-hero-slide.is-active {
  opacity: 1;
}

.wy-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 6.5s ease-out;
}

.wy-hero-slide.is-active img {
  transform: scale(1);
}

.wy-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(2, 55, 136, 0.88) 0%, rgba(8, 21, 33, 0.80) 52%, rgba(2, 55, 136, 0.68) 100%);
}

.wy-hero-content {
  position: relative;
  z-index: 5;
}

.wy-typewriter-wrap {
  display: grid;
  align-items: start;
}

.wy-typewriter-ghost {
  grid-area: 1 / 1;
  visibility: hidden;
  pointer-events: none;
  line-height: 1.48 !important;
}

.wy-typewriter-live {
  grid-area: 1 / 1;
  line-height: 1.48 !important;
  color: #FFFFFF !important;
}

.wy-typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  background-color: #D9EFF6;
  margin-right: 4px;
  vertical-align: middle;
  animation: cursorBlink 0.85s infinite;
}

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.wy-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 21, 33, 0.45);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.wy-hero-arrow:hover {
  background: #1E5B8C;
}

.wy-hero-arrow-prev { right: 1rem; }
.wy-hero-arrow-next { left: 1rem; }

.wy-float-seal {
  will-change: transform;
  animation: floatSlow 5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

.wy-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  line-height: 0;
  z-index: 6;
  pointer-events: none;
}

.wy-hero-wave svg {
  display: block;
  width: 100%;
  height: 68px;
}

.wy-hero-wave path {
  fill: var(--bg-secondary);
}

/* Steps 1/2/4 Responsive Grid */
.wy-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .wy-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .wy-steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .wy-hero {
    min-height: auto;
    padding: 2.25rem 0 4.75rem;
  }
  .wy-hero-arrow {
    display: none !important;
  }
  .wy-hero-wave svg {
    height: 44px;
  }
  .wy-section {
    padding: 2.75rem 0;
  }
  .wy-section-sm {
    padding: 2rem 0;
  }
  .wy-card {
    padding: 1.15rem;
  }
  .wy-text-3xl {
    font-size: 1.55rem;
  }
  .wy-text-2xl {
    font-size: 1.35rem;
  }
  .wy-page-banner {
    padding: 2.5rem 0 2.25rem;
  }
}

@media (max-width: 639px) {
  .wy-hero .card-row {
    flex-direction: column;
    align-items: stretch;
  }
  .wy-hero .card-row .wy-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .wy-float-seal {
    width: 82px !important;
    height: 82px !important;
    bottom: 10px !important;
    left: 10px !important;
    padding: 0.25rem !important;
  }
  .wy-float-seal strong {
    font-size: 0.95rem !important;
  }
  .wy-float-seal span {
    font-size: 0.64rem !important;
  }
}

/* Silky GPU-Composited Scroll Reveal (.landing-reveal) */
.landing-reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  will-change: opacity, transform;
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms), transform 0.72s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.landing-reveal.is-visible,
.elementor-editor-active .landing-reveal,
.elementor-editor-preview .landing-reveal {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

/* Individual Neighborhood Card Grid & Card Linked to WhatsApp */
.wy-district-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .wy-district-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .wy-district-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .wy-district-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.wy-district-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  will-change: transform;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.wy-district-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: #157347;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
}

.wy-district-wa-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(21, 115, 71, 0.12);
  color: #157347;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.28s ease, color 0.28s ease;
}

html.dark .wy-district-wa-icon {
  background: rgba(21, 115, 71, 0.25);
  color: #7FB396;
}

.wy-district-card:hover .wy-district-wa-icon {
  background: #157347;
  color: #FFFFFF;
}

/* Step & Process Cards Hover Animation */
.wy-step-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.6rem;
  will-change: transform;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.36s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease;
}

.wy-step-card:hover {
  transform: translate3d(0, -5px, 0);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
  border-color: var(--brand-highlight);
}

.wy-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: var(--brand-accent);
  color: var(--brand-primary);
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

html.dark .wy-step-badge {
  background-color: rgba(168, 201, 224, 0.15);
  color: #A8C9E0;
}

.wy-step-card:hover .wy-step-badge {
  transform: scale(1.05);
  background-color: var(--brand-primary);
  color: #FFFFFF;
}

html.dark .wy-step-card:hover .wy-step-badge {
  background-color: #1E5B8C;
  color: #FFFFFF;
}

.wy-step-title {
  transition: color 0.3s ease;
}

.wy-step-card:hover .wy-step-title {
  color: var(--brand-primary) !important;
}

html.dark .wy-step-card:hover .wy-step-title {
  color: #A8C9E0 !important;
}

/* Scalable Image Hover inside Cards */
.wy-card-media {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-secondary);
}

.wy-card-media img,
.scalable-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.wy-hover-card:hover .scalable-image,
.wy-hover-card:hover .wy-card-media img {
  transform: scale(1.05);
}

/* Card Row Utility */
.card-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Detail Page Sticky Gallery & Identical 2-Button Grid */
.wy-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .wy-detail-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
  .wy-detail-sticky-col {
    position: sticky;
    top: 96px;
  }
}

.wy-detail-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .wy-detail-cta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wy-detail-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 2px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif !important;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.wy-detail-cta-btn:active {
  transform: scale(0.98);
}

.wy-detail-cta-wa {
  background-color: transparent;
  border-color: #157347;
  color: #157347 !important;
}

.wy-detail-cta-wa:hover {
  background-color: #157347;
  border-color: #157347;
  color: #FFFFFF !important;
}

html.dark .wy-detail-cta-wa {
  background-color: transparent;
  border-color: #5D9476;
  color: #E8F5EE !important;
}

html.dark .wy-detail-cta-wa:hover {
  background-color: #157347;
  border-color: #157347;
  color: #FFFFFF !important;
}

.wy-detail-cta-call {
  background-color: transparent;
  border-color: var(--brand-primary);
  color: var(--brand-primary) !important;
}

.wy-detail-cta-call:hover {
  background-color: var(--brand-primary);
  color: #FFFFFF !important;
}

html.dark .wy-detail-cta-call {
  border-color: #6B9AC0;
  color: #FFFFFF !important;
}

html.dark .wy-detail-cta-call:hover {
  background-color: #1E5B8C;
  border-color: #1E5B8C;
  color: #FFFFFF !important;
}

.wy-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.wy-thumb-btn {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--bg-secondary);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.wy-thumb-btn.is-active,
.wy-thumb-btn:hover {
  border-color: var(--brand-highlight);
}

.wy-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* WordPress Content, Gutenberg Blocks & Gallery Visibility Protection */
.wy-prose,
.entry-content {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--brand-text);
}

.wy-prose img,
.entry-content img,
.wy-article-cover img,
.wp-block-image img,
.wp-block-gallery img,
.wp-block-media-text img,
.gallery img {
  max-width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  border-radius: 14px;
  display: block !important;
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.wy-article-cover img:hover,
.wy-prose img:hover,
.entry-content img:hover {
  transform: scale(1.015);
}

/* Built-in Full-Screen Article Image Lightbox */
.wy-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 21, 33, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.wy-lightbox.is-open {
  display: flex;
}

.wy-lightbox-inner {
  max-width: 1040px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.wy-lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: block;
}

.wy-lightbox-caption {
  color: #D9EFF6;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
  margin: 0;
}

.wy-lightbox-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.22s ease;
}

.wy-lightbox-btn:hover {
  background: #1E5B8C;
}

.wy-lightbox-close {
  top: 1rem;
  left: 1rem;
}

.wy-lightbox-prev {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.wy-lightbox-next {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.wy-prose figure,
.entry-content figure {
  margin: 1.5rem 0;
  max-width: 100%;
}

.wy-prose .wp-block-gallery,
.entry-content .wp-block-gallery,
.wy-prose .gallery,
.entry-content .gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.wy-prose .wp-block-columns,
.entry-content .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.wy-prose .aligncenter,
.entry-content .aligncenter {
  margin-inline: auto;
  text-align: center;
}

.wy-prose .alignwide,
.entry-content .alignwide {
  width: 100%;
}

.wy-prose h2,
.entry-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 2rem 0 0.85rem;
}

.wy-prose h3,
.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.5rem 0 0.65rem;
}

.wy-prose p,
.entry-content p {
  margin: 0 0 1.1rem;
}

.wy-prose ul,
.wy-prose ol,
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.2rem;
  padding-right: 1.4rem;
}

/* High-Contrast Compact Footer (Zero Bottom Whitespace) */
.wy-footer {
  flex-shrink: 0;
  margin: 0 !important;
  padding: 2.25rem 0 1.25rem !important;
  background-color: var(--footer-bg) !important;
  color: var(--footer-text) !important;
  border-top: 1px solid var(--footer-border);
}

.wy-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .wy-footer-grid {
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 2.25rem;
  }
}

.wy-footer-logo {
  height: 2.85rem;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.75rem;
}

.wy-footer-heading {
  font-family: 'Cairo', sans-serif !important;
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  color: var(--footer-heading) !important;
  margin: 0 0 0.75rem !important;
}

.wy-footer-bio,
.wy-footer-contact-row {
  font-size: 0.84rem !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: var(--footer-text) !important;
  margin: 0 0 0.5rem;
}

.wy-footer-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1rem;
}

.wy-footer-links li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.wy-footer-links a {
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  color: var(--footer-text) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wy-footer-links a:hover {
  color: var(--brand-primary) !important;
}

html.dark .wy-footer-links a:hover {
  color: #A8C9E0 !important;
}

.wy-footer-contact-link {
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: var(--footer-heading) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wy-footer-contact-link:hover {
  color: var(--brand-highlight) !important;
}

.wy-footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--footer-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  text-align: center;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  color: var(--footer-text) !important;
}

@media (min-width: 768px) {
  .wy-footer-bottom {
    flex-direction: row;
    text-align: right;
  }
}

.wy-footer-bottom p {
  margin: 0;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  color: var(--footer-text) !important;
}

.wy-footer-bottom a {
  font-weight: 600;
}

.wl-credit a {
  transition: color .25s ease;
}

.wl-credit a:hover {
  color: #25D366 !important;
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .landing-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
