/* =========================================================
   MELAKI ACADEMY
   HOMEPAGE STYLES
   ========================================================= */


/* =========================================================
   1. GLOBAL SETTINGS
   ========================================================= */

:root {
  /* =========================================================
     MELAKI ACADEMY BRAND COLOURS
     ========================================================= */

  /* Primary Jungle Green */
  --jungle-green: #6B7A52;
  --jungle-green-dark: #4F5A3A;
  --jungle-green-light: #8FA070;

  /* Gold */
  --gold: #C9A24A;
  --gold-light: #E4C778;
  --gold-pale: #F5EAD0;

  /* Neutrals */
  --white: #FFFFFF;
  --cream: #FAF8F2;
  --cream-dark: #F3EEE2;

  --text-dark: #18251F;
  --text-light: #65706B;

  --border: #E5DCC9;

  --shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

  --container-width: 1180px;

  /* Compatibility aliases used throughout the existing CSS */
  --green-dark: var(--jungle-green-dark);
  --green: var(--jungle-green);
  --green-light: var(--jungle-green-light);

  /* Footer stays intentionally dark */
  --footer-dark: #172016;
}


/* =========================================================
   2. RESET
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", Arial, sans-serif;

  color: var(--text-dark);

  background-color: var(--white);

  line-height: 1.6;

  overflow-x: hidden;
}

img {
  max-width: 100%;

  display: block;
}

a {
  color: inherit;

  text-decoration: none;
}

button {
  font-family: inherit;
}

.container {
  width: min(92%, var(--container-width));

  margin: 0 auto;
}


/* =========================================================
   3. TOP BAR
   ========================================================= */

.top-bar {
  background-color: var(--green-dark);

  color: var(--white);

  font-size: 11px;
}

.top-bar__content {
  min-height: 28px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;
}

.top-bar__contact {
  display: flex;

  align-items: center;

  gap: 18px;
}

.top-bar a {
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: var(--gold-light);
}


/* =========================================================
   4. HEADER
   ========================================================= */

.site-header {
  background-color: var(--white);

  position: sticky;

  top: 0;

  z-index: 1000;

  border-bottom:
    1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
  min-height: 66px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;
}

.logo-link {
  flex-shrink: 0;
}

.site-logo {
  width: 145px;

  height: auto;
}

.main-navigation {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 32px;
}

