/* Mining Services Section */
.mining-services-section {
  background: #fefefe;
  padding: 4rem 0;
  overflow-x: hidden !important; /* Prevent horizontal scrolling */
}

/* Grid container untuk card */
.mining-services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid; /* Gunakan grid, lebih rapi */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
  gap: 2rem; /* jarak antar card */
  width: 100%; /* penting supaya tidak overflow */
  box-sizing: border-box;
}

/* Card style */
.mining-service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px; /* biar tingginya seragam */
}

.mining-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Gambar dalam card */
.service-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mining-service-card:hover .service-image img {
  transform: scale(1.05);
}

/* Bagian isi card */
.service-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #c1964c, #b8863d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.mining-service-card h3 {
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.service-more {
  display: none;
  color: #b8863d;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
}

.service-more:hover {
  color: #9c6f2c;
  text-decoration: underline;
}

/* Section Header */
.mining-services-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.mining-services-section .section-header h4 {
  color: #c1964c;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.mining-services-section .section-header h2 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  font-weight: 700;
}

.mining-services-section .section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
}

/* Hilangkan scroll bar dan panah di bawah card */
.mining-services-container::-webkit-scrollbar {
display: none;
}

/* Responsif */
@media (max-width: 1024px) {
  .mining-services-container {
    grid-template-columns: repeat(2, 1fr); /* 2 kolom per baris di tablet */
    gap: 1.5rem;
  }

  .mining-service-card {
    min-height: 450px;
  }

  .service-image img {
    height: auto;
    max-height: 200px;
    object-fit: contain;
  }
}

@media (max-width: 768px) {
  .mining-services-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1rem;
  }

  .service-image {
    height: 190px;
  }

  .mining-service-card {
    min-height: auto;
    max-width: 100%;
  }

  .service-content {
    padding: 1.35rem 1.25rem 1.25rem;
  }

  .service-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
  }

  .service-icon i {
    font-size: 1.2rem;
  }

  .mining-service-card h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.65rem;
  }

  .service-content p {
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .mining-services-container {
    gap: 1rem;
    padding: 0 0.85rem;
  }

  .mining-service-card {
    border-radius: 16px;
    min-height: auto;
  }

  .service-image {
    height: 170px;
  }

  .mining-services-section .section-header {
    padding: 0 1rem;
  }

  .mining-services-section .section-header h4 {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
  }

  .service-content {
    padding: 1.15rem 1rem 1rem;
  }

  .service-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 0.85rem;
  }

  .service-icon i {
    font-size: 1rem;
  }

  .mining-service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.55rem;
  }
}
/* Responsive Design */

/* Tablet */
@media (max-width: 992px) {
    .mining-services-section .section-header h2 {
        font-size: 1.75rem;
    }

    .mining-service-card .service-image img {
        height: 160px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .mining-services-section {
        padding: 3rem 1rem;
    }

    .mining-services-container {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .mining-services-section .section-header h2 {
        font-size: 1.5rem;
    }

    .mining-service-card .service-image img {
        height: 100%;
    }

    .mining-service-card h3 {
        font-size: 1rem;
    }

    .service-content p {
        font-size: 0.88rem;
        margin-bottom: 0;
    }

    .service-description {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    .service-description.is-expanded {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .service-more {
        display: inline-block;
        margin-top: 0.7rem;
        font-size: 0.85rem;
    }
}
