/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Cormorant+Garamond:wght@600;700&display=swap');

@font-face {
  font-family: 'MovieFilmstrip';
  src: url('fonts/Movie.woff') format('woff'),
       url('fonts/Movie.ttf') format('truetype'),
       url('fonts/Movie.otf') format('opentype');
}

@font-face {
  font-family: 'Hertine';
  src: url('fonts/Hertine.woff') format('woff'),
       url('fonts/Hertine.ttf') format('truetype'),
       url('fonts/Hertine.otf') format('opentype');
}

@font-face {
  font-family: 'CanisMajor';
  src: url('fonts/CANIS-MAJOR.ttf') format('truetype');
}

@font-face {
  font-family: 'Mistral';
  src: url('fonts/Mistral.ttf') format('truetype');
}

@font-face {
  font-family: 'GillSansCondensed';
  src: url('fonts/GillSansCondensed.ttf') format('truetype');
}

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

/* Body */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #000;
  color: white;
}

/* Scroll Button */
.scroll-down {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 24px;
  height: 40px;
  border: 2px solid #eb5c27;
  border-radius: 12px;
  box-sizing: border-box;
  background: rgba(0,0,0,0.3);
  z-index: 9999;
}

.scroll-down a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.scroll-down span {
  display: block;
  width: 4px;
  height: 8px;
  background: #eb5c27;
  margin: 6px auto;
  border-radius: 2px;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(10px);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #000;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
  width: 90%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  margin-top: 20px;
  margin-bottom: 15px;
}

nav .logo {
  width: 100px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin-left: 50px;
}

nav ul li a {
  position: relative;
  text-decoration: none;
  color: #f0f0f0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding-bottom: 5px;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}

/* Base line invisible */
nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #eb5c27;
  transition: width 0.3s ease-in-out;
}

/* Line only for active */
nav ul li a.active::after {
  width: 100%;
}

/* Disable hover underline if another link is active */
nav ul:has(a.active) li a:not(.active):hover::after {
  width: 0%;
}

/* Hover text color always allowed */
nav ul li a:hover {
  color: #eb5c27;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Active link style */
nav ul li a.active {
  color: #eb5c27;
  font-weight: bold;
}


/* Nav Button */
.btn-nav {
  background-color: #eb5c27;
  color: white;
  padding: 6px 25px;
  border-radius: 30px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.6px;
  transition: background-color 0.3s, color 0.3s;
}

.btn-nav:hover {
  background-color: #ffffff;
  color: #000;
}





/* Burger Menu */
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #eb5c27;
  margin: 5px;
  transition: all 0.3s ease;
}

/* Burger Animation */
.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
  opacity: 0;
}

.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}




/* Home Section */
.home {
  height: 100vh;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url('imgs/bg_of_all_pages/generalbg.jpg') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding-top: 15vh;
  position: relative;
}

.home-content {
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  margin-top: 150px;
}

.home-content h1 {
  text-transform: uppercase;
  font-size: 37px;
  margin-bottom: 30px;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
}

.gold {
  color: #eb5c27;
}

.home-content p {
  font-size: 11px;
  color: #ddd;
  margin-bottom: 30px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

/* Cards */
.cards-container-horizontal {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: nowrap;
}

.horizontal-card {
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 12px;
  width: 250px;
  gap: 20px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
  text-align: left;
}

.horizontal-card:hover {
  transform: translateY(-5px);
}

.horizontal-card img {
  width: 50px;
  height: auto;
  margin-top: -10px;
  object-fit: contain;
}

.card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 20px;
}

.card-text h3 {
  color: white;
  font-size: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-text p {
  color: #ccc;
  font-size: 9px;
  line-height: 1.4;
}

/* About Section */
.about {
  background-color: #000;
  padding: 100px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  color: white;
  height: 100vh;
  margin-bottom: -80px;
}

.about-img {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
}

.about-content {
  flex: 1 1 55%;
  text-align: left;
  padding: 0 10px;
}

.about-title {
  text-align: center;
  margin-bottom: 20px;
}

.about-title h2 {
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 10px;
}

.about-title .about02 {
  display: block;
  margin-top: -40px;
  color: #eb5c27;
  font-family: 'Hertine';
  font-size: 36px;
}

.about-content p {
  font-size: 11px;
  line-height: 1.9;
  color: #dddddd;
}

/* Formations Section */
.formations {
  width: 100%;
  min-height: 100vh;
  background: 
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 1.3)),
    url('imgs/bg_of_all_pages/generalbg.jpg') no-repeat center center/cover;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.formations-container {
  width: 100%;
  max-width: 1250px;
  padding: 0 20px;
  margin: 0 auto;
  margin-top: 50px;
}