.nav-link {
  position: relative;

  font-size: 13px;

  font-weight: 500;

  padding: 23px 0;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link--active {
  color: var(--gold);
}

.nav-link--active::after {
  content: "";

  position: absolute;

  left: 0;

  right: 0;

  bottom: 14px;

  height: 2px;

  background-color: var(--gold);
}

.header-actions {
  display: flex;

  align-items: center;

  gap: 15px;
}


/* =========================================================
   5. BUTTONS
   ========================================================= */

.button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  min-height: 42px;

  padding: 0 23px;

  border-radius: 25px;

  font-size: 11px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.4px;

  border: 1px solid transparent;

  cursor: pointer;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--green {
  background-color: var(--green-dark);

  color: var(--white);
}

.button--green:hover {
  background-color: var(--green-light);

  box-shadow:
    0 7px 18px
    rgba(79, 90, 58, 0.20);
}

.button--outline {
  background-color: transparent;

  color: var(--gold);

  border-color: var(--gold);
}

.button--outline:hover {
  background-color: var(--gold);

  color: var(--white);
}

.button--gold {
  background-color: var(--gold);

  color: var(--white);
}

.button--gold:hover {
  background-color: #a98027;
}


/* =========================================================
   6. MOBILE MENU
   ========================================================= */

.menu-toggle {
  display: none;

  width: 42px;

  height: 42px;

  border: none;

  background: transparent;

  cursor: pointer;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 5px;
}

.menu-toggle span {
  width: 23px;

  height: 2px;

  background-color: var(--green-dark);

  transition: 0.3s ease;
}


/* =========================================================
   HERO SECTION
   ========================================================= */

.hero-section {
  background:
    linear-gradient(
      90deg,
      #fffdf8 0%,
      #fbf8ef 47%,
      #ffffff 47%
    );

  overflow: hidden;
}

.hero-content {
  min-height: 315px;

  display: grid;

  grid-template-columns:
    40%
    60%;

  align-items: stretch;
}


/* =========================================================
   HERO TEXT
   ========================================================= */

.hero-text {
  display: flex;

  flex-direction: column;

  justify-content: center;

  padding:
    35px
    25px
    35px
    0;

  position: relative;

  z-index: 2;

  min-width: 0;
}

.section-label {
  color: var(--gold);

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 2px;

  margin-bottom: 8px;
}

.hero-text h1 {
  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size:
    clamp(38px, 4vw, 54px);

  line-height: 0.98;

  font-weight: 600;

  text-transform: uppercase;

  color: var(--green-dark);

  max-width: 490px;
}

.hero-text h1 span {
  display: block;

  color: var(--gold);

  margin-top: 6px;
}


/* GOLD DECORATION LINE */

.hero-decoration {
  display: block;

  width: 90%;

  max-width: 300px;

  height: 2px;

  flex-shrink: 0;

  background-color: var(--gold);

  margin:
    18px
    0
    15px;

  opacity: 1;

  visibility: visible;
}

.hero-description {
  max-width: 400px;

  font-size: 13px;

  line-height: 1.75;

  color: var(--text-dark);
}

.hero-buttons {
  display: flex;

  align-items: center;

  gap: 15px;

  margin-top: 20px;
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.hero-image-wrapper {
  position: relative;

  width: 100%;

  height: 100%;

  min-height: 315px;

  overflow: hidden;
}



/*
   The image automatically fills the
   entire hero image area.

   When you replace the image later,
   the new academy image will use
   these same rules.
*/

.hero-image {
  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;

  object-position: center;

  position: absolute;

  inset: 0;
}

/* =========================================================
   8. INTAKE SECTION
   ========================================================= */

.intake-section {
  background-color: var(--green-dark);

  color: var(--white);

  overflow: hidden;
}

.intake-content {
  min-height: 122px;

  display: grid;

  grid-template-columns:
    90px
    1fr
    1px
    240px
    290px;

  align-items: center;

  gap: 22px;
}

.intake-icon {
  width: 70px;

  height: 70px;

  border:
    1px solid var(--gold);

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 28px;
}

.intake-details {
  display: flex;

  flex-direction: column;
}

.intake-label {
  color: var(--gold-light);

  font-size: 12px;

  font-weight: 600;

  letter-spacing: 1.5px;
}

.intake-details h2 {
  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  color: var(--white);

  font-size: 30px;

  line-height: 1.1;

  margin:
    2px
    0
    5px;
}

.intake-details > p:last-child {
  color: #e4e9e5;

  font-size: 11px;
}

.intake-divider {
  height: 62px;

  background-color:
    rgba(201, 162, 74, 0.5);
}

.last-intake {
  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 10px;
}

.last-intake p {
  font-size: 11px;

  color: #e8ece9;
}

.last-intake strong {
  color: var(--white);
}

.intake-class-image {
  height: 100%;

  overflow: hidden;
}

.intake-class-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  opacity: 0.75;
}


/* =========================================================
   9. SECTION HEADINGS
   ========================================================= */

.section-heading {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 13px;

  margin-bottom: 30px;
}

.section-heading h2 {
  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 30px;

  line-height: 1;

  color: var(--green-dark);

  text-transform: uppercase;

  text-align: center;
}

.heading-line {
  width: 70px;

  height: 1px;

  background-color: var(--gold);

  position: relative;
}

.heading-line::after {
  content: "◆";

  position: absolute;

  left: 50%;

  top: 50%;

  transform:
    translate(-50%, -50%);

  font-size: 5px;

  color: var(--gold);

  background-color: var(--white);

  padding: 3px;
}


/* =========================================================
   10. WHY CHOOSE MELAKI
   ========================================================= */

.why-section {
  padding:
    35px
    0
    28px;

  background-color: var(--white);
}

.benefits-grid {
  display: grid;

  grid-template-columns:
    repeat(6, 1fr);

  border-top:
    1px solid var(--border);

  border-bottom:
    1px solid var(--border);
}

.benefit-card {
  text-align: center;

  padding:
    18px
    13px;

  min-height: 150px;

  border-right:
    1px solid var(--border);
}

.benefit-card:last-child {
  border-right: none;
}

.benefit-icon {
  width: 45px;

  height: 45px;

  margin:
    0
    auto
    8px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--green-dark);

  font-size: 27px;
}

