/* Maali The Garden Experts HTML Template*/

@media only screen and (max-width: 1440px) {
  .gallery-section .gallery-item {
    width: 25%;
  }
}

@media only screen and (min-width: 768px) {
  .main-6 .navigation>li>ul, .main-6 .navigation>li>ul>li>ul {
    display: block !important;
    visibility: hidden;
    opacity: 0;
  }
}

/****************************************************************************
(800 X 600) + (768 X 1024)
****************************************************************************/

@media only screen and (min-width: 1201px) and (max-width: 1231px) {
  .top_bar .top_btn {
    margin-right: 2px;
  }
}

/****************************************************************************
(800 X 600) + (768 X 1024)
****************************************************************************/

@media only screen and (max-width: 1024px) {
  .footer .input_email {
    width: 40%;
    padding: 15px 25px;
    margin: 25px 160px;
    position: absolute;
    top: -60px;
  }
  .footer .input_sub {
    width: 40%;
    float: right;
    position: relative;
    top: -100px;
    margin-right: 100px;
  }
}

@media only screen and (min-width: 1051px) and (max-width: 1200px) {
  .top_bar .row>div:first-child {
    width: 40%;
  }
  .top_bar .row>div:last-child {
    width: 60%;
  }
  nav ul li a {
    font-size: 11px;
  }
}

@media (max-width: 991px) {

}

@media (min-width: 768px) {
  .header_bottom.home1 .responsive_center {
    text-align: right;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1200px) {}


/****************************************************************************
    (800 X 600) + (768 X 1024)
****************************************************************************/

@media only screen and (min-width: 768px) and (max-width: 1050px) {
  .col-sm-7.col-md-7.text-end {
    display: none;
  }
  .top_bar .top_btn {
    margin-right: 0;
  }
}

@media only screen and (min-width: 375px) and (max-width: 768px) {
  .responsive_margin {
    margin-top: 40px;
  }
  .welcome_top {
    padding-left: 10px;
  }
  .top_social_bar {
    padding-right: 10px;
  }
  .header_form {
    display: none;
  }
  .responsive_button {
    width: 100%;
  }
}

@media only screen and (min-width: 801px) and (max-width: 1050px) {
  .responsive_button {
    display: block;
  }
}

/****************************************************************************
(768)
****************************************************************************/

@media only screen and (max-width: 1024px) {
  .top_bar, .top_bar .text-end {
    height: auto;
    text-align: center !important;
  }
  #banner-logo {
    height: 40px;
  }
  #home-m130-video-box {
    height: 750px;
  }
  #home-news-3 {
    display: none;
  }
  
  /* Hero video responsive adjustments */
  .hero-video-wrapper {
    height: 46.67vh;
    min-height: 333px;
  }
  
  /* Hero section tablet optimizations */
  .hero-overlay {
    padding: 40px 0;
  }
  
  .hero-overlay .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.3;
    padding: 0 20px;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
    padding: 0 20px;
  }
  
  .hero-buttons {
    padding: 0 20px;
  }
  
  .hero-buttons .btn {
    padding: 10px 25px;
    font-size: 1rem;
    white-space: nowrap;
  }
}

@media only screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }
  h1 {
    font-size: 18px;
    line-height: normal;
  }
  h2, h3 {
    font-size: 16px;
    line-height: normal;
  }
  h4 {
    font-size: 14px;
    line-height: normal;
  }
  .container h3 {
    font-size: 26px;
  }
  
  /* Hero section mobile optimizations */
  .hero-overlay {
    padding: 30px 0 !important;
  }
  
  .hero-overlay .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .hero-title {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
    padding: 0 15px !important;
    word-wrap: break-word;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    padding: 0 15px !important;
    word-wrap: break-word;
  }
  
  .hero-buttons {
    padding: 0 15px !important;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
  }
}

