/* ===============================
   Theme override : Lead Acid
   =============================== */

:root {
  --theme-color: #399a21;
}
/*--------------------------------------------------------------
# Hero2 (Same behavior as Hero)
--------------------------------------------------------------*/
#hero2 {
  width: 100%;
   height: 45vh;
  min-height: 360px;                /* ใกล้ hero เดิม */
  background-color: rgba(9,9,9,0.8);
  overflow: hidden;
  position: relative;
  margin-top: 0;                /* 🔴 สำคัญ */
  padding: 0;
}

/* background image */
#hero2 .hero2-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* overlay แบบ hero */
#hero2 .hero2-overlay {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

/* container = carousel-container */
#hero2 .hero2-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  inset: 0;
  left: 50px;
  right: 50px;
  z-index: 3;
}

/* text */
#hero2 .container {
  text-align: center;
  text-shadow: 1px 1px 2px #000;
}

#hero2 h2 {
  color: #fff;
  font-size: 40px;
  margin-bottom: 12px;
  font-weight: 600;
}

#hero2 p {
  margin: 0 auto 20px auto;
  color: #fff;
  font-size: 26px;
}

/* 🔴 ปุ่ม = hero เดิม */
#hero2 .btn-get-started {
  font-family: "Prompt", sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  transition: 0.5s;
  line-height: 1;
  color: #fff;
  background: #399a21;
}

#hero2 .btn-get-started:hover {
  background: #6fc02f;
}

/* responsive */
@media (max-width: 992px) {
  #hero2 {
     height: 50vh;
  min-height: 360px; 
  }

  #hero2 .hero2-container {
    top: 66px; /* เหมือน hero */
  }
}

@media (max-width: 768px) {
  #hero2 {
    height: 45vh;
    min-height: 300px;
  }

  #hero2 h2 {
    font-size: 26px;
  }

  #hero2 p {
    font-size: 20px;
  }
}
/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 40px 0;
}

.section-bg {
  background-color: #f2f2f2;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color:#00569c;
}

.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: #399a21;
  bottom: 0;
  left: calc(50% - 20px);
}

.section-title p {
  margin-bottom: 0;
  font-size: 20px;
  color: #444444;
}
.featured-services .icon {
  margin-bottom: 15px;
}

.featured-services .icon i {
  color: #2F7F1B;
  font-size: 42px;
}
.featured-services .icon i.fa{
  color: #2F7F1B;
  font-size: 42px;
}
/*     */
.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #2F7F1B;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #2F7F1B;
}

