/**
 * Wareef Medical — Main Stylesheet
 * Premium medical corporate design system
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --wareef-primary: #0D3B8E;
  --wareef-secondary: #008C95;
  --wareef-dark: #16304B;
  --wareef-light: #F8FBFD;
  --wareef-white: #FFFFFF;
  --wareef-border: #E5EEF3;
  --wareef-gray: #6C7A89;
  --wareef-success: #00A676;
  --wareef-hover-blue: #144FB7;
  --wareef-hover-teal: #00AEB8;

  --wareef-font: "Cairo", sans-serif;
  --wareef-container: 1320px;
  --wareef-radius: 18px;
  --wareef-radius-btn: 12px;
  --wareef-radius-card: 20px;
  --wareef-gap: 30px;
  --wareef-section-y: 50px;
  --wareef-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --wareef-shadow-hover: 0 16px 40px rgba(13, 59, 142, 0.1);
  --wareef-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --wareef-header-h: 100px;

  --wareef-hero-title: 56px;
  --wareef-hero-desc: 20px;
  --wareef-section-title: 40px;
  --wareef-section-sub: 18px;
  --wareef-card-title: 24px;
  --wareef-card-desc: 17px;
  --wareef-small: 15px;
  --wareef-btn: 16px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--wareef-font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--wareef-dark);
  background: var(--wareef-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--wareef-primary);
  text-decoration: none;
  transition: color var(--wareef-transition), background var(--wareef-transition), border-color var(--wareef-transition), transform var(--wareef-transition), box-shadow var(--wareef-transition);
}

a:hover {
  color: var(--wareef-hover-blue);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-weight: 700;
  line-height: 1.25;
  color: var(--wareef-dark);
}

p {
  margin: 0 0 1em;
  color: var(--wareef-gray);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 2px solid var(--wareef-secondary);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--wareef-container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding-top: var(--wareef-section-y);
  padding-bottom: var(--wareef-section-y);
}

.section--tight-top {
  padding-top: var(--wareef-section-y);
}

.section--light {
  background: var(--wareef-light);
}

.section--primary {
  background: var(--wareef-primary);
  color: var(--wareef-white);
}

.section--primary h2,
.section--primary h3,
.section--primary .section-title {
  color: var(--wareef-white);
}

.section--primary p,
.section--primary .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wareef-secondary);
  margin-bottom: 12px;
}

.section-title {
  font-size: var(--wareef-section-title);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--wareef-dark);
}

.section-subtitle {
  font-size: var(--wareef-section-sub);
  color: var(--wareef-gray);
  margin: 0;
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: var(--wareef-gap);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: var(--wareef-btn);
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--wareef-radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--wareef-transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--wareef-primary);
  color: var(--wareef-white);
  border-color: var(--wareef-primary);
}

.btn-primary:hover {
  background: var(--wareef-hover-teal);
  border-color: var(--wareef-hover-teal);
  color: var(--wareef-white);
  box-shadow: var(--wareef-shadow-hover);
}

.btn-secondary {
  background: var(--wareef-white);
  color: var(--wareef-primary);
  border-color: var(--wareef-primary);
}

.btn-secondary:hover {
  background: var(--wareef-primary);
  color: var(--wareef-white);
}

.btn-teal {
  background: var(--wareef-secondary);
  color: var(--wareef-white);
  border-color: var(--wareef-secondary);
}

.btn-teal:hover {
  background: var(--wareef-hover-teal);
  border-color: var(--wareef-hover-teal);
  color: var(--wareef-white);
}

.btn-white {
  background: var(--wareef-white);
  color: var(--wareef-primary);
  border-color: var(--wareef-white);
}

.btn-white:hover {
  background: transparent;
  color: var(--wareef-white);
  border-color: var(--wareef-white);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* ============================================
   CARDS
   ============================================ */
.wareef-card {
  background: var(--wareef-white);
  border: 1px solid var(--wareef-border);
  border-radius: var(--wareef-radius-card);
  padding: 36px 32px;
  box-shadow: var(--wareef-shadow);
  transition: transform var(--wareef-transition), box-shadow var(--wareef-transition), border-color var(--wareef-transition);
  height: 100%;
}

.wareef-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--wareef-shadow-hover);
  border-color: transparent;
}

.wareef-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(13, 59, 142, 0.08), rgba(0, 140, 149, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--wareef-primary);
  font-size: 28px;
}

