/* Base styles */
body {
  margin: 0 0 0 0;
  padding: 0;
  font-family: "Kanit";
}

header h2 {
  color: var(--baac-green-500);
  font-size: 32pt;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

header h3 {
  color: var(--baac-green-500);
  font-size: 20pt;
  font-weight: 500;
  margin-bottom: 10px;
  text-align: center;
}

td {
  vertical-align: baseline;
}

:root {
  --baac-green-700: #037539;
  --baac-green-500: #05A450;
  --baac-green-300: #08F779;

  --baac-gold-700: #E4B223;
  --baac-gold-500: #FFCB00;
  --baac-gold-200: #F6F6C3;
  --baac-gold-100: #F7F7C6;

  /* Added explicit yellow token for requested background */
  --baac-yellow-100: #F7F7C6;

  --white: #fff;
  --black: #000;
  --gray: #f0f0f0;
}

.hero-banner-bg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(128deg, var(--baac-green-500), var(--baac-green-300));
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
  /* clip-path: path("M0 0 H1 V0.82 C0.7 0.95,0.3 1,0 0.85 Z"); */
  border-bottom-left-radius: 52px;
  border-bottom-left-radius: 128px;
  overflow: hidden;
  position: relative;
  height: 866px;
  isolation: isolate; /* confine blend to header only */
}

.hero-banner-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/bg-hero.jpg') center/cover no-repeat;
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.8;
  z-index: 0; 
  opacity: 1;
}


.logo {
    max-width: 40px;
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* Reusable Components */
.btn-pill {
  border: none;
  border-radius: 9999px;
  padding: 10px 20px;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-white {
  background-color: white;
  color: var(--baac-green-500);
  transition: all 0.3s ease;
}

.btn-white:hover {
  color: var(--baac-green-500); 
  background-color: white;
  transform: translateY(-4px);
}

.btn-white:active {
  color: var(--baac-green-500);
  background-color: white;
  transform: translateY(0);
}

.hover-bounce:hover {
  animation: bounce 1s infinite;
}

.hover-raise:hover {
  transform: translateY(-10%);
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(-10%);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}


/* Scroll reveal animations */
.reveal-up,
.reveal-left,
.rotate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* allow staggering via --reveal-delay */
.reveal-up { transition-delay: var(--reveal-delay, 0s); }
.reveal-left { transition-delay: var(--reveal-delay, 0s); }

/* fade-in from left for hero/content blocks */
.reveal-left {
  transform: translateX(-200px);
}

/* desktop rotate-in for hero visual */
.rotate-in {
  transform: perspective(800px) rotate(-20deg) scale(0.96);
  transform-origin: 60% 60%;
  transition-delay: var(--reveal-delay, 0.2s);
}

/* visible state toggled by IntersectionObserver */
.is-visible {
  opacity: 1;
  transform: none;
}

.text-nowrap {
  text-wrap: nowrap;
}

/* Disable rotation animation on small screens as requested */
@media (max-width: 768px) {
  .rotate-in {
    opacity: 1;
    transform: none;
  }
}
/* Navbar */
.navbar-custom {
  display: block;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.img-logo {
  max-height: 60px;
  width: auto;
  height: auto;
}
.navbar {
  position: absolute;
  top: 0;
}
.navbar-custom .btn.d-lg-none {
  margin-left: auto !important;
  margin-right: auto !important;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-link {
  color: white;
  font-size: 14pt;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
  color: black;
  transform: translateY(-2px);
}

.nav-link:focus {
  color: black;
  transform: translateY(-2px);
}

.text-green {
  color: var(--baac-green-700);
}

.text-white {
  color: white;
}

.text-gold {
  color: var(--baac-gold-700);
}

.text-black {
  color: black;
}

.inline-img {
  display: inline-block;
  line-height: 1.5em;
  vertical-align: baseline;
}

.inline-img img {
  display: inline;
  height: 1em;
  vertical-align: baseline;
  margin: 0 5px;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  color: white;
  justify-content: space-between;
  padding: 36px 0;
}

.hero .content {
  /* margin: 5rem 0; */
  max-width: 50%;
}

.hero h1 {
  font-weight: bold;
  font-size: 64pt;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .btn {
  font-size: 20pt;
  font-weight: 500;
  margin: 32px 0;
}

.hero p {
  font-size: 36pt;
  font-weight: 500;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

}

.hero img {
  max-height: 200px;
  border-radius: 20px;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero .content {
  max-width: 70%;
  z-index: 4;
  padding-right: 24px; /* keep text clear of the image */
}

.hero-visual {
  position: absolute;
  right: 20%;
  bottom: -20%; /* flush with banner bottom */
  height: 90%;
  max-width: min(46%, 520px);
  pointer-events: none; /* decorative only */
  z-index: 2; /* ensure above overlay */
}

.hero-visual img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
  transform: scale(5.0);
}

/* SECTION 1 : SELECTION */
#section-selector {
  display: flex;
  align-items: center;
  min-height: 200px;
}

#section-selector button {
  margin-top: 0.5rem;
}

#section-selector .button-outline {
  width: 100%;
  border: var(--baac-green-500) solid 3px;
  background-color: white;
  border-radius: 4px;
  padding: 8px;
  transition: all 0.3s ease;
}

#section-selector .button-fill {
  width: 100%;
  background-color: var(--baac-green-500);
  border: var(--baac-green-500) solid 3px;
  color: white;
  border-radius: 4px;
  padding: 8px;
  transition: all 0.3s ease;
}

#section-selector button:hover {
  border: var(--baac-green-300) solid 3px;
  transform: translateY(-4px);
}

