/* ================= GLOBAL RESET ================= */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ================= PAGE HERO ================= */
.page-hero {
  position: relative;
  min-height: 30vh;
  margin-top: var(--nav-height, 100px);

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  text-align: center;

  background-image: url("../../assets/images/header-page.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(28, 62, 91, 0.85),
    rgba(28, 62, 91, 0.55)
  );
}

.page-hero-content {
  position: relative;
  max-width: 720px;
  padding: 0 24px;
  animation: fadeUp 0.8s ease forwards;
}

.page-hero-content h1 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-hero-content p {
  font-size: 14px;
  opacity: 0.9;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= SERVICE DETAIL SECTION ================= */

.each-section {
  padding: 120px 6vw;
  background: #ffffff;
  
}

.each-container {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}


/* ================= HEADER + NEXT BUTTON ================= */

.each-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 32px;
}

.each-line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent-color, #ff6b35);
  margin-bottom: 16px;
}

.each-text h2 {
  font-size: 32px;
  margin-bottom: 0;
  color: var(--primary-color, #1c3e5b);
}

/* NEXT / PREV NAV */
.each-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 17px;
  font-weight: 600;
  color: var(--primary-color, #1c3e5b);
  text-decoration: none;

  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(28, 62, 91, 0.25);
  white-space: nowrap;

  transition: all 0.3s ease;
}

.each-nav a:hover {
  background: var(--accent-color, #ff6b35);
  color: #fff;
  border-color: var(--accent-color, #ff6b35);
  transform: translateY(-2px);
}

/* ================= CONTENT ================= */

.each-text p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
  max-width: 870px;
}

/* ================= SERVICE LIST ================= */

.each-list {
  margin-top: 28px;
  list-style: none;
  padding: 0;
  max-width: 870px;
}

.each-list li {
  font-size: 14px;
  color: #555;
  padding-left: 10px;
  padding-top: 10px;
  position: relative;
  line-height: 1.6;
}

.each-list li::before {
  content: "›";
  position: absolute;
  padding-top: 10px;
  left: 0;
  top: 0;
  color: var(--accent-color, #ff6b35);
  font-weight: 700;
}

.profile-image img {
  width: 100%;
  display: block;
  border-radius: 18px;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .each-section {
    padding: 100px 5vw;
  }

  .each-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .each-nav {
    margin-top: 4px;
    align-self: flex-start;
  }

  .each-list {
    grid-template-columns: 1fr;
  }

  .each-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .each-section {
    padding: 80px 4vw;
  }

  .each-text h2 {
    font-size: 28px;
  }

  .page-hero-content h1 {
    font-size: clamp(28px, 5vw, 36px);
  }
}
