/* ===============================
   Insurance Plan Hero Section
================================ */

.ins-plan-hero {
  position: relative;
  background-image: url("../images/insurance-plan.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 0;
}

.ins-plan-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 61, 98, 0.75);
}

.ins-plan-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 900px;
  padding: 20px;
}

/* Breadcrumb */
.ins-plan-breadcrumb {
  margin-bottom: 15px;
  font-size: 15px;
}

.ins-plan-breadcrumb a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.ins-plan-breadcrumb span {
  color: #ddd;
}

/* Title */
.ins-plan-title {
  font-size: 38px;
  margin-bottom: 10px;
}

.ins-plan-subtitle {
  font-size: 18px;
  opacity: 0.9;
}

/* ===============================
   Plan Card Section
================================ */

.ins-plan-details {
  background: #f5f7fa;
  padding: 70px 20px;
}

.ins-plan-container {
  max-width: 1100px;
  margin: auto;
}

.ins-plan-card {
  background: #fff;
  padding: 35px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.ins-plan-card:hover {
  background: #ebebeb;
  opacity: 0.8;
}

.ins-plan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.ins-plan-price {
  font-size: 32px;
  font-weight: bold;
  color: #0a3d62;
}

.ins-plan-description {
  margin: 20px 0;
  line-height: 1.7;
}

/* Container for the two feature boxes side by side */
.ins-plan-features {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Each box takes 50% of available width */
.ins-plan-feature-box {
  flex: 1 1 calc(50% - 10px);
  box-sizing: border-box;
  padding: 15px;
  border-radius: 8px;
}

/* Make text heading stand out */
.ins-plan-feature-box h3 {
  margin-bottom: 10px;
  color: #0a3d62;
  font-size: 18px;
}

/* Mobile fallback */
@media (max-width: 768px) {
  .ins-plan-feature-box {
    flex: 1 1 100%;
    margin-bottom: 15px;
  }
}

.ins-plan-feature-box ul {
  padding-left: 18px;
}

.ins-plan-feature-box li {
  margin-bottom: 8px;
  list-style: disc;
}

/* CTA */
.ins-plan-cta {
  text-align: center;
  margin-top: 35px;
}

.ins-plan-cta a {
  background: linear-gradient(90deg, #1e3a8a, #facc15);
  color: #fff;
  padding: 14px 34px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.ins-plan-cta a:hover {
  background: #06496f;
}

/* Flex row for cards */
.ins-plan-row {
  display: flex;
  gap: 30px; /* space between cards */
  flex-wrap: wrap; /* wraps to next line on smaller screens */
}

/* Each card takes 50% of row (2 cards per row) */
.ins-plan-row .ins-plan-card {
  flex: 1 1 48%; /* grow/shrink, 48% width */
  box-sizing: border-box;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .ins-plan-row .ins-plan-card {
    flex: 1 1 100%; /* full width on mobile */
  }
}

/* why-insurance-lans-affordable */
.why-insurance-sec {
  background: #f0f8ff; /* light blue background */
  padding: 60px 20px;
  text-align: center;
}

.why-insurance-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header h2 {
  font-size: 32px;
  color: #0a3d62;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 16px;
  color: #333;
  margin-bottom: 50px;
}

/* Cards container */
.why-insurance-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

/* Individual card */
.why-insurance-card {
  flex: 1 1 250px; /* 4 cards in a row on desktop */
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.why-insurance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.why-insurance-card .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
}

.why-insurance-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.why-insurance-card h3 {
  font-size: 20px;
  color: #0a3d62;
  margin-bottom: 10px;
}

.why-insurance-card p {
  font-size: 14px;
  color: #555;
}

/* Responsive */
@media (max-width: 992px) {
  .why-insurance-cards {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .why-insurance-cards {
    flex-direction: column;
    gap: 20px;
  }
}

/* get-covered section styling */

.steps-section {
  padding: 80px 20px;
  background: #ffffff;
}

.steps-title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  color: #0b1c39;
  margin-bottom: 60px;
  line-height: 1.2;
}

.steps-title span {
  color: #2f5bea;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-8px);
}

.step-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.step-badge {
  position: absolute;
  top: 14px;
  left: 20px;
  background: #eef2ff;
  color: #2f5bea;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 12px;
  z-index: 3;
  width: 100px;
}

.step-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.15),
    transparent
  );
  color: #ffffff;
}

.step-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 700;
}

