*{
   
    direction: rtl;
    box-sizing: border-box;
    font-family: Cairo;
    margin: 0px;
    padding: 0px;
    /* background-color: var(--background-color); */
    color: var(--text-color);
   
   
}
:root {
    --primary-color: #3381ff;
    --secondary-color: #0056f5;
    --text-color: #00173D;
        --background-color: #99C0FF;
        /* background-color: var(--background-color);
        color: var(--text-color); */
}


header {
    background: #f8f9fa;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column; /* Stack logo and navbar vertically */
    align-items: center; /* Center align items */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    
  }
  
  .logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between company name and logo */
    width: 100%; /* Full width */
  }
  
  .logo {
    width: 100px; /* Adjust logo size as needed */
    height: 100px; /* Adjust logo size as needed */
  }
  
  .company-name {
    font-size: 2rem; /* Increase font size */
    font-weight: bold;
    color: var(--primary-color); /* Change company name color to purple */
    text-align: center; /* Center the company name */
    flex-grow: 1; /* Allow the company name to take available space */
  }
  
  .social-media {
    display: flex;
    align-items: center;
  }
  
  .social-media a {
    color:rgb(174, 56, 180); /* Change social media icons color to pink */
    margin-left: 10px; /* Space between social media icons */
    font-size: 1.2rem;
    transition: color 0.3s;
  }
  
  .social-media a:hover {
    color: #ff69b4; /* Change color on hover */
  }
  
  .navbar {
    width: 100%; /* Full width for navbar */
    margin: 10px 0; /* Space between logo and navbar */
 
  }
  
  .navbar ul {
    display: flex;
    list-style-type: none;
    justify-content: center; /* Center the navbar items */
  }
  
  .navbar li {
    margin: 0 10px; /* Space between links */
  }
  
  .navbar a {
    text-decoration: none;
    color:var(--secondary-color); /* Change navbar links color to purple */
    font-weight: bold;
  }
  
  .navbar a:hover {
    text-decoration: underline;
  }
  
  .marquee-container {
    background: var(--secondary-color); /* تغيير الخلفية */
    color: white;
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
  }
  
  .marquee {
    display: inline-block;
    animation: marquee 60s linear infinite;
    padding-left: 1%; /* تعديل الاتجاه */
    color: #f7f2f8;
    direction: ltr; /* تحديد اتجاه النص من اليسار إلى اليمين */
  }
  
  @keyframes marquee {
    0% { transform: translateX(-30%); } /* بدء الحركة من اليسار */
    100% { transform: translateX(100%); } /* انتهاء الحركة في اليمين */
  }
  /* بداية كود القسم الأول  */
  .section1{
    height:100vh ; 
        /* display:flex ; */
        align-items: center;
       justify-content: center; 
        padding: 40px;
        background-image: url(IMG/swim_Mayar.jpg);
        background-size: cover;
        background-attachment:fixed;
        /* background-blend-mode: overlay;
        background-color: rgb(99, 164, 239); */
        opacity: 100%;
  }
  #section1_h1{
    color:white;
    font-size:80px

  }
  #section1_h3{
    color:white;
    font-size: 25px;
  }
  /* نهاية كود القسم الأول */
  /* بداية كود القسم الثاني */
  .section2{
    height: 100vh;
    /* display: flex; */
    flex-wrap: wrap; /* يسمح للكروت بالانتقال لسطر جديد إذا لم تتسع المساحة */
    justify-content: space-between; /* أو use space-around / center حسب ذوقك */
    background-color: #f7f7f7;
    padding: 40px;
    gap: 20px; /* إضافة مسافة بين الكروت */
    background-color: #f7f7f7;
    text-align: center;
    
   
  }
  /* From Uiverse.io by Yaya12085 */ 
.card {
  max-width: 400px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
  max-height: 500px;
  margin-right: 20px;
  min-width: 300px;
  margin-bottom: 20px;
}

.card a {
  text-decoration: none
}

.content {
  padding: 1.1rem;
}

.image img{
  object-fit: cover;
  width: 100%;
  height: 150px;
  background-color: rgb(239, 205, 255);
  border-radius: 8px;
}

