/* ===== ABOUT HERO SECTION ===== */
.about-hero {
  position: relative;
  width: 100%;
  height: 420px;
  background-image: url("../image/temple\ 2.jpeg"); /* change image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.about-hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 2;
}

.about-hero-content h1 {
  font-size: 64px;
  font-weight: 500;
  margin-bottom: 10px;
  font-family: "Playfair Display", serif;
}

.about-hero-content p {
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .about-hero {
    height: 300px;
  }

  .about-hero-content h1 {
    font-size: 40px;
  }
}

.container-xxl {
  position: relative;
  z-index: 2;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1550px; /* wider hero container for large screens */
  }
}

/* ================= TEAM SECTION ================= */
.team-section {
  padding: 80px 20px;
  text-align: center;
  background-image: url("../image/m2.png"); /* path to your image */
  background-size: 50%; /* adjust as needed */
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  color: #fff;
}

.team-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 244, 240, 0.926); /* light overlay */
  z-index: 1;
}

.container-xxl {
  position: relative;
  z-index: 2; /* above overlay */
}

.section-header .small-text {
  font-size: 14px;
  color: #8c7564;
  margin-bottom: 10px;
}

.section-header .main-title {
  font-size: 36px;
  color: #4b2e23;
  font-weight: 600;
}

.section-header .main-title .highlight {
  background-color: #4b2e23;
  color: #fff;
  padding: 0 5px;
}

/* ========== TEAM GRID ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 per row */
  gap: 30px;
  margin-top: 40px;
  justify-content: center; /* center the last row */
}

/* Center the last row if it has fewer items */
.team-grid::after {
  content: "";
  flex: auto;
}

/* Tablet: 2 per row */
@media (max-width: 991px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center; /* center last row */
  }
}

/* Mobile: 1 per row */
@media (max-width: 575px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ========== TEAM CARD ========== */

.team-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
  width: 80%;
  height: 43vh;
}

.team-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 280px;
}

.team-info {
  background: rgba(75, 46, 35, 0.9);
  color: #fff;
  padding: 15px;
}

.team-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.team-info p {
  font-size: 14px;
  line-height: 1.4;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
/* ===== LAPTOP RESPONSIVE (1024px – 1366px) ===== */
@media (min-width: 1024px) and (max-width: 1366px) {
  .team-section {
    padding: 70px 30px;
    background-size: 45%;
  }

  .section-header .small-text {
    font-size: 13px;
  }

  .section-header .main-title {
    font-size: 32px;
    line-height: 1.25;
  }

  .section-header .main-title .highlight {
    padding: 0 6px;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row on laptop */
    gap: 25px;
    margin-top: 35px;
  }

  .team-card {
    border-radius: 10px;
  }

  .team-card img {
    height: 230px;
    object-fit: cover;
  }

  .team-info {
    padding: 14px;
  }

  .team-info h3 {
    font-size: 17px;
  }

  .team-info p {
    font-size: 13px;
    line-height: 1.5;
  }

  .container-xxl {
    max-width: 1200px;
  }
}
/* ===== MOBILE RESPONSIVE (≤ 991px) ===== */
@media (max-width: 991px) {
  .team-section {
    padding: 60px 15px;
    background-size: 70%;
  }

  .section-header {
    margin-bottom: 25px;
  }

  .section-header .small-text {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .section-header .main-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .section-header .main-title .highlight {
    padding: 0 6px;
    display: inline-block;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
    gap: 16px;
    margin-top: 30px;
  }
  .team-card{
    height: 300px;
    width: 300px;
    margin-left: 8px;
  }

  .team-card img {
    height: 220px;
    object-fit: cover;
      object-position: center 10%;

  }

  .team-info {
    padding: 12px;
  }

  .team-info h3 {
    font-size: 16px;
  }

  .team-info p {
    font-size: 13px;
    line-height: 1.4;
  }
}

/* ===== SMALL MOBILE PHONES (≤ 575px) ===== */
@media (max-width: 575px) {
  .team-section {
    padding: 50px 12px;
    background-size: 90%;
  }

  .section-header .small-text {
    font-size: 11px;
  }

  .section-header .main-title {
    font-size: 24px;
  }

  .team-grid {
    grid-template-columns: 1fr; /* 1 per row */
    gap: 14px;
    
  }

  .team-card {
    border-radius: 10px;
   
  }

  .team-info h3 {
    font-size: 15px;
  }

  .team-info p {
    font-size: 12px;
  }
}
/* ================= OTHER STYLING ================= */
body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f2ed;
}

/* Info cards below team section (unchanged) */
.container {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.info-card {
  flex: 1 1 300px;
  padding: 30px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-card.connect {
  background-color: #4d2f22;
}

.info-card.communicate {
  background-color: #f1ece7;
  color: #7d4b20;
}

.info-card.locate {
  background-color: #d9672c;
}

.info-card .icon {
  font-size: 40px;
  margin-bottom: 10px;
  display: flex;
  justify-content: left;
  align-items: center;
}

.info-card .icon img {
  width: 80px;
  height: auto;
}

.info-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.info-card p {
  margin: 0;
  line-height: 1.6;
}

.info-card .phone {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 10px;
}

.contact-btn {
  padding: 10px 25px;
  border: none;
  border-radius: 50px;
  background-color: #d9672c;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 10px;
}

.contact-btn:hover {
  background-color: #c65c28;
}

/* Responsive info-cards below team section */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    gap: 15px;
  }
}