/* ================ */
/* BASE STYLES */
/* ================ */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #1A5D1A;
  --whatsapp-color: #25D366;
  --light-bg: #f8f9fa;
  --text-color: #333;
  --white: #ffffff;
  --text-light: #555;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--text-color);
}

[dir="rtl"] {
  direction: rtl;
  text-align: center; /* Changed from right to center */
  font-family: 'Arial', 'Tahoma', sans-serif;
}

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

/* ================ */
/* Updated Header Styles */
header {
    /* background-color: #2c3e50; */
    /* color: white; */
    padding: 15px 0;
    /* position: sticky; */
    top: 0;
    z-index: 100;
    color: black !important;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo-container {
    width: 80px;
    height: 80px;
}


h1{
    font-size: 18px !important;
    font-weight: 600;
}

.header-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.title-container {
    flex: 1;
}

#site-title {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.arabic-title, .french-title {
    color : black;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arabic-title {
    font-size: 1.3rem;
    direction: rtl;
}

.french-title {
    font-size: 1rem;
    font-weight: normal;
    opacity: 0.9;
}

#site-title i {
    color : black;
    font-size: 1.2em;
    color: #3498db;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-container {
        width: 60px;
        height: 60px;
    }
    
    .arabic-title {
        font-size: 1.1rem;
    }
    
    .french-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .arabic-title {
        font-size: 1rem;
    }
    
    .french-title {
        font-size: 0.8rem;
    }
}

.language-switcher {
  display: flex;
  gap: 10px;
}

[dir="rtl"] .language-switcher {
  justify-content: center;
}

.language-switcher button {
  background: none;
  border: 1px solid var(--white);
  color: var(--white);
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.language-switcher button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  background: url('images/mdp.png') no-repeat center center;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 20vh 0; /* Responsive vertical padding */
  min-height: 50vh; /* Responsive minimum height */
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden; /* Prevents content overflow */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

#hero-title {
  font-size: clamp(1.5rem, 5vw, 2.5rem); /* Responsive font size */
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

#hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin: 0 auto;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero i {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 15vh 0;
    min-height: 40vh;
  }
  
  #hero-title {
    flex-direction: column;
    gap: 5px;
  }
  
  #hero-subtitle {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 10vh 0;
    min-height: 30vh;
  }
  
  .hero-content {
    width: 95%;
    padding: 10px;
  }
}

/* ================ */
/* SECTIONS */
/* ================ */
section {
  padding: 80px 0;
}

section:nth-child(even) {
  background-color: var(--light-bg);
}

