/* --- RESET & VARIABLES --- */
:root {
  --primary-blue: #0f2b46;
  --primary-light: #1a4a75;
  --accent-red: #d93025;
  --accent-red-hover: #b92015;
  --text-dark: #222;
  --text-gray: #555;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --container-width: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

/* --- UTILITIES --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}
.text-center {
  text-align: center;
}
.text-blue {
  color: var(--primary-blue);
}
.text-red {
  color: var(--accent-red);
}
.bold {
  font-weight: 700;
}
.hidden {
  display: none;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  letter-spacing: 0.5px;
}
.btn-red {
  background-color: var(--accent-red);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(217, 48, 37, 0.4);
}
.btn-red:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(217, 48, 37, 0.5);
}
.btn-outline {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* --- HEADER --- */
header {
  background: var(--white);
  padding: 15px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-btn {
  padding: 15px 20px !important;
  font-size: 15px !important;
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  letter-spacing: 0.5px;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  background-image: url("./assets/hero-img.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 50px 0 50px;
  text-align: center;
  color: var(--white);
  display: flex;
  align-items: center;
  min-height: 85vh;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 43, 70, 0.92),
    rgba(15, 43, 70, 0.75)
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.2rem; /* Desktop Size */
  font-weight: 800;
  color: #fff;
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-box {
  background: rgba(255, 255, 255, 0.98);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin: 50px auto 0;
  border-top: 6px solid var(--accent-red);
  color: var(--text-dark);
}

.hero-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}

/* --- ELIGIBILITY SECTION --- */
.eligibility {
  padding: 30px 0;
  background: var(--white);
}
.eligibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
}
.eligibility-card {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.eligibility-card.yes {
  border-top: 5px solid #2e7d32;
}
.eligibility-card.no {
  border-top: 5px solid var(--text-gray);
  background-color: #f9f9f9;
}

.list-check li,
.list-cross li {
  list-style: none;
  padding: 12px 0;
  padding-left: 35px;
  position: relative;
  border-bottom: 1px solid #eee;
  font-weight: 600;
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2e7d32;
  font-weight: 800;
  font-size: 1.2rem;
}
.list-cross li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--accent-red);
  font-weight: 800;
  font-size: 1.1rem;
}

/* --- HOW WE HELP (DIAGRAM) --- */
.how-we-help {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 50px 0;
}
.diagram-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 50px;
  gap: 30px;
}
.debt-inputs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.debt-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 15px 15px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  width: 100%;
}
.debt-box.plus-icon {
  background: white;
  color: #0f2b46;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 25px;
}
.diagram-arrow {
  font-size: 3rem;
  color: var(--white);
  margin: 0 20px;
  opacity: 0.8;
}
.consolidated-box {
  background: var(--white);
  color: var(--primary-blue);
  padding: 45px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  max-width: 380px;
  position: relative;
  transform: scale(1.05);
}
.consolidated-box::after {
  content: "★";
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--accent-red);
  color: white;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* --- ABOUT SECTION --- */
.about-section {
  padding: 50px 0;
  background: var(--white);
  overflow: hidden;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 120px;
  align-items: center;
}

.about-visual {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 120%;
  background: linear-gradient(135deg, #f0f7ff 0%, #e1e9f4 100%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  z-index: 0;
  left: -20%;
  top: -10%;
}

.img-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(15, 43, 70, 0.15);
  background: #fff;
  padding: 10px;
}

