
/* RAM website reference patch */
#ram-types {
  direction: rtl;
  background: #f8fafc;
  padding: 72px 20px 84px;
  font-family: 'Noto Kufi Arabic', sans-serif;
}
#ram-types .ram-types-wrap {
  max-width: 1152px;
  margin: 0 auto;
}
#ram-types .ram-types-head {
  text-align: center;
  margin-bottom: 38px;
}
#ram-types .ram-types-head h2 {
  margin: 0 0 10px;
  color: #1e293b;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
}
#ram-types .ram-types-head span {
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #0b7a6f;
  margin: 0 auto 14px;
}
#ram-types .ram-types-head p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  font-weight: 600;
}
#ram-types .ram-types-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
#ram-types .ram-type-card {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15,23,42,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
#ram-types .ram-type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(11,122,111,.10);
}
#ram-types .ram-type-img {
  height: 220px;
  overflow: hidden;
  background: #edf2f4;
}
#ram-types .ram-type-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
#ram-types .ram-type-card:hover .ram-type-img img {
  transform: scale(1.035);
}
#ram-types .ram-type-body {
  padding: 22px 22px 25px;
}
#ram-types .ram-type-body h3 {
  margin: 0 0 9px;
  color: #173f37;
  font-size: 19px;
  font-weight: 900;
}
#ram-types .ram-type-body p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 500;
}
@media (max-width: 900px) {
  #ram-types .ram-types-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  #ram-types { padding: 52px 16px 60px; }
  #ram-types .ram-types-grid { grid-template-columns: 1fr; }
  #ram-types .ram-type-img { height: 210px; }
}


/* v2: keep the approved desktop hero headline on two lines */
@media (min-width: 1024px) {
  #hero h1 span:first-child {
    white-space: nowrap;
  }
}
