.insightsMain {
  display: flex;
  justify-content: center;
  width: 100%;
  background-color: #181a1b;
  margin: 0;
  padding: 0;
}

.insightsSub {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}
.leftDiv {
  margin-top: 100px;
}

/* HEADER */
.insightsSection {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 100px 220px 100px 95px;
}

.insightsTitle {
  color: #fef3da;
  font-family: Anton;
  font-size: 80px;
  font-style: normal;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: -1.236px;
  margin-bottom: 40px;
}
.insightsTitle span {
  color: #0099a8;
  font-family: Anton;
  font-size: 80px;
  font-style: normal;
  font-weight: 400;
  line-height: 60px; /* 75% */
  letter-spacing: -1.236px;
}

.insightsDescription {
  color: #def0de;
  font-family: "Rethink Sans";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.449px;
}

.insightsImage {
  width: 620px;
  opacity: 0.9;
}

/* Custom Radio Filter Pills */
.filterRadioWrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 95px;
  margin-top: 20px;
}

.filterLabel {
  color: #def0de;
  font-family: "Rethink Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 100% */
  letter-spacing: -0.312px;
}

.pillRadio {
  position: relative;
  cursor: pointer;
  position: relative;
  /* Updated glow variables */
  --glow-sens: 30;
  --color-sens: 50;
  --pointer-angle: 45deg;
  --pointer-distance: 0;
  --glow-color: 161deg 65% 55%;
}

.pillRadio input {
  display: none; /* hide default radio */
}

.pillContent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 190px;
  padding: 8px 10px 8px 16px;
  border-radius: 33px;
  /* border: 1px solid #0fa9a4; */
  color: #ffffff;
  font-size: 18px;
  position: relative;
  z-index: 1;
}
.pillContent::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.3px;
  background: linear-gradient(90deg, #0fa9a4 0%, #064341 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.pillContent .text {
  color: #fff;
  font-family: "Rethink Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 28px; /* 155.556% */
  letter-spacing: -0.439px;
}

.pillContent .circle {
  width: 18px;
  height: 18px;
  border: 1px solid #3ddc97;
  border-radius: 50%;
  display: inline-block;
  /* transition: 0.3s; */
}

/* When Checked */
.pillRadio input:checked + .pillContent {
  /* border: 2px solid #3DDC97; */
  /* box-shadow: 0px 0px 10px rgba(61, 220, 151, 0.4); */
}

.pillRadio input:checked + .pillContent .circle {
  background: #3ddc97;
  /* box-shadow: 0px 0px 10px rgba(0, 240, 255, 0.8); */
}

/* Colored border effect */
.pillRadio::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s ease-out;
  z-index: 0;
  pointer-events: none;
}

/* Glow element */
.pillRadio > .glow {
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease-out;

  -webkit-mask-image: conic-gradient(
    from var(--pointer-angle) at center,
    black 2.5%,
    transparent 10%,
    transparent 90%,
    black 97.5%
  );
  mask-image: conic-gradient(
    from var(--pointer-angle) at center,
    black 2.5%,
    transparent 10%,
    transparent 90%,
    black 97.5%
  );

  mix-blend-mode: plus-lighter;
}

.pillRadio > .glow::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px hsl(var(--glow-color) / 100%),
    inset 0 0 1px 0 hsl(var(--glow-color) / 70%),
    inset 0 0 3px 0 hsl(var(--glow-color) / 50%),
    inset 0 0 6px 0 hsl(var(--glow-color) / 30%),
    0 0 1px 0 hsl(var(--glow-color) / 70%),
    0 0 3px 0 hsl(var(--glow-color) / 50%),
    0 0 6px 0 hsl(var(--glow-color) / 30%),
    0 0 10px 0 hsl(var(--glow-color) / 20%);
}

/* Show glow on hover */
.pillRadio:hover::before,
.pillRadio:hover > .glow {
  opacity: 1;
}

.cardpage {
  background-image: url("../images/insights/Footer.png");
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  /* background-blend-mode: multiply; */
  /* --x: calc(var(--posX, 0) * 1px);
  --y: calc(var(--posY, 0) * 1px);

  background-image: linear-gradient(
      115deg,
      rgba(61, 220, 151, 0.3),
      rgba(24, 26, 27, 0.8)
    ),
    radial-gradient(
      90% 100% at calc(50% + var(--x)) calc(0% + var(--y)),
      rgba(61, 220, 151, 0.6),
      rgba(24, 26, 27, 0.4)
    ),
    radial-gradient(
      100% 100% at calc(80% - var(--x)) calc(0% - var(--y)),
      rgba(0, 153, 168, 0.7),
      rgba(24, 26, 27, 0.3)
    ),
    radial-gradient(
      150% 210% at calc(100% + var(--x)) calc(0% + var(--y)),
      rgba(61, 220, 151, 0.5),
      rgba(0, 153, 168, 0.6)
    ),
    radial-gradient(
      100% 100% at calc(100% - var(--x)) calc(30% - var(--y)),
      rgba(0, 153, 168, 0.8),
      rgba(61, 220, 151, 0.4)
    ),
    linear-gradient(60deg, rgba(24, 26, 27, 0.6), rgba(0, 153, 168, 0.5));

  background-blend-mode: overlay, overlay, difference, difference, difference,
    normal;

  position: relative; */
  /* background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.4) 13.03%,
    rgba(0, 153, 168, 0.4) 100%
  ); */
}

