.life-hero {
  position: relative;
  width: 100%;
  height: 400px; /* adjust as needed */
  background: url("../images/life-insurance-service.webp") center/cover
    no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.life-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.life-hero-content {
  color: #fff;
  max-width: 800px;
}

.life-hero .life-breadcrumbs {
  font-size: 16px;
  margin-bottom: 15px;
  color: #d1d5db;
}

.life-hero .life-breadcrumbs a {
  color: #fff;
  font-size: 20px;
}

.life-hero .life-breadcrumbs a:hover {
  text-decoration: underline;
}

.life-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: "Roboto", Arial, sans-serif;
}

.life-hero .life-description {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
}

/* why life-insurance is important styling */
.life-importance {
  padding: 80px 10%;
  background: #f8fbff;
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.life-importance.show {
  opacity: 1;
  transform: translateY(0);
}

.life-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.life-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.life-image img:hover {
  transform: scale(1.05);
}

.life-content h2 {
  margin-bottom: 25px;
  font-size: 32px;
  color: #0c3f98;
}

.life-content ul {
  list-style: none;
  padding: 0;
}

.life-content ul li {
  font-size: 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  transition: 0.3s ease;
}

.life-content ul li i {
  color: #0c3f98;
  margin-right: 12px;
  font-size: 20px;
  transition: 0.3s ease;
}

.life-content ul li:hover {
  transform: translateX(10px);
}

.life-content ul li:hover i {
  color: #023e8a;
}

/* Responsive */
@media (max-width: 992px) {
  .life-container {
    flex-direction: column;
    text-align: center;
  }

  .life-content ul li {
    justify-content: center;
  }
}

/* Life-contract section styling */

/* ===== SECTION ===== */
.life-contract-section {
  padding: 80px 24px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* ===== WRAPPER ===== */
.life-wrapper {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* ===== HELP CARD ===== */
.help-card {
  background-color: #0c3f98;
  color: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  min-width: 260px;
  max-width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 40px rgba(26, 60, 52, 0.25);
  position: sticky;
  top: 40px;
}

.help-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.help-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #b2c9bf;
  margin: 0;
}

.help-card .phone {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 8px 0 0;
  letter-spacing: -0.5px;
}

.help-card .email {
  color: #c9e4b8;
  font-size: 0.875rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(201, 228, 184, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease;
  width: fit-content;
}

.help-card .email:hover {
  color: #ffffff;
}

.contact-btn {
  margin-top: 8px;
  background-color: #c9e4b8;
  color: #1a3c34;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.contact-btn:hover {
  background-color: #b0d49e;
  transform: translateY(-2px);
}

/* ===== CONTENT AREA ===== */
.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.content-area h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #0c3f98;
  line-height: 1.2;
  margin: 0;
}

.content-area .main-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a5e58;
  margin: 0;
  max-width: 620px;
}

/* ===== CONTENT COLUMNS ===== */
.content-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}

.column {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-top: 3px solid #0c3f98;
}

.column h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0c3f98;
  margin: 0 0 20px;
}

/* ===== LIST ===== */
.column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.column ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #2f4a44;
  font-weight: 500;
}

.column ul li i {
  color: #0c3f98;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===== IMPORTANCE TEXT ===== */
.column p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #4a5e58;
  margin: 0;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 900px) {
  .life-wrapper {
    flex-direction: column;
  }

  .help-card {
    max-width: 100%;
    min-width: unset;
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
  }

  .help-card h3,
  .help-card p {
    flex-basis: 100%;
  }

  .help-card .phone,
  .help-card .email {
    flex-basis: auto;
  }

  .contact-btn {
    margin-top: 0;
    align-self: center;
  }
}

/* Small Tablet */
@media (max-width: 640px) {
  .life-contract-section {
    padding: 48px 16px;
  }

  .help-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .column {
    width: 100%;
    box-sizing: border-box; /* FIX: prevents padding from causing overflow */
  }

  .column ul {
    width: 100%;
  }

  .column ul li {
    flex-wrap: wrap; /* FIX: allows text to wrap under icon if needed */
    word-break: break-word;
  }
}

/* Mobile */
@media (max-width: 480px) {
  /* FIX: widened from 400px — catches more phones */
  .content-area h1 {
    font-size: 1.7rem;
  }

  .help-card .phone {
    font-size: 1.2rem;
  }

  .column {
    padding: 20px 16px;
  }

  .column ul li {
    font-size: 0.88rem;
    gap: 8px;
  }

  .column ul li i {
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .content-area .main-text {
    font-size: 0.93rem;
  }
}

/* Life-insurance process section styling */
.life-process-section {
  background: #eef2f5;
  padding: 80px 20px;
}

.life-process-wrapper {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 60px;
  align-items: center;
}

/* Divider */
.divider {
  background: #cfd8dc;
  width: 1px;
  height: 100%;
}

/* Process Item */
.process-item {
  text-align: center;
}

.process-item h3 {
  font-size: 24px;
  margin: 20px 0 15px;
  font-weight: 700;
  color: #0c3f98;
}

.process-item p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  max-width: 420px;
  margin: auto;
}

/* Hexagon Shape */
.hexagon {
  width: 240px;
  height: 260px;
  margin: auto;
  position: relative;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  overflow: hidden;
}

.hexagon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Number Badge */
.number-badge {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: #1565c0;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  border: 4px solid white;
}

/* ---------------- RESPONSIVE ---------------- */

/* Tablet */
@media (max-width: 992px) {
  .life-process-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .divider {
    display: none;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .hexagon {
    width: 200px;
    height: 220px;
  }

  .process-item h3 {
    font-size: 20px;
  }

  .process-item p {
    font-size: 15px;
  }
}

/* How life-insurance works section styling */
.life-how-section {
  padding: 90px 20px;
  background: #f5f7fa;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  color: #0c3f98;
}

.section-header h2 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-header p {
  color: #666;
  font-size: 16px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.how-card {
  background: #fff;
  padding: 35px 25px;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.how-card h3 {
  color: #0c3f98;
}

.how-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.icon {
  width: 70px;
  height: 70px;
  margin: auto;
  background: #0c3f98;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 28px;
  margin-bottom: 20px;
  transition: 0.3s;
}

.how-card:hover .icon {
  transform: scale(1.1);
}

.how-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.how-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* Responsive */

@media (max-width: 992px) {
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
}