.wareef-card__title {
  font-size: var(--wareef-card-title);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--wareef-dark);
}

.wareef-card__desc {
  font-size: var(--wareef-card-desc);
  color: var(--wareef-gray);
  margin: 0;
  line-height: 1.7;
}

.wareef-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--wareef-primary);
}

.wareef-card__link:hover {
  color: var(--wareef-secondary);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: var(--wareef-header-h);
  transition: background var(--wareef-transition), box-shadow var(--wareef-transition), backdrop-filter var(--wareef-transition);
}

.site-header.is-sticky {
  position: fixed;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(13, 59, 142, 0.08);
}

.site-header.is-sticky .header-nav a,
.site-header.is-sticky .header-actions .header-icon,
.site-header.is-sticky .site-logo-text {
  color: var(--wareef-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--wareef-header-h);
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-branding a {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo — clean, no frame */
.site-branding .custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.site-header.is-sticky .site-branding .custom-logo-link {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.custom-logo,
.site-branding .custom-logo-link img {
  max-height: 72px;
  width: auto;
  height: auto;
  display: block;
}

.site-header.is-sticky .custom-logo,
.site-header.is-sticky .site-branding .custom-logo-link img {
  max-height: 56px;
}

.site-footer .custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  line-height: 0;
}

.site-footer .custom-logo-link img,
.site-footer .custom-logo {
  max-height: 56px;
  width: auto;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* Prevent logo img + padded link looking like a double logo */
.footer-brand .custom-logo-link + .custom-logo-link,
.footer-brand a.custom-logo-link ~ a.custom-logo-link {
  display: none;
}

@media (max-width: 768px) {
  .custom-logo,
  .site-branding .custom-logo-link img {
    max-height: 56px;
  }

  .site-header.is-sticky .custom-logo,
  .site-header.is-sticky .site-branding .custom-logo-link img {
    max-height: 48px;
  }

  .site-branding .custom-logo-link {
    padding: 0;
    border-radius: 0;
  }

  .site-header.is-sticky .site-branding .custom-logo-link {
    padding: 0;
  }

  .site-footer .custom-logo,
  .site-footer .custom-logo-link img {
    max-height: 56px;
  }
}

.site-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--wareef-white);
  letter-spacing: -0.02em;
}

.header-transparent .site-header:not(.is-sticky) .site-logo-text,
.header-transparent .site-header:not(.is-sticky) .header-nav > li > a,
.header-transparent .site-header:not(.is-sticky) .header-icon {
  color: var(--wareef-dark);
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav > li {
  position: relative;
}

.header-nav > li > a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--wareef-dark);
  border-radius: 8px;
}

.header-nav > li > a:hover,
.header-nav > li.current-menu-item > a {
  color: var(--wareef-secondary);
}

.header-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--wareef-white);
  border-radius: 14px;
  box-shadow: var(--wareef-shadow-hover);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--wareef-transition);
  z-index: 100;
}

.header-nav > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-nav .sub-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wareef-dark);
  border-radius: 8px;
}

.header-nav .sub-menu a:hover {
  background: var(--wareef-light);
  color: var(--wareef-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--wareef-dark);
  cursor: pointer;
  font-size: 20px;
  transition: all var(--wareef-transition);
}

.header-icon:hover {
  background: rgba(13, 59, 142, 0.08);
  color: var(--wareef-primary);
}

.header-cta {
  margin-inline-start: 4px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: var(--wareef-transition);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--wareef-white);
  z-index: 2000;
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--wareef-transition);
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-menu .header-nav {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.mobile-menu .header-nav > li > a {
  padding: 14px 16px;
  font-size: 18px;
  color: var(--wareef-dark);
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 48, 75, 0.92);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--wareef-transition);
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-overlay form {
  width: min(640px, 90%);
  position: relative;
}

.search-overlay input {
  width: 100%;
  padding: 20px 56px 20px 24px;
  font-size: 20px;
  border: none;
  border-radius: 14px;
  background: var(--wareef-white);
  color: var(--wareef-dark);
}

.search-overlay .search-close {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  background: transparent;
  border: none;
  color: var(--wareef-white);
  font-size: 28px;
  cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--wareef-header-h) + 60px) 0 100px;
  overflow: hidden;
  background: linear-gradient(135deg, #0A2F75 0%, #0D3B8E 45%, #008C95 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 47, 117, 0.92) 0%, rgba(13, 59, 142, 0.78) 50%, rgba(0, 140, 149, 0.55) 100%);
  z-index: 1;
}