.benefit-card h3 {
  color: var(--green-dark);

  font-size: 12px;

  line-height: 1.3;

  text-transform: uppercase;

  margin-bottom: 7px;
}

.benefit-card p {
  color: var(--text-light);

  font-size: 10px;

  line-height: 1.55;
}


/* =========================================================
   11. SCHOLARSHIP
   ========================================================= */

.scholarship-section {
  padding:
    0
    0
    35px;

  background-color: var(--white);
}

.scholarship-content {
  min-height: 90px;

  display: grid;

  grid-template-columns:
    75px
    1fr
    1px
    1.3fr
    1fr;

  align-items: center;

  gap: 20px;

  padding:
    15px
    25px;

  border-radius: 10px;

  background-color: var(--green-dark);

  color: var(--white);

  box-shadow:
    0 7px 20px
    rgba(79, 90, 58, 0.12);
}

.scholarship-icon {
  width: 58px;

  height: 58px;

  border:
    1px solid var(--gold);

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 25px;

  color: var(--gold-light);
}

.scholarship-title p {
  color: var(--gold-light);

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 1.3px;
}

.scholarship-title h2 {
  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 23px;

  line-height: 1.1;

  color: var(--white);

  margin-top: 3px;
}

.scholarship-divider {
  height: 55px;

  background-color:
    rgba(201, 162, 74, 0.5);
}

.scholarship-description p {
  font-size: 10px;

  line-height: 1.55;

  color: #e7ebe8;
}

.scholarship-highlight {
  display: flex;

  align-items: center;

  gap: 10px;

  padding-left: 12px;

  border-left:
    1px solid
    rgba(201, 162, 74, 0.5);
}

.scholarship-star {
  color: var(--gold-light);

  font-size: 32px;
}

.scholarship-highlight p {
  color: var(--white);

  font-size: 10px;

  line-height: 1.5;
}


/* =========================================================
   12. COURSES
   ========================================================= */

.courses-section {
  padding:
    0
    0
    38px;

  background-color: var(--white);
}

.course-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 18px;
}

.course-card {
  display: grid;

  grid-template-columns:
    48%
    52%;

  min-height: 130px;

  overflow: hidden;

  background-color: var(--cream);

  border-radius: 7px;

  box-shadow:
    0 4px 15px
    rgba(0, 0, 0, 0.06);
}

.course-image {
  overflow: hidden;
}

.course-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition:
    transform 0.5s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.05);
}

.course-info {
  padding:
    15px
    14px;

  display: flex;

  flex-direction: column;

  align-items: flex-start;
}

.course-info h3 {
  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  color: var(--green-dark);

  font-size: 21px;

  line-height: 1;

  text-transform: uppercase;
}

.course-info p {
  font-size: 10px;

  line-height: 1.5;

  color: var(--text-light);

  margin:
    8px
    0
    12px;
}

