@media only screen and (min-width: 200px) and (max-width: 575px) {
    
    
    .hamburger {
        display: flex;
    } 

 .navbar {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        color: var(--accent-cyan);
        background: #0d1614;
        flex-direction: column;
        align-items: center;
        padding: 0; 
        gap: 20px;
        border-top: 1px solid #eee;
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
        
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out; 
    }

    
    .menu-toggle:checked ~ .navbar {
        max-height: 300px;
        padding: 20px 0; 
    }

    
    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
        background-color: #ff7675;
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
        background-color: #ff7675;
    }
    
    .nav-link{
        color:white;
        font-weight: bold;
    }
    .course-hero {
    min-height: auto;     
    padding-bottom: 10px;
    align-items: flex-start;
  }
  .course-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 15px;         /* Reduce outer padding */
    text-align: center;
  }
 .course-title {
    font-size: 1.7rem;    /* Reduced from 3.5rem */
    padding-top: 10px;    /* Reduced from 70px */
    margin-bottom: 10px;
    line-height: 1.2;
  }
  
  .highlight-italic {
    font-size: 1.8rem;
    color: #636e72;
    margin-top: 10px;
    padding-left: 0;
    padding-right: 20%;
    margin-bottom: 5px;
    font-weight: 700;
    display: block;       
  }
   .course-features li {
    font-size: 0.85rem;
  }

  .highlight {
  color: #06f4a1;
   }

   .feature-text {
  font-size: 11px;  
   }

   .course-price {
    display: flex;
    flex-wrap: wrap;
    font-size: 1.5rem;
    padding-top: 15px;
    gap: 8px;
    margin-bottom: 20px;
  }

  .price-new {
    order: 2;
    font-size: 1.5rem;
    padding-left: 5px;
  }

  .price-old {
    order: 1;
    font-size: 1.3rem;
    text-decoration-thickness: 2px;
  }

  .price-off {
   order: 3;
  color: #000;
  background: #ffffff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
  border: 1px solid #e0e0e0;             
  white-space: nowrap;
  margin-top: 0;
  }

  .course-actions {
    width: 100%;
    margin-top: 10px;
  }
  
  .btn-primary {
    width: 100%;
    margin-left: 0;
    font-size: 1.2rem;
    padding: 14px;
    box-sizing: border-box;
    
  }
  
  .course-image {
    display: block;  /* Changed from 'none' to 'block' */
    order: -1;       /* Moves image to the TOP of the stack */
        
  }
  
  .course-image img{
    width: 100%;
    margin-top: 70px;
  }

}




@media only screen and (min-width: 576px) and (max-width: 991px) {
    
   
    .hamburger {
        display: flex;
    }

    
    .navbar {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--accent-cyan);
        flex-direction: column;
        align-items: center;
        
        
        padding: 0; 
        
        gap: 20px;
        border-top: 1px solid #eee;
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
        
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out; 
    }

    
    .menu-toggle:checked ~ .navbar {
        max-height: 300px;
        padding: 20px 0; 
    }

    
    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
        background-color: #ff7675;
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
        background-color: #ff7675;
    }
    .course-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 13px;         /* Reduce outer padding */
    text-align: center;
  }
 .course-title {
    font-size: 3.7rem;    /* Reduced from 3.5rem */
    padding-top: 10px;    /* Reduced from 70px */
    margin-bottom: 20px;
    line-height: 1.2;
    padding-right: 30%;
  }
  
  .highlight-italic {
    font-size: 2.8rem;
    color: #636e72;
    margin-top: 10px;
    padding-left: 0;
    padding-right: 70%;
    margin-bottom: 5px;
    font-weight: 700;
    display: block;       
  }
   .course-features li {
    font-size: 0.85rem;
  }

  .highlight {
  color: #06f4a1;
   }

   .course-price {
    display: flex;
    flex-wrap: wrap;
    font-size: 1.5rem;
    padding-top: 15px;
    gap: 8px;
    
  }

  .price-new {
    
    font-size: 2rem;
    padding-left: 5px;
  }

  .price-old {
    
    font-size: 1.3rem;
  }

  .price-off {
    
  color: #06f4a1;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0;
  margin-left: 0;
  }

  .course-actions {
    width: 100%;
    margin-top: 10px;
  }
  
  .btn-primary {
    width: 100%;
    margin-left: 0;
    font-size: 2.2rem;
    padding: 14px;
    box-sizing: border-box;
  }
  
  .course-image{
    order: -1;
    width: 100%;
    margin-top: 10%;
    margin-bottom: 80px;
  }

}