.hero__shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  animation: float 12s ease-in-out infinite;
}

.hero__shape--1 {
  width: 400px;
  height: 400px;
  top: -100px;
  inset-inline-end: -80px;
}

.hero__shape--2 {
  width: 280px;
  height: 280px;
  bottom: 10%;
  inset-inline-start: 5%;
  animation-delay: -4s;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero__title {
  font-size: var(--wareef-hero-title);
  font-weight: 800;
  color: var(--wareef-white);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__desc {
  font-size: var(--wareef-hero-desc);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 40px;
  line-height: 1.75;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-24px); }
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media__main {
  border-radius: var(--wareef-radius);
  overflow: hidden;
  box-shadow: var(--wareef-shadow-hover);
}

.about-media__main img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.about-media__badge {
  position: absolute;
  bottom: 32px;
  inset-inline-start: -24px;
  background: var(--wareef-white);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: var(--wareef-shadow-hover);
  max-width: 200px;
}

.about-media__badge strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--wareef-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.about-media__badge span {
  font-size: 14px;
  color: var(--wareef-gray);
  font-weight: 500;
}

.about-content .section-title {
  text-align: start;
}

.about-content .section-header {
  text-align: start;
  margin: 0 0 28px;
  max-width: none;
}

.about-list {
  margin: 28px 0 36px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--wareef-dark);
}

.about-list li i {
  color: var(--wareef-success);
  font-size: 20px;
  margin-top: 2px;
}

/* ============================================
   STATISTICS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--wareef-gap);
}

.stat-item {
  text-align: center;
  padding: 40px 24px;
}

.stat-item__number {
  font-size: 48px;
  font-weight: 800;
  color: var(--wareef-primary);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-item__label {
  font-size: 16px;
  color: var(--wareef-gray);
  font-weight: 500;
}

.section--primary .stat-item__number {
  color: var(--wareef-white);
}

.section--primary .stat-item__label {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   HOW WE WORK
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--wareef-gap);
  counter-reset: step;
}

.step-card {
  text-align: center;
  padding: 40px 28px;
  position: relative;
}

.step-card__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wareef-primary), var(--wareef-secondary));
  color: var(--wareef-white);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.step-card__title {
  font-size: 20px;
  margin-bottom: 10px;
}

.step-card__desc {
  font-size: 15px;
  margin: 0;
}

/* ============================================
   PARTNERS
   ============================================ */
.partners-slider {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 56px;
}

.partners-slider__viewport {
  overflow: hidden;
}

.partners-slider__track {
  display: flex;
  align-items: stretch;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.partners-slider__slide {
  flex: 0 0 20%;
  min-width: 20%;
  padding: 0 12px;
  box-sizing: border-box;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--wareef-white);
  border: 1px solid var(--wareef-border);
  border-radius: 14px;
  min-height: 110px;
  transition: all var(--wareef-transition);
  filter: grayscale(1);
  opacity: 0.75;
}

.partner-logo span {
  font-weight: 700;
  color: var(--wareef-gray);
  font-size: 14px;
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  box-shadow: var(--wareef-shadow);
}

.partner-logo img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.partners-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--wareef-border);
  background: var(--wareef-white);
  color: var(--wareef-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--wareef-shadow);
  z-index: 2;
  transition: all var(--wareef-transition);
}

.partners-slider__nav:hover {
  background: var(--wareef-primary);
  color: var(--wareef-white);
  border-color: var(--wareef-primary);
}

.partners-slider__nav--prev { left: 0; }
.partners-slider__nav--next { right: 0; }

@media (max-width: 992px) {
  .partners-slider__slide {
    flex: 0 0 33.333%;
    min-width: 33.333%;
  }
}

