    /* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 60vh;
background: url("/static/main/logo/termite8.jpeg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Contact Bar ===== */
.contact-bar {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  width: 90%;
  max-width: 700px;
  background: rgba(0,0,0,0.6);
  padding: 15px 30px;
  border-radius: 10px;
  z-index: 2;
  flex-wrap: nowrap;
}

.contact-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.contact-item span {
  font-weight: 600;
}

.contact-item a {
  color: #f9b233;
  text-decoration: none;
  margin-left: 5px;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: #fff;
}

/* ===== Split Section ===== */
.split-section {
  display: flex;
  padding: 50px 5%;
  gap: 30px;
  flex-wrap: wrap;
}

/* Sidebar */
.sidebar {
  flex: 1 1 220px;
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  position: sticky;
  top: 20px;
  height: fit-content;
}

.sidebar h3 {
  margin-bottom: 20px;
  color: #222;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 15px;
}

.sidebar ul li a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s;
}

.sidebar ul li a:hover {
  color: #f9b233;
}

/* Main Content */
.main-content {
  flex: 3 1 600px;
}

/* ===== Info Section ===== */
.info-section {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 50px;
  gap: 20px;
}

.info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.info-text {
  flex: 2 1 400px;
}

.info-text p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #555;
}

.info-image {
  flex: 1 1 250px;
}

.info-image img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ===== Services Section ===== */
.services-section {
  margin-bottom: 50px;
}

.services-section h2 {
  margin-bottom: 15px;
  color: #222;
  font-size: 2rem;
}

.services-section p {
  margin-bottom: 30px;
  color: #555;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-item {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.service-item h3 {
  margin-bottom: 10px;
  color: #222;
}

.service-item p {
  color: #555;
}

/* ===== Why Choose Section ===== */
.why-choose {
  margin-bottom: 50px;
}

.why-choose h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #222;
}

.choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.choose-item {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.choose-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.choose-item h3 {
  margin-bottom: 10px;
  color: #222;
}

.choose-item p {
  color: #555;
}

/* ===== CTA Section ===== */
.cta-section {
  background: #f9b233;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  border-radius: 15px;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-button {
  background: #222;
  color: #f9b233;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.cta-button:hover {
  background: #fff;
  color: #222;
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .split-section {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    top: 0;
    width: 100%;
    margin-bottom: 30px;
  }

  .info-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero {
  position: relative;
  height: 20vh;
 
}
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  /* ✅ Hide contact bar on phones */
  .contact-bar {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

/* Why Choose Section Headings */
.why-text h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

/* Tips Section */
.tips-section {
  margin-bottom: 50px;
  background: #fff3e0;
  padding: 25px 20px;
  border-radius: 15px;
}

.tips-list li {
  margin-bottom: 10px;
  color: #555;
  font-size: 1rem;
}

/* FAQ Section */
.faq-section {
  margin-bottom: 50px;
  background: #e0f7fa;
  padding: 25px 20px;
  border-radius: 15px;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item h3 {
  color: #222;
  font-size: 1.3rem;
}

.faq-item p {
  color: #555;
  font-size: 1rem;
}

.highlight-link {
  text-decoration: none;
  color: red;
}

.sidebar ul li a.active {
  background-color:  #e68303;  
  color: #fff;
  padding:8px 15px;
  width:300px;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(43, 90, 76, 0.3);
}
/* Medium devices (≤768px) */
@media (max-width: 768px) {
  .hero {
    height: 45vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .sidebar h3 {
    font-size: 1.1rem;
  }

  .sidebar ul li a {
    font-size: 0.95rem;
  }

  .info-section h2,
  .services-section h2,
  .why-choose h2,
  .tips-section h2,
  .faq-section h2,
  .cta-section h2 {
    font-size: 1.2em;
    color:#315527;
  }
  .why-choose h3,.faq-section h3 {
      font-size:1.0em;
}
  p, li {
    font-size: 0.95rem;
  }

  .cta-button {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  /* Hide contact bar on smaller screens */
  .contact-bar {
    display: none !important;
  }
}