#section-selector button:focus {
  border: var(--baac-green-300) solid 3px;
  transform: translateY(-4px);
}

#section-selector button:active {
  transform: translateY(0);
}

/* SECTION 2 : INSTANT CARDS */
#instant-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0) 75%, var(--baac-gold-100)),
  url('../images/bg-stalk.png') center 30%,
  linear-gradient(180deg, white, var(--baac-gold-100));
  background-size: cover;
  background-repeat: repeat-y;
}

/* Instant Card components */
.instant-card .ic-cards,
.insured-card .ic-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 16px;
  justify-items: center;
  margin: 16px 0 24px;
}

.instant-card .ic-card,
.insured-card .ic-card {
  text-align: center;
}

.instant-card .ic-card-img,
.insured-card .ic-card-img {
  width: 180px;
  max-width: 100%;
  height: auto;              /* maintain aspect ratio */
  display: block;            /* allow margin centering */
  margin-left: auto;
  margin-right: auto;        /* center image in cell */
  object-fit: contain;       /* prevent distortion when constrained */
  border-radius: 10px;
  background: linear-gradient(135deg, #e8e8e8, #d7d7d7);
  /* border: 2px solid rgba(5, 164, 80, 0.3); */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.instant-card .ic-card-name,
.insured-card .ic-card-name {
  margin-top: 8px;
  color: var(--baac-green-700);
  font-weight: 600;
  font-size: 20pt;
}

/* Comparison table */
.instant-card .ic-table-wrap,
.insured-card .ic-table-wrap {
  background: var(--white);
  margin: 24px 0;
  border-radius: 64px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 12px;
  overflow-y: visible;
  border: 2px solid var(--baac-gold-500);
  overflow-x: auto; /* enable horizontal scroll on small devices */

}

.instant-card .ic-table,
.insured-card .ic-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 20px;
}

.insured-card .ic-table {
  table-layout: fixed;
}
.instant-card .ic-table {
  table-layout: fixed;
}
.insured-card .ic-table col {
  width: 200px;
}
.instant-card .ic-table col {
  width: 200px;
}


.instant-card .ic-table thead th {
  white-space: nowrap;       /* prevent wrapping in header cells */
  overflow: hidden;          /* avoid spillover */
  text-overflow: ellipsis;   /* graceful truncation if needed */
  font-size: 20px;
  position: sticky;
  top: 0;
  color: var(--baac-green-700);
  font-weight: 700;
  text-align: center;
  vertical-align: middle;    /* center content vertically */
  padding: 12px;
}

.insured-card .ic-table thead th {
  white-space: nowrap;       /* prevent wrapping in header cells */
  overflow: hidden;          /* avoid spillover */
  text-overflow: ellipsis;   /* graceful truncation if needed */
  font-size: 20px;
  color: var(--baac-green-700);
  font-weight: 700;
  text-align: center;
  vertical-align: middle;    /* center content vertically */
  padding: 12px;
}


.instant-card .ic-table th.ic-col-feature,
.insured-card .ic-table th.ic-col-feature {
  text-align: left;
}

.instant-card .ic-table th.ic-col,
.insured-card .ic-table th.ic-col {
  text-align: center;
}

.instant-card .ic-table td,
.insured-card .ic-table td,
.instant-card .ic-table th,
.insured-card .ic-table th {
  width: 200px;
  border-right: 2px solid var(--baac-green-500);
}

.instant-card .ic-table tr td:last-child,
.insured-card .ic-table tr td:last-child,
.instant-card .ic-table tr th:last-child,
.insured-card .ic-table tr th:last-child {
  border-right: 0;
}

.instant-card .ic-sub-table td,
.insured-card .ic-sub-table td,
.instant-card .ic-sub-table th,
.insured-card .ic-sub-table th {
  padding: 0 0 !important;
  border-right: 1px solid var(--baac-green-500);
}

.instant-card .ic-sub-table tr td:last-child,
.insured-card .ic-sub-table tr td:last-child,
.instant-card .ic-sub-table tr th:last-child,
.insured-card .ic-sub-table tr th:last-child {
  border-right: 0;
}

/* Center sub-tables and ensure content doesn't spill */
.instant-card .ic-sub-table,
.insured-card .ic-sub-table {
  margin-left: auto;
  margin-right: auto;
}

.instant-card .ic-sub-table td,
.insured-card .ic-sub-table td {
  text-align: center;
  vertical-align: middle;
}

/* Ensure all body cells wrap text instead of overflowing */
.instant-card .ic-table tbody td,
.insured-card .ic-table tbody td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.instant-card .ic-table tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.1);
}

