/* =========================================
   SERVICES SECTION
   ========================================= */

.services-section {
  background-color: var(--color-tertiary); /* light background */
  padding: 60px 20px;
 
}

.services-container {
  max-width: 1300px;
  margin: 0 auto;
   
}

/* ---------- TOP CONTENT ---------- */

.services-header {
  text-align: center;
  margin-bottom: 50px;
}

.services-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px !important;
  margin-bottom: 12px;
  color: var(--color-text-black);
}

.services-desc {
  font-size: 16px;
  color: var(--color-text-black);
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- GRID ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---------- CARD ---------- */

.service-card {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  position: relative;
  overflow: hidden;

  background-color: var(--color-text-white);
  border-radius: 12px;
  padding: 28px 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  cursor: pointer;

  z-index: 1; /* 🔑 CREATE STACKING CONTEXT */
}



.service-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background-color: var(--color-primary); /* F1F2FA */

  /* Start from bottom-right */
  transform: translate(100%, 100%);
  transition: transform 0.45s ease;

  z-index: -1;
}



.service-card img {
  width: 36px;
  height: 36px;
  
  flex-shrink: 0;
}

.service-card span {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
}


.service-card:hover span {
  color: var(--color-text-white);
}



/* Hover (optional polish) */
/* .service-card:hover {
  background-color: var(--color-tertiary); 
  transform: scale(1.06);                  
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
} */

.service-card:hover::before {
  transform: translate(0, 0);
}



/* =========================================
   RESPONSIVENESS
   ========================================= */

/* Tablet */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-title {
    font-size: 30px;
  }
}

/* Mobile */
@media (max-width: 500px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-section {
    padding: 60px 16px;
  }

  .services-title {
    font-size: 26px;
  }

  .service-card {
    padding: 20px 16px;
  }
}





































/* =========================================
   SERVICE DETAIL SECTION
========================================= */

.service-detail-section {
  background-color: var(--color-text-white);
  padding: 60px 20px;
}

.service-detail-container {
  max-width: 1300px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 60px;
}

/* ---------- IMAGE ---------- */

.service-detail-image {
  flex: 1;
}

.service-detail-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;

  transition: transform 0.4s ease; /* smooth zoom */

}

.service-detail-image:hover img {
  transform: scale(1.04); /* zoom-in */
}


/* ---------- CONTENT ---------- */

.service-detail-content {
  flex: 1;
  text-align: justify;
}

.service-detail-tagline {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-primary);
  display: block;
  margin-bottom: 12px;
}

.service-detail-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--color-text-black);
}

.service-detail-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-black);
  margin-bottom: 28px;
}

/* ---------- BUTTON ---------- */

.btn-primary {
  font-family: 'Montserrat', sans-serif;
  position: relative;
  overflow: hidden;

  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;

  background-color: var(--color-thirdary);
  color: #000;

  font-size: 15px;
  font-weight: 600;
  text-decoration: none;

  cursor: pointer;

  z-index: 1;
}


.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;

  background-color: var(--color-primary);

  /* Start from bottom-right */
  transform: translate(100%, 100%);
  transition: transform 0.45s ease;

  z-index: -1;
}


.btn-primary:hover::before {
  transform: translate(0, 0);
}

.btn-primary:hover {
  color: var(--color-text-white);
}

.service-link {
  text-decoration: none;
  color: inherit;
  display: block; /* makes full card clickable */
}



/* =========================================
   TABLET (≤ 991px)
========================================= */

@media (max-width: 991px) {
  .service-detail-container {
    flex-direction: column;
    gap: 40px;
    
  }


.service-detail-section {
    padding: 30px 16px;
  }

  .service-detail-title {
    font-size: 30px;
  }

  .service-detail-content {
    text-align: left;
    text-align: justify;
  }
}

@media (max-width: 991px) {

  /* FORCE SAME ORDER FOR ALL CONTAINERS */
  .service-detail-image {
    order: 1;
  }

  .service-detail-content {
    order: 2;
  }
}


/* =========================================
   MOBILE (≤ 500px)
   VERY CLEAR & READABLE
========================================= */

@media (max-width: 500px) {
  .service-detail-section {
    padding: 30px 16px;
  }

  .service-detail-content {
    text-align: left;
    text-align: justify;
  }

  .service-detail-tagline {
    font-size: 13px;
  }

  .service-detail-title {
    font-size: 26px;
  }

  .service-detail-text {
    font-size: 15px;
  }

  .btn-primary {
    padding: 12px 24px;
  }
}










/* =========================================
   SWAPPED LAYOUT (CONTENT LEFT, IMAGE RIGHT)
========================================= */

.service-detail-container.swap-layout .service-detail-content {
  order: 1;
}

.service-detail-container.swap-layout .service-detail-image {
  order: 2;
}


















.training-section {
  padding: 80px 20px;
  background: var(--color-text-white);
}

.training-container {
  max-width: 1300px;
  margin: auto;
}

/* IMAGE */
.training-image img {
  width: 100%;
  height: 150px;
  border-radius: 20px;
  margin-bottom: 40px;
  display: block;
}

/* TITLE */
.training-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
}

/* COLUMNS */
.training-columns {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* EACH COLUMN */
.training-col {
  flex: 1;
}

.training-col h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.training-col p {
  font-size: 14px;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.6;
}

.training-col h4 {
  font-size: 16px;
  margin-bottom: 15px;
}

/* LIST */
.training-col ul {
  padding-left: 0px;
}

.training-col li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .training-title {
    font-size: 26px;
  }

  .training-columns {
    flex-direction: column;
    gap: 40px;
  }
}
