/* ========================================
   MUTUAL FUNDS PAGES - SHARED STYLES
   ======================================== */

/* ================= HERO SECTION ================= */
.mf-hero-section {
  min-height: 65vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.mf-hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.mf-hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.mf-hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: white;
}

.mf-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  line-height: 1.7;
}

.mf-hero-badge {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.mf-hero-highlights {
  display: flex;
  gap: 25px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.highlight-icon {
  width: 45px;
  height: 45px;
  background: var(--secondary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon i {
  font-size: 20px;
  color: var(--primary-color);
}

.highlight-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

/* ================= INTRO SECTION ================= */
.mf-intro-section {
  padding: 80px 0;
}

.mf-intro-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.mf-intro-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--neutral-color);
  margin-bottom: 15px;
}

.mf-intro-image {
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 500px;
  transition: transform 0.4s ease;
}

.mf-intro-image:hover {
  transform: scale(1.02);
}

/* ================= PROCESS/STRATEGY CARDS ================= */
.strategy-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  height: 100%;
  border: 1px solid #eee;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.strategy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--secondary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.strategy-card:hover::before {
  transform: scaleX(1);
}

.strategy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
}

.strategy-number {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 18px;
  transition: all 0.35s ease;
}

.strategy-card:hover .strategy-number {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  color: var(--primary-color);
  transform: scale(1.1) rotate(5deg);
}

.strategy-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.strategy-desc {
  color: var(--neutral-color);
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
  text-align: justify;
}

/* ================= FEATURE CARDS ================= */
.feature-highlight-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #eee;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.35s ease;
  height: 100%;
  text-align: center;
}

.feature-highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border-color: var(--secondary-color);
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: all 0.35s ease;
}

.feature-highlight-card:hover .feature-icon-wrapper {
  background: var(--secondary-color);
  transform: scale(1.15);
}

.feature-icon-wrapper i {
  font-size: 32px;
  color: var(--primary-color);
  transition: color 0.35s ease;
}

.feature-highlight-card:hover .feature-icon-wrapper i {
  color: white;
}

.feature-highlight-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.feature-highlight-card p {
  color: var(--neutral-color);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ================= CALCULATOR SECTION ================= */
.calculator-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.calculator-section h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
}

