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

/* Navbar background */
.custom-navbar {
    background: white;
}

.custom-navbar .container {
    padding-top: 15px;
    padding-bottom: 15px;
}

.logo-img {
    height: 60px;
    width: 200px;
}

.navbar-nav .nav-link {
    display: inline-block;
    font-weight: 700;
    font-size: 17px;
    color: #212020;
    position: relative;
    padding-bottom: 5px;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #ff4b4b;
    transition: width 0.35s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;    
}

.custom-btn {
    border: 1px solid #000;   
    padding: 10px 35px;
    font-weight: 700;
    background: white;
    text-decoration: none;
    border-radius: 7px;
    color: #000;
    transition: all 0.35s ease;
}

.custom-btn:hover {
    background: #000;
    color: #fff;
}

/* Prevent toggler + contact button from touching */
@media (max-width: 992px) {
    .custom-navbar .container {
        justify-content: space-between !important;
    }

    /* Reduce button size */
    .custom-btn {
        padding: 6px 18px !important;
        font-size: 14px !important;
    }
}

/* FIX for 770px–991px only */
@media (min-width: 770px) and (max-width: 991px) {

    /* Keep spacing so nothing touches */
    .custom-navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between !important;
        gap: 20px;
        flex-wrap: nowrap !important;
    }

    /* Reduce logo so layout has extra room */
    .logo-img {
        width: 150px !important;
        height: auto;
    }

    /* Prevent contact button from growing */
    .custom-btn {
        padding: 6px 18px !important;
        font-size: 13px !important;
        white-space: nowrap;
        max-width: 130px !important;   /* stops width increase */
    }

    /* Keep toggler spacing correct */
    .navbar-toggler {
        padding: 3px 6px !important;
        margin-left: auto;    /* pushes toggler away from logo */
    }
}


/* Keep Logo + Toggler + Contact Button in one row */
@media (max-width: 768px) {

    /* Allow spacing between all three items */
    .custom-navbar .container {
        flex-wrap: nowrap !important;
        gap: 12px;
    }

    /* Make button smaller so it fits comfortably */
     .custom-btn {
        display: none !important;
    }

    /* Make logo smaller to free space */
    .logo-img {
        width: 130px;
        height: auto;
        margin-right: 10px !important;
    }

    /* Reduce toggler size spacing */
    .navbar-toggler {
        padding: 3px 6px;
        margin-left: 10px !important; 
    }
}


/* For narrower phones (below 576px) */
@media (max-width: 576px) {

    .custom-navbar .container {
        gap: 8px !important;
    }

    .custom-btn {
        display: none !important;
    }

    .logo-img {
        width: 115px;
    }
}

/* LEARN -SECTION */

.course-learn-section {
  position: relative;
  background: #ffffff;
}

/* IMAGE WRAPPER */
.course-image-wrapper {
  position: relative;
  width: 50%; /* half the section width */
  margin: 0 auto; /* center the image wrapper */
  z-index: 5;
}

.course-main-img {
  width: 100%; /* fill the wrapper, not full section */
  height: 540px;
  object-fit: cover;
  display: block;
  margin: 0;
}



/* RED BLOCK TOP */
.course-red-block-top {
  position: absolute;
  top: 32%;
  right: 36%;
  width: 700px;
  height: 350px;
  background: #ff5f5f;
  z-index: -1;
}

.course-dark-band {
  width: 100%;
  height: 530px;   
  background: #000;
  margin-top: -160px;
  position: relative;
  z-index: 0;
}

.course-card-container {
  margin-top: -520px;
  margin-left: 60px;  
  position: relative;
  z-index: 20;
}

.course-white-card {
  background: #ffffff;
  border-radius: 4px;
  position: relative;
  z-index: 30;
  min-height: 450px;
}

.course-white-card p {
  font-size: 22px;
  line-height: 40px;
}

