/* Optimized responsive stylev2.css */

.slider-bannerv2 {
  display: block;
  width: 100%;
  height: auto;
  max-height: 750px;
  overflow: hidden;
}

.social-media-list ul {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.social-media-list ul li {
  flex: 1 1 25%;
  max-width: 25%;
  text-align: center;
  padding: 5px;
}

.social-media-list img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.segment-middle, .segment-third {
  background-color: #ffffff;
  padding: 15px;
}

.about-us {
  border-radius: 5px;
  margin-bottom: 20px;
}

.about-us > .content {
  border-right: 8px solid #000;
  padding-right: 10px;
  margin-right: 0;
  text-align: justify;
}

.branches, .get-in-touch, .highlight-news {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.get-in-touch > .content {
  border-right: 8px solid #000;
  padding-right: 15px;
  margin-right: -10px;
}

.section-title {
  font-weight: bold;
  margin-bottom: 15px;
}

.highlight-news img {
  max-width: 100%;
  height: auto;
  border-radius: none;
}

.btn-dark {
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
}

.btn-dark:hover {
  background-color: #0d5208 !important;
  color: #ffffff !important;
}

.footerv2 {
  background-color: #000;
  color: #fff;
  padding: 15px;
  text-align: center;
}

.footerv2 .column-left{
  text-align: left;
  margin-bottom: 15px;
}

.footerv2 .column-right {
  text-align: right;
  margin-bottom: 15px;
}

.footerv2 .column-center{
  text-align: center;
  margin-bottom: 15px;
}

.footerv2 .social-icons i {
  font-size: 20px;
  margin: 0 8px;
  color: #fff;
}

.footerv2 .social-icons i:hover,
.footerv2 a:hover {
  color: #ddd;
}

.footerv2 .bordered-section {
  border-left: none;
  padding-left: 0;
}

.branch-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.branch-title {
  font-weight: bold;
  margin: 10px 0;
}

.branch-links .link-btn {
  display: block;
  text-align: center;
  padding: 10px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  border-radius: 5px;
}

.branch-links .link-btn:hover {
  background-color: #333;
}

.chevrons button {
  background-color: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.branchesv2 {
  padding: 20px 10px;
  background: #b7b0b0;
}

.branchesv2tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 10px;
  justify-content: center;
}

.branchesv2tabs button {
  background-color: #0d5208;
  color: white;
  border: none;
  padding: 8px 15px;
  margin: 5px;
  cursor: pointer;
  border-radius: 5px;
}

.branchesv2tabs button.active {
  background-color: black;
} 

  .nav-toggle-btn {
    display: none !important;
  }
  .nav-menu-listv2 .close-btn {
    display: none !important;
  }


/* iPad Air and iPad Pro specific media query */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) {

.top-news {
  margin-top: 50px;
}
  .slider-banner {
    height: 400px;
    margin-bottom: -25px;
  }
  /* Navbar adjustments */
  .nav-toggle-btn {
    display: block !important;
    top: 15px;
    right: 15px;
    font-size: 26px;
  }

  .about-us > .content {
    height: 170px !important;
  }

  .nav-menu-listv2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .nav-menu-listv2.open {
    display: flex;
  }

  .nav-menu-listv2 li a {
    font-size: 22px;
  }

  /* Social media adjustments */
  .social-media-list ul li {
    flex: 1 1 25%;
    max-width: 25%;
  }

  .social-media-list img {
    max-width: 180px;
  }
}

@media (max-width: 991px) {
  .floating-box {
    display: none !important;
  }
  .nav-toggle-btn {
    display: block !important;
  }
  nav.nav-header {
    margin-top: -5px;
  }

  .nav-header {
    position: relative;
  }

  .nav-menu-listv2 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .nav-menu-listv2.open {
    display: flex;
  }

  .nav-menu-listv2 li {
    text-align: center;
    padding: 15px 0;
  }

  .nav-menu-listv2 li a {
    color: #fff;
    font-size: 20px;
    display: block;
  }

  .nav-toggle-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
  }

  .nav-menu-listv2 .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
  }

  .social-media-list ul li {
    flex: 1 1 50%;
    max-width: 50%;
  }
  .segment-middle, .segment-third, .branches, .get-in-touch, .highlight-news, .branchesv2 {
    padding: 10px;
  }

  .news-container{
    padding: 0px !important;
  }
  .about-us {
    padding: 0px !important;
  }
  .get-in-touch {
    padding: 0px !important;
  }

  .footerv2 {
    padding: 10px;
  }

  .footerv2 .social-icons i {
    font-size: 18px;
  }

  .slider-bannerv2 {
    height: auto;
  }

  .get-in-touch > .content {
    border-right: none;
    padding-right: 10px;
    margin-right: 0;
  }
  .about-us > .content {
    border-right: none;
    padding-right: 10px;
    margin-right: 0;
  }
  .social-media-list {
    margin-top:30px;
  }
  .branchesv2 {
    padding: 0px;
  }
  .branches-row {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .news-container{
    padding: 0px !important;
  }
  .about-us {
    padding: 0px !important;
  }
  .get-in-touch {
    padding: 0px !important;
  }
  .nav-toggle-btn {
    display: block !important;
  }
  nav.nav-header {
    margin-top: -5px;
  }
  .nav-header {
    position: relative;
  }

.nav-menu-listv2 {
    display: none;
    position: fixed; /* fixed ensures full viewport coverage */
    top: 0;          /* aligns to top edge */
    left: 0;         /* aligns to left edge */
    width: 100vw;    /* explicitly sets width to viewport width */
    height: 100vh;   /* explicitly sets height to viewport height */
    background: rgba(0,0,0,0.9);
    flex-direction: column;
    justify-content: top;
    align-items: center;
    padding: 10px 0;
    z-index: 9999;
}

  .nav-menu-listv2.open {
    top: 50px;
    display: list-item;
  }

  .nav-menu-listv2 li {
    text-align: center;
    width: 100%;
    padding: 10px 0;
  }

  .nav-menu-listv2 li a {
    color: #008001;
    display: block;
    line-height: 1em;
  }

  .nav-toggle-btn {
    display: block !important;
    position: absolute;
    right: 15px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 24px;
    color: #008001;
    cursor: pointer;
    z-index: 10000;
  }

  .social-media-list ul li {
    flex: 1 1 50%;
    max-width: 50%;
  }
  .segment-middle, .segment-third, .branches, .get-in-touch, .highlight-news, .branchesv2 {
    padding: 10px;
  }

  .footerv2 {
    padding: 10px;
  }

  .footerv2 .social-icons i {
    font-size: 18px;
  }

  .slider-bannerv2 {
    height: auto;
  }

  .footerv2 .column-left,
  .footerv2 .column-right,
  .footerv2 .column-center {
    text-align: center;
  }

  .get-in-touch > .content {
    border-right: none;
    padding-right: 10px;
    margin-right: 0;
  }
  .about-us > .content {
    border-right: none;
    padding-right: 10px;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
    section.page-section {
      padding-top: 0px !important;
    }  
    .news-item > .col-xs-4 {
      padding: 0px !important;
    }
    .news-item > .col-xs-8 > h3 {
      margin-top: 0px;
    }
  .main-news {
    margin-bottom: 30px;
  }
  .branchesv2tabs button {
    padding: 6px 10px;
    font-size: 12px;
  }

  .btn-dark, .branch-links .link-btn {
    padding: 8px;
    font-size: 12px;
  }
.social-media-list ul li {
        flex: 1 1 25%;
        max-width: 25%;
    }
  .social-media-list img {
    max-width: 100px;
  }
}
