/* ========================
 Layout Corrections: Hero, Buttons & Areas
======================== */

/* ------------------------
 Hero Slider Fix
------------------------ */
.hero-slider,
.hero-banner {
  height: 70vh;        /* reasonable height for desktop */
  max-height: 500px;   /* prevent overspreading on large screens */
  overflow: hidden;
  position: relative;
}

.slide-text,
.hero-text {
  padding: 20px;
  max-width: 90%;
  text-align: center;
  word-wrap: break-word;
}

.slide-text h2,
.hero-text h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 15px;
}

.slide-text p,
.hero-text p {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto 20px auto;
}

/* Hero Buttons */
.slide-text .btn-primary {
  display: inline-block;
  margin: 8px 5px;
  padding: 10px 20px;
  font-size: 1rem;
  white-space: normal; /* allow wrapping on smaller screens */
}

/* Slider Arrows */
.slider-btn {
  font-size: 24px;
  padding: 10px 14px;
  border-radius: 50%;
}

/* ------------------------
 Services & Cards Fix
------------------------ */
.service-cards {
  gap: 20px;
}

.card {
  max-width: 280px;
  margin: 0 auto;
  padding: 15px;
  text-align: center;
}

.card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ------------------------
 Areas Section Fix
------------------------ */
.areas h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 25px;
}

.area-cards {
  display: grid;
  gap: 20px;
}

.area-card {
  padding: 15px;
}

.area-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.area-card h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-top: 10px;
}

/* ------------------------
 Mobile Adjustments
------------------------ */
@media (max-width: 768px) {

  /* Hero slider smaller on mobile */
  .hero-slider,
  .hero-banner {
    height: 55vh;
    max-height: 400px;
  }

  /* Hero text smaller */
  .slide-text h2,
  .hero-text h2 {
    font-size: 1.5rem;
  }

  .slide-text p,
  .hero-text p {
    font-size: 0.95rem;
    max-width: 90%;
  }

  /* Hero buttons stack */
  .slide-text .btn-primary {
    display: block;
    width: 80%;
    margin: 10px auto;
    padding: 8px 16px;
    font-size: 0.95rem;
  }

  /* Slider arrows smaller */
  .slider-btn {
    font-size: 20px;
    padding: 8px 12px;
  }

  /* Areas section text smaller */
  .areas h2 {
    font-size: 1.6rem;
  }

  .area-card h3 {
    font-size: 1rem;
  }
}
