body {
  /* Responsive: تحسين الخط الافتراضي للجوال */
  font-size: 1rem;

  margin: 0;
  font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
  background: #f7f5f3;
}

.title {
  font-family: "Raleway";
  font-size: 24px;
  font-weight: 700;
  color: #5D4037;
  text-align: center;
}

.card-info h1 {
  margin: 0;
  font-size: 1.25rem;
}

.card-info p {
  margin-top: 10px;
  font-size: 0.9rem;
}

.card {
  position: relative;
  flex: 0 0 240px;
  width: 240px;
  height: 320px;
  background-color: #fff;
  overflow: hidden;
  border-radius: 10px;
  box-shadow:
    rgba(black, 0.66) 0 30px 60px 0,
    inset #333 0 0 0 5px,
    inset rgba(white, 0.5) 0 0 0 6px;
  transition: 1s $returnEasing;
}

/* Responsive: cards and flex containers on mobile */
@media (max-width: 700px) {
  .card {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 98vw;
    height: auto;
    margin-bottom: 18px;
  }
  .cards-container, .programs-row, .gallery-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
  .title, .card-info h1 {
    font-size: 1.1rem !important;
  }
}


.card-bg {
  opacity: 0.5;
  position: absolute;
  top: -20px; left: -20px;
  width: 100%;
  height: 100%;
  padding: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition:
    1s $returnEasing,
    opacity 5s 1s $returnEasing;
  pointer-events: none;
}

.card-info {
  padding: 20px;
  position: absolute;
  bottom: 0;
  color: #fff;
  transform: translateY(40%);
  transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  
  p {
    opacity: 0;
    text-shadow: rgba(black, 1) 0 2px 3px;
    transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  
  * {
    position: relative;
    z-index: 1;
  }
  
  &:after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, transparent 0%, rgba(#000, 0.6) 100%);
    background-blend-mode: overlay;
    opacity: 0;
    transform: translateY(100%);
    transition: 5s 1s $returnEasing;
  }
}

.why-morad-section {
  background: #f7f5f3;
  padding: 40px 0 30px 0;
}

.why-cards-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.why-card {
  width: 210px;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: #fff;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.09) 0%, rgba(0,0,0,0.18) 100%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s;
}

.why-card:hover {
  transform: scale(1.045) translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.18), 0 2.5px 12px rgba(0,0,0,0.11);
  z-index: 2;
}

.why-card:hover::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.16) 0%, rgba(0,0,0,0.28) 100%);
}


.why-card-title {
  width: 100%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  text-align: center;
  padding: 18px 0 14px 0;
  font-size: 1.2rem;
  font-family: "Tajawal", Arial, sans-serif;
  font-weight: bold;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  position: absolute;
  bottom: 0;
  left: 0;
}


.card-info h1 {
  font-family: "Playfair Display";
  font-size: 36px;
  font-weight: 700;
  text-shadow: rgba(black, 0.5) 0 10px 10px;
}