* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Header */
header {
  transition: all 0.3s ease;
  z-index: 1050;
}
header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
header.default {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

/* Brand Logo */
.brand-logo img {
  max-height: 70px;
  width: auto;
  display: block;
}

/* Nav links */
.nav-link {
  font-weight: 500;
  color: #374151;
  position: relative;
  transition: color 0.3s;
  text-decoration: none;
}
.nav-link:hover {
  color: #1e3a8a;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #facc15, #ca8a04);
  transition: width 0.3s;
}
.nav-link:hover::after {
  width: 100%;
}

/* Remove default Bootstrap caret */
.dropdown-toggle::after {
  display: none !important;
}

/* Rotate chevron when dropdown is open */
.dropdown-toggle .fa-chevron-down {
  transition: transform 0.3s ease;
}
.dropdown.show .fa-chevron-down {
  transform: rotate(180deg);
}
/* Mobile dropdown fix */
#mobileNav .collapse .dropdown-item {
  padding: 0.5rem 0;
  color: #374151;
}
#mobileNav .collapse .dropdown-item:hover {
  color: #1e3a8a;
}

/* Gradient button */
.btn-gradient {
  background: linear-gradient(to right, #facc15, #ca8a04);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: none;
}
.btn-gradient:hover {
  background: linear-gradient(to right, #eab308, #a16207);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  color: #fff;
}

/* Mobile menu button */
.mobile-menu-btn {
  font-size: 1.5rem;
  color: #000 !important;
  background: none;
  border: none;
  outline: none;
}
.mobile-menu-btn:hover {
  color: #000 !important;
}

/* Mobile nav */
#mobileNav a {
  color: #374151;
  font-weight: 500;
  transition: color 0.3s;
}
#mobileNav a:hover {
  color: #1e3a8a;
}
#mobileNav .btn-gradient {
  margin-top: 1rem;
}

