/* ===========================
   FIX MENU VỠ LAYOUT 1100px - 1250px
=========================== */
@media (max-width: 1250px) and (min-width: 1100px) {

  /* Giảm padding khối menu */
  .header-nav.header-nav-main.nav-right {
    padding: 10px 18px !important;
  }

  /* Giảm font size để menu không bị tràn */
  .nav > li > a {
    font-size: 14px !important;
  }

  /* Giảm khoảng cách các item */
  .nav > li {
    margin: 0 8px !important;
  }

  /* Thu nhỏ nút chọn ngôn ngữ */
  .nav > li > .gt-current-wrapper {
    padding: 6px 10px !important;
    font-size: 14px !important;
  }
}

/* ===========================
   EXTRA FIX CHO MÀN 1024px - 1100px
=========================== */
@media (max-width: 1100px) and (min-width: 1024px) {

  .header-nav.header-nav-main.nav-right {
    padding: 8px 15px !important;
  }

  .nav > li {
    margin: 0 6px !important;
  }

  .nav > li > a {
    font-size: 13px !important;
  }

  .nav > li > .gt-current-wrapper {
    padding: 5px 9px !important;
    font-size: 13px !important;
  }
}
/* ===========================
   ÁP DỤNG Y NHƯ MOBILE CHO MÀN ≤ 850px
=========================== */
@media (max-width: 850px) {

  /* Copy toàn bộ rule từ block 549px xuống đây */

  #logo img, #wrapper .stuck #logo img {
    max-height: 30px !important;
  }
  #wrapper .header.show-on-scroll, #wrapper .stuck .header-main {
    height: 70px !important;
  }
  .nav > li {
    margin: 0 !important;
  }
  .nav > li > a {
    padding: 15px 0 !important;
    padding-left: 15px !important;
  }
  .nav > li > .gt-current-wrapper {
    padding: 15px 0 !important;
    padding-left: 15px !important;
    background-color: transparent !important;
  }
  .dropdown-menu.sub-menu li a {
    padding-left: 0 !important;
  }
  .dropdown-menu.sub-menu {
    top: 38px;
    left: 10px;
  }
  #home_banner {
    height: unset;
    padding-top: 50px;
  }
  .home_banner-row {
    flex-direction: column;
    gap: 20px;
  }
  .home_banner-left {
    padding-top: 0;
    flex: auto;
  }
  .home_banner-left-inner h1 {
    color: #fff;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    line-height: 150%;
  }
  .home_banner-left-inner p {
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 200%;
    margin-bottom: 10px;
  }
  .home_banner-download {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
  }
  .btn-custom {
    margin: 0 auto;
  }
  .home_banner-right {
    margin: 0 auto;
    height: fit-content;
  }
  .home_banner-right img {
    height: 400px;
  }
  .home_banner-phone-img {
    transform: none;
  }
  .partner-logo-item img {
    height: auto;
  }
  #partner {
    padding: 12px 0;
  }
  #about_socialfin {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .about_socialfin-text h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .about_socialfin-description {
    font-size: 16px;
  }
  .about_alsolute-img {
    margin-top: 0;
  }
  .about_socialfin-card {
    padding: 24px;
    grid-template-columns: repeat(1, 1fr);
    gap: 50px;
  }
  .finance_management_training {
    flex-direction: column-reverse;
  }
  #content-left-right {
    padding: 40px 0;
  }
  .content-left-right-text h2 {
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
  }
  .content-left-right-text h3 {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
  }
  .content-left-right-text p {
    text-align: justify;
  }
  .join_now {
    flex-direction: column;
    margin-top: 40px;
  }
  .online_competitions-row {
    flex-direction: column;
  }
  #online_competitions {
    padding: 40px 0;
  }
  .online_competitions-heading h2 {
    font-size: 20px;
  }
  .online_competitions-content h3,
  .online_competitions-slogan {
    font-size: 18px;
  }
  .online_competitions-slogan svg {
    flex: 0 0 60px;
  }
  .online_competitions-row .btn-custom {
    margin: 0;
  }
  .online_competitions-heading h2 svg {
    width: 30px;
    height: 30px;
    left: -35px;
  }
  .online_competitions-left {
    flex: auto;
    padding-left: 35px;
  }
  .online_competitions-content svg {
    display: none;
  }
  .online_competitions-left {
    position: relative;
  }
  .online_competitions-left::before {
    content: "";
    height: 670px;
    left: 0px;
    top: 38px;
    width: 4px;
    position: absolute;
    background: linear-gradient(to bottom, #6cc6f3 0%, #2d76f9 100%);
    border-radius: 4px;
  }
  .online_competitions-right {
    margin-top: 24px;
  }
  .banner_scholarship-img img {
    height: 288px;
    object-fit: cover;
  }
  .banner_scholarship-inner-text h2 {
    font-size: 18px;
    max-width: 203px;
  }
  .banner_scholarship-inner {
    bottom: 50%;
    transform: translateY(50%);
  }
  .banner_scholarship-inner-text .btn-custom {
    margin: 0;
  }
  .loan_packages-row {
    flex-direction: column;
    gap: 24px;
  }
  .loan_packages-heading h2 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
  }
  .content_loan_packages h2 {
    font-size: 18px;
    font-weight: 700;
  }
  .condition_loan_packages h2 {
    font-size: 18px;
    margin-bottom: 24px;
  }
  .loan_packages-left a {
    margin: 0;
  }
  #loan_packages {
    padding: 40px 0;
  }
  .testimonial-list {
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
  }
  .testimonial-heading h2 {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 150%;
  }
  #form-contact {
    padding: 40px 0 80px;
  }
  .form-contact-inner {
    padding: 0 16px;
    top: 135px;
  }
  .form-contact-wrap {
    padding: 40px 16px 0;
    height: 528px;
  }
  .form-contact {
    padding: 24px;
  }
  .form-contact-heading h2 {
    font-size: 20px;
  }
  #footer {
    padding: 20px 24px;
  }
  .footer-form{
    margin-top: 70px;
    max-width: 80%;
    margin-left: 0;
  }
  .footer-form h2 {
    text-align: left;
  }
  .footer-form .cf7-custom-form{
    padding: 12px 16px;
  }
  .footer-bottom{
    margin-top: 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .home_banner-overlay {
    width: 300px;
    height: 300px;
    top: 80px;
    left: -23px;
  }

  .home_banner-overlay img {
    width: 300px;
    object-fit: contain;
  }
}