.section-title {
  font-size: 34px;
  color: #fff;
  text-align: center;
  margin-bottom: 60px;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  text-transform: uppercase;
}
.formations-desc {
  font-size: 11px;
  color: #ddd;
  margin-bottom: 90px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  max-width: 950px;
  text-align: center;
  margin-inline: auto;
}

.section-title::after {
  content: '';
  width: 190px;
  height: 3px;
  background: #eb5c27;
  display: block;
  margin: 7px auto 0;
}

/* Grid */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* Card */
.formation-card {
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.formation-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.7);
}

.formation-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: brightness(0.75);
}

/* Content */
.formation-content {
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.formation-content h3 {
  font-size: 18px;
  font-family: 'Cormorant Garamond', serif;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.formation-content p {
  font-size: 10px;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.formation-content:hover{
  color: #eb5c27;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Button */
.see-more-btn {
  font-family: 'Cormorant Garamond', serif;
  align-self: flex-start;
  padding: 6px 18px;
  background-color: #fff;
  color: #000000;
  border: none;
  border-radius: 7px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  transition: all 0.3s ease-in-out;
  margin-bottom: 16px;
}

.see-more-btn:hover {
  background-color: #eb5c27;
  color: #ffffff;
  border: none;
}

/* Footer inside each card */
.formation-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #333;
  padding-top: 12px;
  font-family: 'GillSansCondensed', sans-serif;
  font-size: 9px;
  color: #aaa;
  letter-spacing: 1px;
  text-transform: lowercase;
  word-spacing: 5px;
  gap: 10px;
}

.formation-footer span {
  flex: 1;
}

/* Footer under all cards */
.formations-container > .formation-footer {
  margin-top: 60px;
  text-align: center;
  border-top: none;
  color: #aaa;
  text-transform: uppercase;
  font-family: 'GillSansCondensed', sans-serif;
  letter-spacing: 1px;
  word-spacing: 5px;
  font-size: 12px;
}

/* Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Navbar Styling (add to existing navbar style) */
nav {
  position: relative;
}



/* Showcase Section */
.showcase {
  background-color: #000;
}

.showcase-container {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 120px;
  margin-bottom: 12%;
}

.section-title {
  font-size: 34px;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  text-transform: uppercase;
}

.showcase-desc {
  font-size: 11px;
  color: #ddd;
  margin-bottom: 90px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  max-width: 950px;
  text-align: center;
  margin-inline: auto;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.showcase-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.showcase-item a.showcase-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.showcase-item:hover img {
  transform: scale(1.05); /* Zoom sghir mnin t7ett l-sour */
}

.showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1.2),
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.6),
    transparent
  );
  color: #fff;
  padding: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease;
  z-index: 2; /* Hada li kaykhelih yban foq l'image */
}

.showcase-item:hover .showcase-overlay {
  opacity: 1;
  transform: translateY(0);
}

.showcase-overlay h3 {
  margin: 60px 0 5px 0;
  font-size: 17px;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.showcase-overlay p {
  font-size: 10px;
  color: #ddd;
  max-width: 100vw;
  line-height: 1.7;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
}

/* Fullscreen overlay styles */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.fullscreen-overlay img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  object-fit: contain;
}

.close-btn {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 40px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  z-index: 10000;
  user-select: none;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #ff471a;
}

/* Contact Section */
.contact {
  background: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.9)),
    url('imgs/bg_of_all_pages/generalbg.jpg') no-repeat center center/cover; 
  padding: 100px 20px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  max-width: 1200px;
  width: 100%;
  padding: 40px;
}

.contact-info {
  flex: 1 1 70%;
  margin-top: 50px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  font-size: 33px;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: 2px;
}

.contact-info h2 .team-span {
  display: block;
  color: #eb5c27;
  font-family: 'Hertine', cursive;
  margin-top: -25px;
}

.contact-info p {
  font-size: 13px;
  line-height: 1.8;
  color: #ddd;
  margin-bottom: 30px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  margin-left: 5%;
}

.social-icons a {
  color: #fff;
  font-size: 26px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #eb5c27;
  transform: scale(1.2);
}

#em {
  font-size: 27px; 
}
#phone{
  font-size: 30px;
}
#wh{
  font-size: 30px;
}
#insta{
  font-size: 30px;
}

/* Formulaire */
.contact-form-container {
  flex: 1 1 30%;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  color: #f0f0f0;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 6px 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #eb5c27;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .form-buttons {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 30px;
}