@media (max-width: 768px) {
  .partners-slider {
    padding: 0 44px;
  }

  .partners-slider__slide {
    flex: 0 0 50%;
    min-width: 50%;
  }

  .partners-slider__nav {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .partners-slider__slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-slider {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 56px;
}

.testimonials-slider__controls {
  display: contents;
}

.testimonials-slider__viewport {
  overflow: hidden;
  width: 100%;
  border-radius: var(--wareef-radius-card);
}

.testimonials-slider__track {
  display: flex;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  gap: 0;
}

.testimonials-slider__slide {
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
  max-width: 50%;
  padding: 8px 12px;
  box-sizing: border-box;
}

.testimonials-slider .testimonial-card {
  margin: 0;
  min-height: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card {
  background: var(--wareef-white);
  border-radius: var(--wareef-radius-card);
  padding: 40px 36px;
  border: 1px solid var(--wareef-border);
  box-shadow: var(--wareef-shadow);
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.testimonials-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--wareef-border);
  background: var(--wareef-white);
  color: var(--wareef-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--wareef-shadow);
  z-index: 2;
  transition: all var(--wareef-transition);
}

.testimonials-slider__nav:hover {
  background: var(--wareef-primary);
  color: var(--wareef-white);
  border-color: var(--wareef-primary);
}

.testimonials-slider__nav--prev { left: 0; }
.testimonials-slider__nav--next { right: 0; }

.testimonials-slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.testimonials-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--wareef-border);
  cursor: pointer;
  padding: 0;
  transition: all var(--wareef-transition);
}

.testimonials-slider__dot.is-active {
  background: var(--wareef-secondary);
  width: 28px;
  border-radius: 100px;
}

.testimonial-card__avatar--fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--wareef-light);
  color: var(--wareef-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-card__quote {
  font-size: 18px;
  line-height: 1.8;
  color: var(--wareef-dark);
  margin: 0 0 28px;
  font-weight: 500;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.testimonial-card__quote::before {
  content: '"';
  font-size: 48px;
  line-height: 0;
  color: var(--wareef-secondary);
  display: block;
  margin-bottom: 16px;
  font-family: Georgia, serif;
  opacity: 0.5;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.testimonial-card__author > div:last-child {
  min-width: 0;
}

.testimonial-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--wareef-light);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 16px;
  color: var(--wareef-dark);
  margin: 0 0 4px;
}

.testimonial-card__role {
  font-size: 14px;
  color: var(--wareef-gray);
  margin: 0;
}

@media (max-width: 768px) {
  .testimonials-slider {
    padding: 0;
  }

  .testimonials-slider__slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .testimonials-slider .testimonial-card,
  .testimonial-card {
    min-height: 0;
    padding: 28px 20px;
  }

  .testimonial-card__quote {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .testimonial-card__quote::before {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .testimonials-slider__nav {
    position: static;
    transform: none;
    width: 40px;
    height: 40px;
    font-size: 16px;
    flex-shrink: 0;
  }

  .testimonials-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
  }

  .testimonials-slider__dots {
    margin-top: 0;
  }
}

/* ============================================
   BLOG LAYOUT
   ============================================ */
.blog-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr;
  gap: 48px;
  align-items: start;
}

.blog-layout__side .about-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--wareef-border);
}

.blog-layout__side .about-list a {
  color: var(--wareef-dark);
  font-weight: 500;
}

.blog-layout__side .about-list a:hover {
  color: var(--wareef-primary);
}

.legal-content h2 {
  margin-top: 1.8em;
  font-size: 24px;
}

.products-filter {
  background: var(--wareef-white);
  border: 1px solid var(--wareef-border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--wareef-shadow);
  margin-bottom: 36px;
}

.products-filter__row {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.products-filter .form-row {
  margin: 0;
}

.products-filter .form-row label {
  margin-bottom: 6px;
  font-size: 13px;
}

.products-filter .form-row input,
.products-filter .form-row select {
  padding: 11px 14px;
  min-height: 46px;
}

.products-filter__actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.products-filter__actions .btn {
  padding: 11px 20px;
  white-space: nowrap;
}

.products-filter__status {
  margin-top: 12px;
  font-size: 14px;
  color: var(--wareef-gray);
  font-weight: 500;
}

.products-results {
  position: relative;
  min-height: 120px;
  transition: opacity 0.25s ease;
}

.products-results.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.products-results.is-loading::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  border: 3px solid var(--wareef-border);
  border-top-color: var(--wareef-primary);
  border-radius: 50%;
  animation: wareef-spin 0.7s linear infinite;
  z-index: 2;
}