.insured-card .ic-table tbody .even-group {
  background: rgba(0,0,0,0.1);
}

.insured-card .ic-table tbody .sub-row td{
  padding: 0px 0;
}
.insured-card .ic-table tbody .sub-row .sub-row-title {
  padding: 0px 6px;
}
.insured-card .ic-table tbody .sub-row td,
.insured-card .ic-table tbody .sub-row th {
  font-size: 20px;
}

.insured-card .ic-table tbody tr.sub-row.first-sub-row td{
  padding-top: 24px;
}

.insured-card .ic-table tbody tr.sub-row.last-sub-row td{
  padding-bottom: 24px;
}

.instant-card .ic-table tbody tr td,
.insured-card .ic-table tbody tr td {
  padding: 24px 6px;
  color: var(--baac-green-700);
  text-align: center;
  vertical-align: middle;
}

.instant-card .ic-table tbody tr td.ic-row-title {
  text-align: left;
  color: var(--baac-green-700);
  font-weight: 600;
  width: 240px;
}

.insured-card .ic-table tbody tr td.ic-row-title {
  text-align: left;
  color: var(--baac-green-700);
  font-weight: 600;
  width: 240px;
}

.insured-card .ic-table tbody tr.insure-row td {
  font-size: 16px;
}

.insured-card tbody tr td {
  width: 200px;
}


/* Section 3 : INSURED CARDS */
#insured-card {
  display: flex;
  flex-direction: column;
 
  background: linear-gradient(
    180deg,
    var(--baac-yellow-100) 0%,
    var(--baac-yellow-100) 5%,
    var(--baac-green-500) 25%,
    var(--baac-green-700) 75%,
    var(--baac-green-500) 100%
  );
  position: relative;
  isolation: isolate;
  padding: 64px 0;
}

#insured-card header {
  margin-top: 10rem;
}

#insured-card::before {
  content: "";
  width: 100%;
  height: 85%;
  top: 15%; 
  bottom: 15%;
  position: absolute;
  background: 
    linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 15%, rgba(0,0,0,0) 15%, rgba(0,0,0,1) 100%),
    url('../images/bg-triangle.jpg') center/cover no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

#insured-card > * {
  position: relative;
  z-index: 1;
}

#section__footer-site {
  background: var(--baac-green-500);
  padding: 20px 0;
  text-align: center;
}


/* Yes/No indicators */
.ic-yes::before,
.ic-no::before {
  display: inline-block;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.instant-card .ic-yes,
.insured-card .ic-yes {
  color: var(--baac-green-700);
}

.instant-card .ic-no,
.insured-card .ic-no {
  color: #c93b3b;
}

.ic-selector {
  display: flex;
  width: 100%;
  align-items: center;
}

.ic-selector .spacer {
  width: 424px;
}

.ic-selector .ic-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}

.img-logo-footer {
  max-height: 50px;
  width: auto;
  height: auto;
  margin-bottom: 15px;
}

.fa {
  font-size: 20px;
}


