/* ===============================
   ABOUT HERO SECTION (Inspired by  Code sommet)
   =============================== */
.hero-section.section.about-hero {
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px Im !important;
  background-color: #211e1d;

  margin-top: -40px; 
  padding-top: 120px; 

  margin-bottom: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* container center alignment */
.container.is-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
  width: 100%;
  max-width: 1440px;
}

/* subtitle */
.hero_subtitle {
  color: #fff;
  mix-blend-mode: overlay;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

/* title */
.hero_title {
  color: #fff;
  text-wrap: balance;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
}

/* image block */
.hero-image {
  background-color: #111;
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  max-width: 1500px;
  height: 600px;
  margin-top: 3rem;
  margin-bottom: -300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* ===============================
   RESPONSIVE FIXES
   =============================== */
@media (max-width: 991px) {
  .hero-section.section.about-hero {
    margin-top: -30px;
    padding-top: 100px;
    margin-bottom: 200px;
  }

  .hero-image {
    height: 420px;
    margin-bottom: -200px;
  }
}

@media (max-width: 767px) {
  .hero-section.section.about-hero {
    margin-top: -25px;
    padding-top: 90px;
    margin-bottom: 160px;
  }

  .hero-image {
    height: 320px;
    margin-bottom: -150px;
  }

  .hero_subtitle {
    font-size: 1.25rem;
  }

  .hero_title {
    font-size: 2rem;
  }
}

/* ===============================================
 RICH-TEXT STYLE
   =============================================== */

.rich-text-section.section {
  background-color: var(--light--off-white);
  padding: 6rem 2rem;
}

.container {
  width: 100%;
  max-width: 1100px; 
  margin: 0 auto;
}

.rich-text {
  max-width: 820px; 
  margin: 0 auto;
  font-size: 1.35rem; 
  line-height: 1.65; 
  color: #000;
  font-weight: 400;
  letter-spacing: 0.1px;
}

.rich-text p {
  margin-bottom: 1.6rem; /* big spacing */
}

.rich-text p strong {
  font-weight: 700;
  display: inline-block;
  margin-top: 0.5rem;
}

.w-richtext::before,
.w-richtext::after {
  content: " ";
  display: table;
}

.w-richtext::after {
  clear: both;
}
.rich-text h2 {
    margin-top: 2.5rem !important;
    margin-bottom: 1.2rem !important;
    font-weight: 700;
    line-height: 1.2;
}

/* FIX: h3 styling like screenshot */
.rich-text h3 {
    color: var(--light--blue);
    text-transform: none;
    margin-top: 1em;
    margin-bottom: .5em;
    font-size: 1.2rem;
    font-weight: 600;
}
/* ===============================
   EXAMS SECTION (GLS + ÖSD)
   =============================== */

.courses-section.section {
    background-color: var(--off-white);

    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
}

.container.is-h-courses {
    width: 100%;
    max-width: 1440px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.h-section-subtitle {
    color: black !important;
    font-weight: 600 !important;
    text-wrap: balance;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 4rem;
    line-height: 1;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light--blue);
}

.exam-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.exam-card {
    background-color: var(--light--green);
    color: var(--off-black);
    padding: 3rem 2rem;
    border-radius: var(--radius-mid);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    font-size: 1.15rem;
    line-height: 1.55;
}

.exam-card.is-orange {
    background-color: var(--light--orange);
}

.exam-card.is-yellow {
    background-color: var(--light--yellow);
}

.course-card_title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

.course-card_text {
    margin-bottom: auto;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.button.is-course-card {
    display: inline-flex !important;
    width: auto !important;
    align-self: flex-start;
    background-color: var(--off-black);
    color: var(--light--off-white);
    padding: 0.75rem 2rem;
    border-radius: 8rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    justify-content: center;
    align-items: center;
}


.button.is-course-card:hover {
    transform: scale(1.025);
}

@media screen and (max-width: 991px) {
    .exam-cards {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* MOBILE: transform exam-cards into a horizontal scroll carousel */
@media screen and (max-width: 600px) {
    .exam-cards {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1.5rem;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .exam-card {
        flex: 0 0 80%;
        min-width: 80%;
        max-width: 80%;
        scroll-snap-align: start;
        white-space: normal;
    }

    .exam-cards::-webkit-scrollbar {
        display: none;
    }
}

/* ============================
   GLS More Info Section — COMPACT HEIGHT
============================ */

.gls-more-info {
    background-color: var(--off-white);
    padding: 6rem 4rem;
}

.gls-more-info-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.gls-more-info-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: var(--off-black);
}

/* GRID */
.gls-more-info-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 1.5rem;
    grid-row-gap: 4rem;
}

/* CARD – less padding, no space-between */
.gls-info-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    padding: 2rem;
    background-color: var(--light--green);
    border-radius: 2rem;
    }

/* Use margin-top: auto to push button to bottom */
.gls-info-button {
    margin-top: auto;
}


/* ICON */
.gls-info-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 1rem;
}

.info-card-arrow {
    color: var(--off-black);
}

/* TITLES & TEXT – slightly tighter */
.gls-info-title {
    margin: 0 0 .5rem;
    font-size: 1.2rem;    /* was 1.75rem */
    font-weight: 700;
    line-height: 1.2;
    color: var(--off-black);
}

.gls-info-text {
    font-size: 0.8rem;      /* was 1.1rem */
    line-height: 1.45;    /* a bit tighter */
    color: var(--off-black);
    margin: 0 0 1.5rem;   /* pushes button a bit down, but not too much */
}

/* BUTTON */
.gls-info-button {
    background-color: #000;
    color: var(--off-white);
    border-radius: 2rem;
    padding: .35rem 1rem;
    min-width: 140px;
    width: auto !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    text-decoration: none;
    border: none !important;
    margin-top: 0.5rem;   /* small gap from text */
}

.gls-info-button:hover {
    background-color: #000;
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .gls-more-info-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 2rem;
        grid-row-gap: 2rem;
    }

    .gls-more-info-title {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    .gls-more-info {
        padding: 4rem 2rem;
    }

    /* Turn grid into horizontal scroll */
    .gls-more-info-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        white-space: nowrap !important;
        gap: 1.5rem;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    /* Each card becomes a slide */
    .gls-info-card {
        flex: 0 0 80%;
        min-width: 80%;
        max-width: 80%;
        white-space: normal !important;
        scroll-snap-align: start;
        border-radius: 1.75rem;
    }

    /* Hide scrollbar */
    .gls-more-info-grid::-webkit-scrollbar {
        display: none;
    }

    .gls-info-card {
        padding: 1.75rem;
    }

    .gls-info-title {
        font-size: 1.5rem;
    }

    .gls-info-text {
        font-size: 1rem;
    }
}
.gls-info-spacer {
    flex-grow: 1;
}

/* ===============================
   CONTACT SECTION (GLS Morocco)
================================ */
.contact-section {
    padding: 6rem 2rem;
  }
  
  /* Remove Bootstrap default padding only in this section */
  .contact-section .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* ===============================
     GRID LAYOUT
  ================================ */
  .container.is-2-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
  }
  
  /* ===============================
     LEFT CARD (Contact Info)
  ================================ */
  .div-block-5-copy {
    background-color: var(--off-black);
    color: var(--off-white);
    border-radius: 28px;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    width: 96%;
    margin: 0 auto;
  }
  
  .h-section-subtitle-contact {
    font-size: clamp(2rem, 6vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--off-white);
  }
  
  .div-block-21 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .text-span {
    font-size: 0.9rem;
    font-weight: 700;
    color: #d3d3d3;
    text-transform: uppercase;
  }
  
  .text-block-3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--off-white);
    line-height: 1.6;
  }
  
  .link-block,
  .link-block-2 {
    text-decoration: none;
    color: var(--off-white);
  }
  
  .link-block:hover .text-block-3,
  .link-block-2:hover .text-block-3 {
    text-decoration: underline;
  }
  
  /* ===============================
     SOCIAL ICONS
  ================================ */
  .div-block-20 {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
  }
  
  .footer-social-link {
    font-size: 1.8rem;
    color: var(--off-white);
    transition: color 0.3s ease;
  }
  
  .footer-social-link.ig:hover { color: #e4405f; }  /* Instagram */
  .footer-social-link.fb:hover { color: #1877f2; }  /* Facebook */
  .footer-social-link.yt:hover { color: #ff0000; }  /* YouTube */
  .footer-social-link.wa:hover { color: #25d366; }  /* WhatsApp */
  
  /* ===============================
     MAP
  ================================ */
  .div-block-7 iframe {
    width: 96%;
    height: 100%;
    border-radius: 28px;
    border: none;
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
  
  /* ===============================
     RESPONSIVE FIXES
  ================================ */
  @media screen and (max-width: 991px) {
    .container.is-grid,
    .container.is-2-col-grid {
      flex-flow: column;
      display: flex;
      gap: 2rem;
    }
  
    .div-block-5-copy {
      padding: 3rem 2rem;
    }
  
    .div-block-7 iframe {
      height: 350px;
    }
  }
  
  @media screen and (max-width: 767px) {
    .contact-section {
      padding-left: 1rem;
      padding-right: 1rem;
    }
  
    .div-block-5-copy {
      width: 94%;
      margin: 0 auto;
      padding: 2.5rem 1.75rem;
      border-radius: 24px;
    }
  
    .div-block-7 iframe {
      border-radius: 18px;
      height: 340px;
    }
  }
  
  @media screen and (max-width: 479px) {
    .div-block-5-copy {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
  }