@keyframes wareef-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 992px) {
  .products-filter__row {
    grid-template-columns: 1fr 1fr;
  }

  .products-filter__actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .products-filter__row {
    grid-template-columns: 1fr;
  }

  .products-filter__actions {
    width: 100%;
  }

  .products-filter__actions .btn {
    flex: 1;
  }
}

@media (max-width: 992px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-card {
  background: var(--wareef-white);
  border-radius: var(--wareef-radius-card);
  overflow: hidden;
  border: 1px solid var(--wareef-border);
  box-shadow: var(--wareef-shadow);
  transition: all var(--wareef-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--wareef-shadow-hover);
}

.blog-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--wareef-light);
}

.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-card__thumb img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: 28px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  font-size: 13px;
  color: var(--wareef-secondary);
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-card__title {
  font-size: 20px;
  margin-bottom: 12px;
}

.blog-card__title a {
  color: var(--wareef-dark);
}

.blog-card__title a:hover {
  color: var(--wareef-primary);
}

.blog-card__excerpt {
  font-size: 15px;
  flex: 1;
  margin-bottom: 20px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--wareef-white);
  border: 1px solid var(--wareef-border);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow var(--wareef-transition);
}

.faq-item.is-open {
  box-shadow: var(--wareef-shadow);
  border-color: transparent;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: start;
  font-size: 17px;
  font-weight: 700;
  color: var(--wareef-dark);
  font-family: inherit;
}

.faq-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wareef-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--wareef-transition), background var(--wareef-transition);
  color: var(--wareef-primary);
  font-size: 16px;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  background: var(--wareef-primary);
  color: var(--wareef-white);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 28px;
}

.faq-item.is-open .faq-item__answer {
  max-height: 500px;
  padding: 0 28px 24px;
}

.faq-item__answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  position: relative;
  padding: var(--wareef-section-y) 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--wareef-primary) 0%, #0A2F75 50%, var(--wareef-secondary) 100%);
  border-radius: 0;
}

.cta-section .container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.cta-section h2 {
  font-size: 40px;
  color: var(--wareef-white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  margin-bottom: 36px;
}

.cta-section .btn-group {
  justify-content: center;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info-card {
  background: var(--wareef-light);
  border-radius: var(--wareef-radius-card);
  padding: 40px;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--wareef-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wareef-primary);
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: var(--wareef-shadow);
}

.contact-info-item__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wareef-secondary);
  margin-bottom: 4px;
}

.contact-info-item__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--wareef-dark);
  margin: 0;
}

.contact-form-wrap {
  background: var(--wareef-white);
  border: 1px solid var(--wareef-border);
  border-radius: var(--wareef-radius-card);
  padding: 40px;
  box-shadow: var(--wareef-shadow);
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--wareef-dark);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--wareef-border);
  border-radius: 12px;
  background: var(--wareef-light);
  color: var(--wareef-dark);
  transition: border-color var(--wareef-transition), box-shadow var(--wareef-transition);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--wareef-secondary);
  box-shadow: 0 0 0 3px rgba(0, 140, 149, 0.15);
  background: var(--wareef-white);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-map {
  margin-top: 60px;
  border-radius: var(--wareef-radius);
  overflow: hidden;
  height: 400px;
  background: var(--wareef-light);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  background: linear-gradient(135deg, #0A2F75 0%, var(--wareef-primary) 60%, var(--wareef-secondary) 100%);
  padding: calc(var(--wareef-header-h) + 60px) 0 70px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  color: var(--wareef-white);
  font-size: 44px;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.wareef-breadcrumbs {
  background: var(--wareef-light);
  padding: 14px 0;
  font-size: 14px;
  color: var(--wareef-gray);
}

.wareef-breadcrumbs a {
  color: var(--wareef-primary);
  font-weight: 500;
}

.wareef-breadcrumbs .breadcrumb-sep {
  margin: 0 8px;
  opacity: 0.5;
}

.wareef-breadcrumbs .current {
  color: var(--wareef-dark);
  font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--wareef-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-brand .site-logo-text,
.footer-brand .custom-logo-link {
  margin-bottom: 20px;
  display: inline-block;
}

.footer-brand .site-logo-text {
  color: var(--wareef-white);
  font-size: 24px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-col h4 {
  color: var(--wareef-white);
  font-size: 17px;
  margin-bottom: 24px;
  font-weight: 700;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  font-weight: 500;
}

.footer-col ul a:hover {
  color: var(--wareef-secondary);
}

.footer-newsletter p {
  font-size: 14px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.65);
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--wareef-white);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
  padding: 12px 18px;
  background: var(--wareef-secondary);
  color: var(--wareef-white);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--wareef-transition);
}

.newsletter-form button:hover {
  background: var(--wareef-hover-teal);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-item i {
  color: var(--wareef-secondary);
  margin-top: 3px;
}

.footer-contact-item a,
.footer-contact-item span {
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-item a:hover {
  color: var(--wareef-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  width: 100%;
  text-align: center;
}

.footer-bottom .wareef-social {
  justify-content: center;
  width: 100%;
}

.wareef-social {
  display: flex;
  gap: 10px;
}

.wareef-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wareef-white);
  font-size: 16px;
}

.wareef-social a:hover {
  background: var(--wareef-secondary);
  color: var(--wareef-white);
}

/* ============================================
   TEAM
   ============================================ */
.team-card {
  text-align: center;
  background: var(--wareef-white);
  border-radius: var(--wareef-radius-card);
  overflow: hidden;
  border: 1px solid var(--wareef-border);
  box-shadow: var(--wareef-shadow);
  transition: all var(--wareef-transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--wareef-shadow-hover);
}

.team-card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--wareef-light);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__body {
  padding: 24px 20px 28px;
}

.team-card__name {
  font-size: 18px;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 14px;
  color: var(--wareef-secondary);
  font-weight: 600;
  margin: 0;
}

/* ============================================
   PRODUCT / CATEGORY CARDS
   ============================================ */
.category-card {
  position: relative;
  border-radius: var(--wareef-radius-card);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--wareef-shadow);
  transition: transform var(--wareef-transition), box-shadow var(--wareef-transition);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--wareef-shadow-hover);
}