/* Responsive layout for instant card */
@media (max-width: 992px) {
  .instant-card .ic-cards,
  .insured-card .ic-cards {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
  .instant-card .ic-card-img,
  .insured-card .ic-card-img {
    width: min(40vw, 160px); /* shrink on small screens, keep ratio */
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }
  .instant-card .ic-table,
  .insured-card .ic-table {
    font-size: 13px;
  }
  .instant-card .ic-table th.ic-col-feature,
  .insured-card .ic-table th.ic-col-feature {
    min-width: 180px;
  }
}

@media (max-width: 576px) {
  .instant-card .ic-cards,
  .insured-card .ic-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .instant-card .ic-card-img,
  .insured-card .ic-card-img {
    width: min(46vw, 140px); /* further shrink for very small screens */
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }
  .instant-card .ic-card-name,
  .insured-card .ic-card-name {
    font-size: 11pt;
  }
  .instant-card .ic-table-wrap,
  .insured-card .ic-table-wrap {
    padding: 8px;
    border-radius: 12px;
  }
  .instant-card .ic-table,
  .insured-card .ic-table {
    font-size: 18px;
  }

  .hero h1 {
    text-align: center;
  }

  .hero .content {
    padding: 0;
    margin: auto;
    max-width: 100%;
    padding-right: 0;
  }

  .hero-visual {
    max-width: 32%;
    bottom: 0;
    height: 70%;
    opacity: 40%;
  }

  .img-logo-footer {
    max-height: 40px;
  }
}

@media (max-width: 768px) {
  .hero-banner-bg {
    height: 400px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
    border-bottom-left-radius: 48px;
  }

  .hero .content {
    max-width: 100%;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 36pt;
  }

  .hero p {
    font-size: 18pt;
    font-weight: 500;
  }

  .hero .btn {
    font-size: 14pt;
    font-weight: 500;
  }

  .hero-visual {
    max-width: 32%;
    bottom: 0;
    height: 70%;
    opacity: 40% !important;
  }

  .hero-visual img {
    transform: scale(3.0);
  }

  header h2 {
    font-size: 18pt;
  }

  header h3 {
    font-size: 20px
  }

  .instant-card .ic-table tbody tr td.ic-row-title
  {
    font-size: 16px;
    text-align: left;
    color: var(--baac-green-700);
    font-weight: 600;
    width: 200px;
  }

  .instant-card .ic-table thead th.ic-col-feature {
    width: 200px;
  }

  .insured-card .ic-table tbody tr td.ic-row-title {
    font-size: 16px;
    text-align: left;
    color: var(--baac-green-700);
    font-weight: 600;
    width: 200px;
  }

  .instant-card .ic-table thead th,
  .insured-card .ic-table thead th {
    font-size: 16px;
  }

  .insured-card .ic-table tbody .sub-row td {
    font-size: 16px;
  }

  .insured-card .ic-table tbody td {
    font-size: 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-banner-bg {
    height: 400px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
    border-bottom-left-radius: 48px;
  }

  .hero .content {
    max-width: 80%;
    padding-right: 16px;
  }

  .hero-visual {
    max-width: 32%;
    bottom: 0;
    height: 70%;
    opacity: 50% !important;
    transform: scale(0.8);
  }

  .hero h1 {
    font-size: 36pt;
  }

  .hero p {
    font-size: 20pt;
    font-weight: 500;
  }

  .hero .btn {
    font-size: 14pt;
    font-weight: 500;
  }

  .instant-card .ic-table tbody tr td.ic-row-title
  {
    font-size: 20px;
    text-align: left;
    color: var(--baac-green-700);
    font-weight: 600;
    width: 200px;
  }

  .instant-card .ic-table thead th.ic-col-feature {
    width: 200px;
  }

  .insured-card .ic-table tbody tr td.ic-row-title {
    font-size: 20px;
    text-align: left;
    color: var(--baac-green-700);
    font-weight: 600;
    width: 200px;
  }

  .insured-card .ic-table tbody .sub-row td {
    font-size: 20pt;
  }

  .instant-card .ic-table thead th,
  .insured-card .ic-table thead th {
    font-size: 18px;
  }

  .ic-selector .spacer {
    width: 224px;
  }
}

  #stickyWidget {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    width: 68px;
    height: 68px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 1;
    transform: translateY(-20px);
    pointer-events: auto;
  }

  #stickyWidget.hide {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
  }

  /* Tighter header fonts without wrapping on small screens */
  @media (max-width: 1439px) {
    .instant-card .ic-table thead th,
    .insured-card .ic-table thead th {
      font-size: 16px;
    }
  }