/* Blend the top edge smoothly */
.cardpage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  /* Adjust fade height as needed */
  background: linear-gradient(
    to bottom,
    #181a1b 0%,
    /* Match your dark background color */ rgba(24, 26, 27, 0.8) 30%,
    rgba(24, 26, 27, 0.4) 60%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
  /* Allow mouse events to pass through */
}

.cardsContainer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  padding: 50px 95px;
  margin-top: 40px;
}

.card {
  width: 100%;
  height: 100%;
  /* min-height: 230px; */
  /* position: relative;
  overflow: hidden; */
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  --glow-sens: 30;
  --color-sens: 50;
  --pointer-angle: 45deg;
  --pointer-distance: 0;
  --glow-color: 161deg 65% 55%;
  /* display: flex; */
  /* align-items: center; */
}

/* last */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.75) 50%,
    rgba(0, 0, 0, 0.95) 100%
  );
  z-index: 0;
}

/* code for pagination fold effect */

.card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 55px;
  height: 55px;
  /* background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.05)
  ); */
  background: #191f20;
  /* clip-path: polygon(0 0, 100% 0, 100% 100%); */
  clip-path: polygon(0 0, 0% 0, 0% 0%);
  z-index: 4;
  pointer-events: none;
}

/* Colored border effect */
/* .card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s ease-out;
  z-index: 0;
  pointer-events: none;
} */

.glass {
  /* background-image: url("./public/compilanceframework.png"); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; */
  /* background-blend-mode: multiply; */
  /* opacity: 0.55; */
  /* box-shadow: 0 0 0px rgba(0, 0, 0, 0.1); */
  background: url("../images/insights/compilanceframework.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: multiply, normal;
}

/* Glow element */
.card > .glow {
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.25s ease-out;

  -webkit-mask-image: conic-gradient(
    from var(--pointer-angle) at center,
    black 2.5%,
    transparent 10%,
    transparent 90%,
    black 97.5%
  );
  mask-image: conic-gradient(
    from var(--pointer-angle) at center,
    black 2.5%,
    transparent 10%,
    transparent 90%,
    black 97.5%
  );

  mix-blend-mode: plus-lighter;
}

.card > .glow::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px hsl(var(--glow-color) / 100%),
    inset 0 0 1px 0 hsl(var(--glow-color) / 70%),
    inset 0 0 3px 0 hsl(var(--glow-color) / 50%),
    inset 0 0 6px 0 hsl(var(--glow-color) / 30%),
    0 0 1px 0 hsl(var(--glow-color) / 70%),
    0 0 3px 0 hsl(var(--glow-color) / 50%),
    0 0 6px 0 hsl(var(--glow-color) / 30%),
    0 0 10px 0 hsl(var(--glow-color) / 20%);
}

/* Show glow on hover */
.card:hover::before,
.card:hover > .glow {
  opacity: 1;
}

/* .card .corner-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 55px;
  height: 55px;
  background: #191f20;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  z-index: 4;
  pointer-events: none;
}


.card .corner-fold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #191f20;
} */

.cardContent {
  position: relative;
  z-index: 2;
  border-radius: 18px;
  padding: 45px 40px 30px 40px;
  display: flex;
  flex-direction: column;
  height: 100%;

  /* Glow controls */
  --glow-color: 161deg 65% 55%;
  --pointer-angle: 0deg;
  --pointer-distance: 0;
  --beam-x: 50%;
  --beam-y: 0%;
}

/* Section Glow Effect */
.cardContent::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;

  background: radial-gradient(
    circle at var(--beam-x) var(--beam-y),
    hsl(var(--glow-color) / 20%) 0%,
    hsl(var(--glow-color) / 20%) 5%,
    transparent 65%
  );
  opacity: calc(var(--pointer-distance) / 100);
  transition: opacity 0.2s ease-out;
}