.category-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0A2F75, #008C95);
}

.category-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
  display: block;
}

.category-card:hover .category-card__bg img {
  transform: scale(1.06);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 59, 142, 0.9) 0%, rgba(13, 59, 142, 0.2) 60%, transparent 100%);
}

.category-card__content {
  position: relative;
  z-index: 2;
  padding: 28px;
  color: var(--wareef-white);
}

.category-card__content h3 {
  color: var(--wareef-white);
  font-size: 22px;
  margin-bottom: 6px;
}

.category-card__content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 0;
}

/* ============================================
   VALUES / MISSION
   ============================================ */
.value-card {
  text-align: center;
  padding: 48px 32px;
}

.value-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(13, 59, 142, 0.1), rgba(0, 140, 149, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--wareef-primary);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--wareef-border);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(even) .timeline-item__content {
  grid-column: 2;
}

.timeline-item:nth-child(odd) .timeline-item__content {
  grid-column: 1;
  text-align: end;
}

.timeline-item__dot {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--wareef-secondary);
  border: 3px solid var(--wareef-white);
  box-shadow: 0 0 0 3px var(--wareef-secondary);
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-item__year {
  font-size: 14px;
  font-weight: 700;
  color: var(--wareef-secondary);
  margin-bottom: 8px;
}

.timeline-item__title {
  font-size: 20px;
  margin-bottom: 8px;
}

/* ============================================
   CERTIFICATES
   ============================================ */
.cert-card {
  background: var(--wareef-white);
  border: 1px solid var(--wareef-border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all var(--wareef-transition);
}

.cert-card:hover {
  box-shadow: var(--wareef-shadow);
  border-color: transparent;
}

.cert-card img {
  max-height: 80px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.cert-card h4 {
  font-size: 16px;
  margin: 0;
}

/* ============================================
   SINGLE / BLOG
   ============================================ */
.page-header--compact {
  padding-bottom: 50px;
}

.single-post__eyebrow {
  margin-bottom: 14px;
}

.single-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
}

.single-post__meta .posted-on,
.single-post__meta time {
  color: inherit;
}

.single-post__meta-sep {
  opacity: 0.6;
}

.single-post__card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--wareef-white);
  border: 1px solid var(--wareef-border);
  border-radius: var(--wareef-radius-card);
  box-shadow: var(--wareef-shadow);
  overflow: hidden;
}

.single-post__featured {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--wareef-light);
}

.single-post__featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post__lead {
  margin: 0;
  padding: 32px 40px 0;
  font-size: 20px;
  line-height: 1.7;
  color: var(--wareef-dark);
  font-weight: 600;
}