@media only screen and (min-width: 768px) and (max-width: 800px) {
  .top_bar {
    padding: 10px 0px;
  }
  .res_btn-5 {
    background: #abd02f;
  }
  header nav {
    display: none;
  }
  .responsive_button {
    display: block;
  }
  .responsive_nav.navbar-collapse {
    margin-bottom: 10px;
  }
  header form {
    display: none;
  }
  header .button {
    float: none;
  }
  .responsive_button .navbar-toggle {
    display: block;
  }
}

/****************************************************************************
    (601 X 767)
****************************************************************************/

@media only screen and (max-width: 667px) {
  html {
    overflow-x: hidden;
  }
  .footer {
    text-align: center;
  }
}

@media only screen and (min-width: 701px) and (max-width: 767px) {
  .team_imge_t {
    display: block;
  }
  .top_bar {
    padding: 10px 0px;
  }
  .top_bar .top_btn {
    margin-bottom: 10px;
  }
  .cart_info {
    padding-top: 0px;
  }
  .header_bottom {
    height: auto;
  }
  header nav {
    display: none;
  }
  .responsive_button {
    display: block;
  }
  .responsive_nav.navbar-collapse {
    margin-bottom: 10px;
  }
  footer {
    height: auto;
    padding: 30px 0;
    line-height: normal;
    text-align: center;
  }
  footer p {
    color: #8d949a;
    line-height: 26px;
    margin-bottom: 20px;
  }
  footer .social_icon {
    text-align: center;
  }
}

@media only screen and (max-width: 575px) {
  .mail_text {
    display: block;
  }
  /* 只在非 hero section 中隐藏 banner-logo */
  .hero-section #banner-logo {
    display: block !important;
  }
  #banner-more-btn {
    display: none;
  }
  .container h3 {
    font-size: 24px;
  }
  .home-more-btn-align {
    margin-top: 20px;
    text-align: center;
  }
}

/****************************************************************************
    (480 X 600)
****************************************************************************/

@media only screen and (min-width: 481px) and (max-width: 700px) {
  p {
    font-size: 16px;
  }
  .top_bar {
    padding: 10px 0px;
  }
  .top_bar .top_btn {
    margin-bottom: 10px;
  }

  header nav {
    display: none;
  }
  .responsive_button {
    display: block;
  }
  .responsive_nav.navbar-collapse {
    margin-bottom: 10px;
  }
  footer {
    height: auto;
    padding: 30px 0;
    line-height: normal;
    text-align: center;
  }
  footer p {
    color: #8d949a;
    line-height: 26px;
    margin-bottom: 20px;
  }
  footer .social_icon {
    text-align: center;
  }
}

/****************************************************************************
    (320 X 480)
****************************************************************************/

@media only screen and (max-width: 480px) {
  p {
    font-size: 14px;
  }
  .page_title h1 {
    font-size: 30px;
  }
  
  /* Hero video mobile adjustments */
  .hero-video-wrapper {
    height: 50vh;
    min-height: 300px;
  }
  
  /* Hero section mobile optimizations */
  .hero-overlay {
    padding: 30px 0 !important;
  }
  
  .hero-overlay .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .hero-logo {
    max-height: 50px !important;
    margin-bottom: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .hero-title {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
    padding: 0 10px !important;
    word-wrap: break-word;
  }
  
  .hero-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 10px !important;
    word-wrap: break-word;
  }
  
  .hero-buttons {
    padding: 0 10px !important;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .hero-buttons .btn i {
    font-size: 0.9rem !important;
    margin-right: 5px !important;
  }
  .team_imge_t {
    display: none;
  }
  .top_bar .top_btn {
    margin-right: 0px;
  }
  header nav {
    display: none;
  }
  .responsive_button {
    display: block;
  }
  .responsive_nav.navbar-collapse {
    margin-bottom: 10px;
  }
  
  /* Enhanced Footer Mobile Styles */
  .footer_inner {
    padding: 30px 15px;
  }
  
  .footer_widget {
    margin-bottom: 25px;
    text-align: center;
  }
  
  .footer_widget h5 {
    font-size: 15px;
    margin-bottom: 15px;
    color: #fff !important;
  }
  
  .footer_widget p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #cccccc;
    word-wrap: break-word;
    hyphens: auto;
  }
  
  .footer_widget p i {
    font-size: 14px;
    margin-right: 6px;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
  }
  
  footer {
    height: auto;
    padding: 20px 15px;
    line-height: normal;
    text-align: center;
  }
  footer p {
    color: #fff;
    line-height: 1.4;
    margin-bottom: 8px;
    font-size: 11px;
    word-wrap: break-word;
    hyphens: auto;
  }
  footer .social_icon {
    text-align: center;
  }
  /*  */
  .seaction_margin{
    margin-bottom: 45px;
  }
  .img-explanation3 {
    display: none;
  }
  .img-explan-feat {
    display: none;
  }
  .page_title {
    height: 140px;
    margin-bottom: 48px;
  }
  .container h1 {
    font-size: 28px;
  }
  .container h4 {
    font-size: 24px;
  }
  .overlay-container {
    height: 260px;
  }
  #home-m130-video-box {
    height: 540px;
  }
  #home-news-summary {
    display: none;
  }
}

