/* @media screen and (max-width: 767px) {
  .hero-section.about-hero .container,
  .hero-section.about-hero .container-fluid,
  .hero-section.about-hero .row {
    --bs-gutter-x: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
} */

/* ===============================
   ABOUT HERO SECTION (Inspired by  Code sommet)
   =============================== */
.hero-section.section.about-hero {
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  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;
  }
}
/* ===============================
   ABOUT RICH TEXT SECTION
   =============================== */
.rich-text-section.section {
  background-color: var(--light--off-white);
  padding: 6rem 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1440px;
  position: relative;
}

/* inner text wrapper */
.rich-text {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.25rem;
  color: var(--color-text);
  line-height: 1.6;
}

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

/* headings */
.rich-text h2 {
  letter-spacing: -1px;
  text-wrap: balance;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  font-size: 2.75rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--color-dark);
}

.rich-text h3 {
  color: var(--color-primary);
  text-transform: none;
  margin-top: 1em;
  margin-bottom: 0.6em;
  font-size: 1.5rem;
  font-weight: 700;
}

/* paragraphs */
.rich-text p {
  margin-bottom: 1em;
}

/* ===============================
   RESPONSIVE FIXES
   =============================== */
@media (max-width: 991px) {
  .rich-text {
    font-size: 1.1rem;
    max-width: 700px;
  }

  .rich-text h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 767px) {
  .rich-text-section.section {
    padding: 4rem 1rem;
  }

  .rich-text {
    font-size: 1rem;
  }

  .rich-text h2 {
    font-size: 1.8rem;
  }

  .rich-text h3 {
    font-size: 1.25rem;
  }
}
/* ===============================
   ABOUT TWO-COLUMN SECTIONS
   =============================== */

.section.is-off-white {
  background-color: var(--off-white);
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

/* ===============================
   GRID BASE LAYOUT (Desktop)
   =============================== */
.container.is-2-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 4rem;
  grid-row-gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

/* Flipped layout for alternation */
.container.is-2-col-grid.is-flipped {
  direction: rtl;
}
.container.is-2-col-grid.is-flipped > * {
  direction: ltr;
}

/* ===============================
   TEXT BOX STYLES
   =============================== */
.get-started-contents {
  background-color: var(--light--off-white);
  border-radius: 16px;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.box-rich-text {
  max-width: 720px;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text);
}

.box-rich-text h2 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.3em;
  color: var(--color-dark);
}

.box-rich-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.8em;
}

.box-rich-text p {
  margin-bottom: 1em;
}

/* ===============================
   IMAGE BLOCK STYLES
   =============================== */
.image-block {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--dark--off-white);
}

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

.full-image.is-ratio {
  aspect-ratio: 1;
  object-fit: cover;
}

/* ===============================
   RESPONSIVE FIXES
   =============================== */

/* Tablet and smaller (≤991px) */
@media screen and (max-width: 991px) {
  .container.is-2-col-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  /* ===== IMPORTANT FIX =====
     Force images to come BEFORE their text
     (applies to ALL sections on mobile)
  */
  .container.is-2-col-grid {
    flex-direction: column;
  }

  .container.is-2-col-grid > .image-block {
    order: 1;
  }

  .container.is-2-col-grid > .get-started-contents {
    order: 2;
  }

  .get-started-contents {
    padding: 3rem 2rem;
  }

  .box-rich-text {
    font-size: 1.1rem;
  }

  .box-rich-text h2 {
    font-size: 2.25rem;
  }
}

/* Mobile (≤767px) */
@media screen and (max-width: 767px) {
  .section.is-off-white {
    padding: 4rem 1rem;
  }

  .box-rich-text {
    font-size: 1rem;
  }

  .box-rich-text h2 {
    font-size: 1.8rem;
  }

  .box-rich-text h3 {
    font-size: 1.25rem;
  }
}

/* Smallest screens (≤479px) */
@media screen and (max-width: 479px) {
  .section {
    padding: 4rem 1.5rem;
  }

  .get-started-contents {
    padding: 4rem 1rem;
  }

  .image-block {
    padding-left: 0;
    padding-right: 0;
  }
}

/* =========================================================
   MOBILE CONTAINER WIDTH FIX – match  Code sommet style
   ========================================================= */