.single-post__content.entry-content {
  max-width: none;
  padding: 28px 40px 0;
}

.single-post__content.entry-content > :first-child {
  margin-top: 0;
}

.single-post__footer {
  padding: 32px 40px 40px;
  margin-top: 32px;
  border-top: 1px solid var(--wareef-border);
  display: grid;
  gap: 24px;
}

.single-post__tags strong,
.single-post__share strong {
  display: block;
  margin-bottom: 12px;
  color: var(--wareef-dark);
  font-size: 15px;
}

.single-post__tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.single-post__tag-list a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--wareef-light);
  color: var(--wareef-primary);
  font-size: 14px;
  font-weight: 600;
}

.single-post__tag-list a:hover {
  background: rgba(13, 59, 142, 0.08);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

.entry-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.6em;
  color: var(--wareef-dark);
}

.entry-content h2 {
  font-size: 28px;
}

.entry-content h3 {
  font-size: 22px;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--wareef-gray);
  margin-bottom: 32px;
}

.related-posts {
  max-width: 1200px;
  margin: var(--wareef-section-y) auto 0;
  padding-top: var(--wareef-section-y);
  border-top: 1px solid var(--wareef-border);
}

.related-posts .section-header {
  margin-bottom: 36px;
}

/* ============================================
   ELEMENTOR GALLERY / PARTNERS GRID
   ============================================ */
.wareef-gallery__item {
  margin: 0;
  border-radius: var(--wareef-radius);
  overflow: hidden;
  background: var(--wareef-light);
  aspect-ratio: 4 / 3;
}

.wareef-gallery__item img,
.wareef-gallery__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.wareef-gallery__link {
  display: block;
  height: 100%;
}

.wareef-gallery__item:hover img {
  transform: scale(1.04);
}

.wareef-el-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--wareef-gap);
}

@media (max-width: 992px) {
  .wareef-el-partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .wareef-el-partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.elementor-editor-active .section,
.elementor-editor-preview .section {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .single-post__lead,
  .single-post__content.entry-content,
  .single-post__footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .single-post__lead {
    padding-top: 24px;
    font-size: 18px;
  }

  .entry-content h2 {
    font-size: 24px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   PAGINATION
   ============================================ */
.wareef-pagination,
.navigation.pagination {
  margin-top: 60px;
  text-align: center;
}

.wareef-pagination .nav-links,
.navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wareef-pagination a,
.wareef-pagination span,
.navigation.pagination a,
.navigation.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--wareef-border);
  color: var(--wareef-dark);
  background: var(--wareef-white);
}

.wareef-pagination .current,
.navigation.pagination .current {
  background: var(--wareef-primary);
  color: var(--wareef-white);
  border-color: var(--wareef-primary);
}

/* ============================================
   404
   ============================================ */
.error-404 {
  text-align: center;
  padding: calc(var(--wareef-section-y) * 2) 0;
}

.error-404 h1 {
  font-size: 120px;
  font-weight: 800;
  color: var(--wareef-primary);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.2;
}

.error-404 h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-start { text-align: start; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  :root {
    --wareef-hero-title: 48px;
    --wareef-section-title: 36px;
  }

  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 992px) {
  :root {
    --wareef-hero-title: 40px;
    --wareef-section-title: 32px;
    --wareef-header-h: 76px;
  }

  .header-nav-wrap { display: none; }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media__badge { inset-inline-start: 16px; bottom: 16px; }

  .timeline::before { left: 16px; }
  .timeline-item { grid-template-columns: 1fr; padding-inline-start: 48px; }
  .timeline-item:nth-child(odd) .timeline-item__content,
  .timeline-item:nth-child(even) .timeline-item__content {
    grid-column: 1;
    text-align: start;
  }
  .timeline-item__dot { left: 16px; }
}

@media (max-width: 768px) {
  :root {
    --wareef-hero-title: 32px;
    --wareef-hero-desc: 17px;
    --wareef-section-title: 28px;
    --wareef-section-y: 30px;
    --wareef-card-title: 20px;
  }

  .grid-2, .grid-3, .grid-4,
  .stats-grid, .steps-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: calc(var(--wareef-header-h) + 40px) 0 80px; }
  .page-header h1 { font-size: 32px; }
  .cta-section h2 { font-size: 28px; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .wareef-card { padding: 28px 22px; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
}