.course-link {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 29px;

  padding:
    0
    13px;

  border:
    1px solid var(--gold);

  border-radius: 20px;

  color: var(--gold);

  font-size: 8px;

  font-weight: 700;

  text-transform: uppercase;

  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.course-link:hover {
  background-color: var(--gold);

  color: var(--white);
}


/* =========================================================
   13. EARLY BOOKING
   ========================================================= */

.early-booking-section {
  padding:
    0
    0
    38px;

  background-color: var(--white);
}

.early-booking-content {
  min-height: 115px;

  display: grid;

  grid-template-columns:
    75px
    1fr
    auto;

  align-items: center;

  gap: 25px;

  padding:
    20px
    25px;

  background:
    linear-gradient(
      135deg,
      var(--cream),
      #fffdf8
    );

  border:
    1px solid var(--gold-light);

  border-radius: 10px;

  box-shadow:
    0 5px 18px
    rgba(0, 0, 0, 0.05);
}

.early-booking-icon {
  width: 58px;

  height: 58px;

  border:
    1px solid var(--gold);

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 26px;
}

.early-booking-text .section-label {
  margin-bottom: 3px;
}

.early-booking-text h2 {
  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  color: var(--green-dark);

  font-size: 25px;

  line-height: 1.1;

  margin-bottom: 5px;
}

.early-booking-text p {
  color: var(--text-dark);

  font-size: 10px;

  line-height: 1.5;
}

.early-booking-text small {
  display: block;

  color: var(--text-light);

  font-size: 8px;

  margin-top: 4px;
}

.early-booking-action {
  display: flex;

  align-items: center;

  justify-content: center;
}


/* =========================================================
   14. HOW TO APPLY
   ========================================================= */

.application-section {
  padding:
    0
    0
    38px;

  background-color: var(--white);
}

.application-layout {
  display: grid;

  grid-template-columns:
    1fr
    270px;

  gap: 25px;

  align-items: center;
}

.application-steps {
  display: flex;

  align-items: center;

  justify-content: center;
}

.application-step {
  flex: 1;

  text-align: center;

  max-width: 150px;
}

.step-icon {
  width: 48px;

  height: 48px;

  margin:
    0
    auto
    8px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 27px;

  color: var(--green-dark);
}

.application-step span {
  display: block;

  color: var(--green-dark);

  font-size: 9px;

  font-weight: 700;

  line-height: 1.35;
}

.application-step p {
  color: var(--text-light);

  font-size: 9px;

  line-height: 1.5;

  margin-top: 5px;
}

.step-arrow {
  color: var(--green-dark);

  font-size: 22px;

  padding:
    0
    8px;
}

.scholarship-note {
  padding: 18px;

  border:
    1px solid var(--gold-light);

  border-radius: 9px;

  background-color: #fffdf8;

  box-shadow:
    0 5px 18px
    rgba(0, 0, 0, 0.05);
}

.whatsapp-icon {
  width: 35px;

  height: 35px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  background-color: #25d366;

  color: var(--white);

  margin-bottom: 8px;
}

.scholarship-note h3 {
  color: var(--green-dark);

  font-size: 12px;

  line-height: 1.4;

  margin-bottom: 7px;
}

.scholarship-note p {
  color: var(--text-light);

  font-size: 9px;

  line-height: 1.55;

  margin-bottom: 6px;
}

.scholarship-whatsapp {
  display: inline-block;

  margin-top: 7px;

  color: var(--green-dark);

  font-size: 9px;

  font-weight: 700;

  border-bottom:
    1px solid var(--green-dark);
}


/* =========================================================
   15. TESTIMONIALS
   ========================================================= */

.testimonials-section {
  padding:
    0
    0
    35px;

  background-color: var(--white);

  overflow: hidden;
}

.testimonial-grid {
  display: flex;

  gap: 18px;

  width: 100%;

  overflow-x: auto;

  overflow-y: hidden;

  scroll-behavior: smooth;

  scroll-snap-type: x proximity;

  padding:
    3px
    2px
    12px;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: thin;
}

.testimonial-grid::-webkit-scrollbar {
  height: 6px;
}

.testimonial-grid::-webkit-scrollbar-track {
  background: var(--cream-dark);

  border-radius: 10px;
}

.testimonial-grid::-webkit-scrollbar-thumb {
  background: var(--gold);

  border-radius: 10px;
}

.testimonial-card {
  flex:
    0 0
    calc(
      (100% - 36px) / 3
    );

  display: grid;

  grid-template-columns:
    42%
    58%;

  min-height: 125px;

  border:
    1px solid var(--border);

  border-radius: 7px;

  overflow: hidden;

  background-color: var(--cream);

  scroll-snap-align: start;

  min-width: 0;
}

.testimonial-media {
  background-color: #111;

  overflow: hidden;

  min-width: 0;
}

.testimonial-media video {
  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;

  max-width: 100%;
}

.testimonial-text {
  padding: 13px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  min-width: 0;
}

.testimonial-text p {
  color: var(--text-dark);

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 15px;

  line-height: 1.3;
}

.testimonial-text span {
  color: var(--gold);

  font-size: 9px;

  font-weight: 600;

  margin-top: 7px;
}


/* =========================================================
   16. GALLERY
   ========================================================= */

/*
   DESKTOP / LAPTOP
   ----------------
   6 images visible.

   TABLET
   -------
   3 images visible.

   PHONE
   -----
   2 images visible.

   Extra images are accessed by horizontal scrolling.
*/

.gallery-section {
  padding:
    0
    0
    38px;

  background-color: var(--white);

  overflow: hidden;
}

.gallery-grid {
  display: flex;

  gap: 12px;

  width: 100%;

  overflow-x: auto;

  overflow-y: hidden;

  scroll-behavior: smooth;

  scroll-snap-type: x proximity;

  padding:
    3px
    2px
    12px;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: thin;
}

.gallery-grid::-webkit-scrollbar {
  height: 6px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: var(--cream-dark);

  border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: var(--gold);

  border-radius: 10px;
}


/* =========================================================
   GALLERY — DESKTOP / LAPTOP
   6 IMAGES
   ========================================================= */

.gallery-item {
  flex:
    0 0
    calc(
      (100% - 60px) / 6
    );

  height: 180px;

  overflow: hidden;

  border-radius: 6px;

  background-color: var(--cream);

  scroll-snap-align: start;

  min-width: 0;
}

.gallery-item img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center;

  border-radius: 6px;

  display: block;

  transform: none;

  transition:
    transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}


