@import url("../variables.css");

/* =======================
   🧩 قسم "من نحن"
======================= */
.ab-about-section {
  background-color: var(--color-bg);
  font-family: var(--font-family);
  padding: 80px 20px;
}

.ab-about-card {
  background-color: var(--color-primary);
  border-radius: 20px;
  padding: 50px 30px;
  max-width: 1400px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ab-about-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* العمود الأيسر */
.ab-about-text-col {
  flex: 1.2;
  min-width: 280px;
}

.ab-about-title {
  color: var(--color-white);
  font-size: var(--fs-section-title);
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.3;
  word-break: break-word;
}

.ab-about-desc {
  color: var(--color-light-gray);
  line-height: 1.8;
  font-size: var(--fs-body);
}

.ab-about-desc-full {
  display: none;
}

.ab-about-btn-toggle {
  display: none; /* يظهر فقط على الهواتف */
  font-family: var(--font-family);
  background: none;
  border: none;
  color: var(--color-light-gray);
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  font-size: var(--fs-body);
  padding: 0;
}

.ab-about-btn-toggle:hover {
  text-decoration: underline;
}

/* العمود الأيمن */
.ab-about-cards-col {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ab-small-card {
  background-color: var(--color-white);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: auto;
  overflow: hidden;
}

.ab-card-circle {
  width: 130px;
  height: 130px;
  background-color: var(--color-accent);
  border-radius: 50%;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ab-circle-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.ab-card-title {
  color: var(--color-primary);
  font-size: var(--fs-subtitle);
  font-weight: 700;
  margin-bottom: 10px;
  word-break: break-word;
}

.ab-card-desc {
  color: var(--color-dark-gray);
  font-size: var(--fs-body);
  line-height: 1.6;
}

/* ========== الهواتف ≤600px ========= */
@media (max-width: 600px) {
  .ab-about-btn-toggle { display: inline-block; }
  .ab-about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .ab-about-text-col,
  .ab-about-cards-col {
    max-width: 100%;
  }
  .ab-about-desc,
  .ab-about-title {
    text-align: center;
  }
  .ab-about-cards-col {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .ab-small-card {
    margin: 0 auto;
  }
    .ab-card-circle {
  width: 90px;
  height: 90px;
}

.ab-circle-icon {
  width: 50px;
  height: 50px;
}
}

/* =====================
   الشاشات المتوسطة
===================== */
@media (max-width: 1400px) {

    .ab-about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }
}
@media (max-width: 830px){
    .ab-about-cards-col {
    grid-template-columns: 1fr;
    gap: 15px;
    justify-items: center;
  }
  .ab-card-circle {
  width: 110px;
  height: 110px;
}

.ab-circle-icon {
  width: 70px;
  height: 70px;
}
}

@media (max-width: 500px) {
    .ab-card-circle {
  width: 60px;
  height: 60px;
}

.ab-circle-icon {
  width: 40px;
  height: 40px;
}
.ab-about-card {
  background-color: var(--color-primary);
  border-radius: 20px;
  padding: 10px 10px;
  margin: 0 auto;
}
}

