@media (max-width: 1350px) {
    header{
        padding: 15px 15px;
        
    }
    .logo{
        transform: scale(.9);
    }
    .header_list{
        font-size: 14px;
    }
    .btn.signup,
    .btn.signin{
        transform: scale(.9);
    }
    .header_ul{
        column-gap: 20px;
    }
    .auth-buttons{
        gap: 0;
    }
}


@media (max-width: 1125px) {
    header{
        padding-inline: 50px;
    }
    .mobile-menu-toggle{
        display: block;
        font-size: 30px;
    }
    .header_ul{
        display: none;
    }
    .auth-buttons{
        flex-direction: column;
        
    }
    .header_left_side{
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 600px) {
    .container{
        padding-top: 70px;
    }
    .hero{
        padding: 0 20px 50px;
    }
    header{
        padding: 10px 20px;
    }
    .mobile-menu-toggle{
        padding: 0;
    }
    .auth-buttons{
        display: none;
    }
    .profile_btn{
        display: block;
    }
    .logo{
        width: 50px;
        height: 50px;
    }
    .header_left_side{
        width: 50px;
        height: 50px;
    }
    .hero-content{
        transform: scale(0.8);
    }
    .ad{
        font-size: 30px;
    }
}


@media (max-width: 430px) {
    .hero{
        padding: 100px 20px;
    }
    .hero-content{
        transform: scale(1);
    }
    #main-heading{
        font-size: 30px;
    }
    .hero-text{
        font-size: 16px;
    }
    .cta-buttons{
        transform: scale(.8);
    }
    .ad-slide{
        width: 430px;
        height: 60px;
        border: 4px solid #e5a800;
        border-radius: 20px;
    }
    .ad_image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }
    .ad_slide_active{
        border: none;
    }
    .ad{
        color: #e5a800;
        font-size: 24px;
    }
    .section{
        padding: 20px;
    }
    .section h2{
        font-size: 24px;
    }
}


/* When menu is hidden on mobile */
@media (max-width: 1125px) {
  .header_nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
  }

  .header_nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header_ul {
    flex-direction: column;
    gap: 15px;
  }

  .mobile-menu-toggle[aria-expanded="true"] .fa-bars:before {
    content: "\f00d"; /* This changes the icon to 'X' when menu is open */
  }
}


@media (max-width: 1125px) {
  .header_nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: all 0.3s ease;
  }

  .header_nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header_ul {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    display: flex;
  }

  .header_list {
    font-size: 16px;
    text-decoration: none;
    padding: 8px 0;
  }
}
