@import url('https://fonts.googleapis.com/css2?family=Anek+Gujarati:wght@100..800&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.custom-container {
  max-width: 1450px;
}

html,
body {
  height: 100%;
  width: 100%;
}

main {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}

/* NOTE: keep visual styles scoped to the insurance components below to avoid
   breaking the homepage/header (logos, nav, sliders, etc.). */

.insurance-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 24px 32px;
  width: 100%;
  margin: auto;
  padding: 30px 16px;
  grid-template-areas:
    "a1 a4"
    "a2 a5"
    "a3 a6"    
}

.area-1 {
  grid-area: a1;
}

.area-2 {
  grid-area: a2;
}

.area-3 {
  grid-area: a3;
}

.area-4 {
  grid-area: a4;
}

.area-5 {
  grid-area: a5;
}

.area-6 {
  grid-area: a6;
}


.insurance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  min-height: 110px;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
  gap: 0;
}

.insurance-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.icon {
  flex: 0 0 50%;
  height: 100%;
  width: 50%;
  aspect-ratio: 4/2;
  /* Ensures all icons have the same aspect ratio */
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* clip-path: polygon(0 0, 100% 0%, 100% 100%, 0 100%, 11% 50%); */

}

/* Limit image rules to insurance cards only — avoid affecting header logos or other site images */
.insurance-card img,
.info_image img,
.info_image_left img,
.icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.info {
  flex: 0 0 50%;
  height: 100%;
  width: 50%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  background: #00377c;
  position: relative;
}

.title {
  width: 70%;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 500;
  color: white;
  margin-bottom: 4px;
  text-align: right;
}

.titleLeft {
  width: 70%;
  text-align: left;
  line-height: 1.3;
  font-size: 1.2rem;
  font-weight: 500;
  color: white;
  margin-bottom: 4px;
}

.titleLeft span {
  font-family: "Anek Gujarati", sans-serif;
  font-weight: normal;
  font-size: 1.2rem;
  padding-top: 15px;
}

.title span {
  font-family: "Anek Gujarati", sans-serif;
  display: block;
  font-size: 1.2rem;
  color: white;
  font-weight: normal;
  padding-top: 10px;

}

.info_image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40%;
  height: 40%;
  position: relative;
  overflow: hidden;
}

.info_image_left {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40%;
  height: 40%;
  position: relative;
  overflow: hidden;
}

/* (image rules above cover .info_image and .info_image_left) */

.triangle-box,
.triangle-box-right {
  position: relative;
}

.triangle-box::before {
  content: "";
  position: absolute;
  top: 46%;
  right: -3px;
  height: 0;
  border-top: 27px solid transparent;
  border-left: 27px solid transparent;
  border-bottom: 27px solid #00377c;
  transform: translateY(-50%) rotate(-45deg);
}

.triangle-box-right::before {
  content: "";
  position: absolute;
  top: 56%;
  left: -3px;
  height: 0;
  border-top: 27px solid transparent;
  border-left: 27px solid transparent;
  border-bottom: 27px solid #00377c;
  transform: translateY(-50%) rotate(135deg);

}

/* Order Number Styling */
.order-number {
  display: inline-block;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  margin-right: 8px;
  margin-bottom: 4px;
  min-width: 24px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
  letter-spacing: 0.5px;
}

.title .order-number,
.titleLeft .order-number {
  vertical-align: top;
}

/* Hover effect for order numbers */
.insurance-card:hover .order-number {
  background: linear-gradient(135deg, #0056b3, #003d82);
  transform: scale(1.05);
  transition: all 0.3s ease;
}



@media (max-width: 991px) {
  .insurance-grid {
    grid-template-columns: 1fr;
    width: 100%;
    grid-template-areas:
      "a1"
      "a2"
      "a3"
      "a4"
      "a5"
      "a6"
      "a8"
      "a9"
      "a10"
      "a11"
      "a12"
      "a7";
  }
}