.cardTitle {
  color: #3ddc97;
  font-family: Anton;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 36px; /* 93.333% */
  letter-spacing: -0.449px;
  margin-bottom: 34px;
  word-break: break-word;
}

.cardType {
  color: #fff;
  font-family: "Rethink Sans";
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  line-height: 28px; /* 127.273% */
  letter-spacing: -0.439px;
  margin-bottom: 34px;
  word-break: break-word;
}

.cardDesc {
  max-width: 460px;
  color: #def0de;
  font-family: "Rethink Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.312px;
  word-break: break-word;
}

.btnDiv {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.readBtn {
  width: 165px;
  margin-top: 20px;
  border-radius: 33px;
  /* border: 1px solid #0fa9a4; */
  border: none;
  padding: 10px 18px;
  background: transparent;
  color: #fff;
  font-family: "Rethink Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 28px; /* 155.556% */
  letter-spacing: -0.439px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  text-decoration: none;
}
.readBtn:hover {
  box-shadow: 0 0 31px 0 rgba(0, 153, 168, 0.6);
}

.readBtn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(90deg, #0fa9a4 0%, #064341 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

/* PAGINATION */
.pagination {
  display: flex;
  gap: 14px;
  padding: 50px 120px 160px 120px;

  /* padding-bottom: 40px; */
  /* justify-content: center; */
}

.page {
  /* padding: 6px 12px; */
  border-radius: 6px;
  color: #def0de;
  cursor: pointer;
  /* text-align: center; */
  /* font-family: "Tong_beta version"; */
  font-family: "Rethink Sans";
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 27px; /* 122.727% */
  /* letter-spacing: 15.4px; */
}

.page.active,
.page:hover {
  /* border-bottom: 2px solid #00f0ff; */
}

@media (max-width: 1599px) {
  .insightsSection {
    padding: 80px 80px;
    gap: 40px;
  }
  .insightsTitle {
    font-size: 60px;
    margin-bottom: 20px;
  }
  .insightsTitle span {
    font-size: 60px;
  }
  .insightsDescription {
    font-size: 20px;
  }
  .insightsImage {
    max-width: 500px;
    width: 100%;
  }

  .cardsContainer {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 80px;
    /* padding: 80px 60px 160px 60px; */
    margin-top: 20px;
    gap: 40px;
  }
  .cardContent {
    padding: 35px 30px;
  }
  .cardTitle {
    font-size: 30px;
  }
  .cardType {
    font-size: 22px;
  }
  .cardDesc {
    font-size: 18px;
  }

  .filterRadioWrapper {
    padding: 10px 80px;
    gap: 20px;
  }
  .pillContent {
    width: 180px;
    font-size: 16px;
  }
  .pillContent .text {
    font-size: 17px;
  }
  .pillContent .circle {
    width: 18px;
    height: 18px;
    border: 2px solid #3ddc97;
  }

  .readBtn {
    width: 180px;
    font-size: 16px;
  }
}

/* =======================
   LARGE TABLETS & SMALL LAPTOPS
======================= */
@media (max-width: 1366px) {
  .insightsSection {
    padding: 80px 70px 40px 70px;
    gap: 40px;
  }
  .leftDiv {
    margin-top: 40px;
  }
  .insightsTitle {
    font-size: 50px;
    margin-bottom: 20px;
  }
  .insightsTitle span {
    font-size: 50px;
  }
  .insightsDescription {
    font-size: 18px;
  }
  .insightsImage {
    max-width: 380px;
    width: 100%;
  }
  .filterRadioWrapper {
    padding: 10px 70px;
    gap: 20px;
  }

  .cardsContainer {
    grid-template-columns: 1fr 1fr;
    padding: 40px 70px;
    /* padding: 80px 60px 160px 60px; */
    margin-top: 10px;
    gap: 40px;
  }
  .cardContent {
    padding: 35px 30px;
  }
  .cardTitle {
    font-size: 28px;
  }
  .cardType {
    font-size: 22px;
  }
  .cardDesc {
    font-size: 18px;
  }
  .filterLabel {
    font-size: 20px;
  }

  .pillContent {
    width: 170px;
    font-size: 16px;
  }
  .pillContent .text {
    font-size: 16px;
  }
  .pillContent .circle {
    width: 18px;
    height: 18px;
    border: 2px solid #3ddc97;
  }

  .readBtn {
    width: 170px;
    font-size: 16px;
  }
  .pagination {
    justify-content: center;
    padding: 0px 40px 60px 40px;
  }
}

@media (max-width: 1099px) {
  .cardsContainer {
    grid-template-columns: 1fr;
  }
}

/* =======================
   TABLETS
======================= */
@media (max-width: 1024px) {
  .insightsSection {
    /* flex-direction: column-reverse; */
    padding: 60px 40px 30px 40px;
    gap: 30px;
  }

  .leftDiv {
    /* margin-bottom: 40px; */
    margin-top: 20px;
  }
  /* .rightDiv {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  } */

  .insightsTitle {
    font-size: 38px;
    margin-bottom: 15px;
  }

  .insightsTitle span {
    font-size: 38px;
    margin-bottom: 10px;
  }

  .insightsImage {
    max-width: 400px;
    width: 100%;
  }

  .filterRadioWrapper {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 40px;
    justify-content: flex-start;
    margin-top: 0px;
  }

  .cardsContainer {
    padding: 40px 40px;
    margin-top: 0px;
    gap: 30px;
  }
  .card::before {
    content: none;
  }
  /* .card .corner-fold {
    display: none;
  } */
  .cardContent {
    padding: 25px 30px;
  }
  .cardTitle {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .cardType {
    font-size: 20px;
    margin-bottom: 30px;
  }
  .cardDesc {
    font-size: 16px;
  }
  .filterLabel {
    font-size: 18px;
  }
  .pillContent {
    width: 130px;
    font-size: 14px;
  }
  .pillContent .text {
    font-size: 15px;
  }
  .pillContent .circle {
    width: 16px;
    height: 16px;
    border: 2px solid #3ddc97;
  }

  .pagination {
    justify-content: center;
    padding: 20px 40px 80px 40px;
  }
}

/* =======================
   MOBILE
======================= */
@media (max-width: 767px) {
  .insightsSection {
    flex-direction: column-reverse;
    padding: 40px 20px 30px 20px;
  }
  .rightDiv {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .insightsTitle {
    font-size: 34px;
    margin-bottom: 10px;
  }
  .insightsTitle span {
    font-size: 34px;
  }

  .insightsDescription {
    font-size: 15px;
  }

  .insightsImage {
    width: 350px;
  }
  .filterLabel {
    display: none;
  }
  .filterRadioWrapper {
    padding: 5px 20px;
    gap: 8px;
  }

  .pillContent {
    width: auto;
    padding: 6px 9px 6px 14px;
    font-size: 12px;
    justify-content: center;
    gap: 14px;
    /* padding: 8px 14px; */
  }
  .pillContent .text {
    font-size: 13px;
  }
  .pillContent .circle {
    width: 14px;
    height: 14px;
    border: 1px solid #3ddc97;
  }

  .cardsContainer {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 30px;
    margin-top: 10px;
  }

  .cardContent {
    padding: 30px;
  }

  .cardTitle {
    font-size: 24px;
    margin-bottom: 18px;
  }

  .cardType {
    font-size: 17px;
    margin-bottom: 18px;
  }

  .cardDesc {
    max-width: 100%;
    font-size: 15px;
    margin-bottom: 18px;
  }

  .btnDiv {
    justify-content: flex-start;
    margin-bottom: 30px;
  }

  .readBtn {
    width: 180px;
    font-size: 15px;
  }

  .pagination {
    justify-content: center;
    gap: 10px;
    padding: 20px 20px 60px;
  }
}

@media (max-width: 367px) {
  .insightsSection {
    padding: 40px 20px 30px 20px;
    align-items: flex-start;
    gap: 14px;
  }

  .insightsTitle {
    font-size: 30px;
    margin: 0px;
  }
  .insightsTitle span {
    font-size: 30px;
  }

  .insightsDescription {
    font-size: 14px;
    margin: 0;
  }

  .insightsImage {
    max-width: 367px;
    width: 100%;
  }
  .filterLabel {
    display: none;
  }
  .filterRadioWrapper {
    padding: 0px 20px;
    gap: 2px;
    /* flex-direction: column; */
  }

  /* .pillContent {
    width: auto;
    padding: 8px 14px;
    font-size: 11px;
    gap: 12px;
  } */
  .pillContent {
    width: auto;
    padding: 6px 9px 6px 14px;
    font-size: 12px;
    justify-content: center;
    gap: 14px;
    /* padding: 8px 14px; */
  }
  .pillContent .text {
    font-size: 11px;
  }
  .pillContent .circle {
    width: 14px;
    height: 14px;
    border: 2px solid #3ddc97;
  }

  .cardsContainer {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 30px;
    margin-top: 10px;
  }

  .cardContent {
    padding: 30px;
  }

  .cardTitle {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .cardType {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .cardDesc {
    max-width: 100%;
    font-size: 14px;
  }

  .btnDiv {
    justify-content: flex-start;
  }

  .readBtn {
    width: 180px;
    font-size: 13px;
  }

  .pagination {
    justify-content: center;
    gap: 10px;
    padding: 20px 20px 60px;
  }
}
