@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');

/* ============================================================
   POINTS — THEME 5 (Mint Meadow)
   Identity: organic meadow / mint + forest green / botanical
   Layout:   Meadow Grid — بطاقات بزوايا ورقية ناعمة، رقم داخل
             شارة ورقة خضراء، حدود داخلية خضراء، لمحات نباتية
             عبر دائرة الأوراق
   Fonts:    El Messiri
   ============================================================ */

.ebpt12-section {
  --ebpt12-font-family: 'El Messiri', sans-serif;

  --ebpt12-animation-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ebpt12-transition-duration: 0.45s;

  --ebpt12-radius-pill: 999px;
  --ebpt12-radius-card: 20px;

  /* ---------- SECTION ---------- */
  --ebpt12-section-background: linear-gradient(180deg, #e4f5ed 0%, #cbead0 40%, #b3e2cd 100%);
  --ebpt12-section-padding-top: 6.5rem;
  --ebpt12-section-padding-bottom: 6.5rem;
  --ebpt12-section-padding-x: 1.5rem;
  --ebpt12-section-max-width: 1240px;

  --ebpt12-orb-1-bg: rgba(63, 174, 131, 0.2);
  --ebpt12-orb-1-size: 420px;
  --ebpt12-orb-2-bg: rgba(47, 138, 104, 0.16);
  --ebpt12-orb-2-size: 340px;
  --ebpt12-orb-3-bg: rgba(255, 255, 255, 0.5);
  --ebpt12-orb-3-size: 260px;
  --ebpt12-shape-ring-color: rgba(47, 138, 104, 0.25);
  --ebpt12-shape-ring-size: 560px;
  --ebpt12-shape-grid-color: rgba(47, 138, 104, 0.05);

  /* ---------- SIDE / CORNER ---------- */
  --ebpt12-side-color: rgba(36, 86, 63, 0.55);
  --ebpt12-corner-border: rgba(63, 174, 131, 0.6);
  --ebpt12-corner-size: 18px;

  /* ---------- HEADER ---------- */
  --ebpt12-kicker-color: #2f7a5e;
  --ebpt12-kicker-border: rgba(63, 174, 131, 0.4);
  --ebpt12-kicker-bg: rgba(255, 255, 255, 0.8);
  --ebpt12-title-color: #24563f;
  --ebpt12-title-hl-color: #2e8a68;
  --ebpt12-title-hl-glow: none;
  --ebpt12-title-font-size: 2.6rem;
  --ebpt12-sub-color: #4d7a63;
  --ebpt12-sub-font-size: 1rem;

  /* ---------- POINT CARD ---------- */
  --ebpt12-point-bg: rgba(255, 255, 255, 0.72);
  --ebpt12-point-border: 1px solid rgba(63, 174, 131, 0.3);
  --ebpt12-point-inner-border: rgba(47, 138, 104, 0.18);
  --ebpt12-point-shadow: 0 20px 44px -32px rgba(36, 86, 63, 0.45);
  --ebpt12-point-hover-border: rgba(63, 174, 131, 0.65);
  --ebpt12-num-bg: linear-gradient(135deg, #3fae83, #2e8a68);
  --ebpt12-num-color: #ffffff;
  --ebpt12-icon-bg: rgba(63, 174, 131, 0.14);
  --ebpt12-icon-color: #2e8a68;
  --ebpt12-title-color-point: #24563f;
  --ebpt12-desc-color: #55705f;
  --ebpt12-support-color: #2f7a5e;
  --ebpt12-support-bg: rgba(255, 255, 255, 0.85);
  --ebpt12-support-border: rgba(63, 174, 131, 0.35);
  --ebpt12-flag-bg: linear-gradient(135deg, #3fae83, #2e8a68);
  --ebpt12-flag-color: #ffffff;

  /* ---------- REVEAL ---------- */
  --ebpt12-reveal-duration: 0.7s;
  --ebpt12-reveal-distance: 28px;

  /* ---------- BASE ---------- */
  position: relative;
  overflow: hidden;
  font-family: var(--ebpt12-font-family);
  background: var(--ebpt12-section-background);
  padding: var(--ebpt12-section-padding-top) var(--ebpt12-section-padding-x) var(--ebpt12-section-padding-bottom);
  direction: rtl;
  color: #24563f;
  isolation: isolate;
}

/* ============================ BACKGROUND ============================ */
.ebpt12-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ebpt12-orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.ebpt12-orb-1 { width: var(--ebpt12-orb-1-size); height: var(--ebpt12-orb-1-size); background: var(--ebpt12-orb-1-bg); top: -8%; inset-inline-start: -6%; }
.ebpt12-orb-2 { width: var(--ebpt12-orb-2-size); height: var(--ebpt12-orb-2-size); background: var(--ebpt12-orb-2-bg); bottom: -6%; inset-inline-end: -6%; }
.ebpt12-orb-3 { width: var(--ebpt12-orb-3-size); height: var(--ebpt12-orb-3-size); background: var(--ebpt12-orb-3-bg); top: 42%; inset-inline-start: 44%; }
.ebpt12-shape { position: absolute; pointer-events: none; }
.ebpt12-shape-ring { width: var(--ebpt12-shape-ring-size); height: var(--ebpt12-shape-ring-size); border: 1px dashed var(--ebpt12-shape-ring-color); border-radius: 50%; top: 8%; inset-inline-end: -14%; animation: ebpt12-spin 60s infinite alternate; }
.ebpt12-shape-grid { inset: 0; background-image: linear-gradient(var(--ebpt12-shape-grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--ebpt12-shape-grid-color) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 76%); }

@keyframes ebpt12-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============================ SIDE / CORNER ============================ */
.ebpt12-side { position: absolute; font-weight: 700; color: var(--ebpt12-side-color); letter-spacing: 0.08em; z-index: 1; }
.ebpt12-side-num { top: 1.6rem; inset-inline-end: 1.2rem; font-size: 0.95rem; }
.ebpt12-side-label { bottom: 1.6rem; inset-inline-start: 1.2rem; font-size: 0.95rem; }
.ebpt12-corner { position: absolute; width: var(--ebpt12-corner-size); height: var(--ebpt12-corner-size); border-color: var(--ebpt12-corner-border); z-index: 1; pointer-events: none; }
.ebpt12-corner-tl { top: 0.9rem; inset-inline-start: 0.9rem; border-top: 2px solid; border-inline-start: 2px solid; border-radius: 12px 0 0 0; }
.ebpt12-corner-tr { top: 0.9rem; inset-inline-end: 0.9rem; border-top: 2px solid; border-inline-end: 2px solid; border-radius: 0 12px 0 0; }
.ebpt12-corner-bl { bottom: 0.9rem; inset-inline-start: 0.9rem; border-bottom: 2px solid; border-inline-start: 2px solid; border-radius: 0 0 0 12px; }
.ebpt12-corner-br { bottom: 0.9rem; inset-inline-end: 0.9rem; border-bottom: 2px solid; border-inline-end: 2px solid; border-radius: 0 0 12px 0; }

/* ============================ SHELL ============================ */
.ebpt12-shell { max-width: var(--ebpt12-section-max-width); margin-inline: auto; }

/* ============================ HEADER ============================ */
.ebpt12-header { text-align: center; margin-bottom: 3rem; }
.ebpt12-kicker { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 1.2rem; border-radius: var(--ebpt12-radius-pill); border: 1px solid var(--ebpt12-kicker-border); background: var(--ebpt12-kicker-bg); color: var(--ebpt12-kicker-color); font-size: 0.88rem; font-weight: 700; box-shadow: 0 10px 24px -18px rgba(36, 86, 63, 0.4); }
.ebpt12-kicker-ico { color: var(--ebpt12-kicker-color); font-size: 0.9rem; }
.ebpt12-title { margin: 1.1rem 0 0; font-size: var(--ebpt12-title-font-size); font-weight: 700; color: var(--ebpt12-title-color); line-height: 1.4; }
.ebpt12-title-hl { color: var(--ebpt12-title-hl-color); position: relative; white-space: nowrap; }
.ebpt12-title-hl::after { content: ""; position: absolute; inset-inline: 0; bottom: 0.08em; height: 0.42em; background: rgba(63, 174, 131, 0.28); z-index: -1; border-radius: 4px; }
.ebpt12-sub { margin: 0.9rem auto 0; max-width: 680px; font-size: var(--ebpt12-sub-font-size); color: var(--ebpt12-sub-color); line-height: 1.9; }

/* ============================ POINTS GRID ============================ */
.ebpt12-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.ebpt12-point {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.8rem 1.5rem 1.6rem;
  border-radius: var(--ebpt12-radius-card);
  background: var(--ebpt12-point-bg);
  border: var(--ebpt12-point-border);
  box-shadow: var(--ebpt12-point-shadow);
  transition: transform var(--ebpt12-transition-duration) var(--ebpt12-animation-ease), border-color var(--ebpt12-transition-duration) var(--ebpt12-animation-ease);
}
.ebpt12-point::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--ebpt12-point-inner-border);
  border-radius: 14px;
  pointer-events: none;
}
.ebpt12-point:hover { transform: translateY(-6px); border-color: var(--ebpt12-point-hover-border); }

.ebpt12-point-num {
  position: absolute;
  top: -0.8rem;
  inset-inline-start: 1.3rem;
  display: grid;
  place-items: center;
  min-width: 2.7rem;
  height: 2rem;
  padding-inline: 0.5rem;
  border-radius: var(--ebpt12-radius-pill);
  background: var(--ebpt12-num-bg);
  color: var(--ebpt12-num-color);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 22px -12px rgba(46, 138, 104, 0.7);
  z-index: 1;
}

.ebpt12-point-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--ebpt12-icon-bg);
  color: var(--ebpt12-icon-color);
  font-size: 1.3rem;
}