/* Default section padding */
.section {
  width: 100%;
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Base container alignment */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Tablet adjustments */
@media screen and (max-width: 991px) {
  .section {
    padding: 4rem 1rem;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Mobile (≤479px): edge-to-edge feel like die Code sommet */
@media screen and (max-width: 479px) {
  .section {
    padding: 4rem 1rem; /* slightly tighter */
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 0.75rem; /* smaller inner padding */
    padding-right: 0.75rem;
  }

  /* Make image blocks stretch fully */
  .image-block {
    width: 100%;
    border-radius: 20px;
  }

  /* Ensure text boxes fill width too */
  .get-started-contents {
    width: 100%;
    border-radius: 20px;
  }
}

/* ===============================
   ABOUT RICH-TEXT SECTION – TestDaF & University Prep
   =============================== */

.rich-text-section.section {
  background-color: var(--light--off-white);
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1440px;
  position: relative;
}

/* Inner text block */
.rich-text {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text);
}

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

/* Headings */
.rich-text h2 {
  letter-spacing: -1px;
  text-wrap: balance;
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--color-dark);
}

.rich-text h3 {
  color: var(--color-primary);
  text-transform: none;
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Paragraphs */
.rich-text p {
  margin-bottom: 1em;
}

/* ===============================
   RESPONSIVE FIXES
   =============================== */
@media screen and (max-width: 991px) {
  .rich-text {
    font-size: 1.1rem;
    max-width: 700px;
  }

  .rich-text h2 {
    font-size: 2.25rem;
  }
}

@media screen and (max-width: 767px) {
  .rich-text-section.section {
    padding: 4rem 2rem;
  }

  .rich-text {
    font-size: 1rem;
  }

  .rich-text h2 {
    font-size: 1.8rem;
  }

  .rich-text h3 {
    font-size: 1.25rem;
  }
}

/* Mobile edge fix (no gutter) */
@media screen and (max-width: 479px) {
  .container {
    --bs-gutter-x: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .rich-text-section.section {
    padding: 4rem 1.5rem;
  }
}

/* ===============================
   GET STARTED SECTION – Gradient Background Version
   =============================== */
.get-started-section.section {
  background-image: linear-gradient(45deg, #000000, #3577f4 100%);
  padding: 4rem 3rem; /* reduced from 6rem 4rem */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Two-column grid */
.container.is-2-col-grid {
  grid-column-gap: var(--gap-desktop);
  grid-row-gap: var(--gap-desktop);
  grid-template-columns: 1fr 1fr;
  display: grid;
  align-items: stretch;
}

/* Image on left */
.get-started-image {
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 620px; /* desktop fixed height */
}

.get-started-image img.full-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 20px;
}

/* White text card on right */
.get-started-card {
  background-color: var(--light--off-white);
  border-radius: 20px;
  padding: 4rem 3rem; /* keep consistent with your design */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  height: 620px;
}

.box-rich-text {
  max-width: 700px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text);
}

.box-rich-text h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.3em;
  color: var(--color-dark);
  line-height: 1.1;
}

.box-rich-text h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1em;
  font-weight: 700;
}

.box-rich-text p {
  margin-bottom: 1em;
}

/* CTA Button */
.button {
  background-color: var(--color-dark);
  color: var(--off-white);
  text-align: center;
  border-radius: 999px;
  min-width: 140px;
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.button:hover {
  background-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ===============================
   RESPONSIVE FIXES
   =============================== */
@media screen and (max-width: 991px) {
  .container.is-2-col-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  /* Image first on mobile */
  .get-started-image {
    order: 1;
    height: auto; /* allow natural resizing */
  }

  .get-started-card {
    order: 2;
    height: auto; /* natural height for text */
    padding: 3rem 2rem;
  }

  .box-rich-text h2 {
    font-size: 2.5rem;
  }
}

/* ===== TABLET & MOBILE ===== */
@media screen and (max-width: 767px) {
  .get-started-section.section {
    padding: 4rem 2rem;
  }

  .get-started-image {
    height: auto; /* auto height removes empty space */
  }

  .get-started-image img.full-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: 75% center; /* shift left to show bouquet */
  }

  .get-started-card {
    height: auto;
    padding: 2.5rem 2rem;
  }

  .box-rich-text {
    font-size: 1rem;
  }

  .box-rich-text h2 {
    font-size: 1.8rem;
  }

  .box-rich-text h3 {
    font-size: 1.25rem;
  }

  .button {
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
  }
}

/* ===== Small Mobile Edge Fix ===== */
@media screen and (max-width: 479px) {
  .get-started-section.section {
    padding: 4rem 1.5rem;
  }

  .container {
    --bs-gutter-x: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .get-started-image,
  .get-started-card {
    width: 100%;
  }

  .get-started-image img.full-image {
    object-position: 70% center; /* stronger left shift for very small screens */
  }
}

/* ===============================
   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 {
    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;
    }
  }