.title {
  color: #111827;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.desc {
  margin-top: 0.5rem;
  color: #6B7280;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.action {
  display: inline-flex;
  margin-top: 1rem;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  align-items: center;
  gap: 0.25rem;
  background-color: #2563EB;
  padding: 4px 8px;
  border-radius: 4px;
}

.action span {
  transition: .3s ease;
}

.action:hover span {
  transform: translateX(4px);
}
.cards{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;

}
#section2_h1{
  border-bottom: solid 2px #2563EB;
  display:inline;
  margin-bottom: 40px;

}
/* المجموعة الثانية  */
.section3{
  height: 20rem;
  background-color: #3381ff;
  padding: 50px;
}
.section3 h1{
  color:white;
  font-size: 60px;
  margin-right: 40px;
}
.section3 h3{
  color:white;
  text-align: center;

}
/* قسم البطاقات المتحركة ------------------------------------- */
.section4{
  height: 100vh;
  background-color: #dcd9d9;
}
.ag-format-container {
  width: 1142px;
  margin: 0 auto;
}



.ag-courses_box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;

  padding: 50px 0;
}
.ag-courses_item {
  -ms-flex-preferred-size: calc(33.33333% - 30px);
  flex-basis: calc(33.33333% - 30px);

  margin: 0 15px 30px;

  overflow: hidden;

  border-radius: 28px;
}
.ag-courses-item_link {
  display: block;
  padding: 30px 20px;
  background-color: rgb(7, 15, 239);

  overflow: hidden;

  position: relative;
}
.ag-courses-item_link:hover,
.ag-courses-item_link:hover .ag-courses-item_date {
  text-decoration: none;
  color: #FFF;
}
.ag-courses-item_link:hover .ag-courses-item_bg {
  -webkit-transform: scale(10);
  -ms-transform: scale(10);
  transform: scale(10);
}
.ag-courses-item_title {
  min-height: 87px;
  margin: 0 0 25px;

  overflow: hidden;

  font-weight: bold;
  font-size: 30px;
  color: #FFF;

  z-index: 2;
  position: relative;
}
.ag-courses-item_date-box {
  font-size: 18px;
  color: #FFF;

  z-index: 2;
  position: relative;
}
.ag-courses-item_date {
  font-weight: bold;
  color: #f9b234;

  -webkit-transition: color .5s ease;
  -o-transition: color .5s ease;
  transition: color .5s ease
}
.ag-courses-item_bg {
  height: 128px;
  width: 128px;
  background-color: #f9b234;

  z-index: 1;
  position: absolute;
  top: -75px;
  right: -75px;

  border-radius: 50%;

  -webkit-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;
}
.ag-courses_item:nth-child(2n) .ag-courses-item_bg {
  background-color: #3ecd5e;
}
.ag-courses_item:nth-child(3n) .ag-courses-item_bg {
  background-color: #e44002;
}
.ag-courses_item:nth-child(4n) .ag-courses-item_bg {
  background-color: #952aff;
}
.ag-courses_item:nth-child(5n) .ag-courses-item_bg {
  background-color: #cd3e94;
}
.ag-courses_item:nth-child(6n) .ag-courses-item_bg {
  background-color: #4c49ea;
}



@media only screen and (max-width: 979px) {
  .ag-courses_item {
    -ms-flex-preferred-size: calc(50% - 30px);
    flex-basis: calc(50% - 30px);
  }
  .ag-courses-item_title {
    font-size: 24px;
  }
}

@media only screen and (max-width: 767px) {
  .ag-format-container {
    width: 96%;
  }

}
@media only screen and (max-width: 639px) {
  .ag-courses_item {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
  }
  .ag-courses-item_title {
    min-height: 72px;
    line-height: 1;

    font-size: 24px;
  }
  .ag-courses-item_link {
    padding: 22px 40px;
  }
  .ag-courses-item_date-box {
    font-size: 16px;
  }
}
/* قسم المقالات الثابتة مع صور  */
article {
  --img-scale: 1.001;
  --title-color: black;
  --link-icon-translate: -20px;
  --link-icon-opacity: 0;
  position: relative;
  border-radius: 16px;
  box-shadow: none;
  background: #fff;
  transform-origin: center;
  transition: all 0.4s ease-in-out;
  overflow: hidden;
}

