@media(min-width: 1600px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl {
        max-width: 1375px !important;
    }
    .custom-container{
        max-width: 1400px !important;
    }
}

.custom-container{
    width: 100% !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

@media (min-width: 576px) { /* Small (sm) */
    .custom-container {
        max-width: 540px !important;
    }
}

@media (min-width: 768px) { /* Medium (md) */
    .custom-container {
        max-width: 720px !important;
    }
}

@media (min-width: 992px) {
    .custom-container {
        max-width: 960px !important;
    }
}

@media (min-width: 1200px) {
    .custom-container {
        max-width: 1140px !important;
    }
}

@media (min-width: 1400px) {
    .custom-container {
        max-width: 1320px !important;
    }
}

@media (min-width: 1600px) { 
    .custom-container {
        max-width: 1500px !important;
    }
    header .h-bottom{
        justify-content: start !important;
    }
    header .main-menu{
        gap: 5px;
    }
}



@media(max-width:1800px){
  header .main-menu{
    margin-left: 1%;
  }

  header .header-content .header-content-right #menu-ana-menu{
    gap: 20px;
  }

  main #home-journey-process .journey-image{
    width: 600px;
  }
}



@media(max-width:1600px){
  header .meeting-btn{
    display: none!important;
  }

  main #home-banner .section-title {
    font-size: 34px;
  }
}

@media (max-width:1500px) {
    .section-title{
        font-size: 36px!important;
    }
}

@media(max-width: 1440px) {
    header .main-menu{
        gap: 15px;
    }

    header .h-left .logo img {
        width: 80%;
    }

    header .tops-menu > li > a{
        padding: 12px;
    }

    main #home-banner .banner-exhibition{
        width: 100%;
    }

    main #home-piece .piece-tab-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

    body footer .footer-inner .footer-contact-container .footer-contact{
        font-size: 16px;
    }
  
    /* contact */
    #post-detail .contact-address-col{
        margin-bottom: 30px;
        padding: 0px;
    }

    main #post-detail.contact-page .contact-col{
        margin-bottom: 25px;
    }

    main #post-detail.contact-page .contact-content{
        padding: 15px;
    }

    main #post-detail.contact-page .contact-content .branch-name{
        font-size: 22px;
    }

    main #post-detail.contact-page .contact-content .contact-list .contact-list-item{
        font-size: 16px;
    }
}

@media(max-width:1300px){
   
}

@media(max-width:1200px){
    header .h-left .logo img {
        width: 275px !important;
    }

   main #home-banner .banner-content {
        padding-top: 80px;
    }
}

@media(max-width:991px){
    main .section-title {
        font-size: 28px!important;
    }

    main .line{
        top: 20px;
    }

    main .fixed-col{
        padding: 0px;
    }
    
    main #home-banner .banner-image {
     min-height: 1080px;
    }

    main #home-banner .banner-content .doctor-image {
        width: 60%;
        display: block;
        margin: 0 auto;
    }

    main #home-banner .banner-content .banner-col{
        margin-bottom: 25px;
        padding: 0px;
    }

    main #home-about .about-col {
        margin-bottom: 25px;
    }


  

    /* footer */
    footer .footer-col{
        margin-bottom: 25px;
    }
    footer .footer-logo img {
        width: 50%;
        margin: 0 auto;
    }
      footer .footer-bottom{
        padding: 15px 0 75px!important;
    }

    footer .footer-inner .footer-contact-container .footer-contact{
        font-size: 18px!important;
    }
}

@media(max-width: 768px) {
    /* general */
    .btn-area .wp-btn{
        font-size: 16px;
    }
    header .top-logo img {
        width: 100px;
    }
    header .web-lang>li.menu-item-has-children {
        background: #DEE2EB;
        padding: 3px 5px;
    }
    header .h-left .logo img {
        width: 252px !important;
    }
    header .h-top .h-top-btn{
        font-size: 16px;
    }

    main #home-banner .section-title {
        font-size: 24px !important;
    }
    
    main #home-banner .banner-content .banner-title{
        font-size: 36px;
        text-align: center;
        margin-bottom: 25px;
    }

    main #home-piece .piece-tab-grid{
        display: grid;
        grid-template-columns: repeat(3,1fr);
    }

    main #home-piece .piece-item-content {
        padding: 5px;
    }

    main #home-piece .piece-item-title {
        font-size: 18px;
    }
    main #post-detail .post-header {
        padding: 40px 0;
        /* margin-bottom: 40px; */
        background-position: center;
        background: radial-gradient(closest-side at 50% 50%, #000 0%, #3c3e49 100%);
        margin: 0 10px 40px;
        border-radius: 25px;
    }
    /*  footer */

    footer .footer-col{
        padding: 0;
        margin-bottom: 25px;
    }

    footer .footer-center .footer-menu ul li a{
        font-size: 16px;
    }
    footer .footer-center .footer-contact-container .footer-contact{
        font-size: 16px;
    }
  
    /* other page */

    .sidebar-form .contact_form .input-area .form-in{
        padding:10px 13px!important;
    }
    .sidebar-form  .contact_form .input-area .form-in::placeholder{
        font-size:14px !important;
    }

    .sidebar-form .contact_form .form-button{
        padding: 10px !important;
    }

    /* post */

    main #post-detail .post-header .post-title{
        font-size: 32px;
    }

    /* contact */
    main #post-detail .contact-address-col .contact-page-whatsapp-btn{
        font-size: 20px;
    }

    main #post-detail .meeting-form-area{
        padding: 20px 30px;
    }
}