.contact-form button {
  border: none;
  border-radius: 7px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.send-btn , .cancel-btn {
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  padding: 7px 25px;
  border-radius: 7px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.6px;
  transition: background-color 0.3s, color 0.3s;
}

.send-btn:hover, .cancel-btn:hover {
  background-color: #ffffff;
  color: #000;
  transform: translateY(-3px);
}

.cancel-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/*map*/
.map-container {
  width: 97%;
  margin: 0 auto;
}

.map-container iframe {
  width: 100%;
  height: 450px; 
  border: 0;
  border-radius: 15px;
  margin-top: 20px;
}

/* Footer */
footer {
  height: 0;
  background-color: #000;
  color: #fff;
  padding: 60px 20px;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 20px;
  border-top: 1px solid #222;
}

footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

footer .footer-section {
  flex: 1 1 250px;
  min-width: 220px;
}

footer .footer-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 20px;
  color: #eb5c27;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

footer .footer-section p,
footer .footer-section a {
  font-size: 13px;
  color: #ccc;
  line-height: 1.8;
  transition: color 0.3s ease;
}

footer .footer-section a:hover {
  color: #eb5c27;
}

footer .social-icons-footer {
  margin-top: 10px;
  display: flex;
  gap: 25px;
  justify-content: center;
}

footer .social-icons-footer a {
  font-size: 24px;
  color: #fff;
  transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-icons-footer a:hover {
  color: #eb5c27;
  transform: scale(1.2);
}

footer .footer-bottom {
  margin-top: 50px;
  border-top: 1px solid #222;
  background-color: #000;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
}

footer .footer-bottom p{
  margin: 0;
  font-size: 16px;
}


/* Responsive for screens larger than 1024px */
@media (min-width: 1024px) {
  .contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
  .map-container {
    grid-column: span 2;
  }

  
}











/*hadi gha bach ngad fiha 3barat dyal telephonat sghar */

@media (max-width: 415px) {

#ft {
  display: none;
}
 .card-text h3 {
  display: none;
    font-size: 7px;
  }



}














/*==============================================*/

/*  phone version */

/*==============================================*/









@media (max-width: 767px) {
 /* Navbar */
  nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 10px 5%;
  }

  nav .logo {
    margin-top: 0;
    width: 77px;
  }

  nav ul {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 70%;
    background-color: #000000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    z-index: 999;
  }
  
  nav ul.nav-active {
    transform: translateX(0%);
  }
  
  nav ul li {
    opacity: 0;
    transition: opacity 0.5s ease-in; /* Hna zidna l-transition */
  }

  /* Hada howa l-partie l-muhim li bghina nriglo */
  nav ul.nav-active li {
    opacity: 1;
  }

  nav ul li a {
    font-size: 12px;
  }

  nav ul li a::after {
    width: 0;
  }

  .btn-nav {
    display: none;
  }

  .burger {
    display: block;
    z-index: 1000;
  }








 /* Home Section */
  .home {
      background: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url('imgs/bg_of_all_pages/generalbg.jpg') no-repeat center center/cover;
    padding-top: 10vh;
  }
  
  .home-content {
    margin-top: 44%;
    padding: 10px;
    max-width: 800px;
  }
  
  .home-content h1 {
    font-size: 17px;
    margin-bottom: 20px;
  }
  
  .home-content p {
    font-size: 9px;
    margin-bottom: 20px;
  }

  /* Cards */
  .cards-container-horizontal {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: space-between;
    padding: 1px 10px; /* Riguelna l-padding bach ybqa mqad f-l-jnab */
    gap: 7px;
  }

.horizontal-card {
  /* ... l-ajza2 l-akhrin dyal l-horizontal-card ... */
  width: auto;
  padding: 8px; /* Zidna l-padding */
  gap: 10px; /* Zidna l-gap */
}
  
  .horizontal-card img {
    width: 30px;
  }
  
  .card-text h3 {
    display: none;
    font-size: 7px;
  }
.card-text p {
  font-size: 5px;
  line-height: 1.2; /* Nqessna l-espace bin l-khtout */
  overflow-wrap: break-word; /* Hada li kay-kheli l-ktaba t-terja3 ster ila kanet twila */
  word-wrap: break-word; /* Zidna hada l-compatibility */
  white-space: normal; /* Hada kaykhdem m3a l-wraping dyal l-text */
}




  /* About Section */
  .about {
    flex-direction: column;
    height: auto;
    margin-bottom: 7%;
    margin-top: 15%;
    padding: 60px 20px;
  }

  .about-img img {
    max-width: 77%;
  }

  .about-content {
    text-align: center;
  }
  
  .about-title h2 {
    font-size: 28px;
  }
  
  .about-title .about02 {
    font-size: 28px;
 
  }

  .about-content p {
    font-size: 10px;
    margin: 5%;

  }
  





  /* Formations Section */
  .formations+{
      background: 
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 1.3)),
    url('imgs/bg_of_all_pages/generalbg.jpg') no-repeat center center/cover;
  }


  .formations-container {
    padding: 0 0px;
    margin-top: 30px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .section-title::after {
    width: 150px;
  }

  .formations-desc {
    font-size: 10px;
    margin-bottom: 50px;
  }
  
  .formations-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .formation-img {
    height: 100px;
  }
  
  .formation-content {
    padding: 15px;
  }
  
  .formation-content h3 {
    font-size: 10px;
  
  }
  
  .formation-content p {
    font-size: 5px;
 
  }
  
  .see-more-btn {
    margin-top: -2%;
    font-size: 9px;
    padding: 3px 15px;
  }
  
  .formation-footer {
    font-size: 4px;
  }




  

  /* Showcase Section */
  .showcase-container {
    margin-top: 80px;
    margin-bottom: 18%;
    padding: 0 10px;
  }

  .showcase-desc {
    font-size: 10px;
    margin-bottom: 50px;
  }

  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .showcase-overlay h3 {
    margin-top: 70%;
    font-size: 6px;
  }

  .showcase-overlay p {
    font-size: 4px;
  }








  /* Contact Section */

  .contact{
      background: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.9)),
    url('imgs/bg_of_all_pages/generalbg.jpg') no-repeat center center/cover; 
  }


  .contact-container {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .contact-info {
    text-align: center;
    margin-top: 0;
  }
  
  .contact-info h2 {
    font-size: 24px;
  }
  
  .contact-info h2 .team-span {
    font-size: 20px;
    margin-top: -15px;
  }
  
  .contact-info p {
    font-size: 11px;
  }
  
  .social-icons {
    display: none;
    justify-content: center;
    margin-left: 0;
  }

  .contact-form-container {
    padding: 15px;
  }

  .contact-form .form-buttons {
    
    align-items: center;
    gap: 10px;
  }

  .send-btn, .cancel-btn {
    width: 100%;
    max-width: 200px;
  }


  /*map*/
.map-container {
  width: 95%;
  margin: 0 auto;
}

.map-container iframe {
  width: 100%;
  height: 200px; 
  border: 0;
  border-radius: 15px;
  margin-top: 20px;
}





 /* Footer */
  footer {
    padding: 20px 10px;
  }

  footer .footer-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 15px;
  }

  footer .footer-section {
    flex: 1 1 120px;
    min-width: 100px;
  }
  
  footer .footer-section h3 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  footer .footer-section p, footer .footer-section a {
    font-size: 10px;
  }
  
  footer .social-icons-footer {

    gap: 10px;
  }

  /* Hada howa l-partie li bghiti nriguel: */
  footer .social-icons-footer a {
    font-size: 18px; /* Sgharna l-icons b-7esab l-tajrib */
  }

  #em, #phone, #wh, #insta {
    font-size: 18px; /* Hna bdelna l-font-size dyal l-icons individuel */
  }
  
  footer .footer-bottom {
    padding: 10px 10px;
  }
  
  footer .footer-bottom p {
    font-size: 10px;
  }

  #ft{
    display: none;
  }
}

