.section-title {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-title i {
  margin: 0 10px;
}

/* ================ */
/* ACTIVITIES */
/* ================ */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.activity-card {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

[dir="rtl"] .activity-card {
  text-align: center;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.activity-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  display: inline-block;
}

.activity-title {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.activity-description {
  color: var(--text-light);
  line-height: 1.7;
  text-align: center;
}

/* ================ */
/* TEAM */
/* ================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background: var(--white);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.team-member i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-left: 8px;
}

[dir="rtl"] .team-member i {
  margin-left: 0;
  margin-right: 8px;
}

/* ================ */
/* CONTACT */
/* ================ */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  text-align: center;
}

[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  min-width: 30px;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--whatsapp-color);
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease;
  text-align: center;
  width: 100%;
}

.whatsapp-link:hover {
  transform: scale(1.05);
}

.whatsapp-link i {
  font-size: 2rem;
}

/* ================ */
/* OFFICIAL INFO */
/* ================ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.info-card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
}

.info-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
}

.info-card p, 
.info-card ul {
  text-align: center;
}

.info-card ul {
  list-style-position: inside;
  padding: 0;
}

/* ================ */
/* FOOTER */
/* ================ */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* ================ */
/* RESPONSIVE */
/* ================ */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero h2 {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .language-switcher {
    flex-direction: column;
    width: 100%;
  }
  
  .language-switcher button {
    width: 100%;
    justify-content: center;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .activity-card,
  .team-member,
  .info-card {
    padding: 20px;
  }
}


/* Icons Styling */
.symptoms-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

[dir="rtl"] .symptoms-list li {
    flex-direction: row-reverse;
}

.symptoms-list li i {
    color: #3498db;
    font-size: 1.2rem;
    min-width: 25px;
    text-align: center;
}

/* Leadership Icons */
.leadership-card p i,
.leadership-card h3 i {
    color: #1A5D1A;
    margin-left: 8px;
}

[dir="rtl"] .leadership-card p i,
[dir="rtl"] .leadership-card h3 i {
    margin-left: 0;
    margin-right: 8px;
}

/* Contact Icons */
.contact-info i {
    color: #2c3e50;
    min-width: 25px;
    text-align: center;
}


/* Centered Symptoms */
.symptoms-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.symptoms-list {
    width: 100%;
    max-width: 800px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.centered {
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.centered-list {
    padding: 0;
    margin: 0 auto;
    max-width: 700px;
    list-style-position: inside;
    text-align: center;
}

.centered-list li {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    text-align: right; /* For Arabic */
}

[dir="rtl"] .centered-list li {
    text-align: right;
    flex-direction: row-reverse;
}

[dir="ltr"] .centered-list li {
    text-align: left;
    flex-direction: row;
}

/* Icons styling */
.centered-list i {
    color: #3498db;
    font-size: 1.2rem;
    min-width: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .symptoms-list {
        padding: 20px;
    }
    
    .centered-list li {
        font-size: 0.95rem;
    }
}


/* Gallery Section */
.gallery-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  text-align: center;
}

.gallery-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}




.gallery-slider {
    position: relative;
    width: 100%;
    height: 500px; /* Adjusted height */
    overflow: hidden;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide-item.active {
    opacity: 1;
}

.slide-item img {
    max-width: 100%;
    max-height: 70%;
    object-fit: contain;
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.image-description {
    background-color: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 15px;
    border-radius: 5px;
    width: 80%;
    margin-top: 15px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-slider {
        height: 450px;
    }
    
    .slide-item img {
        max-height: 60%;
    }
}

@media (max-width: 480px) {
    .gallery-slider {
        height: 400px;
    }
    
    .slide-item img {
        max-height: 50%;
    }
    
    .image-description {
        width: 90%;
        padding: 10px;
    }
}
.gallery-nav {
  background: rgba(0,0,0,0.3);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.gallery-nav:hover {
  background: rgba(0,0,0,0.7);
}

.gallery-nav.prev {
  margin-left: 10px;
}

.gallery-nav.next {
  margin-right: 10px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

.gallery-dot.active {
  background: #3498db;
}



@media (max-width: 480px) {

  
  .gallery-nav {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

}



/* Leadership Section */
.leadership {
    background-color: #f8f9fa;
    padding: 60px 0;
}

/* Leadership Section */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.president-card {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.president-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 20px;
    border: 5px solid #1A5D1A;
}

.president-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.president-info {
    flex: 1;
}

.president-message {
    grid-column: 1 / -1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.president-message h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.message-content {
    line-height: 1.8;
    text-align: justify;
}

.message-content p {
    margin-bottom: 15px;
}

.signature {
    text-align: left;
    font-weight: bold;
    font-style: italic;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .president-card {
        flex-direction: column;
        text-align: center;
    }
    
    .president-image {
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .message-content {
        text-align: right;
    }
}

@media (max-width: 480px) {
    .president-image {
        width: 120px;
        height: 120px;
    }
    
    .president-message {
        padding: 20px;
    }
}

.leader-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.leader-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.leader-card p {
    color: #555;
    font-size: 0.9rem;
}

.leader-card i {
    color: #1A5D1A;
    margin-left: 8px;
}

[dir="rtl"] .leader-card i {
    margin-left: 0;
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .leadership-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    .leader-card {
        padding: 20px;
    }
}


/* Video Section */
.video-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-container video {
    width: 100%;
    border-radius: 8px;
    display: block;
    margin-bottom: 20px;
}

.video-description {
    padding: 15px;
    text-align: right;
    line-height: 1.8;
}

.video-description h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-description p {
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .video-section {
        padding: 40px 0;
    }
    
    .video-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .video-description {
        padding: 10px 0;
    }
    
    .video-description h3 {
        font-size: 1.2rem;
    }
}