/* =========================================================
   17. FINAL CTA
   ========================================================= */

.final-cta {
  background-color: var(--green-dark);

  color: var(--white);

  border-bottom:
    1px solid
    rgba(201, 162, 74, 0.6);
}

.final-cta-content {
  min-height: 105px;

  display: grid;

  grid-template-columns:
    70px
    1fr
    190px;

  align-items: center;

  gap: 20px;
}

.final-cta-icon {
  width: 55px;

  height: 55px;

  border:
    1px solid var(--gold);

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--gold-light);

  font-size: 28px;
}

.final-cta-text p {
  color: var(--gold-light);

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 1.4px;
}

.final-cta-text h2 {
  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 23px;

  line-height: 1.15;

  color: var(--white);
}

.final-cta-action {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 6px;
}

.final-cta-action small {
  color: #dce3de;

  font-size: 8px;

  text-align: center;
}


/* =========================================================
   18. FOOTER
   ========================================================= */

.site-footer {
  background-color: var(--footer-dark);

  color: var(--white);
}

.footer-grid {
  padding:
    30px
    0;

  display: grid;

  grid-template-columns:
    1.3fr
    1fr
    1fr
    1fr
    1fr;

  gap: 30px;
}

.footer-brand {
  border-right:
    1px solid
    rgba(255, 255, 255, 0.15);

  padding-right: 25px;
}

.footer-logo {
  width: 135px;
  height: auto;
  margin-bottom: 9px;

  /* Gold footer logo */
  filter:
    brightness(0)
    saturate(100%)
    invert(72%)
    sepia(34%)
    saturate(750%)
    hue-rotate(2deg)
    brightness(90%)
    contrast(88%);
}

.footer-brand p {
  color: #cdd4cf;

  font-size: 9px;

  line-height: 1.5;
}

.footer-column {
  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 6px;
}

.footer-column h3 {
  color: var(--gold-light);

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 0.8px;

  margin-bottom: 5px;
}

.footer-column a,
.footer-column p {
  color: #d4dbd6;

  font-size: 9px;

  line-height: 1.5;

  transition:
    color 0.3s ease;
}

.footer-column a:hover {
  color: var(--gold-light);
}

.social-links {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}