@media only screen and (max-width: 360px) {
  .box_padding {
    padding: 10px 30px;
  }
  .big-column {
    padding: 0 20px;
  }
  
  /* Extra small mobile footer optimizations */
  .footer_inner {
    padding: 25px 10px;
  }
  
  .footer_widget p {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .footer_widget h5 {
    font-size: 14px;
  }
  
  footer p {
    font-size: 10px;
    line-height: 1.3;
  }
  
  /* Extra small hero section optimizations */
  .hero-video-wrapper {
    height: 45vh !important;
    min-height: 280px !important;
  }
  
  .hero-overlay {
    padding: 20px 0 !important;
  }
  
  .hero-title {
    font-size: 1.3rem !important;
    padding: 0 8px !important;
  }
  
  .hero-subtitle {
    font-size: 0.85rem !important;
    padding: 0 8px !important;
  }
  
  .hero-buttons {
    padding: 0 8px !important;
  }
  
  .hero-buttons .btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }
  
  .hero-buttons .btn i {
    font-size: 0.85rem !important;
    margin-right: 4px !important;
  }
  
  .bottom-cta-section h2 {
    font-size: 1.3rem !important;
    padding: 0 10px !important;
  }
  
  .bottom-cta-section p {
    font-size: 0.85rem !important;
    padding: 0 10px !important;
  }
  
  .contact-actions {
    padding: 0 10px !important;
  }
  
  .contact-actions .btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .res_nav-4 {
    margin-top: 0;
  }
}

/* Side-Swing Section Responsive Styles */
@media only screen and (max-width: 768px) {
  .side-swing-section {
    padding-bottom: 2rem !important;
  }
  
  .side-swing-content h3 {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem;
  }
  
  .side-swing-content .lead {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .render-gallery {
    padding: 0.5rem;
    margin-bottom: 2rem;
  }
  
  .render-image-wrapper {
    padding: 1.5rem !important;
  }
  
  .render-image-label {
    font-size: 0.8rem !important;
    padding: 0.4rem 1rem !important;
    bottom: 0.75rem !important;
  }
  
  .render-thumb-image {
    height: 150px;
  }
  
  .benefit-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .benefit-item h5 {
    font-size: 1rem;
  }
  
  .benefit-item p {
    font-size: 0.9rem;
  }
}

@media only screen and (max-width: 480px) {
  .side-swing-section {
    padding-bottom: 1.5rem !important;
  }
  
  .side-swing-section .section-title {
    font-size: 1.8rem !important;
  }
  
  .side-swing-section .section-subtitle {
    font-size: 1rem !important;
  }
  
  .render-image-wrapper {
    padding: 1rem !important;
  }
  
  .render-image-label {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.85rem !important;
    bottom: 0.5rem !important;
  }
  
  .render-thumb-image {
    height: 120px;
  }
  
  .side-swing-content h3 {
    font-size: 1.3rem !important;
  }
  
  .side-swing-content .lead {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    padding: 0 0.25rem;
  }
}