:root {
    --primary-bg: #27a39b;
    /* --navbar-bg: #1f7e77; */
    --text-white: #ffffff;
    --text-dark: #0a3442;
    --text-muted: #666;
    --text-hover: #dcdcdc;
    --gradient-start: #d95eff;
    --gradient-end: #5e8bff;
    --heading-color: #0A3442;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --bg-light: #eafaf8;
    --card-bg: linear-gradient(180deg, #dff6f3, #038378);
    --radius: 20px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Zain', sans-serif;
  }
  
  body {
    background-color: #ffffff;
    direction: rtl;
  }
  
  /* النافبار والهيرو يأتيان من landing.css ليكونوا مطابقين لصفحة الهوم */

  /* خاص بصفحة About فقط: إخفاء عناصر على الموبايل */
  @media (max-width: 768px) {
    .logo-section {
      display: none;
    }
    .scroll-container-wrapper button {
      display: none;
    }
  }

  /* ========== الصفحة الرئيسية للمحتوى ========== */
  .main-section {
    background: linear-gradient(180deg, #f0faf9 0%, #fff 20%, #fff 80%, #eafaf8 100%);
    min-height: 100vh;
  }

  .aboutus-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    padding: 48px 5% 56px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
  }
  
  .image-section {
    flex: 1;
    max-width: 42%;
    position: relative;
    min-width: 260px;
  }
  
  .image-section img {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(10, 52, 66, 0.15);
    position: relative;
    z-index: 2;
  }
  
  .green-box {
    width: 200px;
    height: 320px;
    background: linear-gradient(180deg, #33A5A0 0%, #2b8f8d 100%);
    position: absolute;
    top: 40px;
    right: -30px;
    border-radius: 16px;
    z-index: 1;
    opacity: 0.95;
  }
  
  .text-section {
    flex: 1;
    max-width: 52%;
    min-width: 280px;
    text-align: right;
  }
  
  .text-section .logo-inline {
    width: 200px;
    height: auto;
    margin: 0 0 16px 0;
    display: block;
  }
  
  .text-section h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0A3442;
    margin-bottom: 24px;
    line-height: 1.3;
  }
  
  .text-section h1 span {
    color: #33A5A0;
  }
  
  .text-section p {
    font-size: 1.05rem;
    font-weight: 500;
    color: #0A3442;
    line-height: 1.95;
    margin-top: 0;
    margin-bottom: 16px;
  }

  .text-section p.about-intro-text,
  .text-section .about-intro-text {
    display: block;
    width: 100%;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: justify;
    -moz-text-align-last: justify;
  }

  .text-section p.about-intro-text + .about-intro-text {
    margin-top: 10px;
  }
  
  .text-section p:last-of-type {
    margin-bottom: 0;
  }
  
  .logo-section {
    flex: 0 0 100%;
    max-width: 120px;
    margin-top: 24px;
  }
  
  .logo-image {
    width: 100px;
    height: auto;
    display: block;
  }
  
  .logo-inline {
    width: 270px;
    height: auto;
    margin: 0 20px auto auto;
  }

  /* ========== أقسام المحتوى (قيمنا، معرضنا، إنجازاتنا) ========== */
  .container-tex {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5% 56px;
    background: transparent;
  }
  
  .container-tex h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0A3442;
    margin-bottom: 8px;
    text-align: center;
  }

  .container-tex > p {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(10, 52, 66, 0.75);
    text-align: center;
    margin-bottom: 28px;
  }




  .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
    padding: 0 8px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .card {
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(10, 52, 66, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(51, 165, 160, 0.12);
  }
  
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(51, 165, 160, 0.18);
  }
  
  .card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    display: block;
    object-fit: contain;
  }
  
  .card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  
  .card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
  }
  
  .card1 {
    background: linear-gradient(180deg, #0A3442 0%, #134C56 100%);
    color: #fff;
  }
  .card1 h3,
  .card1 p {
    color: #fff;
  }
  .card1 p {
    font-weight: 500;
    opacity: 0.95;
  }
  
  .card2 {
    background: #fff;
  }
  .card2 h3 {
    color: #0A3442;
  }
  .card2 p {
    color: #33A5A0;
    font-weight: 600;
  }
  
  .card3 {
    background: linear-gradient(180deg, #33A5A0 0%, #2b8f8d 100%);
    color: #fff;
  }
  .card3 h3 {
    color: #fff;
  }
  .card3 p {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
  }
  



  /* معرض الصور */
  .scroll-container-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 16px;
  }

  .scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 16px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .scroll-container::-webkit-scrollbar {
    height: 8px;
  }

  .scroll-container::-webkit-scrollbar-thumb {
    background: rgba(51, 165, 160, 0.4);
    border-radius: 4px;
  }

  .image-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    text-align: center;
  }

  .image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  .scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #33A5A0 0%, #2b8f8d 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(51, 165, 160, 0.4);
    transition: transform 0.2s ease;
  }

  .scroll-btn:hover {
    transform: translateY(-50%) scale(1.08);
  }

  .scroll-btn.left {
    left: 8px;
  }

  .scroll-btn.right {
    right: 8px;
  }

  