.certificates {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

/* ดันปุ่มไปขวาสุด */
.cert-actions{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* cert list */
.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.cert-list img {
  max-height: 30px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: 0.3s;
}

.cert-list img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ปุ่ม */
.btn-quote {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid #053775;
  border-radius: 25px;
  color: #053775;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.btn-quote:hover {
  background: #053775;
  color: #fff;
}

/* download icon */
.cert-download img{
  height: 60px;
  transition: 0.3s;
}

.cert-download img:hover{
  transform: translateY(-3px);
  opacity: 0.8;
}

.product-title {
  display: flex;
  align-items: center;   /* จัดให้อยู่กึ่งกลางแนวตั้ง */
  gap: 12px;             /* ระยะห่างระหว่างข้อความกับโลโก้ */
}

.product-title h2 {
	font-size:30px;
	color:#00569c;
  margin: 0;             /* กันไม่ให้ h2 ดันบรรทัด */
  padding-bottom : 20px;
}

.product-title img {
  height: 40px;          /* ปรับขนาดโลโก้ตามต้องการ */
  width: auto;
}
.compare {
  background: #f5f7fa;
  padding: 40px 20px;
  text-align: center;
}

.compare h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.compare-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: auto;
}

.col {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.col h3 {
  font-size: 30px;
  margin-bottom: 15px;
}

.buy h3 { color: #1f3c88; }
.rent h3 { color: #f57c00; }

.col ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.col li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}
/*--------------------------------------------------------------
# Cta
--------------------------------------------------------------*/
.cta {
  background: linear-gradient(135deg, #06202b, #2f5c66);
  padding: 40px 0;
}
.cta h2 {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
}

.cta .cta-btn:hover {
  background: #fff;
  color: #000;
}
/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services h4 {
  font-size: 18px;
  color: #00569c;
}

.services p {
  font-size: 15px;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #555555;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #6fc02f;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}
/*--------------------------------------------------------------
# footer
--------------------------------------------------------------*/
#footer .social-links {
  margin: 0 0 40px 0;
}

#footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #2F7F1B;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .social-links a:hover {
  background: #fff;
  color: #2F7F1B;
  text-decoration: none;
}
/* Footer Headline */
#footer h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

#footer h3::after {
  content: "";
  width: 40px;
  height: 2px;
  background: #2F7F1B;
  position: absolute;
  left: 0;
  bottom: 0;
}

/* Footer Links */
.footer-links ul,
.footer-branch ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li,
.footer-branch ul li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #fff;
  padding-left: 5px;
}

/* Branch style */
.footer-branch strong {
  color: #fff;
  font-weight: 600;
}

.footer-branch li,
.footer-branch li a {
 color: #fff;
}
.footer-branch li a:hover {
 color: #2F7F1B;
}
/* -----------Download File------------ */
.download-popup{
width:420px;
padding:10px;
text-align:center;
}

.download-popup h3{
margin-bottom:20px;
color:#00569c;
font-weight:600;
}

.download-popup input{
width:100%;
padding:7px;
margin-bottom:15px;
border-radius:8px;
border:1px solid #d9d9d9;
font-size:15px;
outline:none;
transition:all .2s;
}

.download-popup input:focus{
border-color:#00569c;
box-shadow:0 0 0 2px rgba(15,59,117,.1);
}

.popup-buttons{
display:flex;
gap:15px;
margin-top:10px;
}

.btn-confirm{
flex:1;
padding:7px;
background:#123e7a;
color:white;
border:none;
border-radius:8px;
font-weight:600;
cursor:pointer;
transition:.2s;
}

.btn-confirm:hover{
background:#0d2f5c;
}

.btn-cancel{
flex:1;
padding:14px;
background:#e9e9e9;
border:none;
border-radius:8px;
font-weight:600;
cursor:pointer;
color:#555;
transition:.2s;
}

.btn-cancel:hover{
background:#dcdcdc;
}
.fancybox__content{
border-radius:14px;
}
/* ================= battery-qt-banner ================= */
.battery-qt-banner{
    position: relative;
    background-image: linear-gradient(
        90deg,
        rgba(0,0,0,0.65) 0%,
        rgba(0,86,156,0.85) 55%,
        rgba(0,110,190,0.95) 100%
    ),
    url('../img/slide/mtr-forklift-battery.jpg');
    
    background-size: cover;
    background-position: center;
    
    padding: 90px 0;
    color: #fff;
}
.battery-qt-banner .container{
    max-width:1200px;
    margin:auto;
    padding:0 20px;
}

.banner-content{
    display:flex;
    justify-content:flex-end;
}

.banner-text{
    max-width:650px;
}

.banner-text h2{
    font-size:36px;
    font-weight:600;
    margin-bottom:15px;
}

.banner-text p{
    font-size:18px;
    margin-bottom:25px;
    opacity:0.95;
}

.btn-qt{
    display:inline-block;
    padding:14px 32px;
    background:#6fc02f;
    border-radius:8px;
    color:#fff;
    text-decoration:none;
    font-weight:600;
    font-size:16px;
    transition:0.3s;
    box-shadow:0 6px 15px rgba(0,0,0,0.2);
}

.btn-qt:hover{
    background:#399a21;
    transform:translateY(-2px);
	color:#fff;
}
@media (max-width:768px){

.banner-content{
    justify-content:center;
    text-align:center;
}

.banner-text h2{
    font-size:28px;
}

.banner-text p{
    font-size:16px;
}

.battery-qt-banner{
    padding:60px 0;
}

}