.calculator-form {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.calculator-result {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  margin-top: 25px;
}

.result-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

/* ================= TESTIMONIAL CARDS ================= */
.testimonial-highlight {
  background: white;
  border-radius: 16px;
  padding: 30px;
  border-left: 4px solid var(--secondary-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.35s ease;
}

.testimonial-highlight:hover {
  transform: translateX(8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.testimonial-quote {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--neutral-color);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.author-info p {
  font-size: 0.9rem;
  color: var(--neutral-color);
  margin: 0;
}

/* ================= CTA SECTION ================= */
.mf-cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  color: white;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.mf-cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}

.mf-cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-start-planning {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.35s ease;
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.btn-start-planning:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 193, 7, 0.4);
}

/* ================= FAQ SECTION ================= */
.faq-accordion .faq-item {
  background: white;
  border-radius: 14px;
  margin-bottom: 14px;
  padding: 18px 20px;
  cursor: pointer;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.faq-accordion .faq-item:hover {
  transform: translateX(6px);
}

.faq-accordion .faq-question {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-color);
}

.faq-accordion .faq-icon {
  font-size: 20px;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-accordion .faq-answer {
  /* height/opacity/transition managed by JS (initFaqAccordions) */
  color: var(--neutral-color);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-accordion .faq-item.active {
  border-left: 4px solid var(--secondary-color);
}

.faq-accordion .faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .mf-hero-section {
    min-height: 50vh;
    padding-top: 140px;
    padding-bottom: 50px;
  }

  .mf-intro-section {
    padding: 60px 0;
  }

  .mf-intro-image {
    height: 350px;
  }

  .calculator-section,
  .mf-cta-section {
    padding: 40px 30px;
  }

  .strategy-card,
  .feature-highlight-card {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .mf-hero-section {
    min-height: auto;
    padding: 140px 0 60px;
  }

  .mf-hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }

  .mf-hero-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
  }

  .mf-hero-badge {
    font-size: 0.85rem;
    padding: 6px 16px;
    margin-bottom: 18px;
  }

  .mf-hero-highlights {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-highlight-item {
    width: 100%;
  }

  .highlight-icon {
    width: 40px;
    height: 40px;
  }

  .highlight-icon i {
    font-size: 18px;
  }

  .highlight-text {
    font-size: 0.9rem;
  }

  /* Intro Section Mobile */
  .mf-intro-section {
    padding: 50px 0;
  }

  .mf-intro-content h2 {
    font-size: 1.75rem;
    margin-bottom: 18px;
  }

  .mf-intro-content p {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .mf-intro-image {
    margin-top: 30px;
    height: 300px;
    border-radius: 15px;
  }

  /* Strategy Cards Mobile */
  .strategy-card {
    padding: 25px 20px;
    margin-bottom: 20px;
  }

  .strategy-number {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .strategy-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }

  .strategy-desc {
    font-size: 0.95rem;
  }

  /* Feature Cards Mobile */
  .feature-highlight-card {
    padding: 25px 20px;
    margin-bottom: 15px;
  }

  .feature-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .feature-icon-wrapper i {
    font-size: 28px;
  }

  .feature-highlight-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .feature-highlight-card p {
    font-size: 0.9rem;
  }

  /* Calculator Section Mobile */
  .calculator-section {
    padding: 30px 20px;
    border-radius: 15px;
  }

  .calculator-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .calculator-form {
    padding: 25px 20px;
  }

  .form-group input,
  .form-group select {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .calculator-result {
    padding: 25px 20px;
    margin-top: 20px;
  }

  .result-value {
    font-size: 2rem;
  }

  .result-label {
    font-size: 0.95rem;
  }

  /* Testimonial Cards Mobile */
  .testimonial-highlight {
    padding: 25px 20px;
    margin-bottom: 15px;
  }

  .testimonial-quote {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  /* CTA Section Mobile */
  .mf-cta-section {
    padding: 35px 25px;
    border-radius: 15px;
  }

  .mf-cta-section h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .mf-cta-section p {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .btn-start-planning {
    padding: 13px 35px;
    font-size: 1rem;
  }

  /* FAQ Section Mobile */
  .faq-accordion .faq-item {
    padding: 16px 18px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: white;
    border: 1px solid rgba(25, 25, 112, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  }

  .faq-accordion .faq-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  }

  .faq-accordion .faq-item.active {
    border-left: 4px solid var(--secondary-color);
    background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
  }

  .faq-accordion .faq-question {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
  }

  .faq-accordion .faq-answer {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #5a5a5a;
  }

  .faq-accordion .faq-icon {
    font-size: 18px;
    font-weight: 600;
  }

  /* Spacing Adjustments */
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .mb-5 {
    margin-bottom: 2rem !important;
  }

  .g-4 {
    --bs-gutter-y: 1.25rem;
  }
}

@media (max-width: 576px) {
  .mf-hero-section {
    padding: 130px 0 50px;
  }

  .mf-hero-title {
    font-size: 1.75rem;
  }

  .mf-hero-subtitle {
    font-size: 0.95rem;
  }

  .mf-hero-badge {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .mf-intro-content h2 {
    font-size: 1.5rem;
  }

  .mf-intro-image {
    height: 250px;
  }

  .strategy-card,
  .feature-highlight-card {
    padding: 20px 18px;
  }

  .calculator-section {
    padding: 25px 18px;
  }

  .calculator-form {
    padding: 20px 18px;
  }

  .mf-cta-section {
    padding: 30px 20px;
  }

  .mf-cta-section h2 {
    font-size: 1.4rem;
  }

  .btn-start-planning {
    padding: 12px 30px;
    font-size: 0.95rem;
  }
}