/* Background Gradient */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc, #ffffff, #ebf4ff);
  padding: 120px 0 80px;
}
.faq-section {
  background: linear-gradient(135deg, #f8fafc, #ffffff, #ebf4ff);
}

/* Background blur circles */
.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.circle-1 {
  top: 25%;
  left: 25%;
  width: 260px;
  height: 260px;
  background: linear-gradient(135deg, #796f48, #2563eb);
}
.circle-2 {
  bottom: 25%;
  right: 25%;
  width: 380px;
  height: 380px;
  background: linear-gradient(135deg, #2563eb, #facc15);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(90deg, #facc15, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Illustration box */
.illustration-box {
  background: linear-gradient(135deg, #dbeafe, #fef9c3);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.1);
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}
.step-active {
  background: linear-gradient(90deg, #facc15, #d97706);
}
.step-inactive {
  background: linear-gradient(90deg, #d1d5db, #9ca3af);
}
.step-bar {
  flex: 1;
  height: 8px;
  border-radius: 8px;
}
.bar-active {
  background: linear-gradient(90deg, #facc15, #d97706);
}
.bar-inactive {
  background: #e5e7eb;
}

/* Floating elements */
.floating-circle {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  transform: rotate(12deg);
}
.float-1 {
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  animation: bounce 2s infinite;
}
.float-2 {
  bottom: -20px;
  left: -20px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  animation: pulse 2s infinite;
}

/* Animations */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* About Section */
.about-section {
  background-color: #f9fafb;
  padding: 5rem 0;
}

/* Image wrapper with gradient border */
.img-wrapper {
  background: linear-gradient(135deg, #2563eb, #f59e0b);
  border-radius: 24px;
  padding: 4px;
  position: relative;
}
.img-card {
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
}
.img-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

/* Floating stats */
.floating-stat {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.13rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.floating-top {
  top: -24px;
  right: -10px;
}
.floating-bottom {
  bottom: -24px;
  left: -24px;
}

/* Value cards */
.value-card {
  height: 220px;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}
.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #facc15, #2563eb);
  color: #fff;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.value-card:hover .value-icon {
  transform: scale(1.1);
}

/* Services */
.services-section {
  padding: 5rem 0;
  background: #fff;
}

/* Service card */
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-12px);
  border-color: #e5e7eb;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Icon */
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
  color: #fff;
  font-size: 1.75rem;
}
.service-card:hover .service-icon {
  transform: scale(1.1);
}

/* Gradient backgrounds for icons */
.icon-blue {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}
.icon-yellow {
  background: linear-gradient(90deg, #facc15, #ea580c);
}
.icon-green {
  background: linear-gradient(90deg, #22c55e, #059669);
}
.icon-purple {
  background: linear-gradient(90deg, #8b5cf6, #4338ca);
}

/* Feature list */
.feature-dot {
  width: 6px;
  height: 6px;
  background: linear-gradient(90deg, #facc15, #2563eb);
  border-radius: 50%;
  margin-right: 0.5rem;
}

/* Bottom CTA */
.cta-box {
  background: linear-gradient(90deg, #eff6ff, #fef9c3);
  border-radius: 20px;
  padding: 2.5rem;
}

.btn-gradient-yellow {
  background: linear-gradient(90deg, #facc15, #d97706);
  color: #fff;
  transition: all 0.3s ease;
  border: none;
}
.btn-gradient-yellow:hover {
  background: linear-gradient(90deg, #eab308, #b45309);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  color: #fff;
}

/* Fade-in animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Mutual Funds */
.text-gradient {
  background: linear-gradient(to right, #facc15, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.category-btn {
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: none;
}
.category-btn.active,
.category-btn:hover {
  background: linear-gradient(to right, #facc15, #eab308);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-fund {
  border-radius: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.card-fund:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.bg-gradient {
  background: linear-gradient(to bottom right, #eff6ff, #fef9c3);
}

.risk-badge {
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.risk-low {
  background: #dcfce7;
  color: #16a34a;
}
.risk-low-moderate {
  background: #fef9c3;
  color: #ca8a04;
}
.risk-moderate {
  background: #fef08a;
  color: #d97706;
}
.risk-moderate-high {
  background: #fed7aa;
  color: #ea580c;
}
.risk-high {
  background: #fecaca;
  color: #dc2626;
}
.risk-very-high {
  background: #fca5a5;
  color: #b91c1c;
}

/* Goal Planning */
.timeline {
  position: relative;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #facc15, #2563eb, #9333ea);
  border-radius: 5px;
}
.timeline-item {
  margin-bottom: 4rem;
}
.timeline-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border: 4px solid #fff;
  border-radius: 50%;
  z-index: 2;
}

/* Goal Cards */
.goal-card {
  border: 1px solid #f1f1f1;
  padding: 1.5rem;
  border-radius: 1rem;
  transition: 0.3s ease;
}
.goal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
}
.goal-icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  margin-bottom: 1rem;
}
.step-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: linear-gradient(to right, #facc15, #2563eb);
  border-radius: 50%;
  margin-right: 8px;
}

/* Button Gradients */
.btn-gradient-green {
  background: linear-gradient(to right, #22c55e, #059669);
  color: #fff;
  border: none;
}
.btn-gradient-purple {
  background: linear-gradient(to right, #9333ea, #4338ca);
  color: #fff;
  border: none;
}
.btn-gradient-orange {
  background: linear-gradient(to right, #f59e0b, #ea580c);
  color: #fff;
  border: none;
}

/* Process Steps */
.goal-process {
  background: linear-gradient(135deg, #eff6ff, #fef9c3);
}
.process-step {
  width: 60px;
  height: 60px;
  background: linear-gradient(to right, #facc15, #2563eb);
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto auto 1rem;
}

/* Gradients for Icons & Nodes */
.bg-gradient-blue {
  background: linear-gradient(to right, #3b82f6, #06b6d4);
}
.bg-gradient-green {
  background: linear-gradient(to right, #22c55e, #059669);
}
.bg-gradient-purple {
  background: linear-gradient(to right, #9333ea, #4338ca);
}
.bg-gradient-orange {
  background: linear-gradient(to right, #f59e0b, #ea580c);
}

/* Testimonials */
.testimonials-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #eff6ff, #fff, #fef9c3);
  overflow: hidden;
}
.testimonials-section::before,
.testimonials-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}
.testimonials-section::before {
  top: 20%;
  left: 20%;
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #facc15, #2563eb);
}
.testimonials-section::after {
  bottom: 20%;
  right: 20%;
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #2563eb, #facc15);
}

.testimonial-card {
  background: #fff;
  border-radius: 30px;
  padding: 50px 30px;
}

.testimonial-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fde68a;
}

.testimonial-feedback {
  font-size: 1.1rem;
  font-style: italic;
  color: #374151;
}

.testimonial-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
}

.testimonial-role {
  font-size: 1rem;
  color: #6b7280;
}

.stars i {
  color: #facc15;
  font-size: 20px;
}

.carousel-indicators [data-bs-target] {
  width: 20px;
  height: 1px;
  border-radius: 50%;
  background: linear-gradient(90deg, #facc15, #2563eb);
}

.stats-number {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #facc15, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats-label {
  font-size: 1rem;
  color: #6b7280;
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #0a1d3a, #123c66, #0a1d3a);
  overflow: hidden;
}
.cta-heading {
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.cta-heading span {
  background: linear-gradient(to right, #facc15, #ca8a04);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.cta-text {
  color: #cbd5e1;
  font-size: 1.1rem;
}

.btn-yellow {
  background: linear-gradient(to right, #facc15, #ca8a04);
  color: #0a1d3a;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  transition: all 0.3s ease-in-out;
  border: none;
}
.btn-yellow:hover {
  background: linear-gradient(to right, #fbbf24, #a16207);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.3);
  color: #0a1d3a;
}

.btn-outline-yellow {
  border: 2px solid #facc15;
  color: #facc15;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  transition: all 0.3s ease-in-out;
  background: transparent;
}
.btn-outline-yellow:hover {
  background: #facc15;
  color: #0a1d3a;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.3);
}

.contact-box {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #cbd5e1;
}
.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(to right, #facc15, #ca8a04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon i {
  color: #0a1d3a;
  font-size: 20px;
}
.contact-box strong {
  color: #facc15;
}

.trust-badges {
  color: #cbd5e1;
  font-size: 0.9rem;
  opacity: 0.8;
}
.trust-badges .dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

/* COMPLETE FOOTER RESPONSIVE STYLES */

/* Base Footer Styles (Desktop) - Keep existing styles intact */
.footer {
  background: #111827;
  color: #fff;
}

.footer-logo {
  max-width: 60px;
  flex-shrink: 0;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
}
.social-btn.linkedin {
  background: linear-gradient(to right, #0a66c2, #004182);
}
.social-btn.twitter {
  background: linear-gradient(to right, #1da1f2, #0d8ddb);
}
.social-btn.youtube {
  background: linear-gradient(to right, #ff0000, #cc0000);
}
.social-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
  color: #fff;
}

.footer-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-link:hover {
  color: #facc15;
  text-decoration: underline;
}

.dot {
  width: 6px;
  height: 6px;
  background: linear-gradient(to right, #facc15, #2563eb);
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.icon-box {
  width: 40px;
  height: 40px;
  background: linear-gradient(to right, #facc15, #ca8a04);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Mobile Responsive Footer Styles */

/* Extra Small devices (< 576px) */
@media (max-width: 575.98px) {
  .footer {
    padding: 2rem 0 1rem;
  }

  .footer .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Override center alignment for mobile */
  .footer .row {
    text-align: left !important;
  }

  .footer .col-lg-3,
  .footer .col-md-6 {
    text-align: left !important;
    margin-bottom: 2rem;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Company Info Section */
  .footer .col-lg-3:first-child .d-flex.align-items-center.mb-3 {
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-logo {
    max-width: 45px;
  }

  .footer .col-lg-3:first-child h3 {
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.2;
  }

  .footer .text-light.small {
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  /* Social Media Section */
  .footer h5.fw-semibold.mt-4 {
    text-align: left;
    font-size: 1rem;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem;
  }

  .footer .d-flex.gap-3.mt-2 {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem !important;
    margin-top: 0.75rem !important;
  }

  .social-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 0.9rem;
  }

  /* Quick Links Section */
  .footer .col-lg-3:nth-child(2) h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-align: left;
  }

  .footer .list-unstyled {
    text-align: left;
    margin-bottom: 0;
  }

  .footer .list-unstyled li {
    margin-bottom: 0.5rem;
  }

  .footer-link {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  /* Services Section */
  .footer .col-lg-3:nth-child(3) h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-align: left;
  }

  .footer .col-lg-3:nth-child(3) .list-unstyled li {
    margin-bottom: 0.5rem;
  }

  .footer .d-flex.align-items-center.mb-2 {
    align-items: flex-start;
    margin-bottom: 0.5rem !important;
  }

  .footer .dot {
    margin-top: 0.25rem;
    margin-right: 8px;
    flex-shrink: 0;
  }

  /* Contact Information Section */
  .footer .col-lg-3:last-child h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-align: left;
  }

  .footer .d-flex.mb-3 {
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 1rem !important;
    gap: 12px;
  }

  .icon-box {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .icon-box i {
    font-size: 0.9rem;
  }

  .footer .d-flex.mb-3 .ms-3 {
    margin-left: 0 !important;
    flex: 1;
  }

  .footer .fw-semibold {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .footer .text-light.small {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  /* Security Badges Section */
  .footer .border-top.border-secondary.pt-4.mt-5 {
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
  }

  .footer .d-flex.flex-wrap.gap-4 {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem !important;
  }

  .footer .d-flex.align-items-center.gap-2.text-light.small {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    align-items: center;
  }

  .footer .fas.fa-shield-alt,
  .footer .fas.fa-lock {
    font-size: 0.8rem;
  }

  /* Compliance Disclaimer Section */
  .footer .border-top.border-secondary.pt-4.mt-4 {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
  }

  .footer .bg-secondary.bg-opacity-25.rounded.p-4 {
    padding: 1.5rem !important;
    border-radius: 8px !important;
  }

  .footer h6.fw-semibold.text-warning.mb-3 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem !important;
  }

  .footer .bg-secondary p.small.text-light {
    font-size: 0.75rem !important;
    line-height: 1.4;
    margin-bottom: 0;
  }

  /* Copyright Section - Centered */
  .footer .border-top.pt-4.mt-4.text-center {
    text-align: center !important;
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
  }

  .footer .text-center p {
    text-align: center !important;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
  }

  .footer .text-center p.small {
    font-size: 0.75rem !important;
    margin-bottom: 0;
  }

  .footer .text-center a {
    color: #facc15;
    text-decoration: none;
  }

  .footer .text-center a:hover {
    text-decoration: underline;
  }
}

/* Small devices (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .footer {
    padding: 3rem 0 2rem;
  }

  /* Keep left alignment but with better spacing */
  .footer .row {
    text-align: left !important;
  }

  .footer .col-lg-3,
  .footer .col-md-6 {
    text-align: left !important;
    margin-bottom: 2rem;
  }

  .footer-logo {
    max-width: 50px;
  }

  .footer h5 {
    font-size: 1.1rem;
  }

  .social-btn {
    width: 38px;
    height: 38px;
  }

  .icon-box {
    width: 38px;
    height: 38px;
  }

  /* Copyright stays centered */
  .footer .text-center {
    text-align: center !important;
  }

  .footer .text-center p {
    text-align: center !important;
  }
}

/* Medium devices (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .footer .col-md-6 {
    margin-bottom: 2rem;
  }

  /* On tablets, we can start using some centering for better balance */
  .footer .row {
    text-align: left;
  }
}

/* Ensure no horizontal overflow in footer */
.footer * {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer .container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

/* Fix for very long text in footer */
.footer .text-light.small,
.footer .footer-link {
  word-break: break-word;
  hyphens: auto;
}

/* Ensure footer links are touchable on mobile */
@media (max-width: 767.98px) {
  .footer-link,
  .social-btn {
    min-height: 44px;
    /* display: flex; */
    align-items: center;
    padding: 0.5rem 0;
  }

  .social-btn {
    min-height: 36px;
    justify-content: center;
  }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
  .footer {
    background: #0f172a;
  }
}

/* RESPONSIVE IMPROVEMENTS */

/* Mobile First - Extra Small devices (< 576px) */
@media (max-width: 575.98px) {
  /* Header adjustments */
  header .container {
    padding: 8px 15px;
  }

  .brand-logo {
    width: 80px;
    height: 80px;
  }

  .fs-5 {
    font-size: 1rem !important;
  }

  .mobile-menu-btn {
    font-size: 1.2rem;
  }

  /* Hero section */
  .hero-section {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .display-4 {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  .fs-5 {
    font-size: 1.1rem !important;
  }

  .illustration-box {
    padding: 2rem;
    margin-top: 2rem;
  }

  .step-circle {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .floating-circle {
    display: none;
  }

  .circle-1,
  .circle-2 {
    width: 180px;
    height: 180px;
  }

  /* About section */
  .img-card img {
    height: 250px;
  }

  .floating-stat {
    position: static;
    margin: 1rem 0;
    display: inline-block;
  }

  .floating-top,
  .floating-bottom {
    position: static;
  }

  .value-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  /* Services */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .service-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .cta-box {
    padding: 2rem;
  }

  /* Mutual funds */
  .category-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .card-fund {
    padding: 15px;
    margin-bottom: 1rem;
  }

  .bg-gradient {
    padding: 2rem;
  }

  /* Goal planning */
  .timeline-line {
    left: 30px;
    width: 2px;
  }

  .timeline-node {
    left: 30px;
    width: 30px;
    height: 30px;
  }

  .timeline-item {
    margin-left: 60px;
    margin-bottom: 2rem;
  }

  .timeline-item .row {
    margin: 0;
  }

  .timeline-item .col-md-6 {
    padding: 0;
  }

  .goal-card {
    padding: 1.25rem;
  }

  .goal-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .process-step {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }

  /* Testimonials */
  .testimonials-section {
    padding: 60px 0;
  }

  .testimonial-card {
    padding: 30px 20px;
  }

  .testimonial-card img {
    width: 80px;
    height: 80px;
  }

  .testimonial-feedback {
    font-size: 1rem;
  }

  .testimonial-name {
    font-size: 1.1rem;
  }

  .stats-number {
    font-size: 1.5rem;
  }

  /* CTA section */
  .cta-section {
    padding: 60px 0;
  }

  .cta-heading {
    font-size: 1.8rem !important;
  }

  .btn-yellow,
  .btn-outline-yellow {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .contact-box {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    margin-bottom: 1rem;
  }

  .trust-badges {
    flex-direction: column;
    gap: 10px;
  }
}

/* Small devices (576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .display-4 {
    font-size: 2.5rem !important;
  }

  .illustration-box {
    padding: 2.5rem;
  }

  .img-card img {
    height: 280px;
  }

  .floating-stat {
    position: absolute;
  }

  .timeline-line {
    left: 50%;
  }

  .timeline-node {
    left: 50%;
  }

  .timeline-item {
    margin-left: 0;
  }

  .testimonial-card {
    padding: 40px 25px;
  }

  .contact-box {
    justify-content: center;
  }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    padding: 120px 0 80px;
  }

  .illustration-box {
    padding: 2.5rem;
    margin-top: 2rem;
  }

  .service-card {
    height: auto;
    min-height: 400px;
  }

  .goal-card {
    margin-bottom: 2rem;
  }

  .testimonial-card {
    padding: 45px 30px;
  }
}

/* Large devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .illustration-box {
    padding: 2.8rem;
  }

  .service-card {
    padding: 1.8rem;
  }

  .testimonial-card {
    padding: 50px 30px;
  }
}

/* Extra responsive fixes for very small screens */
@media (max-width: 375px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .display-4 {
    font-size: 1.8rem !important;
  }

  .btn-gradient,
  .btn-gradient-yellow {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .illustration-box {
    padding: 1.5rem;
  }

  .value-card,
  .service-card,
  .goal-card {
    padding: 1rem;
  }

  .cta-heading {
    font-size: 1.5rem !important;
  }

  .category-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Fix for horizontal scrolling */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive text scaling */
@media (max-width: 767.98px) {
  .display-5 {
    font-size: 2rem !important;
  }

  .display-6 {
    font-size: 1.5rem !important;
  }

  .lead {
    font-size: 1.1rem !important;
  }
}

/* Timeline responsive fix for mobile */
@media (max-width: 767.98px) {
  .timeline-item.flex-row-reverse {
    flex-direction: column !important;
  }

  .timeline-item .col-md-6.ps-md-5,
  .timeline-item .col-md-6.pe-md-5 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Carousel responsive fixes */
@media (max-width: 767.98px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 8%;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    padding: 2rem;
  }
}

/* Form elements responsive */
.form-range {
  width: 100%;
}

/* Button responsive spacing */
@media (max-width: 767.98px) {
  .d-flex.gap-3 {
    flex-direction: column;
    gap: 1rem !important;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}
/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none; /* Initially hidden */
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-in-out;
  padding: 15px; /* Prevent modal from touching edges on small screens */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Container */
.modal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
  position: relative;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Content */
.modal-content {
  background: white;
  margin: 6px;
  border-radius: 16px;
  padding: 40px;
  position: relative;
}

/* Header */
.modal-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.security-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.modal-title {
  color: #2d3436;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.modal-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-subtitle {
  color: #636e72;
  font-size: 16px;
  font-weight: 500;
}

/* Body */
.modal-body {
  color: #2d3436;
  font-size: 16px;
  line-height: 1.8;
}

.company-name {
  color: #0984e3;
  font-weight: 700;
}

.contact-info {
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  text-align: center;
}

.contact-info h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #fff;
}

.contact-item {
  margin: 10px 0;
  font-weight: 500;
}

.highlight {
  background: linear-gradient(120deg, #ffecd2 0%, #fcb69f 100%);
  padding: 20px;
  border-radius: 12px;
  border-left: 5px solid #e17055;
  margin: 20px 0;
}

.warning {
  background: linear-gradient(120deg, #ff9a9e 0%, #fecfef 100%);
  padding: 20px;
  border-radius: 12px;
  border-left: 5px solid #e84393;
  margin: 20px 0;
  font-weight: 600;
}

/* Close Button */
.close-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 30px auto 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.close-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* ============================= */
/* RESPONSIVE DESIGN             */
/* ============================= */

/* Tablets */
@media (max-width: 992px) {
  .modal-title {
    font-size: 24px;
  }
  .modal-subtitle {
    font-size: 15px;
  }
  .modal-body {
    font-size: 15px;
  }
}

/* Mobiles */
@media (max-width: 576px) {
  .modal-content {
    padding: 20px;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-subtitle {
    font-size: 14px;
  }

  .modal-body {
    font-size: 14px;
    line-height: 1.6;
  }

  .close-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    margin-top: 20px;
  }

  .security-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  .modal{max-height: 70vh;}
}

.faq-header {
  text-align: center;
  margin-bottom: 50px;
}

.faq-header h1 {
  background: linear-gradient(to right, #facc15, #ca8a04);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.faq-header p {
  color: #1e3a8a;
  font-size: 1.1rem;
  font-weight: 500;
}

.faq-container {
  display: grid;
  gap: 20px;
}

.faq-item {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(250, 204, 21, 0.3);
}

.faq-question {
  background: linear-gradient(to right, #facc15, #ca8a04);
  color: white;
  padding: 25px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: linear-gradient(to right, #eab308, #a16207);
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  background: white;
}

.faq-answer.active {
  padding: 30px;
  max-height: 1000px;
}

.faq-answer p {
  color: #1e3a8a;
  line-height: 1.7;
  margin-bottom: 15px;
}

.faq-answer ul {
  color: #1e3a8a;
  margin-left: 20px;
  line-height: 1.7;
}

.faq-answer li {
  margin-bottom: 8px;
}

.website-link {
  color: #ca8a04;
  text-decoration: underline;
  font-weight: 600;
}

.website-link:hover {
  color: #facc15;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .faq-question {
    padding: 20px;
    font-size: 1rem;
  }

  .faq-answer.active {
    padding: 20px;
  }
}
/* Privacy Policy Modal Styles */
.privacy-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  animation: privacyFadeIn 0.3s ease-in-out;
}

@keyframes privacyFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes privacyFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.privacy-modal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  max-width: 700px;
  width: 95%;
  max-height: 100vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: privacySlideUp 0.4s ease-out;
  position: relative;
}

@keyframes privacySlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.privacy-modal-content {
  background: white;
  margin: 4px;
  border-radius: 16px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.privacy-modal-header {
  text-align: center;
  padding: 30px 30px 20px;
  border-bottom: 2px solid #f0f0f0;
  flex-shrink: 0;
}

.privacy-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 20px;
  color: white;
}

.privacy-modal-title {
  color: #2d3436;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.privacy-modal-subtitle {
  color: #636e72;
  font-size: 14px;
  font-weight: 500;
}

.privacy-modal-body {
  padding: 20px 30px;
  color: #2d3436;
  font-size: 15px;
  line-height: 1.6;
  overflow-y: auto;
  flex-grow: 1;
}

.privacy-section {
  margin-bottom: 20px;
}

.privacy-section h4 {
  color: #0984e3;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 16px;
}

.privacy-section ul {
  margin-left: 20px;
  margin-top: 10px;
}

.privacy-section li {
  margin-bottom: 5px;
}

.privacy-highlight {
  background: linear-gradient(120deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #2196f3;
  margin: 15px 0;
}

.privacy-contact {
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
  text-align: center;
}

.privacy-contact strong {
  color: #fff;
}

.privacy-modal-footer {
  padding: 20px 30px;
  border-top: 2px solid #f0f0f0;
  text-align: center;
  flex-shrink: 0;
}

.privacy-close-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.privacy-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .privacy-modal-overlay {
    padding: 10px;
  }

  .privacy-modal {
    width: 100%;
    max-height: 85vh;
  }

  .privacy-modal-content {
    max-height: calc(85vh - 8px);
  }

  .privacy-modal-body {
    max-height: calc(85vh - 180px);
    padding: 15px 20px;
    font-size: 14px;
  }

  .privacy-modal-header {
    padding: 20px 20px 15px;
  }

  .privacy-modal-footer {
    padding: 15px 20px 20px;
  }

  .privacy-modal-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .privacy-modal {
    max-height: 90vh;
  }

  .privacy-modal-content {
    max-height: calc(90vh - 8px);
  }

  .privacy-modal-body {
    max-height: calc(90vh - 160px);
    padding: 15px;
  }

  .privacy-modal-header {
    padding: 15px;
  }

  .privacy-modal-footer {
    padding: 15px;
  }
}
/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  cursor: pointer;
  transition: 0.3s;
}

.whatsapp-float:hover {
  background: #20b954;
  transform: scale(1.1);
}