@media(max-width: 575px) {
    body{
        font-size: 16px!important;
    }
    header .h-left .logo img {
        width: 50vw!important;
    }

    header .h-top .h-top-inner .logo img {
        width: 250px;
    }

    main #home-banner .banner-content {
        padding-top: 115px;
    }

    main #home-banner .banner-content .banner-title {
        font-size: 28px;
        text-align: center;
        margin-bottom: 25px;
    }

    main #home-banner .banner-content .banner-form {
        padding: 27px 5px 45px 5px;
    }

    main #home-piece .piece-tab-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

  
    /* footer */
    footer .footer-logo img {
        width: 70%;
        margin: 0 auto;
    }

    footer .footer-inner .footer-menu ul li a{
        font-size: 18px;
    }
   
}
@media(max-width: 400px) {
    header .web-lang > li .lang-item{
        padding: 2px 4px !important;
    }

    /* homepage */
    main #home-banner .banner-content .banner-desc {
        font-size: 14px;
    }

    main #home-step-process .process-box {
        width: 100%;
        flex: 0 0 100%;
        margin-bottom: 25px;
    }

    main #home-process .process-tab-title{
        font-size: 14px;
    }
}

@media(max-width:991px){
    main #home-most-prefered, main #home-about, main #home-application, main #home-info-area , main #home-before-after, main #home-comments, main #home-patients-study, main #home-blog, main #home-follow{
        margin-bottom: 60px;
    } 


    main .graft-calculator {
        display: flex;
        gap: 10px;
        flex-direction: column;
    }
}

/* ========================================
   Piece Section Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    #home-piece {
        padding: 60px 0;
    }

    #home-piece .section-title-head {
        margin-bottom: 40px;
    }

    #home-piece .piece-tab-nav {
        gap: 10px;
        padding: 15px;
        margin-bottom: 40px;
    }

    #home-piece .piece-tab-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    #home-piece .row.g-4 {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    #home-piece {
        padding: 50px 0;
    }

    #home-piece .section-title-head .section-title {
        font-size: 28px;
    }

    #home-piece .section-title-head .section-desc {
        font-size: 14px;
    }

    #home-piece .section-title-head {
        margin-bottom: 30px;
    }

    #home-piece .piece-tab-nav {
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 12px 10px;
        margin-bottom: 30px;
        gap: 8px;
    }

    #home-piece .piece-tab-nav::-webkit-scrollbar {
        height: 4px;
    }

    #home-piece .piece-tab-nav::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    #home-piece .piece-tab-nav::-webkit-scrollbar-thumb {
        background: #006b9e;
        border-radius: 10px;
    }

    #home-piece .piece-tab-btn {
        padding: 8px 16px;
        font-size: 12px;
        flex-shrink: 0;
    }

    #home-piece .piece-item-card {
        border-radius: 8px;
    }

    #home-piece .piece-item-content {
        padding: 12px;
    }

    #home-piece .piece-item-title {
        font-size: 14px;
    }

    #home-piece .row.g-4 {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    /* footer */

    footer .footer-center .menu-row {
        margin-bottom: 35px;
        gap: 22px;
    }

    footer .footer-center {
        padding: 40px 0 0;
    }
}

@media (max-width: 480px) {
    #home-piece {
        padding: 40px 0;
    }

    #home-piece .section-title-head {
        margin-bottom: 20px;
    }

    #home-piece .section-title-head .section-title {
        font-size: 22px;
    }

    #home-piece .section-title-head .section-desc {
        font-size: 13px;
    }

    #home-piece .piece-tab-nav {
        border-radius: 20px;
    }

    #home-piece .piece-tab-btn {
        padding: 8px 14px;
        font-size: 11px;
        gap: 6px;
    }

    #home-piece .piece-tab-btn i {
        font-size: 14px;
    }

    #home-piece .piece-item-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    #home-piece .row.g-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    #home-piece .piece-item-title {
        font-size: 12px;
    }
}