/* قسم الأنشطة والمشاريع */
.projects {
  background-color: #fdf6ff;
  padding: 80px 10PX;
  text-align: center;
  direction: rtl;
}

.projects .section-title {
  color: #7b1fa2; /* بنفسجي */
}

.projects .section-title::after {
  background-color: #f57c00; /* برتقالي */
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card h3 {
  color: #7b1fa2;
  margin: 15px 0 10px;
  font-size: 1.2em;
}

.project-card p {
  color: #555;
  font-size: 1em;
  padding: 0 15px 20px;
  line-height: 1.6;
}
/* قسم الصور مع العناوين */
.gallery {
  background-color: #fff7f3;
  padding: 80px 10PX;
  text-align: center;
  direction: rtl;
}

.gallery .section-title {
  color: #7b1fa2; /* بنفسجي */
  font-size: 2em;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(123,31,162,0.85), rgba(0,0,0,0));
  color: #fff;
  text-align: center;
  padding: 20px 10px;
}

.gallery-item h3 {
  font-size: 1.2em;
  color: #fff;
}
/* قسم التواصل والانضمام */
.contact-section {
  background: linear-gradient(135deg, #fdf6ff, #fff4e5);
  padding: 80px 20px;
  text-align: center;
  direction: rtl;
}

.section-title {
  font-size: 2.2em;
  color: #7b1fa2;
  margin-bottom: 10px;
}

.section-subtitle {
  color: #666;
  margin-bottom: 40px;
  font-size: 1.1em;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
}

/* معلومات التواصل */
.contact-info {
  flex: 1 1 300px;
  text-align: right;
}

.contact-info h3 {
  color: #f57c00;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 12px;
  color: #444;
  font-size: 1.1em;
}

.contact-info i {
  color: #7b1fa2;
  margin-left: 8px;
}

/* أيقونات التواصل الاجتماعي */
.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  margin: 0 8px;
  background-color: #7b1fa2;
  color: #fff;
  width: 38px;
  height: 38px;
  line-height: 38px;
  border-radius: 50%;
  transition: background 0.3s, transform 0.2s;
}

.social-links a:hover {
  background-color: #f57c00;
  transform: scale(1.1);
}

/* نموذج التواصل */
.contact-form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: right;
}

.contact-form h3 {
  color: #7b1fa2;
  margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  outline: none;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f57c00;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

.contact-form button {
  background: linear-gradient(90deg, #7b1fa2, #f57c00);
  color: #fff;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.3s;
}

.contact-form button:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* استجابة الهواتف */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .contact-info, .contact-form {
    text-align: center;
  }
}
body {
  font-family: "Cairo", sans-serif;
  margin: 0;
  background-color: #fff9f8;
  color: #333;
}

header {
  background: linear-gradient(90deg, #ee6c4d, #9b5de5);
  color: white;
  padding: 20px 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

header .logo {
  width: 80px;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

nav a.active {
  border-bottom: 2px solid white;
}

.lang-switch button {
  background: white;
  color: #9b5de5;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  margin-left: 6px;
  transition: 0.3s;
}

.lang-switch button:hover {
  background: #f6e8ff;
}

section {
  padding: 60px 10%;
  text-align: center;
}

h2 {
  color: #9b5de5;
  margin-bottom: 20px;
  font-size: 26px;
}

p {
  font-size: 18px;
  line-height: 1.8;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  width: 280px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

footer {
  background: #9b5de5;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}
.team-section {
  background-color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.team-section h2 {
  color: #8A2A8D;
  font-size: 2rem;
  margin-bottom: 10px;
}

.team-section .intro {
  color: #555;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 50px;
  direction: var(--dir, rtl);
  text-align: var(--align, center);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  justify-items: center;
}

.member {
  background: linear-gradient(135deg, #F36E21, #8A2A8D);
  color: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.member:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.member img {
  width: 100%;
  max-width: 180px;
  height: 180px;
  border-radius: 50%;
  margin-bottom: 15px;
  object-fit: cover;
  border: 4px solid #fff;
}

.member h3 {
  margin: 10px 0 5px;
  font-size: 1.2rem;
}

.member p {
  font-size: 0.95rem;
  opacity: 0.9;
}
.hero-activities {
  position: relative;
  background: linear-gradient(135deg, #ff7b00, #7f00ff);
  color: white;
  text-align: center;
  padding: 140px 20px;
  overflow: hidden;
}

.hero-activities .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/activities-bg.jpg') center/cover no-repeat;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
}

.hero-content .title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: none;
}

.hero-content .title.active {
  display: block;
}

.hero-content .description {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 25px;
  display: none;
}

.hero-content .description.active {
  display: block;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-primary {
  background-color: #ff7b00;
  color: white;
}

.btn-secondary {
  background-color: white;
  color: #7f00ff;
}

.btn-primary:hover, .btn-secondary:hover {
  transform: scale(1.05);
}

.language-toggle {
  margin-top: 30px;
}

.language-toggle button {
  background: transparent;
  border: 2px solid white;
  color: white;
  margin: 0 5px;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.language-toggle button.active, 
.language-toggle button:hover {
  background: white;
  color: #7f00ff;
}
