/* =====================================================
   About Section – FINAL (Safe for Admin Long Text)
   File: public/css/landing/05-about.css
===================================================== */

:root {
  --about-font: "Cairo", sans-serif;
  --about-card-h: 417px;
}

/* =========================
   Section (تم توحيد المسافات هنا لتطابق باقي الأقسام)
========================= */
.about-figma {
  background: #fff;
  /* مسافة متوازنة من الأعلى والأسفل */
  padding: 48px 0; 
  /* إذا أردت مسافة أكبر يمكنك تغييرها إلى: padding: 64px 0; */
}

/* العنوان ما يكون دافع المحتوى زيادة */
.about-figma .section-title {
  margin-bottom: 34px;
}

/* =========================
   Card Layout
========================= */
.about-figma-card {
  width: 100%;

  /* ✅ مهم: لا تعطي height ثابت (كان يدفن الزر) */
  height: auto;
  min-height: var(--about-card-h);

  display: grid;
  grid-template-columns: 50% 50%;

  border-radius: var(--radius-md);
  overflow: hidden;

  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-md);

  direction: ltr;
}

/* =========================
   Image Side
========================= */
.about-figma-image {
  position: relative;
  overflow: hidden;
  background: #fff;
  min-height: var(--about-card-h);
}

.about-figma-image img {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;
  object-position: 55% 78%;
}

/* Blue diagonal wedge */
.about-figma-image::before {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  height: 100%;
  width: 140px;

  background: var(--primary-blue);
  clip-path: polygon(55% 0, 100% 0, 100% 100%, 0 100%);

  z-index: 2;
}

/* =========================
   Content Side (FINAL)
========================= */
.about-figma-content {
  background: var(--primary-blue);

  /* ✅ أصغر شوي */
  padding: 26px 44px;

  display: flex;
  align-items: stretch;
  justify-content: center;

  direction: rtl;
  text-align: center;

  min-height: var(--about-card-h);
}

.about-figma-inner {
  width: 100%;
  max-width: 640px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  /* ✅ الزر دايمًا تحت */
  gap: 12px;
}

/* Text (safe for any admin text) */
.about-figma-text {
  margin: 0;
  width: 100%;

  font-family: var(--about-font);
  font-weight: 500;
  font-size: 20px;
  /* ✅ صغرنا الخط */
  line-height: 1.75;

  color: rgba(255, 255, 255, 0.96);

  /* ✅ أهم جزء: يمنع دفن الزر */
  max-height: 260px;
  overflow: hidden;

  display: -webkit-box;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  /* قص أنيق */
  -webkit-box-orient: vertical;
}

/* =========================
   CTA Button (FINAL)
========================= */
.about-figma-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 18px;
  /* ✅ أصغر */
  border-radius: var(--radius-sm);

  font-family: var(--about-font);
  font-weight: 800;
  font-size: 14px;
  /* ✅ أصغر */

  color: var(--primary-blue);
  background: #ffffff;

  text-decoration: none;
  border: none;

  box-shadow: var(--shadow-md);
  transition: transform .18s ease, box-shadow .18s ease;
}

.about-figma-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.about-figma-btn .btn-arrow {
  font-size: 16px;
  transition: transform .2s ease;
}

.about-figma-btn:hover .btn-arrow {
  transform: translateX(-4px);
}

/* =========================
   Responsive
========================= */
@media (max-width: 992px) {

  .about-figma {
    /* مسافة متوازنة للشاشات الصغيرة */
    padding: 32px 0;
  }

  .about-figma-title {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .about-figma-card {
    grid-template-columns: 1fr;
    min-height: 0;
    direction: rtl;
  }

  .about-figma-image {
    min-height: 0;
    height: 260px;
  }

  .about-figma-image::before {
    display: none;
  }

  .about-figma-content {
    min-height: 0;
    padding: 22px 18px;
  }

  .about-figma-text {
    font-size: 18px;
    line-height: 1.8;
    max-height: none;
    -webkit-line-clamp: 10;
    line-clamp: 10;
  }

  .about-figma-btn {
    width: 100%;
    justify-content: center;
  }
}
/* =========================
   Fix: إزالة المسافات المضاعفة (الخارجية والداخلية)
========================= */

/* 1. تقليل مسافة الحاوية الأب من الأعلى */
.landing-section:has(.about-figma) {
  padding-top: 48px !important; /* صغرنا المسافة من فوق كتير، فيك تعدل الرقم */
}

/* 2. إزالة المسافة الداخلية العلوية للقسم نفسه عشان ما تتضاعف */
.about-figma {
  padding-top: 0 !important; 
  padding-bottom: 48px; /* حافظنا على المسافة من تحت */
  background: #fff;
}