/* SECTION */
.services {
  background: #f4f4f4;
  padding: 80px 20px;
  text-align: center;
}

/* CONTAINER */
.container-service {
  max-width: 1200px;
  margin: auto;
}

/* HEADER */
.section-header {
  margin-bottom: 50px;
}

.subtitle-service {
  font-size: 14px;
  letter-spacing: 2px;
  color: #666;
}

.section-header h2 {
  font-size: 42px;
  margin-top: 10px;
}

/* GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* CARD */
.service-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  padding-bottom: 20px;
  transition: 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* IMAGE */
.service-card img {
  width: 100%;
  height: auto; /* 👈 allow natural height */
  object-fit: contain; /* 👈 show full image */
  background: #fff; /* prevents empty space looking weird */
}

/* TEXT */
.service-card h3 {
  margin: 20px 0 10px;
  font-size: 20px;
}

.service-card p {
  padding: 0 20px;
  color: #666;
  font-size: 14px;
}

/* HOVER EFFECT 🔥 */
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


.service-card img {
  transition: 0.4s;
}

.service-card:hover img {
  transform: scale(1.1);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
}




/* HEADINGS */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif !important;
}



.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #f7f7f7;
  border-radius: 16px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  height: 100%; /* equal height cards */
}

/* 🔥 Image wrapper */
.service-card img {
  width: 100%;
  height: 220px; /* FIXED height = uniform look */
  object-fit: cover; /* crop smartly */
  display: block;
}

/* Content alignment */
.service-card h3,
.service-card p {
  padding: 0 16px;
}

.service-card h3 {
  margin-top: 16px;
}

.service-card p {
  margin-bottom: 20px;
  flex-grow: 1; /* makes all cards same height */
}


.service-card img {
  aspect-ratio: 4 / 3;
  height: auto;
}

/* GLOBAL */
.service-page-body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.service-page-body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background: #f9fafc;
}

/* CONTAINER */
.ecx-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* SECTION */
.ecx-section {
    padding: 80px 0;
}

/* TITLE */
.ecx-header {
    text-align: center;
    margin-bottom: 60px;
}

.ecx-header h1 {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(90deg, #0b63ff, #00c6ff);
    -webkit-background-clip: text;
    color: transparent;
}

/* GRID */
.ecx-grid {
    display: grid;
    gap: 30px;
}

.ecx-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ecx-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .ecx-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ecx-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .ecx-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* SERVICE CARD */
.ecx-service {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.ecx-service:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.ecx-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0b63ff, #00c6ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 22px;
}

.ecx-service h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.ecx-service p {
    font-size: 14px;
    color: #666;
}

/* FEATURE */
.ecx-feature img {
    width: 100%;
    border-radius: 12px;
}

.ecx-feature h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.ecx-feature p {
    margin-bottom: 10px;
}

/* BUTTON */
.ecx-btn {
    display: inline-block;
    padding: 12px 22px;
    background: linear-gradient(90deg, #0b63ff, #00c6ff);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 20px;
    transition: 0.3s;
}

.ecx-btn:hover {
    opacity: 0.9;
}

/* MAP */
.ecx-map iframe {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    border: none;
}

/* CONTACT CARD */
.ecx-contact {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.ecx-contact a {
    color: #0b63ff;
    text-decoration: none;
}


.ecx-icon i {
  font-size: 24px;
  color: white;
  display: inline-block;
}

.ecx-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecx-header {
    margin-bottom: 10px; /* reduce space below title */
}

header.ecx-section {
    padding-bottom: 20px; /* reduce bottom padding */
}