/* BOTTOM RED BLOCK */
.course-red-block-bottom {
  position: absolute;
  bottom: -80px;
  right: 22%;
  width: 350px;
  height: 150px;
  background: #ff5f5f;
  z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .course-image-wrapper {
    width: 80%;
  }

  .course-main-img {
    margin-left: 50px;
    height: 480px;
  }

  .course-red-block-top {
    top: 30%;
    right: 28%;
    width: 600px;
    height: 300px;
  }

  .course-dark-band {
    height: 450px;
    margin-top: -140px;
  }

  .course-card-container {
    margin-top: -420px;
    margin-left: 40px;
  }

  .course-white-card {
    min-height: 400px;
  }

  .course-white-card p {
    font-size: 20px;
    line-height: 36px;
  }

  .course-red-block-bottom {
    bottom: -60px;
    right: 18%;
    width: 300px;
    height: 120px;
  }
}

@media (max-width: 992px) {
  .course-image-wrapper {
    width: 90%;
  }

  .course-main-img {
    margin-left: 0;
    height: 400px;
  }

  .course-red-block-top {
    top: 25%;
    right: 15%;
    width: 500px;
    height: 250px;
  }

  .course-dark-band {
    height: 380px;
    margin-top: -120px;
  }

  .course-card-container {
    margin-top: -320px;
    margin-left: 20px;
  }

  .course-white-card {
    padding: 3rem 2rem;
    min-height: 350px;
  }

  .course-white-card p {
    font-size: 18px;
    line-height: 32px;
  }

  .course-red-block-bottom {
    bottom: -50px;
    right: 12%;
    width: 250px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .course-main-img {
    width: 100%;
    height: 300px;
    margin-left: 0;
  }

  .course-red-block-top {
    top: 20%;
    right: 5%;
    width: 350px;
    height: 200px;
  }

  .course-dark-band {
    height: 300px;
    margin-top: -100px;
  }

  .course-card-container {
    margin-top: -250px;
    margin-left: 0;
    padding: 0 15px;
  }

  .course-white-card {
    padding: 2rem 1.5rem;
    min-height: 300px;
  }

  .course-white-card p {
    font-size: 16px;
    line-height: 28px;
  }

  .course-red-block-bottom {
    bottom: -40px;
    right: 5%;
    width: 200px;
    height: 80px;
  }
}

@media (max-width: 576px) {
  .course-red-block-top,
  .course-red-block-bottom {
    display: none; /* hide red blocks on very small screens */
  }

  .course-main-img {
    height: 250px;
  }

  .course-dark-band {
    height: 250px;
    margin-top: -80px;
  }

  .course-card-container {
    margin-top: -200px;
    padding: 0 10px;
  }

  .course-white-card {
    padding: 1.5rem 1rem;
    min-height: 250px;
  }

  .course-white-card p {
    font-size: 15px;
    line-height: 24px;
  }
}


/* FEATURE-SECTION */

.course-features-section {
    background: #283231;      /* dark green/black background */
    padding: 100px 0;
}

.course-features-wrapper {
    max-width: 1300px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.course-feature-card {
    width: 32%;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 50px 35px;
    border-radius: 4px;
    color: #fff;
}

.course-icon {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.course-icon i {
    font-size: 35px;
    color: #fff;
}

/* COLORS */
.course-red { background: #ff6767; }
.course-green { background: #03a88a; }

.course-feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.course-feature-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #d9d9d9;
}

/* TABLET RESPONSIVE */
@media (max-width: 992px) {
    .course-features-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .course-feature-card {
        width: 45%;
        padding: 40px 30px;
    }
}

/* MOBILE RESPONSIVE */
@media (max-width: 576px) {
    .course-features-section {
        padding: 60px 0;
    }

    .course-feature-card {
        width: 100%;
        padding: 35px 25px;
    }

    .course-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .course-icon i {
        font-size: 28px;
    }

    .course-feature-card h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .course-feature-card p {
        font-size: 15px;
        line-height: 1.6;
    }
}
