/* -----------------------------------
Breakpoint: 1280px
----------------------------------- */
@media screen and (max-width: 1280px) {
  .learner-container {
    padding-bottom: 75px;
  }
  .main-header {
    padding: 15px 30px;
  }
  .hero-container {
    text-align: center;
  }
  .info-container {
    gap: 20px;
  }
  .right-image img {
    width: 400px;
  }
  .stats-card {
    left: 5%;
  }
  .placement-section {
    padding: 40px 30px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .placement-content {
    text-align: left;
  }
  .newsletter-container {
    gap: 20px;
    width: 100%;
  }
}

/* -----------------------------------
Breakpoint: 1100px
----------------------------------- */
@media screen and (max-width: 1100px) {
  .main-header {
    padding: 15px 30px;
  }
  .hero-container {
    text-align: center;
  }
  .hero-left h1 {
    font-size: 38px;
    line-height: 46px;
    margin: 20px 0;
  }
  .hero-left .subtext {
    font-size: 20px;
  }
  .btn-learn {
    padding: 14px 30px;
  }
  .right-image img {
    width: 380px;
  }
  .stats-card {
    bottom: 0px;
    padding: 20px;
    left: 0%;
  }
}

/* -----------------------------------
Breakpoint: 992px (Tablets)
----------------------------------- */
@media screen and (max-width: 992px) {
  .container {
    width: 90%;
  }

  /* --- Header & Nav --- */
  .menu-toggle {
    display: block;
    position: static;
    font-size: 1.8rem;
    color: #0b2d6b;
  }
  nav.nav-menu {
    display: none;
  }
  nav.nav-menu.mobile {
    display: block;
  }
  .nav-header {
    gap: 15px;
  }
  .btn-apply {
    width: auto; /* Allow button to size to its content */
    text-align: center;
  }

  /* --- Hero --- */
  .right-image img {
    width: 95%;
    max-width: 350px;
  }

  /* --- Build Future (About) --- */
  .content-wrapper {
    flex-direction: column;
  }
  .image-box,
  .text-box {
    width: 100%;
    text-align: center;
    max-width: 100%;
  }
  .image-box {
    margin: 0 auto;
  }
  .text-box p {
    text-align: center;
  }
  .experience-badge {
    position: absolute; /* Un-float the 15+ years badge */
    margin: 20px auto;
    bottom: 230px;
    border-radius: 20px;
  }
  .blue-goal {
    display: none;
  }

  /* --- Training --- */
  .training-container {
    flex-direction: column-reverse; /* Put blue box below cards */
    gap: 20px;
  }
  .career-section {
    padding: 20px 0px;
  }
  .course-detail_right_wrap {
    max-width: 100%;
    margin-top: 12%;
    padding-right: 0;
  }
  .offer-background {
    display: none;
  }
  /* --- NEW: Hide overlapping offer tag --- */
  .offer-tag {
    display: none;
  }

  /* --- Learning Section --- */
  .learning-cards {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  .learn-card-box {
    transform: none;
  }
  .learn-card,
  .learn-card-box {
    margin-bottom: 0;
  }

  /* --- Learner (Testimonial) --- */
  .learner-container {
    flex-direction: column;
    gap: 0;
  }
  .learner-left {
    display: none;
  }
  .testimonial h2 {
    margin-top: 0;
    text-align: center;
  }
  .testimonial-user {
    justify-content: center;
  }

  /* --- CTA (MOVED FROM 828px) --- */
  /* --- This fixes the overlap on tablets --- */
  .cta-container {
    position: relative;
    margin-top: 20px;
    width: 100%;
    padding: 0;
    padding-bottom: 30px;
  }
  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .cta-btn {
    width: auto;
  }

  /* --- FAQ --- */
  .faq-container {
    padding: 50px 0;
  }
  .faq-section {
    flex-direction: column;
  }
  .faq-left {
    width: 100%;
    text-align: center;
  }
  .faq-left h2 {
    text-align: center;
  }
  .faq-right {
    width: 100%;
  }
}

/* -----------------------------------
Breakpoint: 828px 
----------------------------------- */
@media screen and (max-width: 828px) {
  /* --- Typography --- */
  .testimonial h2,
  .learning-container h2,
  .placement-content h2,
  .career-section h2,
  .margin-text h2 {
    font-size: 23px;
    margin-bottom: 10px;
  }

  /* --- Hero --- */
  .hero-section {
    flex-direction: column;
    padding: 40px 0;
    text-align: center;
  }
  .hero-left {
    min-width: auto;
    width: 100%;
    text-align: center;
  }
  .hero-left .yellow-div {
    bottom: -16%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
  }

  /* --- UPDATED: Hide hero image only, not stats card --- */
  .hero-right .right-image {
    display: none; /* Hide hero image */
  }

  /* --- !! STATS CARD FIX !! --- */
  .stats-card {
    position: static;
    display: inline-flex;
    margin-top: 30px;
    transform: none;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 20px;
  }
  .text h3 {
    font-size: 20px;
  }

  /* --- Info Bar --- */
  .info-bar {
    padding: 0px 0;
  }
  .container-info {
    flex-direction: column;
    border-radius: 40px;
    width: 90%;
    padding: 0;
    margin: 0 auto;
  }
  .info-box,
  .info-card {
    width: 100%;
    padding: 28px 41px;
  }
  .info-item {
    gap: 15px;
    padding-left: 0; /* Remove padding */
    justify-content: center; /* Center items */
  }

  /* --- Training Cards --- */
  .learning-cards,
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* --- Testimonials --- */
  .learner-left {
    display: none; /* Hide learner image */
  }
  .testimonial-box {
    padding: 20px 20px;
    margin-top: 10px;
  }

  /* --- CTA (REMOVED FROM HERE) --- */
  /* --- The rules were moved to 992px breakpoint --- */

  /* --- FAQ --- */
  .faq-container {
    padding: 0px 0 50px;
  }
  .faq-left {
    padding: 30px 0 0;
  }

  /* --- Newsletter --- */
  .newsletter-left h2 {
    text-align: center;
  }

  /* --- Apply / Contact Pages --- */
  .login-container {
    flex-direction: column;
  }
  .apply-container {
    display: block; /* Reset display */
  }
  .contact-container {
    flex-direction: column-reverse; /* Stack with info box on top */
    width: 90%;
  }
  .contact-right-card {
    border-radius: 10px 10px 0 0;
  }
  .contact-card {
    border-radius: 0 0 10px 10px;
  }
  .course-box {
    padding: 35px 25px;
  }
  .course-box h3 {
    text-align: center;
  }
}

/* -----------------------------------
Breakpoint: 730px
----------------------------------- */
@media screen and (max-width: 730px) {
  .newsletter-container {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  .image-box img {
    max-width: 250px;
  }
  .experience-badge {
    padding: 15px 25px;
    border-radius: 10px;
    bottom: 300px;
  }
  .badge-inner .number {
    font-size: 20px;
  }
  .badge-inner .text {
    font-size: 13px;
  }
  section.newsletter-section {
    background: #040b28;
    padding-bottom: 33px;
  }
  .newsletter-form {
    flex-direction: column;
    width: 100%;
    padding: 0 20px 20px;
  }
  .newsletter-form button {
    padding: 14px 45px;
    background: #016de5;
  }
}

/* -----------------------------------
Breakpoint: 576px (Mobile)
----------------------------------- */
@media screen and (max-width: 576px) {
  .container {
    width: 95%; /* Use more of the screen */
  }
    .container-info {
        width: 100%;
    }
        .image-box {
        padding: 20px 0;
    }
    .text-box {
        padding: 0px 0;
    }
  /* --- Header --- */
  .main-header {
    padding: 10px 0px;
  }
  .head-content {
    display: flex; /* Use flexbox */
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: space-between; /* Space logo and nav */
    align-items: center;
    width: 100%;
    gap: 0px;
  }
  .logo {
    text-align: left;
    width: auto;
  }
  .nav-header {
    display: flex; /* Use flexbox */
    gap: 15px;
    width: auto; /* Size to content */
    align-items: center;
  }
  .btn-apply {
    padding: 10px 15px;
    font-size: 14px;
    width: auto;
  }
  .menu-toggle {
    position: static; /* Remove 'left: 0' */
    font-size: 1.2rem;
  }
  .badge-inner .text {
    font-size: 15px;
  }
  .badge-inner .number {
    font-size: 17px;
  }
  .experience-badge {
    position: static;
  }
  /* --- Typography --- */
  .hero-left h1 {
    font-size: 28px;
    line-height: 36px;
  }
      .hero-left .subtext {
        font-size: 16px;
        margin-bottom: 30px;
        line-height: 21px;
    }
    .text-box p {
      font-size: 15px;
      margin-bottom: 20px;

  }
  .career-section .description {
      font-size: 15px;
      margin: 0 auto 25px;
  }
  .learning-container .description {
      font-size: 15px;
          margin: 0 auto 30px;
  }
  .footer-text {
    font-size: 15px;
    padding-bottom: 0;
  }
  .newsletter-left {
    padding: 30px 00px 0;
    text-align: center;
}
.review-slide p {
    font-size: 15px;
}
    .learner-container {
        padding-bottom: 20px;
        padding-top: 0;
    }
  .testimonial h2,
  .faq-left h2 {
    font-size: 24px;
  }
  .cta-box h3 {
    font-size: 18px;
  }

  /* --- Buttons --- */
  .btn-learn,
  .btn-apply {
    padding: 10px 20px;
    font-size: 14px;
  }
  .cta-btn {
    font-size: 14px;
    padding: 12px 30px;
  }

  /* --- Grids --- */
  .cards,
  .learning-cards {
    grid-template-columns: 1fr;
  }

  /* --- Placement --- */
  .placement-content {
    text-align: center;
  }
  .placement-content h2 {
    text-align: center;
  }
  .placement-section {
    background: #19a451;
  }

  /* --- Newsletter --- */
  .newsletter-form {
    gap: 10px;
  }
  .newsletter-form input,
  .newsletter-form button {
    padding: 14px 20px;
    width: 100%;
    margin-top: 10px;
  }

  /* --- Footer --- */
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-container p {
    width: 100%;
    text-align: center;
  }
  .socials {
    text-align: center;
    margin: 0 auto;
    margin-top: 20px;
    float: none;
  }

  /* --- Apply/Contact Page --- */
  .login-card {
    padding: 35px 25px;
  }
  
  /* --- NEW: Thank You Page Fix --- */
  .checkmark-container {
    width: 100%;
    height: auto;
    padding: 20px 0;
  }
  .checkmark-container h4 {
    font-size: 24px;
    padding-bottom: 20px;
  }
  i.fas.fa-check.checkmark-animated {
    font-size: 60px;
  }
}
  /* --- Apply / Contact Page --- */
  .contact-card,
  .login-card {
    padding: 30px 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .logo img {
    width: 120px;
  }
