:root {
    --primary: #4285f4;
    --secondary: #34a853;
    --accent: #fbbc05;
    --dark: #333;
    --light: #f8f9fa;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    
    background-color: #ffffff;
    color: #2e4e1e;
    line-height: 1.6;
    font-family: 'DroidKufi-Regular', sans-serif; 

  }
  
  header {
    background-color: #d9534f;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
  }
  
  .container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
  
    font-family: thuluth-decorated;
    
    color: #fff;;
  }
  
  nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
  }
  
  nav a {
    text-decoration: none;
    color: #fff;;
    font-weight: bold;
    
    transition: color 0.3s;
    font-family: 'Tajawal', sans-serif; /* Navigation link font */
          font-weight: bold;
  }
  
  nav a:hover {
    color:  #1b3013;
  }
   .red-bg-button {
      background-color: transparent;
      color: #ffffff;
      border: 2px solid #ffffff;
      padding: 0.6rem 1.2rem;
      font-size: 1rem;
       font-weight: bold;
      cursor: pointer;
      font-family: 'DroidKufi-Regular', sans-serif;
      transition: background-color 0.3s ease, color 0.3s ease;
      margin-top: 1rem;
    }
    .red-bg-button:hover {
      background-color: #ffffff;
      color: #d9534f;
    }
  
  .cta-button {
    background-color:#f0f5e1;
    color: #2e4e1e;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
  
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    font-family: 'DroidKufi-Regular', sans-serif; /* Button font */
          
  }
  .about-section p {
          font-size: 1.1em;
          color: #666;
          max-width: 800px;
          margin: 0 auto;
          font-family: 'DroidKufi-Regular', sans-serif; 
      }
  p{
  font-family: 'DroidKufi-Regular', sans-serif;
}
  .cta-button:hover {
    
    background-color: #19336e;
  }
  
  .hero {
   
        background-color: #ecfdf5;
    
    padding: 5rem 0;
    text-align: center;
  }
  h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  font-family: 'DroidKufi-Regular';
  font-weight: 800;
}

nav a{
font-family: 'DroidKufi-Regular';
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
  .hero h1 {
    font-size: 2.5rem;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family:'DroidKufi-Regular', sans-serif; /* Heading font */
          font-weight: bold;
  }
  
  .hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-family: 'DroidKufi-Regular';
   
   
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .section-header h2 {
    color: #2e4e1e;
    margin-bottom: 1rem;
  }
  
  .missions {
    display: grid;
    
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .mission-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
  }
  
  .mission-card:hover {
    transform: translateY(-10px);
  }
  
  .mission-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
  }
  
  .impact {
    
    
    background-color: #ecfdf5;
  
    color: #2e4e1e;
    
  }
  .event {
    background-color: #e6eedb;
    margin: 1rem auto;
    padding: 1rem;
    max-width: 700px;
    border-radius: 10px;
    text-align: right;
  }
  .event h4 {
    margin: 0 0 0.5rem;
    color: #2e4e1e;
  }
  .event p {
    margin: 0;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
  }
  
  .stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  
  .team {
    background-color: white;
  }
  
  .team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .team-member {
    text-align: center;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--primary);
  }
  
  .events-news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .event-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .event-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
  }
  
  .event-content {
    padding: 1.5rem;
  }
  
  .event-date {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
  }
  
  .form-group textarea {
    min-height: 150px;
  }
  
  footer {
 
    
      color: white;
    
    
    background-color: #d9534f;;
    
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-top: 1rem;
  }
  
  .footer-column h3 {
    margin-bottom: 1.5rem;
 
    color: #ffffff;
  }
  
  .footer-column ul {
    list-style: none;
   
  }
  
  .footer-column a {
    color: #ffffff;
    
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
  }
  
  .footer-column a:hover {
    color: #1b3013;
  }
  
  .social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  
  .social-icon {
    background: white;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s;
  }
  
  .social-icon:hover {
    background: var(--accent);
    color: white;
  }
  .social-icons {
    margin-top: 0.5rem;
  }
  .social-icons a {
    color: white;
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s;
  }
  .social-icons a:hover {
    color: #1b3013;
  }
  
  .copyright {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .event-content p{
    margin-bottom:10px;
  }
  .fade-in-text {
opacity: 0;
animation: fadeIn 2s ease-in forwards;
animation-delay: 3s;
}

/* Slide-in animation for button */
.slide-in-button {
opacity: 0;
transform: translateX(50px);
animation: slideIn 1s ease-out forwards;
animation-delay: 4s;
}

 
.typewriter {
    width: 0;
overflow: hidden;
white-space: nowrap;
 /* This creates the cursor line */
animation: typing 2.5s steps(30, end) forwards; /* Removed blink-caret animation */
}

@keyframes typing {
from { width: 0 }
to { width: 100% } /* Or your desired width for the text */
}





.fade-in-text, .slide-in-button {
opacity: 0;
font-family: DroidKufi-Regular;
transform: translateY(20px);
animation: fadeInUp 1s ease-out forwards;
animation-delay: 2.8s;
}
@keyframes fadeInUp {
to {
  opacity: 1;
  transform: translateY(0);
}
}
@media (max-width: 768px) {
  .nav-container nav ul {
    display: none;
    
    
  }
  .nav-container {
        flex-direction: row;
       
        gap: 1rem;
    }
}
@media (min-width: 901px) {
  .footer-content{
   gap:21rem;
    
    
  }}
/* Basic hover effect */
.cta-button:hover {
background: #d1fae5;
color:#2e4e1e;
transform: translateY(-2px);
transition: all 0.3s ease;
}
  
  
    
    .hero h1 {
      font-size: 2rem;
    }
  
  *{
    direction:rtl;
  }

   .swiper {
      width: 100%;
      
    }
    .swiper-slide {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }
    /* .card {
      display: flex;
      flex-direction: column;
      height: 100%;
    }
    .card img {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }
    .card-body {
      padding: 15px;
    }
    .card-body h5 {
      margin: 0;
      font-size: 1.2rem;
      color: #333;
    }
    .card-body p {
      font-size: 0.95rem;
      color: #666;
      margin-top: 8px;
    } */
       .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      padding: 2rem;
    }
    .project-card {
      background-color: #ecfdf5;
      padding: 1.5rem;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      transition: transform 0.3s ease, background-color 0.3s ease;
    }
    .project-card:hover {
      transform: scale(1.02);
      background-color: #d1fae5;
    }
    .project-title {
      font-weight: bold;
      color: #065f46;
      margin-bottom: 0.5rem;
    }
    .project-date {
      font-size: 0.9rem;
      color: #6c757d;
      margin-bottom: 1rem;
    }
    .project-desc {
      color: #dc2626;
    }
    @keyframes appear {
        from {
          opacity: 0;
          clip-path: inset(100% 100% 0 0);
        }
        to {
          opacity: 1;
          clip-path: inset(0 0 0 0);
        }
      }

      .block {
        animation: appear linear;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
      }
      #scrollTopBtn {
      display: none;
      position: fixed;
      bottom: 30px;
      right: 30px;
      z-index: 99;
      font-size: 18px;
      border: none;
      outline: none;
      background-color: red; /* Red background */
      color: white; /* White text */
      cursor: pointer;
      padding: 12px 16px;
      border-radius: 50%;
      transition: background-color 0.3s;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    #scrollTopBtn:hover {
      background-color: green; /* Green on hover */
    }
    @media (min-width: 1024px) {
  li.nav-item.dropdown {
    margin-right: 100vh !important;
  }
}