article a::after {
  position: absolute;
  inset-block: 0;
  inset-inline: 0;
  cursor: pointer;
  content: "";
}

/* basic article elements styling */
article h2 {
  margin: 0 0 18px 0;
  font-family: "Bebas Neue", cursive;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  color: var(--title-color);
  transition: color 0.3s ease-out;
}

figure {
  margin: 0;
  padding: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

article img {
  max-width: 100%;
  transform-origin: center;
  transform: scale(var(--img-scale));
  transition: transform 0.4s ease-in-out;
}

.article-body {
  padding: 24px;
}

article a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #28666e;
}

article a:focus {
  outline: 1px dotted #28666e;
}

article a .icon {
  min-width: 24px;
  width: 24px;
  height: 24px;
  margin-left: 5px;
  transform: translateX(var(--link-icon-translate));
  opacity: var(--link-icon-opacity);
  transition: all 0.3s;
}

/* using the has() relational pseudo selector to update our custom properties */
article:has(:hover, :focus) {
  --img-scale: 1.1;
  --title-color: #28666e;
  --link-icon-translate: 0;
  --link-icon-opacity: 1;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}


/************************ 
Generic layout (demo looks)
**************************/

*,
*::before,
*::after {
  box-sizing: border-box;
}

.section4{
  margin: 0;
  padding: 48px 0;
  font-family: "Figtree", sans-serif;
  font-size: 1.2rem;
  line-height: 1.6rem;
  background-image:  var(--background-color);
  min-height: 100vh;
}

