/* ========================================
   HOME.CSS — Homepage-specific Styles
   ======================================== */

/* ----------------------------------------
   1. HERO SECTION (NEW MOCKUP REDESIGN)
   ---------------------------------------- */
.hero-section-new {
  position: relative;
  width: 100%;
  min-height: 65vh;
  padding: 2rem 0;
  display: flex;
  align-items: center;
  background-image: url('../../images/hero-images/hero-background.png');
  background-size: cover;
  background-position: right 30%;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Gradient overlay to ensure text readability on the left */
.hero-section-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f9ff 0%, #e0f2fe 40%, rgba(224, 242, 254, 0.8) 50%, transparent 100%);
  z-index: 1;
}

/* On mobile, stack them */
@media (max-width: 991px) {
  .hero-section-new {
    background-position: center bottom;
    align-items: flex-start;
    padding-top: var(--space-3xl);
  }
  .hero-section-new::before {
    background: linear-gradient(to bottom, #f0f9ff 0%, #e0f2fe 50%, rgba(224, 242, 254, 0.5) 100%);
  }
}

.hero-content-left {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  padding: 1rem 0;
  text-align: center;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .hero-content-left {
    text-align: center;
    margin: 0 auto;
  }
}

.hero-badge-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(12, 92, 168, 0.15);
  color: #0c5ca8;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.hero-badge-new i {
  color: #0c5ca8;
}

.hero-title-new {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #07284d;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-icons-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .hero-icons-row {
    justify-content: center;
  }
}

.hero-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #07284d;
  transition: transform 0.3s ease;
}

.hero-icon-card:hover {
  color: #0c5ca8;
}

.hero-icon-card .icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid #e5e7eb; /* border-gray-200 */
  overflow: hidden;
  transition: all 0.3s ease;
}

.hero-icon-card:hover .icon-circle {
  border-color: #38bdf8;
  transform: scale(1.1);
}

.hero-icon-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-icon-card span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Actions */
.hero-actions-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 991px) {
  .hero-actions-container {
    align-items: center;
  }
}

.hero-actions-row2 {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .hero-actions-row2 {
    justify-content: center;
  }
}

.hero-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #091221;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  width: fit-content;
  transition: all 0.3s ease;
}

.hero-btn-dark:hover {
  background: #0c5ca8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(12, 92, 168, 0.3);
}

.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #07284d;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  border: 2px solid #07284d;
  width: fit-content;
  transition: all 0.3s ease;
}

.hero-btn-outline:hover {
  background: #f8fafc;
}

.hero-btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  width: fit-content;
  transition: all 0.3s ease;
  border: 2px solid #25D366;
}

.hero-btn-green:hover {
  background: #128C7E;
  border-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}



/* ----------------------------------------
   3. REVIEWS / TESTIMONIALS
   ---------------------------------------- */
.reviews-section {
  background: var(--gradient-hero);
}

.review-card {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px -10px rgba(12, 92, 168, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-card::after {
  content: '\f10e';
  /* fa-quote-right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 8rem;
  color: rgba(12, 92, 168, 0.03);
  transform: rotate(-10deg);
  z-index: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(12, 92, 168, 0.15);
  border-color: rgba(12, 92, 168, 0.2);
}

.review-card:hover::after {
  color: rgba(12, 92, 168, 0.06);
  transform: rotate(0deg) scale(1.1);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0c5ca8 0%, #0088ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(12, 92, 168, 0.25);
  border: 3px solid #ffffff;
}

.review-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.review-stars {
  color: #fbbf24;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  font-style: normal;
}

/* Swiper overrides */
.reviews-swiper .swiper-slide {
  height: auto;
}

.reviews-swiper .swiper-pagination-bullet-active {
  background-color: var(--color-primary);
}

/* ----------------------------------------
   4. CTA SECTION
   ---------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  color: var(--color-white);
  padding: var(--space-3xl) 0;
  margin-top: 4rem; /* Adds a nice white space gap above the CTA section */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  font-size: var(--text-lg);
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-outline {
  border-color: var(--color-white);
  color: var(--color-white);
}

.cta-buttons .btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ----------------------------------------
   5. WHY CHOOSE US (INFINITE LEFT-TO-RIGHT MARQUEE)
   ---------------------------------------- */
.why-choose-section {
  background: linear-gradient(180deg, #f0f7ff 0%, #e6f0fa 50%, #f8fafc 100%);
  padding: 5rem 0 6rem 0;
  position: relative;
  border-top: 1px solid rgba(12, 92, 168, 0.12);
  border-bottom: 1px solid rgba(12, 92, 168, 0.12);
  overflow: hidden;
}

.why-choose-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(12, 92, 168, 0.3) 50%, transparent 100%);
}

/* Marquee Outer Wrapper with Gradient Fade Edges */
.why-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1.5rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

/* Infinite Track Moving Left to Right */
.why-marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: moveLeftToRight 25s linear infinite;
  will-change: transform;
}

.why-marquee-wrapper:hover .why-marquee-track {
  animation-play-state: paused;
}

@keyframes moveLeftToRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0%);
  }
}

.why-card {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  padding: 2rem;
  text-align: left;
  box-shadow: 0 10px 30px -10px rgba(12, 92, 168, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 340px;
  flex-shrink: 0;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0%;
  background: linear-gradient(180deg, #0c5ca8 0%, #25d366 100%);
  transition: height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(12, 92, 168, 0.2);
  border-color: rgba(12, 92, 168, 0.2);
}

.why-card:hover::before {
  height: 100%;
}

/* Premium Left-Aligned Icon */
.why-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(12, 92, 168, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.why-card:hover .why-card-icon {
  background: #0c5ca8;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 10px 20px rgba(12, 92, 168, 0.3);
}

.why-card-icon i {
  font-size: 1.6rem;
  color: #0c5ca8;
  transition: color 0.4s ease;
}

.why-card:hover .why-card-icon i {
  color: #ffffff;
}

/* Updated Pill Tag */
.why-card-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #0c5ca8;
  margin-bottom: 0.85rem;
  display: block;
}

.why-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.why-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #64748b;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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