.step-content p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 991px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .steps-title {
    font-size: 32px;
  }
}

/* ===============================
   RELATED INSURANCE PARTNERS
================================ */

.related-insurance-section {
  padding: 80px 20px;
  background: #f8faff;
}

.related-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #0b1c39;
  margin-bottom: 10px;
}

.related-subtitle {
  text-align: center;
  font-size: 16px;
  color: #5f6b7a;
  margin-bottom: 50px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.related-card {
  display: block;
  width: 100%; /* Make the card full width of its container */
  max-width: 300px; /* Optional: limit max size */
  overflow: hidden;
  border-radius: 12px;
}

.related-card img {
  width: 100%; /* Scale image to card width */
  height: auto; /* Maintain aspect ratio */
  display: block; /* Remove extra space below image */
  object-fit: contain; /* Ensures full image is visible inside card */
}

.related-card h3 {
  font-size: 20px;
  color: #0b1c39;
  margin-bottom: 10px;
  margin-left: 10px;
}

.related-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-left: 10px;
}

.related-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(47, 91, 234, 0.15);
}

/* Responsive */
@media (max-width: 991px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* What our clients say styling */

/* ============================================
   TESTIMONIALS SECTION - Interactive & Human-Friendly
   ============================================ */

.testimonials-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative background elements */
.testimonials-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.testimonials-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Section Title */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #1a202c;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 2px;
}

.section-heading {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

/* Gradient underline below heading */
.section-heading::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 2px;
}

/* Testimonial Slider */
.testimonial-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* Individual Slide */
.testimonial-slide {
  display: none;
  background: #ffffff;
  border-radius: 24px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out;
}

.testimonial-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.testimonial-slide.active {
  display: flex;
  align-items: center;
  gap: 40px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Testimonial Image */
.testimonial-img {
  flex-shrink: 0;
  position: relative;
}

.testimonial-img img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #f3f4f6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.testimonial-slide:hover .testimonial-img img {
  transform: scale(1.05);
  border-color: #e0e7ff;
}

/* Quote icon decoration */
.testimonial-img::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -20px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: #6366f1;
  opacity: 0.2;
  line-height: 1;
}

/* Testimonial Content */
.testimonial-content {
  flex: 1;
}

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 24px;
  font-style: italic;
  position: relative;
  padding-left: 20px;
}

.testimonial-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: calc(100% - 16px);
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 2px;
}

.testimonial-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.testimonial-slide:hover .testimonial-name {
  color: #6366f1;
}

.testimonial-role {
  font-size: 0.95rem;
  color: #8b5cf6;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Slider Dots (Navigation) */
.testimonial-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 50px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dot:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.dot.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  width: 32px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Ripple effect on dot click */
.dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.3);
  transition: all 0.5s ease;
  opacity: 0;
}

.dot:active::after {
  width: 40px;
  height: 40px;
  opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .testimonials-section {
    padding: 60px 15px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .testimonial-slide.active {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
    gap: 30px;
  }

  .testimonial-img::before {
    display: none;
  }

  .testimonial-text {
    font-size: 1rem;
    padding-left: 0;
  }

  .testimonial-text::before {
    display: none;
  }

  .testimonial-name {
    font-size: 1.125rem;
  }

  .testimonial-role {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }

  .testimonial-img img {
    width: 100px;
    height: 100px;
  }

  .testimonial-slide {
    padding: 30px 20px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .dot.active {
    width: 28px;
  }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

.dot:focus {
  outline: 3px solid #6366f1;
  outline-offset: 4px;
}

.testimonial-slide:focus-within {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .testimonial-slide,
  .testimonial-img img,
  .dot,
  .testimonial-name {
    transition: none;
    animation: none;
  }
}

/* CTA section styling */
.cta-section {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  font-family: Arial, sans-serif;
}

/* Background images */
.bg-images {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-images .bg-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.bg-images .bg-image.active {
  opacity: 1;
}

/* CTA Content */
.cta-content {
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.cta-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 25px;
}

.cta-button {
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
}