.articles {
  display: grid;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

@media screen and (max-width: 960px) {
  article {
    container: card/inline-size;
  }
  .article-body p {
    display: none;
  }
}

@container card (min-width: 380px) {
  .article-wrapper {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
  }
  .article-body {
    padding-left: 0;
  }
  figure {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  figure img {
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
  }
}

.sr-only:not(:focus):not(:active) {
  clip: rect(0 0 0 0); 
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap; 
  width: 1px;
}
/*  قسم المقالات الثابتة مع صور  نهاية */

 /* معرض صور دائري   */

.gallery {
  --s: 150px; /* the image size */
  
  display: grid;
  transform-style: preserve-3d;
  animation: r 15s linear infinite;
  position: relative;
}
@keyframes r {
  0% {transform: perspective(450px) rotateX(-100deg) rotate(0deg)}
  to {transform: perspective(450px) rotateX(-100deg) rotate(-360deg)}
}
.gallery > img {
  grid-area: 1/1;
  width: var(--s);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  transform: rotate(var(--_a)) translateY(120%) rotateX(90deg);
}
.gallery > img:nth-child(1) {--_a: 0deg}
.gallery > img:nth-child(2) {--_a: 60deg}
.gallery > img:nth-child(3) {--_a: 120deg}
.gallery > img:nth-child(4) {--_a: 180deg}
.gallery > img:nth-child(5) {--_a: 240deg}
.gallery > img:nth-child(6) {--_a: 300deg}

.gallery::before {
  content: "";
  position: absolute;
  inset: -100%;
  clip-path: polygon(50% 0,calc(50% + .866*50%) 25%,calc(50% + .866*50%) 75%,50% 100%,calc(50% - .866*50%) 75%,calc(50% - .866*50%) 25%);
  background: #99B2B7;
  transform: translateZ(calc(var(--s)/2)) rotate(90deg);
}



.gaga {
  width: 100vh;
  margin-right: 100px;
  /* min-height: 20vh; */
  display: grid;
  place-content: center;
  /* background: #547980; */
  overflow: hidden;
  padding: 50px;
  /* background-color: #2563EB; */
  
  
}
/* سلايد متحرك للصور  */
.your-slider div {
  /* background: #3498db; */
  color: white;
  text-align: center;
  line-height: 300px;
  font-size: 24px;
  height: 300px;
  border-radius: 8px;
  margin: 5px;
  width: 100%;
  display: block;
}
.your-slider img {
  height: 20rem;
  width: 20rem;
  border-radius: 10px 30px;
  box-shadow: 0 16px 16px rgba(0, 0, 0, 0.5); /* ظل ناعم */
  object-fit: cover; /* لجعل الصورة مغطّية بالكامل داخل الإطار */
}
.Galary_pic{
  background-color: #0056f5;
  font-size: 20px;
  color: white;
  text-align: center;
  padding: 20px;
}
/* FAQ */


.faq-container {
  max-width: 800px;
  margin: auto;
}

.faq-container h1 {
  text-align: center;
  font-size: 5rem;
  font-weight: 300;
  margin-bottom: 3rem;
  letter-spacing: 5px;
}

.faq-item {
  background: #f2f2f2;
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
  overflow: hidden;
  border-radius: 3px;
}

.faq-item input[type="checkbox"] {
  display: none;
}

.faq-item label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  cursor: pointer;
  font-weight: bold;
}

.faq-item .arrow {
  border: solid black;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 6px;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.faq-item input[type="checkbox"]:checked + label .arrow {
  transform: rotate(-135deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: white;
  padding: 0 1.2rem;
  transition: max-height 0.4s ease;
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
  max-height: 200px;
  padding: 1.2rem;
}
/* الموقع  */
.map{
  padding: 100px;
  display: flex;
  justify-content: center;
  background-color: #efebeb;
}
.map div{
  width:100% ;
  padding: 10px;
  box-shadow: 0 20px 35px 0px lightblue !important;
  
}
.map iframe {
  width: 100% !important;
  height: 300px !important;
}
.map iframe{
  width: 100%;
}
/* التواصل معنا  */
.contact{
  padding: 100px;
  background-color: #f7f7f7;
  text-align: center;
  
}
.contact h2{
  text-align: center;
  margin-bottom: 50px;
  border-bottom: solid;
  display: inline-block;

}
.input_form{
  width: 100%;
  margin-bottom: 10px; 
  margin-left: 10px;
   position: relative;
  
 
}
.input_form input{
  border:none;
  border-bottom: solid #063ef8 ;
  outline: none;
  padding: 0px 10px;
  width: 100%;
  height: 40px;
 
}
.input_form label{
  font-size: 13px;
position: absolute;
right: 10px;
top: 10%;
transform: translatey(-50);
}

.input_form input:hover~label, .input_form input:valid~label{
top:-20%;
font-size:10px
}
.tow{
  display: flex;
  width: 100%;
  justify-content: space-between;
  }
  .send{
    background-color: #a0b0f3;
    padding: 0px 20px;
    border: solid none;
    border-radius: 10px;
    color:#5504ec
  }
  .send:hover{
    transform:scale(1.1);
    background-color:var(--background-color);
    color:black
    
  }
  /* الذيل */
  footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 50px 0 20px;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
   
  }
  
  .footer-column {
    flex: 1 1 300px;
    margin: 20px;
  }
  
  .footer-column h3 {
    margin-bottom: 20px;
    color: #90cdf4;
    font-size: 1.3rem;
  }
  
  .footer-column p,
  .footer-column ul {
    color: #dbeafe;
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  .footer-column ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-column ul li {
    margin-bottom: 10px;
  }
  
  .footer-column ul li a {
    color: #dbeafe;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-column ul li a:hover {
    color: #ffffff;
  }
  
  .map-container iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    border: 0;
  }
  
  /* الشعار */
  .footer-logo {
    width: 120px;
    margin-bottom: 15px;
    border-radius: 10px;
  }
  
  /* أيقونات التواصل */
  .social-media {
    text-align: center;
    margin-top: 30px;
  }
  
  .social-media a {
    color: #bbdefb;
    margin: 0 10px;
    font-size: 1.4rem;
    transition: color 0.3s;
  }
  
  .social-media a:hover {
    color: #fff;
  }
  
  /* الحقوق */
  .footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #bbdefb;
    border-top: 1px solid #3b82f6;
    padding-top: 15px;
  }
  
  /* استجابة للجوال */
  @media (max-width: 768px) {
    .footer-container {
      flex-direction: column;
      text-align: center;
      
    }
  
    .footer-column {
      margin: 20px 0;
    }
  
    .footer-logo {
      margin: 0 auto 15px;
    }
  }