/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables */
:root {
  --primary-purple: #593c7f;	
/*  --primary-purple: #5d30b1;*/
  --secondary-purple: #7E69AB;
  --dark-purple: #1A1F2C;
  --light-purple: #E5DEFF;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --gray: #e0e0e0;
  --dark-gray: #333333;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Typography */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  color: var(--dark-purple);
  font-weight: 700;
  line-height: 1.2;
  font-family: 'Tajawal', sans-serif;
}

a {
  text-decoration: none;
  color: var(--secondary-purple);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-purple);
}

p {
  margin-bottom: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-purple);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  z-index: 1000;
  transition: var(--transition);
}

#header.scrolled {
  padding: 0.5rem 0;
  background-color: var(--primary-purple);
}

#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-right: 1.5rem;
  margin-left: 1.5rem;
}

.nav-menu li:last-child {
  margin-right: 0;
}

.nav-menu a {
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.primary-button,
.secondary-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
}

.primary-button {
  background-color: var(--white);
  color: var(--primary-purple);
}

.primary-button:hover {
  background-color: var(--light-gray);
  transform: translateY(-3px);
}

.secondary-button {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.secondary-button:hover {
  background-color: var(--white);
  color: var(--primary-purple);
  transform: translateY(-3px);
}

/* Banner */
.banner {
  position: relative;
  height: 600px;
  background-image: url('img/banniere.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  margin-top: 80px;
}

/* New Welcome Section */
.welcome-section {
  background-color: var(--primary-purple);
  padding: 2rem 0;
  color: var(--white);
  height: 190px;
  display: flex;
  align-items: center;
}

.welcome-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.welcome-text {
  text-align: right;
}

.welcome-text h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.welcome-text p {
  font-size: 1.1rem;
  margin-bottom: 0;
  padding: 0 0 10px;
}

.welcome-buttons {
  display: flex;
  gap: 1rem;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-purple);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--secondary-purple);
  transform: translateY(-3px);
}

/* Image Gallery Modal Navigation */
.modal-navigation {
  position: absolute;
  top: 50%;
  width: 95%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
}

.modal-nav-button {
  background-color: rgba(93, 48, 177, 0.7);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-nav-button:hover {
  background-color: rgba(93, 48, 177, 1);
}

/* Section Styles */
section {
  padding: 6rem 0;
}

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

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary-purple);
}

.section-subtitle {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--secondary-purple);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-item {
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-item i {
  font-size: 2rem;
  color: var(--primary-purple);
  margin-bottom: 1rem;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  display: flex;
  gap: 1rem;
  background-color: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.feature-icon {
  font-size: 2rem;
  color: var(--primary-purple);
  min-width: 60px;
  text-align: center;
}

/* Activities Section */
.activities-intro {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}
img#modalImage {
    max-width: 100%;
}

/* Services Section */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-item:hover {
  transform: translateX(-5px);
}

.service-item i {
  color: var(--primary-purple);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

/* Registration Section */
.registration-intro {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.registration-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-purple);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

.step-content h4 {
  margin-bottom: 1rem;
}

.registration-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Testimonials Section */
.videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.video-item {
  cursor: pointer;
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.video-thumbnail img {
  width: 100%;
  transition: var(--transition);
}

.video-thumbnail:hover img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button i {
  font-size: 3rem;
  color: var(--white);
  opacity: 0.8;
  transition: var(--transition);
}

.video-thumbnail:hover .play-button i {
  opacity: 1;
  transform: scale(1.1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background-color: var(--white);
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 800px;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--dark-gray);
  cursor: pointer;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.info-item {
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.info-item i {
  font-size: 2rem;
  color: var(--primary-purple);
  margin-bottom: 1rem;
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Footer */
.footer {
  background-color: var(--dark-purple);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 150px;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--light-purple);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-right: 5px;
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-contact i {
  margin-left: 10px;
  color: var(--primary-purple);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-purple);
  color: var(--white);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--white);
  color: var(--primary-purple);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .about-features {
    margin-top: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: var(--primary-purple);
    flex-direction: column;
    padding: 1rem 0;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    margin: 0;
    text-align: center;
    padding: 0.75rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .banner {
    height: 500px;
  }
  
  .banner h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .welcome-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .welcome-text {
    text-align: center;
  }
  
  .welcome-buttons {
    flex-direction: column;
  }
  
  .welcome-section {
    height: auto;
    padding: 2rem 0;
  }
}

@media screen and (max-width: 576px) {
  section {
    padding: 4rem 0;
  }
  
  .banner {
    height: 400px;
  }
  
  .feature-item,
  .service-item {
    padding: 1rem;
  }
  
  .gallery,
  .videos-container {
    grid-template-columns: 1fr;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .registration-steps {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
}
.footer-heart{text-align:center;font-family: open sans, sans-serif;}

.footer-heart a{border-bottom: 1px solid #453886;color: #867ac1;padding-bottom: .25em; text-decoration: none;}

.footer-heart a:hover{color:#2196f3; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id='squiggle-link' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:ev='http://www.w3.org/2001/xml-events' viewBox='0 0 20 4'%3E%3Cstyle type='text/css'%3E.squiggle{animation:shift .3s linear infinite;}@keyframes shift {from {transform:translateX(0);}to {transform:translateX(-20px);}}%3C/style%3E%3Cpath fill='none' stroke='%23453886' stroke-width='2' class='squiggle' d='M0,3.5 c 5,0,5,-3,10,-3 s 5,3,10,3 c 5,0,5,-3,10,-3 s 5,3,10,3'/%3E%3C/svg%3E");
  background-position: bottom;
  background-repeat: repeat-x;
  background-size: 20%;
  border-bottom: 0;
  padding-bottom: .3em;
  text-decoration: none;}

.emoji{vertical-align: middle;}