.ebpt12-point-body { display: flex; flex-direction: column; gap: 0.55rem; }
.ebpt12-point-title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--ebpt12-title-color-point); line-height: 1.5; }
.ebpt12-point-desc { margin: 0; font-size: 0.94rem; line-height: 1.9; color: var(--ebpt12-desc-color); }
.ebpt12-point-support { display: inline-flex; align-self: flex-start; margin: 0.1rem 0 0; padding: 0.35rem 0.85rem; border-radius: var(--ebpt12-radius-pill); background: var(--ebpt12-support-bg); border: 1px solid var(--ebpt12-support-border); color: var(--ebpt12-support-color); font-size: 0.78rem; }

.ebpt12-point-flag {
  position: absolute;
  top: 1.2rem;
  inset-inline-end: 1.2rem;
  padding: 0.3rem 0.9rem;
  border-radius: var(--ebpt12-radius-pill);
  background: var(--ebpt12-flag-bg);
  color: var(--ebpt12-flag-color);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 12px 26px -14px rgba(46, 138, 104, 0.7);
}

/* ============================ REVEAL ============================ */
.ebpt12-reveal { opacity: 0; transform: translateY(var(--ebpt12-reveal-distance)); transition: opacity var(--ebpt12-reveal-duration) var(--ebpt12-animation-ease), transform var(--ebpt12-reveal-duration) var(--ebpt12-animation-ease); }
.ebpt12-reveal.ebpt12-in { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 320px) {
  .ebpt12-section { --ebpt12-section-padding-x: 1rem; --ebpt12-title-font-size: 1.7rem; }
  .ebpt12-points { grid-template-columns: 1fr; gap: 1.2rem; }
  .ebpt12-point { padding: 1.6rem 1.2rem 1.5rem; }
}
@media (min-width: 321px) and (max-width: 375px) {
  .ebpt12-section { --ebpt12-section-padding-x: 1rem; --ebpt12-title-font-size: 1.8rem; }
  .ebpt12-points { grid-template-columns: 1fr; gap: 1.2rem; }
  .ebpt12-point { padding: 1.7rem 1.3rem 1.5rem; }
}
@media (min-width: 376px) and (max-width: 425px) {
  .ebpt12-section { --ebpt12-section-padding-x: 1.1rem; --ebpt12-title-font-size: 1.95rem; }
  .ebpt12-points { grid-template-columns: 1fr; gap: 1.3rem; }
}
@media (min-width: 426px) and (max-width: 480px) {
  .ebpt12-section { --ebpt12-section-padding-x: 1.2rem; --ebpt12-title-font-size: 2rem; }
  .ebpt12-points { grid-template-columns: 1fr; gap: 1.3rem; }
}
@media (min-width: 481px) and (max-width: 600px) {
  .ebpt12-section { --ebpt12-section-padding-x: 1.3rem; --ebpt12-title-font-size: 2.1rem; }
  .ebpt12-points { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (min-width: 601px) and (max-width: 768px) {
  .ebpt12-section { --ebpt12-section-padding-x: 1.5rem; --ebpt12-title-font-size: 2.2rem; }
  .ebpt12-points { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .ebpt12-section { --ebpt12-section-padding-x: 1.6rem; --ebpt12-title-font-size: 2.35rem; }
  .ebpt12-points { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .ebpt12-point { padding: 1.7rem 1.4rem; }
}
@media (min-width: 1025px) and (max-width: 1280px) {
  .ebpt12-section { --ebpt12-section-padding-x: 1.6rem; --ebpt12-title-font-size: 2.45rem; }
  .ebpt12-points { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
@media (min-width: 1281px) and (max-width: 1440px) {
  /* base */
}
@media (min-width: 1441px) and (max-width: 1920px) {
  /* base */
}
@media (min-width: 1921px) {
  /* base */
}

@media (prefers-reduced-motion: reduce) {
  .ebpt12-orb,
  .ebpt12-shape-ring,
  .ebpt12-point,
  .ebpt12-reveal {
    animation: none !important;
    transition: none !important;
  }
  .ebpt12-reveal { opacity: 1 !important; transform: none !important; }
}