.social-links a {
  width: 30px;

  height: 30px;

  display: flex;

  align-items: center;

  justify-content: center;

  border:
    1px solid
    rgba(255, 255, 255, 0.25);

  border-radius: 50%;

  font-size: 7px;

  text-align: center;

  padding: 2px;

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.social-links a:hover {
  background-color: var(--gold);

  border-color: var(--gold);

  color: var(--white);
}

.footer-developer {
  border-left:
    1px solid
    rgba(255, 255, 255, 0.15);

  padding-left: 25px;
}

.footer-developer p {
  color: var(--gold-light);

  font-size: 8px;

  letter-spacing: 1px;
}

.footer-developer h3 {
  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 18px;

  margin:
    3px
    0;

  color: var(--white);
}

.footer-developer a {
  color: #d4dbd6;

  font-size: 9px;
}

.footer-bottom {
  border-top:
    1px solid
    rgba(255, 255, 255, 0.1);

  padding:
    12px
    0;

  text-align: center;
}

.footer-bottom p {
  color: #8e9992;

  font-size: 8px;
}


/* =========================================================
   19. TABLET — MAX 1000px
   ========================================================= */

@media (max-width: 1000px) {

  .main-navigation {
    gap: 18px;
  }

  .nav-link {
    font-size: 11px;
  }

  .header-content {
    gap: 15px;
  }


  /* HERO */

  .hero-content {
    min-height: 315px;
  }

  .hero-text h1 {
    font-size: 43px;
  }


  /* INTAKE */

  .intake-content {
    grid-template-columns:
      70px
      1fr
      1px
      200px
      220px;

    gap: 15px;
  }


  /* BENEFITS */

  .benefit-card {
    padding:
      15px
      8px;
  }


  /* APPLICATION */

  .application-layout {
    grid-template-columns:
      1fr;
  }

  .scholarship-note {
    max-width: 400px;

    margin:
      0
      auto;
  }


  /* FOOTER */

  .footer-grid {
    grid-template-columns:
      repeat(3, 1fr);
  }

  .footer-brand {
    border-right: none;
  }

  .footer-developer {
    border-left: none;

    padding-left: 0;
  }


  /* =====================================================
     GALLERY — TABLET
     3 IMAGES
     ===================================================== */

  .gallery-grid {
    gap: 12px;
  }

  .gallery-item {
    flex:
      0 0
      calc(
        (100% - 24px) / 3
      );

    height: 190px;
  }


  /* =====================================================
     TESTIMONIALS — TABLET
     2 VIDEOS
     ===================================================== */

  .testimonial-card {
    flex:
      0 0
      calc(
        (100% - 18px) / 2
      );
  }

}


/* =========================================================
   20. MOBILE — MAX 760px
   ========================================================= */

@media (max-width: 760px) {

  /* TOP BAR */

  .top-bar__content {
    justify-content: center;

    padding:
      6px
      0;

    text-align: center;
  }

  .top-bar__content > p {
    display: none;
  }


  /* HEADER */

  .header-content {
    min-height: 62px;
  }

  .site-logo {
    width: 125px;
  }

  .main-navigation {
    position: absolute;

    top: 62px;

    left: 0;

    right: 0;

    background-color: var(--white);

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    box-shadow:
      0 8px 20px
      rgba(0, 0, 0, 0.08);

    border-top:
      1px solid var(--border);
  }

  .main-navigation.menu-open {
    display: flex;
  }

  .nav-link {
    padding:
      15px
      25px;

    border-bottom:
      1px solid var(--border);
  }

  .nav-link--active::after {
    display: none;
  }

  .header-actions > .button {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }


  /* =====================================================
     HERO
     ===================================================== */

  .hero-section {
    background-color: var(--white);
  }

  .hero-content {
    display: flex;

    flex-direction: column-reverse;

    min-height: auto;
  }

  .hero-image-wrapper {
    height: 280px;

    min-height: 280px;
  }

  .hero-text {
    padding:
      30px
      0
      35px;

    align-items: center;

    text-align: center;
  }

  .hero-text h1 {
    font-size: 39px;
  }

  .hero-description {
    font-size: 12px;
  }

  .hero-decoration {
    width: 80%;

    max-width: 280px;

    height: 2px;

    margin:
      18px
      auto
      15px;
  }

  .hero-buttons {
    justify-content: center;

    flex-wrap: wrap;
  }


  /* =====================================================
     INTAKE
     ===================================================== */

  .intake-content {
    display: grid;

    grid-template-columns:
      65px
      1fr;

    padding:
      20px
      0;

    gap: 15px;
  }

  .intake-icon {
    width: 60px;

    height: 60px;
  }

  .intake-details h2 {
    font-size: 26px;
  }

  .intake-divider {
    display: none;
  }

  .last-intake {
    grid-column: 1 / -1;

    padding-left: 80px;
  }

  .intake-class-image {
    grid-column: 1 / -1;

    height: 130px;

    border-radius: 5px;

    margin-top: 5px;
  }


  /* =====================================================
     HEADINGS
     ===================================================== */

  .section-heading {
    gap: 8px;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .heading-line {
    width: 35px;
  }


  /* =====================================================
     BENEFITS
     ===================================================== */

  .benefits-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .benefit-card {
    border-bottom:
      1px solid var(--border);
  }

  .benefit-card:nth-child(2n) {
    border-right: none;
  }


  /* =====================================================
     SCHOLARSHIP
     ===================================================== */

  .scholarship-content {
    grid-template-columns:
      60px
      1fr;

    gap: 12px;

    padding: 18px;
  }

  .scholarship-icon {
    width: 52px;

    height: 52px;
  }

  .scholarship-title h2 {
    font-size: 21px;
  }

  .scholarship-divider {
    display: none;
  }

  .scholarship-description {
    grid-column: 1 / -1;

    border-top:
      1px solid
      rgba(201, 162, 74, 0.35);

    padding-top: 12px;
  }

  .scholarship-highlight {
    grid-column: 1 / -1;

    border-left: none;

    border-top:
      1px solid
      rgba(201, 162, 74, 0.35);

    padding:
      12px
      0
      0;
  }


  /* =====================================================
     COURSES
     ===================================================== */

  .course-grid {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: 150px;
  }


  /* =====================================================
     EARLY BOOKING
     ===================================================== */

  .early-booking-content {
    grid-template-columns:
      55px
      1fr;

    gap: 12px;

    padding: 18px;
  }

  .early-booking-icon {
    width: 48px;

    height: 48px;

    font-size: 22px;
  }

  .early-booking-text h2 {
    font-size: 22px;
  }

  .early-booking-action {
    grid-column: 1 / -1;

    justify-content: flex-start;

    padding-left: 67px;
  }


  /* =====================================================
     APPLICATION
     ===================================================== */

  .application-steps {
    flex-direction: column;

    gap: 5px;
  }

  .application-step {
    max-width: 240px;
  }

  .step-arrow {
    transform: rotate(90deg);
  }


  /* =====================================================
     TESTIMONIALS
     ===================================================== */

  .testimonial-grid {
    gap: 12px;
  }

  .testimonial-card {
    flex:
      0 0
      calc(
        100% - 25px
      );

    min-height: 165px;
  }


  /* =====================================================
     GALLERY
     2 IMAGES ON PHONE
     ===================================================== */

  .gallery-grid {
    gap: 10px;
  }

  .gallery-item {
    flex:
      0 0
      calc(
        (100% - 10px) / 2
      );

    height: 180px;
  }

  .gallery-item:hover img {
    transform: none;
  }


  /* =====================================================
     CTA
     ===================================================== */

  .final-cta-content {
    grid-template-columns:
      55px
      1fr;

    padding:
      20px
      0;
  }

  .final-cta-action {
    grid-column: 1 / -1;

    align-items: flex-start;

    padding-left: 75px;
  }


  /* =====================================================
     FOOTER
     ===================================================== */

  .footer-grid {
    grid-template-columns:
      1fr
      1fr;

    gap: 25px;
  }

  .footer-developer {
    grid-column: 1 / -1;

    border-top:
      1px solid
      rgba(255, 255, 255, 0.12);

    padding-top: 20px;
  }

}


/* =========================================================
   21. SMALL PHONES — MAX 450px
   ========================================================= */

@media (max-width: 450px) {

  .top-bar__contact {
    gap: 10px;

    font-size: 9px;
  }

  .hero-image-wrapper {
    height: 235px;

    min-height: 235px;
  }

  .hero-text h1 {
    font-size: 33px;
  }

  .hero-buttons {
    flex-direction: column;

    width: 100%;
  }

  .hero-buttons .button {
    width: 190px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    border-right: none;

    min-height: 130px;
  }

  .course-card {
    grid-template-columns:
      42%
      58%;
  }

  .course-info h3 {
    font-size: 18px;
  }


  /* SMALL PHONE GALLERY */

  .gallery-item {
    flex:
      0 0
      calc(
        (100% - 10px) / 2
      );

    height: 165px;
  }


  /* SMALL PHONE TESTIMONIALS */

  .testimonial-card {
    flex:
      0 0
      calc(
        100% - 18px
      );
  }


  /* FOOTER */

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-developer {
    border: none;

    padding: 0;
  }

}


/* =========================================================
   22. MOBILE APPLY LINK
   ========================================================= */

.mobile-apply-link {
  display: none;
}

@media (max-width: 800px) {

  .mobile-apply-link {
    display: block;

    width: 100%;

    color: var(--green);

    font-weight: 700;
  }

  .desktop-apply-button {
    display: none;
  }

}