@media (max-width: 549px) {
  #logo img, #wrapper .stuck #logo img {
    max-height: 30px !important;
  }
  #wrapper .header.show-on-scroll, #wrapper .stuck .header-main {
    height: 70px !important;
}
  .nav > li {
    margin: 0 !important;
  }
  .nav > li > a {
    padding: 15px 0 !important;
    padding-left: 15px !important;
  }
  .nav > li > .gt-current-wrapper {
    padding: 15px 0 !important;
    padding-left: 15px !important;
    background-color: transparent !important;
  }
  .dropdown-menu.sub-menu li a {
    padding-left: 0 !important;
  }
  .dropdown-menu.sub-menu {
    top: 38px;
    left: 10px;
  }
  #home_banner {
    height: unset;
    padding-top: 50px;
  }
  .home_banner-row {
    flex-direction: column;
    gap: 20px;
  }
  .home_banner-left {
    padding-top: 0;
    flex: auto;
  }
  .home_banner-left-inner h1 {
    color: #fff;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    line-height: 150%;
  }
  .home_banner-left-inner p {
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 200%;
    margin-bottom: 10px;
  }
  .home_banner-download {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
  }
  .btn-custom {
    margin: 0 auto;
  }
  .home_banner-right {
    margin: 0 auto;
    height: fit-content;
  }
  .home_banner-right img {
    height: 400px;
  }
  .home_banner-phone-img {
    transform: none;
  }
  .partner-logo-item img {
    height: auto;
  }
  #partner {
    padding: 12px 0;
  }
  #about_socialfin {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .about_socialfin-text h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .about_socialfin-description {
    font-size: 16px;
  }
  .about_alsolute-img {
    margin-top: 0;
  }
  .about_socialfin-card {
    padding: 24px;
    grid-template-columns: repeat(1, 1fr);
    gap: 50px;
  }
  .finance_management_training {
    flex-direction: column-reverse;
  }
  #content-left-right {
    padding: 40px 0;
  }
  .content-left-right-text h2 {
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
  }
  .content-left-right-text h3 {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
  }
  .content-left-right-text p {
    text-align: justify;
  }
  .join_now {
    flex-direction: column;
    margin-top: 40px;
  }
  .online_competitions-row {
    flex-direction: column;
  }
  #online_competitions {
    padding: 40px 0;
  }
  .online_competitions-heading h2 {
    font-size: 20px;
  }
  .online_competitions-content h3,
  .online_competitions-slogan {
    font-size: 18px;
  }
  .online_competitions-slogan svg {
    flex: 0 0 60px;
  }
  .online_competitions-row .btn-custom {
    margin: 0;
  }
  .online_competitions-heading h2 svg {
    width: 30px;
    height: 30px;
    left: -35px;
  }
  .online_competitions-left {
    flex: auto;
    padding-left: 35px;
  }
  .online_competitions-content svg {
    display: none;
  }
  .online_competitions-left {
    position: relative;
  }
  .online_competitions-left::before {
    content: "";
    height: 670px;
    left: 0px;
    top: 38px;
    width: 4px;
    position: absolute;
    background: linear-gradient(to bottom, #6cc6f3 0%, #2d76f9 100%);
    border-radius: 4px;
  }
  .online_competitions-right {
    margin-top: 24px;
  }
  .banner_scholarship-img img {
    height: 288px;
    object-fit: cover;
  }
  .banner_scholarship-inner-text h2 {
    font-size: 18px;
    max-width: 203px;
  }
  .banner_scholarship-inner {
    bottom: 50%;
    transform: translateY(50%);
  }
  .banner_scholarship-inner-text .btn-custom {
    margin: 0;
  }
  .loan_packages-row {
    flex-direction: column;
    gap: 24px;
  }
  .loan_packages-heading h2 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
  }
  .content_loan_packages h2 {
    font-size: 18px;
    font-weight: 700;
  }
  .condition_loan_packages h2 {
    font-size: 18px;
    margin-bottom: 24px;
  }
  .loan_packages-left a {
    margin: 0;
  }
  #loan_packages {
    padding: 40px 0;
  }
  .testimonial-list {
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
  }
  .testimonial-heading h2 {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 150%;
  }
  #form-contact {
    padding: 40px 0 80px;
  }
  .form-contact-inner {
    padding: 0 16px;
    top: 135px;
  }
  .form-contact-wrap {
    padding: 40px 16px 0;
    height: 528px;
  }
  .form-contact {
    padding: 24px;
  }
  .form-contact-heading h2 {
    font-size: 20px;
  }
  #footer {
    padding: 20px 24px;
  }
  .footer-form{
    margin-top: 70px;
      max-width: 80%;
      margin-left: 0;
  }
     .footer-form h2 {
        text-align: left;
      
    }
    .footer-form .cf7-custom-form{
            padding: 12px 16px;
    }
    .footer-bottom{
        margin-top: 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .home_banner-overlay {
  width: 300px;
  height: 300px;
  top: 80px;
  left: -23px;
}

.home_banner-overlay img {
  width: 300px;
  object-fit: contain;
}
}