/*==============================================*/

/*  tab version */

/*==============================================*/









@media (min-width: 768px) and (max-width: 1023px) {

 /* Navbar */
  nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 10px 5%;
  }

  nav .logo {
    margin-top: 0;
    width: 77px;
  }

  nav ul {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 30%;
    background-color: #000000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    z-index: 999;
  }
  
  nav ul.nav-active {
    transform: translateX(0%);
  }
  
  nav ul li {
    opacity: 0;
    transition: opacity 0.5s ease-in; /* Hna zidna l-transition */
  }

  /* Hada howa l-partie l-muhim li bghina nriglo */
  nav ul.nav-active li {
    opacity: 1;
  }

  nav ul li a {
    font-size: 12px;
  }

  nav ul li a::after {
    width: 0;
  }

  .btn-nav {
    display: none;
  }

  .burger {
    display: block;
    z-index: 1000;
  }








 /* Home Section */
  .home {
    padding-top: 10vh;
  }
  
  .home-content {
    margin-top: 44%;
    padding: 10px;
    max-width: 800px;
  }
  
  .home-content h1 {
    font-size: 27px;
    margin-bottom: 20px;
  }
  
  .home-content p {
    font-size: 12px;
    margin-bottom: 20px;
  }

  /* Cards */
  .cards-container-horizontal {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: space-between;
    padding: 1px 10px; /* Riguelna l-padding bach ybqa mqad f-l-jnab */
    gap: 7px;
  }