/* إنجازاتنا */
.achieve-subtitle {
  margin-top: 48px;
  margin-bottom: 28px;
  text-align: center;
}

.achieve-subtitle h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0A3442;
  margin: 0 0 8px;
}

.achieve-subtitle p {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(10, 52, 66, 0.75);
  margin: 0;
}

.achievements {
  background: transparent;
  padding: 0 0 48px;
  direction: rtl;
  text-align: center;
}

.achievements .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.achieve-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.achieve-card {
  background: linear-gradient(180deg, #0A3442 0%, #134C56 50%, #1B6268 100%);
  padding: 28px 22px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(10, 52, 66, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(51, 165, 160, 0.2);
  text-align: center;
}

.achieve-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(51, 165, 160, 0.2);
}

.achieve-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 16px;
}

.achieve-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.achieve-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  font-weight: 500;
  margin: 0;
}

/* حالة عدم وجود محتوى (معرض صور / إنجازات) */
.about-empty-state {
  text-align: center;
  padding: 40px 24px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  border: 2px dashed rgba(51, 165, 160, 0.35);
  margin-top: 16px;
}

.about-empty-state i {
  font-size: 2.5rem;
  color: #33A5A0;
  margin-bottom: 16px;
  display: block;
}

.about-empty-state p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0A3442;
}


















  
  /* ------------------- Responsive About Page ------------------- */
  
  @media (max-width: 1024px) {
    .aboutus-container {
      flex-direction: column;
      align-items: stretch;
      padding: 36px 5% 44px;
      gap: 32px;
    }
  
    .image-section {
      max-width: 100%;
      min-width: 0;
      text-align: center;
    }
  
    .image-section img {
      max-width: 320px;
      margin: 0 auto;
    }
  
    .green-box {
      display: none;
    }
  
    .text-section {
      max-width: 100%;
      text-align: center;
    }
  
    .text-section .logo-inline {
      margin: 0 auto 16px;
    }
  
    .text-section h1 {
      font-size: 2.2rem;
    }
  
    .text-section p {
      font-size: 1rem;
      padding: 0 8px;
    }
    .text-section p.about-intro-text {
      text-align: justify;
      text-justify: inter-word;
      text-align-last: justify;
      -moz-text-align-last: justify;
    }
  
    .logo-section {
      margin: 0 auto;
    }
  
    .container-tex {
      padding: 32px 5% 44px;
    }
  
    .container-tex h2 {
      font-size: 1.9rem;
    }
  
    .cards-container {
      grid-template-columns: 1fr;
      max-width: 400px;
      margin-left: auto;
      margin-right: auto;
    }
  
    .image-card {
      flex: 0 0 240px;
    }
  
    .image-card img {
      height: 180px;
    }
  }
  
  @media (max-width: 768px) {
    .aboutus-container {
      padding: 28px 16px 36px;
    }
  
    .text-section h1 {
      font-size: 1.9rem;
    }
  
    .text-section p {
      font-size: 0.95rem;
    }
    .text-section p.about-intro-text {
      text-align: justify;
      text-justify: inter-word;
      text-align-last: justify;
      -moz-text-align-last: justify;
    }
  
    .container-tex h2 {
      font-size: 1.6rem;
    }
  
    .achieve-subtitle h2 {
      font-size: 1.6rem;
    }
  
    .achieve-cards {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .aboutus-container {
      padding: 24px 12px 32px;
    }
  
    .text-section h1 {
      font-size: 1.6rem;
    }
  
    .text-section p {
      font-size: 0.9rem;
    }
    .text-section p.about-intro-text {
      text-align: justify;
      text-justify: inter-word;
      text-align-last: justify;
      -moz-text-align-last: justify;
    }
  
    .text-section .logo-inline {
      width: 160px;
    }
  
    .logo-image {
      width: 80px;
    }
  
    .container-tex {
      padding: 24px 12px 36px;
    }
  
    .container-tex h2 {
      font-size: 1.45rem;
    }
  
    .card {
      padding: 22px 18px;
    }
  
    .card h3 {
      font-size: 1.2rem;
    }
  
    .image-card {
      flex: 0 0 200px;
    }
  
    .image-card img {
      height: 160px;
    }
  
    .scroll-btn {
      width: 36px;
      height: 36px;
      font-size: 0.95rem;
    }
  }











  


    /* Footer - عن الجمعية */
    footer {
        width: 100%;
        background-color: #0e3e46;
        color: white;
        padding: 40px 5% 0;
        box-sizing: border-box;
      }
      
      .footer-top {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
        width: 100%;
      }
      
      .footer-column {
        flex: 1 1 200px;
        min-width: 220px;
      }
      
      .footer-column h3 {
        color: #3db8a9;
        font-size: 1.2rem;
        margin-bottom: 15px;
      }
      
      .footer-column p,
      .footer-column a {
        font-size: 0.95rem;
        color: white;
        text-decoration: none;
        margin-bottom: 10px;
        display: block;
      }
      
      .footer-column a:hover {
        text-decoration: none;
        color: #FFC300;
      }
      
      .footer-logo-text {
        font-size: 0.95rem;
      }
      
      .social-icons {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
      }
      
      .social-icons img {
        width: 30px;
        height: 30px;
      }
      
      .footer-bottom {
        background-color: #36b7a9;
        color: #fff;
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        box-sizing: border-box;
      }
      
      .footer-left, .footer-right {
        display: flex;
        align-items: center;
      }
      
      .footer-left {
        justify-content: flex-start;
      }
      
      .footer-right {
        justify-content: flex-end;
      }
      
      .footer-bottom a {
        color: orange;
        font-weight: bold;
        text-decoration: none;
      }
      
      .social-icons img:hover {
        border-radius: 50%;
        background-color: #038378;
      }
      
      .footer-column i {
        margin-left: 8px;
        color: #3db8a9;
        transition: color 0.3s ease;
      }
      
      .footer-column a {
        color: white;
        text-decoration: none;
        transition: color 0.3s ease;
      }
      
      .footer-column a:hover {
        color: #FFC300;
        text-decoration: none;
      }

      /* الفوتر على الشاشات الصغيرة - About */
      @media (max-width: 768px) {
        footer {
          padding: 28px 16px 0;
        }
        .footer-top {
          flex-direction: column;
          align-items: stretch;
          text-align: right;
          gap: 28px;
          padding: 0 8px;
        }
        .footer-column:empty {
          display: none;
        }
        .footer-column {
          min-width: 100%;
          flex: 1 1 auto;
        }
        .footer-column:first-child {
          text-align: center;
        }
        .footer-column:first-child .footer-logo-text {
          text-align: justify;
        }
        .footer-column h3 {
          font-size: 1.15rem;
          margin-bottom: 12px;
          padding-bottom: 8px;
          border-bottom: 1px solid rgba(61, 184, 169, 0.35);
        }
        .footer-column p,
        .footer-column a {
          margin-bottom: 10px;
          font-size: 0.95rem;
        }
        .social-icons {
          justify-content: center;
          gap: 14px;
          margin-top: 14px;
        }
        .social-icons img {
          width: 36px;
          height: 36px;
        }
        .footer-column:first-child img[width="100px"] {
          width: 90px;
          height: auto;
        }
        .footer-bottom {
          flex-direction: column;
          gap: 12px;
          padding: 16px 16px;
          margin-top: 24px;
          text-align: center;
          font-size: 0.85rem;
        }
        .footer-right,
        .footer-left {
          justify-content: center;
          width: 100%;
        }
        .footer-right p,
        .footer-left p {
          margin: 0;
        }
      }

      @media (max-width: 480px) {
        footer {
          padding: 20px 12px 0;
        }
        .footer-top {
          gap: 24px;
          padding: 0;
        }
        .footer-column h3 {
          font-size: 1.05rem;
        }
        .footer-column p,
        .footer-column a {
          font-size: 0.9rem;
        }
        .footer-column:first-child .footer-logo-text p {
          font-size: 14px;
        }
        .social-icons img {
          width: 32px;
          height: 32px;
        }
        .footer-bottom {
          padding: 14px 12px;
          margin-top: 20px;
          font-size: 0.8rem;
        }
      }