.float-icon {
  position: absolute;
  background: var(--white);
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 2;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-1 {
  top: 15%;
  left: -20px;
  border-left: 4px solid #2e7d32;
}
.icon-2 {
  bottom: 15%;
  right: -20px;
  border-left: 4px solid var(--primary-blue);
}
.icon-3 {
  top: 50%;
  left: -40px;
  border-left: 4px solid #f4b400;
}

.about-content h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.about-desc {
  color: var(--text-gray);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.trust-badge-text {
  display: inline-block;
  background: #eef4fb;
  color: var(--primary-blue);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.check-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  margin-bottom: 40px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.check-icon {
  color: #2e7d32;
  font-weight: 900;
  font-size: 1.2rem;
  margin-right: 12px;
  flex-shrink: 0;
}

.btn-arrow::after {
  content: " →";
  font-weight: bold;
  margin-left: 8px;
  transition: margin-left 0.2s;
}
.btn:hover .btn-arrow::after {
  margin-left: 12px;
}

/* --- WHY CHOOSE US --- */
.why-us {
  padding: 50px 0;
  background: #fcfcfc;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.feature-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  transition: 0.3s;
  box-shadow: var(--shadow-sm);
}
.feature-box:hover {
  border-color: var(--primary-blue);
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
  display: block;
}
.feature-box h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* --- REVIEWS CAROUSEL --- */
.reviews {
  background: linear-gradient(180deg, #f8f9fa 0%, #e6eff7 100%);
  padding: 50px 0;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 60px 60px;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  gap: 30px;
}

.review-card {
  flex: 0 0 calc(50% - 15px);
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-bottom: 5px solid var(--primary-blue);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.review-card::before {
  content: "“";
  position: absolute;
  top: 15px;
  right: 30px;
  font-size: 6rem;
  color: #f0f4f8;
  font-family: serif;
  line-height: 0;
  z-index: 0;
}

.review-content {
  position: relative;
  z-index: 1;
}
.review-stars {
  color: #f4b400;
  font-size: 1.1rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
}
.review-title {
  font-weight: 800;
  color: var(--primary-blue);
  font-size: 1.2rem;
  margin-bottom: 12px;
  display: block;
}
.review-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 25px;
  font-style: italic;
}

.reviewer-info {
  display: flex;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid #eee;
  padding-top: 20px;
}
.reviewer-avatar {
  width: 45px;
  height: 45px;
  background-color: var(--primary-light);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  font-size: 1rem;
}
.reviewer-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
}
.reviewer-status {
  font-size: 0.8rem;
  color: #2e7d32;
  display: block;
  font-weight: 500;
}

/* Carousel Navigation & Dots */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: var(--primary-blue);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.carousel-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}
.carousel-btn.prev-btn {
  left: 0;
}
.carousel-btn.next-btn {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  gap: 12px;
  z-index: 10;
}
.dot {
  width: 12px;
  height: 12px;
  background-color: #cbd5e0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot:hover {
  background-color: #a0aec0;
}
.dot.active {
  background-color: var(--primary-blue);
  transform: scale(1.3);
}

/* --- FOOTER --- */
.final-cta {
  padding: 50px 0;
  text-align: center;
  background: #fff;
}
.final-cta h2 {
  font-size: 2.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
  font-weight: 800;
}
footer {
  background: #0a1f33;
  color: #8899a6;
  padding: 60px 0;
  font-size: 0.9rem;
}
.disclosure {
  border-top: 1px solid #1c3550;
  margin-top: 40px;
  padding-top: 30px;
  font-size: 0.85rem;
  line-height: 1.8;
}

/* --- RESPONSIVE / MOBILE STYLES (OPTIMIZED) --- */

/* TABLET & SMALL LAPTOPS (900px and below) */
@media (max-width: 900px) {
  .container {
    padding: 0 25px;
  }

  /* HERO OPTIMIZATIONS */
  .hero {
    padding: 60px 0 80px;
    min-height: auto;
  }
  .hero h1 {
    font-size: 2rem;
  } /* Slightly smaller for tablet */

  .nav-flex {
    flex-direction: row;
    gap: 10px;
  }
  .eligibility-grid {
    grid-template-columns: 1fr;
  }

  .diagram-container {
    flex-direction: column;
    gap: 10px;
  }
  .diagram-arrow {
    transform: rotate(90deg);
  }
  .consolidated-box {
    width: 100%;
    transform: none;
  }
  .consolidated-box h3 {
    font-size: 1.2rem !important;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-visual {
    order: -1;
    min-height: 300px;
  }
  .check-list-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* MOBILE PHONES (768px and below) */
@media (max-width: 768px) {
  .logo img {
    width: 150px !important;
    height: 40px !important;
  }
  .header-btn {
    padding: 10px 20px !important;
    font-size: 11px !important;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
  }

  .btn {
    font-size: 15px !important;
  }
  /* 1. TYPOGRAPHY FIXES (Looks good on mobile) */
  .hero h1 {
    font-size: 1.3rem; /* Clean, not too big */
    line-height: 1.3;
    margin-bottom: 15px;
  }
  .hero p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .hero-box {
    padding: 30px 20px; /* Tighter padding for mobile */
    margin-top: 30px;
  }
  .hero-box h3 {
    font-size: 1.3rem; /* Scaled down sub-headline */
    line-height: 1.35;
  }

  .about-content h2,
  .final-cta h2,
  .eligibility h2,
  .how-we-help h2,
  .why-us h2 {
    font-size: 1.2rem; /* Consistent Section Headings */
  }

  /* 2. CAROUSEL FIXES */
  .review-card {
    flex: 0 0 100%;
  }
  .carousel-wrapper {
    padding: 0 0 100px;
  }

  .carousel-dots {
    display: flex !important;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
  }

  .carousel-btn {
    top: auto;
    bottom: 12px;
    width: 45px;
    height: 45px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  .carousel-btn.prev-btn {
    left: 20px;
    right: auto;
  }
  .carousel-btn.next-btn {
    right: 20px;
    left: auto;
  }
  .reviews {
    padding-bottom: 50px;
  }
  .feature-box {
    padding: 10px 10px !important;
  }
  .feature-icon {
    margin: 0px !important;
  }
}