.horizontal-card {
  /* ... l-ajza2 l-akhrin dyal l-horizontal-card ... */
  width: 66%;
  padding: 8px; /* Zidna l-padding */
  gap: 10px; /* Zidna l-gap */
}
  
  .horizontal-card img {
    width: 40px;
  }
  
  .card-text h3 {
    font-size: 10px;
  }
.card-text p {
  font-size: 7px;
  line-height: 1.2; /* Nqessna l-espace bin l-khtout */
  overflow-wrap: break-word; /* Hada li kay-kheli l-ktaba t-terja3 ster ila kanet twila */
  word-wrap: break-word; /* Zidna hada l-compatibility */
  white-space: normal; /* Hada kaykhdem m3a l-wraping dyal l-text */
}




  /* About Section */
  .about {
    flex-direction: column;
    height: auto;
    margin-bottom: 7%;
    margin-top: 15%;
    padding: 60px 20px;
  }

  .about-img img {
    max-width: 77%;
  }

  .about-content {
    text-align: center;
  }
  
  .about-title h2 {
    font-size: 35px;
  }
  
  .about-title .about02 {
    font-size: 35px;

  }

  .about-content p {
    font-size: 11px;
    margin: 5%;

  }
  





  /* Formations Section */
  .formations-container {
    padding: 0 0px;
    margin-top: 30px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .section-title::after {
    width: 150px;
  }

  .formations-desc {
    font-size: 11px;
    margin-bottom: 50px;
  }
  
  .formations-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .formation-img {
    height: 100px;
  }
  
  .formation-content {
    padding: 15px;
  }
  
  .formation-content h3 {
    font-size: 13px;
  
  }
  
  .formation-content p {
    font-size: 7px;
 
  }
  
  .see-more-btn {
    margin-top: -2%;
    font-size: 11px;
    padding: 3px 15px;
  }
  
  .formation-footer {
    font-size: 7px;
  }




  

  /* Showcase Section */
  .showcase-container {
    margin-top: 80px;
    margin-bottom: 18%;
    padding: 0 10px;
  }

  .showcase-desc {
    font-size: 12px;
    margin-bottom: 50px;
    
    padding: 0 5%;
  }

  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .showcase-overlay h3 {
    margin-top: 70%;
    font-size: 6px;
  }

  .showcase-overlay p {
    font-size: 4px;
  }








  /* Contact Section */
  .contact-container {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .contact-info {
    text-align: center;
    margin-top: 0;
  }
  
  .contact-info h2 {
    font-size: 28px;
  }
  
  .contact-info h2 .team-span {
    font-size: 28px;
    margin-top: -15px;
  }
  
  .contact-info p {
    font-size: 12px;
  }
  
  .social-icons {
    display: none;
    justify-content: center;
    margin-left: 0;
  }

  .contact-form-container {
    padding: 15px;
  }

  .contact-form .form-buttons {
    
    align-items: center;
    gap: 10px;
  }

  .send-btn, .cancel-btn {
    width: 100%;
    max-width: 200px;
  }


  /*map*/
.map-container {
  width: 95%;
  margin: 0 auto;
}

.map-container iframe {
  width: 100%;
  height: 200px; 
  border: 0;
  border-radius: 15px;
  margin-top: 20px;
}





 /* Footer */
  footer {
    padding: 20px 10px;
  }

  footer .footer-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 15px;
  }

  footer .footer-section {
    flex: 1 1 120px;
    min-width: 100px;
  }
  
  footer .footer-section h3 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  footer .footer-section p, footer .footer-section a {
    font-size: 10px;
  }
  
  footer .social-icons-footer {

    gap: 10px;
  }

  /* Hada howa l-partie li bghiti nriguel: */
  footer .social-icons-footer a {
    font-size: 18px; /* Sgharna l-icons b-7esab l-tajrib */
  }

  #em, #phone, #wh, #insta {
    font-size: 18px; /* Hna bdelna l-font-size dyal l-icons individuel */
  }
  
  footer .footer-bottom {
    padding: 10px 10px;
  }
  
  footer .footer-bottom p {
    font-size: 10px;
  }



}

