@font-face {
  font-family: "Nacelle";
  src: url("../assets/fonts/Nacelle-Regular.woff2") format("woff2"); /* User to provide font files later */
  font-weight: 400;
  font-style: normal;
}

/* Hero Section Styles */
.hero-section {
  width: 100%;
  height: 120vh;
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

/* Visibility Utilities */
.mobile-only {
  display: none !important;
}

@media (max-width: 1100px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  .mobile-only.flex {
    display: flex !important;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 130% auto;
  background-position: 90% 15%;
  transform: scaleX(-1); /* Flip horizontally as per design */
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin-top: 250px;
}

.hero-title {
  font-family: "DM Serif Display", serif;
  font-size: 70px;
  line-height: 1.1;
  color: var(--text-color);
  margin: 0 0 24px 0;
  width: 800px;
}

.hero-subtitle {
  font-size: 30px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 700px;
  line-height: 1.4;
}

.btn-get-started {
  width: 190px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 0 25px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.btn-get-started:hover {
  transform: scale(1.05);
  background-color: #a02245;
}

.btn-get-started .btn-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
}

.btn-get-started .btn-icon {
  width: 44px; /* Proportional to button height */
  height: 44px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-get-started .btn-icon svg {
  width: 24px;
  height: 24px;
}

.btn-get-started .btn-icon svg path {
  stroke: var(--primary-color);
}

/* Tablet / iPad Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-section {
    height: 100vh;
    align-items: flex-start;
  }

  .hero-content {
    margin-top: 150px;
    padding: 0 40px;
    max-width: 700px;
  }

  .hero-title {
    font-size: 56px;
    width: 80%;
  }

  .hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .hero-background {
    background-size: 150% auto;
    background-position: 85% center;
  }
}

/* Mobile Styles (< 768px) */
@media (max-width: 767px) {
  .hero-section {
    height: 100vh; /* Full viewport for mobile hero */
    align-items: center;
    text-align: left;
  }

  .hero-section .hero-background {
    background-image: url("../assets/images/heromobilebg.jpg") !important;
    background-size: cover;
    background-position: 80% center;
    transform: scaleX(-1); /* Flip horizontally as per latest layout spec */
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.8) 100%
    );
  }

  .hero-content {
    margin-top: 60px; /* Reduced from 80px */
    padding: 0 5px;
    width: 100%;
  }

  .hero-title,
  .hero-headline,
  .subpage-title,
  .subpage-title-mobile {
    font-family: "DM Serif Display", serif;
    font-size: 36px !important;
    line-height: 1.1;
    width: 100%;
    margin-bottom: 20px;
    color: #ffffff;
  }

  .hero-subtitle,
  .hero-subtext,
  .subpage-subtitle,
  .subpage-subtitle-mobile,
  .subpage-subtext-mobile {
    font-family: var(--font-nacelle);
    font-size: 18px !important;
    line-height: 1.4;
    margin-bottom: 30px;
    color: #ffffff;
    opacity: 0.9;
  }

  /* Scale button for mobile */
  .btn-get-started {
    width: 160px;
    height: 52px;
    padding: 0 6px 0 18px;
  }

  .btn-get-started .btn-text {
    font-size: 16px;
  }

  .btn-get-started .btn-icon {
    width: 40px;
    height: 40px;
  }

  .btn-get-started .btn-icon svg {
    width: 20px;
    height: 20px;
  }
}

.subpage-subtitle-woman {
  width: 500px;
  color: white;
  font-size: 20px;
}

.subpage-title-business {
  width: 600px;
  color: white;
  font-family: "DM Serif Display", serif;
  font-size: 68px;
}

/* Global Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays */
.reveal.delay-1 {
  transition-delay: 0.1s;
}
.reveal.delay-2 {
  transition-delay: 0.2s;
}
.reveal.delay-3 {
  transition-delay: 0.3s;
}
.reveal.delay-4 {
  transition-delay: 0.4s;
}
.reveal.delay-5 {
  transition-delay: 0.5s;
}

/* Sub-page Hero Styles */
.subpage-hero {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.subpage-hero .hero-background {
  background-size: 110% auto;
  background-position: 10% 0; /* Align to top to prevent head clipping */
  transform: scaleX(-1); /* Flip horizontally to match design mockup */
}

.subpage-hero .hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 42%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Short-Term Loan Hero Overrides */
.short-term-loan-hero .hero-background {
  background-size: cover;
  background-position: center top;
  transform: none; /* No flip for this page */
}

.short-term-loan-hero .hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 47.6%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

/* Fintech Hero Styles */
.fintech-hero .hero-background {
  background-size: 2196px 1464px;
  background-position: right center; /* Align to the right to show tech assets */
  transform: none;
}

.fintech-hero .hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.6) 47.49%,
    rgba(0, 0, 0, 0) 100%
  );
}

@media (max-width: 767px) {
  .fintech-hero .hero-background {
    background-size: cover;
    background-position: 85% center; /* Focus more on the phone/visuals */
  }

  .fintech-hero .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.6) 100%
    ); /* Lightened mobile overlay further */
  }
}

.subpage-hero-content {
  position: relative;
  z-index: 5;
  padding-top: 40px;
}

.subpage-title {
  font-family: "DM Serif Display", serif;
  font-size: 68px;
  color: #ffffff;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.subpage-title.title-narrow {
  max-width: 500px;
}

/* Decorative Dash Line - Following Title */
.decorative-line {
  display: inline-block;
  flex-grow: 1;
  min-width: 300px;
  height: 2px;
  /* border-bottom: 2px dashed #ff00d0; */
  opacity: 0.8;
  position: relative;
  top: 10px; /* Vertically align roughly with text baseline/center */
}

.decorative-line::after {
  content: "×";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #00aaff;
  font-size: 32px;
  font-weight: 300;
  line-height: 0;
  background-color: transparent;
  padding: 0 10px;
}

/* Page Content Section - collapses when no WP content */
.page-content-section {
  padding: 0;
  background-color: #ffffff;
}

.page-content-section .entry-content:not(:empty) {
  padding: 40px 0;
}

.narrow-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.entry-content {
  font-size: 18px;
  line-height: 1.6;
  color: #333333;
}

/* Debt & Bridging Hero Styles */
.debt-bridging-hero .hero-background {
  background-size: cover;
  background-position: center;
  transform: none; /* No flip needed if the image is suitable as is */
}

.debt-bridging-hero .hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 47.6%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

@media (max-width: 767px) {
  .debt-bridging-hero .hero-background {
    background-position: center;
  }
}

.advisory-regulatory-hero .hero-background {
  background-image: url("../assets/images/advisory-regulatory.jpg");
  background-size: cover;
  background-position: center;
}

@media (max-width: 767px) {
  .advisory-regulatory-hero .hero-background {
    background-position: center;
  }
}

.digital-payments-hero .hero-background {
  background-image: url("../assets/images/digital-payments.jpg");
  background-size: cover;
  background-position: center;
  transform: scaleX(-1);
}

.women-banking-hero .hero-background {
  background-image: url("../assets/images/herobg.jpg");
  background-size: 130% auto;
  background-position: 90% 15%;
  transform: scaleX(-1);
}

@media (max-width: 767px) {
  .women-banking-hero .hero-background {
    background-size: 180% auto; /* Zoom in more on mobile since it's the desktop image */
    background-position: 75% center;
    transform: scaleX(-1);
  }
}

.subpage-subtitle {
  font-family: var(--font-nacelle);
  font-size: 20px;
  line-height: 1.5;
  color: #ffffff;
  margin-top: 25px;
  max-width: 800px;
  opacity: 0.95;
}

.subpage-subtitle-mobile {
  font-family: var(--font-nacelle);
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
  margin-top: 15px;
  opacity: 0.9;
  padding-right: 20px;
}

.subpage-subtitle-woman {
  font-family: var(--font-nacelle);
  font-size: 20px;
  line-height: 1.6;
  color: #ffffff;
  margin-top: 25px;
  max-width: 500px;
  opacity: 0.95;
}

.subpage-title {
  width: 700px;
}

@media (max-width: 767px) {
  .digital-payments-hero .hero-background {
    background-position: center;
  }
}

.access-finance-hero .hero-background {
  background-image: url("../assets/images/women-finance.jpg");
  background-size: cover;
  background-position: center;
}

@media (max-width: 767px) {
  .access-finance-hero .hero-background {
    background-position: 85% center; /* Focus on the women on mobile */
  }

  .access-finance-hero .subpage-hero-content {
    padding-top: 100px;
  }
}

.business-advisory-hero .hero-background {
  background-image: url("../assets/images/women-advisory.png");
  background-size: cover;
  background-position: center;
}

@media (max-width: 767px) {
  .business-advisory-hero .hero-background {
    background-position: 70% center;
    transform: scaleX(1);
  }

  .business-advisory-hero .subpage-hero-content {
    padding-top: 100px;
  }
}

.communities-hero .hero-background {
  background-image: url("../assets/images/women-communities.jpg");
  background-size: cover;
  background-position: center;
}

.communities-hero .subpage-subtitle {
  max-width: 500px;
}

@media (max-width: 767px) {
  .communities-hero .hero-background {
    background-position: 70% center; /* Focus on the subjects on mobile */
  }

  .communities-hero .subpage-hero-content {
    padding-top: 180px; /* Push text down to avoid covering faces */
  }

  .communities-hero .subpage-title-mobile {
    font-size: 28px; /* Slightly smaller to prevent wrapping on narrow screens */
    margin-bottom: 15px;
  }

  .communities-hero .subpage-subtext-mobile {
    font-size: 15px; /* Slightly smaller for better structure */
    line-height: 1.4;
    max-width: 100%;
    padding-right: 30px;
  }
}

/* Financing Intro Section (Desktop Only) */
.financing-intro-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.financing-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.financing-intro-image {
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.financing-intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

.financing-intro-description {
  font-family: var(--font-nacelle);
  font-size: 24px;
  line-height: 1.5;
  color: #333333;
  margin-bottom: 35px;
}

/* Community Form Section */
.community-form-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.community-form-title {
  font-family: "DM Serif Display", serif;
  font-size: 65px;
  line-height: 1.1;
  color: #000000;
  text-align: center;
  margin-bottom: 50px;
}

.community-form-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #f1f1f1;
  padding: 60px;
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.community-join-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.community-join-form .form-group {
  margin-bottom: 30px;
}

.community-join-form label {
  display: block;
  font-family: var(--font-nacelle);
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 15px;
}

.community-join-form input[type="text"],
.community-join-form input[type="email"],
.community-join-form input[type="tel"] {
  width: 100%;
  height: 60px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 0 20px;
  font-family: var(--font-nacelle);
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.community-join-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.community-join-form .phone-input-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  padding: 0; /* Unset global padding to avoid placeholder truncation */
}

.community-join-form .country-code {
  padding: 0 15px;
  border-right: 1px solid #e0e0e0;
  background: #f9f9f9;
  height: 60px;
  display: flex;
  align-items: center;
}

.community-join-form .flag-icon {
  width: 24px;
  height: 16px;
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/7/79/Flag_of_Nigeria.svg");
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid #eee;
}

.community-join-form .phone-input-wrapper input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  height: 60px;
}

.community-join-form .phone-icon-hint {
  padding-right: 20px;
  display: flex;
  align-items: center;
  color: #666;
}

.community-join-form .radio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px 40px;
  margin-top: 10px;
}

.community-join-form .horizontal {
  display: flex;
  gap: 40px;
}

.community-join-form .radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-nacelle);
  font-size: 16px;
  color: #333333;
  font-weight: 500;
  white-space: nowrap;
}

.community-join-form .radio-label input {
  display: none;
}

.community-join-form .radio-custom {
  width: 28px;
  height: 28px;
  border: 2px solid #999;
  border-radius: 50%;
  position: relative;
  transition: all 0.2s ease;
  background: white;
}

.community-join-form .radio-label:hover .radio-custom {
  border-color: #333;
}

.community-join-form .radio-label input:checked + .radio-custom {
  border-color: #001a24;
  background: #001a24;
}

.community-join-form .radio-label input:checked + .radio-custom::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 5px;
  height: 10px;
  border-bottom: 2px solid white;
  border-right: 2px solid white;
  border-radius: 0;
  background: transparent;
}

.community-join-form input::placeholder {
  color: #777;
  font-size: 13px;
}

.community-join-form .phone-input-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  padding: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.community-join-form .btn-submit-community {
  width: 220px;
  height: 70px;
  background-color: var(--primary-color);
  border: none;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 0 35px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.community-join-form .btn-submit-community:hover {
  background-color: #721630;
  transform: translateY(-2px);
}

.community-join-form .btn-submit-community .btn-text {
  color: #ffffff;
  font-size: 22px;
  font-weight: 500;
}

.community-join-form .btn-submit-community .btn-icon {
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

@media (max-width: 767px) {
  .community-form-title {
    font-size: 26px; /* Ensure one line */
    padding: 0 10px;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
  }

  .community-form-section {
    padding: 50px 0;
    overflow-x: hidden; /* Prevent horizontal overflow from the form section */
  }

  /* Make the form section use full width with tight padding on mobile */
  .community-form-section .header-container {
    padding: 0 15px;
  }

  .community-form-container {
    padding: 20px 15px;
    border-radius: 16px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    background-color: #f6f6f6;
  }

  .community-join-form .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .community-join-form .form-group {
    margin-bottom: 18px;
  }

  .community-join-form label {
    font-size: 11px;
    margin-bottom: 6px;
    font-weight: 700;
  }

  .community-join-form input[type="text"],
  .community-join-form input[type="email"],
  .community-join-form input[type="tel"] {
    height: 40px;
    padding: 0 10px;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    width: 100%;
    box-sizing: border-box;
  }

  .community-join-form input::placeholder {
    font-size: 11px;
  }

  /* Age radio: 2 columns on mobile to avoid overflow (6 items = 3 rows) */
  .community-join-form .radio-grid,
  .fsdh-radio-grid.age-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 12px;
    margin-top: 5px;
  }

  /* Gender radio: keep side-by-side */
  .fsdh-radio-grid:not(.age-groups) {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }

  .community-join-form .horizontal {
    margin-top: 5px;
    gap: 20px;
  }

  .community-join-form .radio-label {
    font-size: 11px;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
  }

  .community-join-form .radio-custom {
    width: 18px;
    height: 18px;
    border-width: 1px;
    flex-shrink: 0;
  }

  .community-join-form .radio-label input:checked + .radio-custom::after {
    width: 4px;
    height: 8px;
    top: 45%;
    left: 50%;
    border-bottom: 1.5px solid white;
    border-right: 1.5px solid white;
  }

  .community-join-form .phone-input-wrapper {
    height: 40px;
    box-sizing: border-box;
  }

  .community-join-form .country-code {
    height: 40px;
    padding: 0 10px;
  }

  .community-join-form .flag-icon {
    width: 18px;
    height: 12px;
  }

  .community-join-form .phone-input-wrapper input {
    height: 40px;
    padding-right: 35px; /* Space for phone icon */
  }

  .community-join-form .btn-submit-community {
    width: 140px;
    height: 48px;
    padding: 0 6px 0 20px;
    margin: 10px auto 0; /* Center it */
  }

  .community-join-form .btn-submit-community .btn-text {
    font-size: 15px;
  }

  .community-join-form .btn-submit-community .btn-icon {
    width: 36px;
    height: 36px;
  }
}

.financing-intro-cta .btn-get-started {
  background-color: var(--primary-color);
  color: #ffffff;
}

.financing-intro-cta .btn-get-started .btn-text {
  color: #ffffff;
}

.financing-intro-cta .btn-get-started .btn-icon {
  background-color: #ffffff;
}

.financing-intro-cta .btn-get-started .btn-icon svg path {
  stroke: var(--primary-color);
}

/* Financing Application Form Styles */
.financing-application-section {
  padding-top: 30px;
  background-color: #ffffff;
}

.financing-intro-text {
  max-width: 100%;
  margin: 0 auto 50px auto;
}

.financing-intro-text p {
  font-size: 22px;
  line-height: 1.4;
  color: #333333;
}

.financing-form-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f7f9fa;
  padding: 60px;
  border-radius: 40px;
}

.financing-form .form-group {
  margin-bottom: 30px;
}

.financing-form label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.financing-form input[type="text"],
.financing-form input[type="email"],
.financing-form input[type="tel"],
.financing-form input[type="url"],
.financing-form textarea {
  width: 100%;
  padding: 18px 24px;
  border: 1px solid #d1d9e0;
  border-radius: 8px;
  font-size: 15px;
  background-color: #ffffff;
  transition: border-color 0.3s ease;
  box-shadow: none;
  color: #333;
}

.financing-form input::placeholder,
.financing-form textarea::placeholder {
  color: #999;
}

.financing-form input:focus,
.financing-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.financing-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Phone Input Utility */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  padding: 0;
  position: relative;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.phone-input-wrapper .country-code {
  padding: 0 15px;
  border-right: 1px solid #e0e0e0;
  background: #f9f9f9;
  height: 60px;
  display: flex;
  align-items: center;
}

.phone-input-wrapper input {
  border: none !important;
  padding: 0 20px !important;
  flex: 1;
  height: 60px;
}

/* Checkbox and Radio Grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

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

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

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  color: #555555;
  user-select: none;
}

.checkbox-label input,
.radio-label input {
  display: none;
}

.checkbox-custom,
.radio-custom {
  width: 22px;
  height: 22px;
  border: 2px solid #ddd;
  margin-right: 12px;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-custom {
  border-radius: 4px;
}
.radio-custom {
  border-radius: 50%;
}

.checkbox-label input:checked + .checkbox-custom,
.radio-label input:checked + .radio-custom {
  background-color: #000;
  border-color: #000;
}

.checkbox-label input:checked + .checkbox-custom::after,
.radio-label input:checked + .radio-custom::after {
  content: "";
  position: absolute;
  display: block;
}

.checkbox-label input:checked + .checkbox-custom::after,
.radio-label input:checked + .radio-custom::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 5px;
  height: 10px;
  border-bottom: 2px solid white;
  border-right: 2px solid white;
  border-radius: 0;
  background: transparent;
  display: block;
}

/* Submit Button */
.btn-submit-financing {
  width: 160px;
  height: 60px;
  background-color: var(--primary-color);
  border: none;
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px 0 25px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.btn-submit-financing:hover {
  background-color: #721630;
  transform: translateY(-2px);
}

.btn-submit-financing .btn-icon {
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .financing-form-container {
    padding: 25px 20px;
    border-radius: 16px;
    margin: 0 5px;
    background-color: #f6f6f6;
  }
  .financing-form .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .financing-form .form-group {
    margin-bottom: 18px;
  }
  .financing-form label {
    font-size: 11px;
    margin-bottom: 6px;
    font-weight: 700;
  }
  .financing-form input[type="text"],
  .financing-form input[type="email"],
  .financing-form input[type="tel"],
  .financing-form textarea {
    height: 40px;
    padding: 0 10px;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
  }
  .financing-form textarea {
    height: auto;
    padding: 10px;
  }
  .financing-form .phone-input-wrapper {
    height: 40px;
  }
  .financing-form .phone-input-wrapper .country-code {
    height: 40px;
    font-size: 14px;
  }
  .financing-form .phone-input-wrapper input {
    height: 40px;
  }
}

/* Our Offerings Section */
.our-offerings-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.offerings-title {
  font-family: "DM Serif Display", serif;
  font-size: 64px;
  color: #000000;
  text-align: center;
  margin-bottom: 24px;
}

.offerings-description {
  font-family: var(--font-nacelle);
  font-size: 20px;
  line-height: 1.5;
  color: #000000;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

.offerings-main-title {
  font-family: "DM Serif Display", serif;
  font-size: 60px;
  color: #000000;
  margin-bottom: 50px;
  text-align: center;
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.offering-card {
  background-color: #eef2f6;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.offering-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.offering-image {
  width: 100%;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.offering-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offering-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.offering-title {
  font-size: 24px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 20px;
  font-family: var(--font-nacelle);
}

.btn-learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  min-width: 140px;
  height: 48px;
  background-color: var(--primary-color);
  border-radius: 40px;
  padding: 0 6px 0 20px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  gap: 15px;
}

.btn-learn-more:hover {
  background-color: #721831;
}

.btn-learn-more .btn-text {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.btn-learn-more .btn-icon {
  width: 36px;
  height: 36px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-learn-more .btn-icon svg path {
  stroke: var(--primary-color);
}

@media (max-width: 1024px) {
  .offerings-title {
    font-size: 48px;
  }
}

@media (max-width: 767px) {
  .offerings-main-title {
    font-size: 32px;
  }
  .our-offerings-section {
    padding: 50px 0;
  }

  .offerings-title {
    font-size: 36px;
  }

  .offerings-description {
    display: none;
  }

  .offerings-grid {
    grid-template-columns: 1fr;
  }

  .offering-card {
    padding: 15px;
  }
}

@media (max-width: 767px) {
  .subpage-hero {
    height: 100vh;
    align-items: center; /* Center vertically specifically for mobile content block */
  }

  /* Focus background on subject for mobile sub-pages */
  .subpage-hero .hero-background {
    background-position: center top;
    background-size: cover;
  }

  /* Short-Term Loan: ensures no flip if the site-wide subpage flip is ever removed or changed */
  .short-term-loan-hero .hero-background {
    transform: none;
  }

  .subpage-hero-content.mobile-only {
    text-align: left;
    padding: 0;
  }

  .subpage-title-mobile {
    font-family: "DM Serif Display", serif;
    font-size: 36px;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 25px;
  }

  .subpage-subtext-mobile {
    display: block;
    font-family: var(--font-nacelle);
    font-size: 18px;
    line-height: 1.5;
    color: #ffffff;
    opacity: 0.95;
    margin-bottom: 25px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }
}

/* Base Utility Classes */
@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}

:root {
  --primary-color: #8b1d3b;
  --text-color: #ffffff;
  --background-white: #ffffff;
  --header-height: 99px;
  --font-nacelle: "Nacelle", "Inter", system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-nacelle);
  margin: 0;
  padding: 0;
  background-color: var(--background-white);
  color: #000000; /* Default text color for the white background */
  min-height: 100vh;
}

.header-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 40px);
}

/* Header Styles */
.site-header {
  height: var(--header-height);
  width: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px; /* Minimum gap between brand, nav, and CTA */
}

/* Logo Styles */
.site-branding .logo {
  text-decoration: none;
  color: var(--text-color);
  width: clamp(160px, 15vw, 210px);
  height: 32px;
  display: flex;
  align-items: center;
  font-size: clamp(20px, 2vw, 24px);
  margin-right: clamp(15px, 3vw, 40px);
  flex-shrink: 0;
}

.logo-text {
  white-space: nowrap;
}

.logo-text strong {
  font-weight: 700;
}

/* Navigation Styles */
.main-navigation .nav-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  flex-shrink: 1;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 24px);
}

.nav-menu li {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 450;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.5vw, 8px);
  padding: 10px 0;
  position: relative;
}

/* Active Page Underline */
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a,
.nav-menu > li.current-menu-parent > a {
  font-weight: 600;
}

.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current-menu-ancestor > a::after,
.nav-menu > li.current-menu-parent > a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 1px;
}

.dropdown-icon {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.nav-menu li:hover > a .dropdown-icon {
  transform: rotate(180deg);
}

/* Submenu Styling */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  list-style: none;
  margin: 0;
  padding: 15px 0;
  min-width: 220px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li {
  display: block;
}

.nav-menu .sub-menu li a {
  padding: 10px 25px;
  font-size: 16px; /* Reduced from 18px */
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-menu .sub-menu li a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.home-icon-link {
  display: flex;
  align-items: center;
}

/* CTA Button Styles */
.btn-contact {
  width: clamp(150px, 12vw, 180px);
  height: 52px;
  background-color: var(--background-white);
  border-radius: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px 0 clamp(10px, 1vw, 20px);
  text-decoration: none;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.btn-contact:hover {
  transform: scale(1.02);
}

.btn-text {
  color: #000000;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 500;
}

.btn-icon {
  width: 38px;
  height: 38px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1100px) {
  .header-container {
    padding: 0 20px;
  }

  .site-header {
    height: 80px;
  }

  .site-branding .logo {
    width: 180px;
    font-size: 22px;
    margin-right: 0;
  }

  .menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
  }
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: var(--background-white);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #000000;
}

.mobile-menu-drawer.is-active {
  right: 0;
}

.mobile-menu-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-menu-header .logo {
  color: #000000;
}

.menu-close {
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-navigation {
  flex-grow: 1;
  overflow-y: auto;
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-menu > li {
  margin-bottom: 20px;
}

.mobile-nav-menu > li.menu-item-has-children {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.mobile-nav-menu > li.menu-item-has-children > a {
  flex: 1;
}

.mobile-nav-menu > li.menu-item-has-children > .sub-menu {
  width: 100%;
}

.mobile-nav-menu li a {
  text-decoration: none;
  color: #000000;
  font-size: 20px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Mobile Submenu Toggle Button */
.mobile-submenu-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  transition: transform 0.3s ease;
}

.mobile-submenu-toggle.is-open {
  transform: rotate(180deg);
}

/* Hide WordPress-generated dropdown icon in mobile menu */
.mobile-nav-menu .dropdown-icon {
  display: none;
}

/* Mobile Accordion */
.mobile-nav-menu .sub-menu {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
  background: #f4f7f9;
  border-radius: 16px;
  display: none; /* Controlled by JS */
}

.mobile-nav-menu li.is-open > .sub-menu {
  display: block;
}

.mobile-nav-menu .sub-menu li a {
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 400;
  color: #333333;
}

/* Mobile Footer Button */
.mobile-menu-footer {
  padding-top: 20px;
  display: flex;
  justify-content: center;
}

.btn-contact-mobile {
  width: 180px;
  height: 56px;
  background-color: var(--primary-color);
  border-radius: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 0 25px;
  text-decoration: none;
  margin: 0 auto; /* Center the button */
}

.btn-contact-mobile .btn-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
}

.btn-contact-mobile .btn-icon {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Services Section Styles */
.services-section {
  padding: 80px 0;
  background-color: var(--background-white);
  text-align: center;
}

.services-header {
  max-width: 1150px; /* Increased from 1000px */
  margin: 0 auto 80px auto;
}

.services-title {
  font-family: "DM Serif Display", serif;
  font-size: 64px;
  color: #000000;
  margin-bottom: 30px;
  line-height: 1.1;
}

.services-description {
  font-size: 18px; /* Reduced from 24px */
  line-height: 1.6; /* Slightly increased for better readability */
  color: #333333; /* Softer color */
  margin-bottom: 50px;
  font-weight: 400;
  padding: 0 40px;
}

/* Category Toggle (Pills) */
.services-tabs {
  position: relative;
  display: inline-flex;
  background-color: #f0f4f7;
  padding: 6px;
  border-radius: 40px;
  gap: 5px;
}

.tab-btn {
  padding: 14px 32px;
  border-radius: 40px;
  border: 1px solid transparent;
  background: transparent;
  color: #666666;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.tab-btn:hover {
  color: #000000;
}

.tab-btn.active {
  background-color: #000000;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tab Content Visibility & Animation */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.services-content-area {
  margin-top: 80px;
}

.service-block {
  display: flex;
  align-items: center;
  gap: 100px;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}

.service-image {
  flex: 0 0 500px; /* Reduced fixed width */
}

.service-image img {
  width: 500px;
  max-width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.service-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-category-title {
  font-family: "DM Serif Display", serif;
  font-size: 40px;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 500;
}

.service-category-description {
  font-size: 18px;
  line-height: 1.5;
  color: #444444;
  margin-bottom: 30px;
  font-weight: 400;
  max-width: 600px;
}

.btn-get-started.btn-maroon {
  background-color: var(--primary-color);
  width: 180px;
}

.btn-get-started.btn-maroon .btn-icon {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-get-started.btn-maroon .btn-icon svg path {
  stroke: #ffffff;
}

.btn-get-started.btn-maroon:hover {
  background-color: #721831;
}

@media (max-width: 1024px) {
  .services-section {
    padding: 80px 20px;
    overflow-x: hidden; /* Prevent horizontal scroll from slidable tabs */
  }

  .services-title {
    font-size: 42px;
    text-align: left;
  }

  .services-description {
    font-size: 18px;
    text-align: center;
    padding: 0;
    max-width: 100%;
  }

  .service-block {
    gap: 40px;
  }

  .service-category-title {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .services-header {
    margin-bottom: 50px;
    text-align: center;
  }

  .services-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
  }

  .services-description {
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
  }

  .services-tabs {
    position: relative;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    width: fit-content;
    max-width: calc(100% + 40px);
    margin: 0 auto;
    padding: 6px;
    background-color: #e9f1f7;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
  }

  .service-block {
    flex-direction: column;
    gap: 30px;
    text-align: left;
  }

  .service-image {
    width: 100%;
    flex: none; /* Reset desktop flex-basis */
  }

  .service-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1; /* Maintain square look */
  }

  .service-info {
    width: 100%;
  }

  .service-category-title {
    font-size: 28px;
  }

  .btn-get-started.btn-maroon {
    margin: 0;
    width: 160px; /* Slightly smaller on mobile */
  }

  .services-tabs::before {
    display: none;
  }

  .services-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex: 0 0 auto;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
    color: #667e91;
    font-weight: 500;
  }

  .tab-btn.active {
    background-color: #000000;
    color: #ffffff;
    box-shadow: none;
  }
}

/* Why FSDH Section */
.why-fsdh-section {
  background-color: #f2f6f9;
  padding: 80px 0;
  text-align: center;
}

.why-title {
  font-family: "DM Serif Display", serif;
  font-size: 69px;
  color: #1a1a1a; /* Adjusted color to be slightly less "stark" than pure black */
  font-weight: 400; /* Reduced weight */
  margin-bottom: 30px;
  text-transform: uppercase;
  line-height: 1.1;
}

.why-description {
  font-family: "Nacelle", sans-serif;
  font-size: 18px; /* Reduced from 24px */
  line-height: 1.6;
  color: #333333; /* Slightly softer color */
  max-width: 1100px; /* Increased width */
  margin: 0 auto 50px auto;
  padding: 0 40px;
}

.btn-large-maroon {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 400px; /* Increased width from 320px */
  height: 67px;
  background-color: #8b1d3b;
  border-radius: 40px;
  padding: 0 10px 0 35px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.btn-large-maroon:hover {
  background-color: #721831;
}

.btn-large-maroon .btn-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 400; /* Reduced weight from 500 */
}

.btn-large-maroon .btn-icon {
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .why-fsdh-section {
    height: 580px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .why-title {
    font-size: 32px;
    margin-bottom: 20px;
    padding: 0 20px;
  }

  .why-description {
    font-size: 18px;
    padding: 0 20px;
    margin-bottom: 30px;
  }

  /* Reduced button size for mobile */
  .btn-large-maroon {
    width: 270px;
    height: 56px;
    padding: 0 8px 0 25px;
    max-width: 95%;
  }

  .btn-large-maroon .btn-text {
    font-size: 16px;
  }

  .btn-large-maroon .btn-icon {
    width: 40px;
    height: 40px;
  }
}

/* Footer Section */
.site-footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 100px 0 0 0;
  position: relative;
  overflow: hidden;
  font-family: var(--font-nacelle, sans-serif);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Footer Header */
.footer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.footer-logo-text {
  font-size: 32px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.footer-logo-text strong {
  font-weight: 800;
}

/* Ensure header logo stays standard bold */
.site-branding .logo-text strong {
  font-weight: 700;
}

.footer-find-us a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

/* Footer Grids */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col-title {
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 30px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Info Grid */
.footer-info-grid {
  border-top: 1px solid #333;
  padding-top: 60px;
}

.footer-contact-info p,
.footer-certs p,
.footer-fraud-info p {
  color: #b0b0b0;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-contact-info a,
.footer-fraud-info a {
  color: #b0b0b0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.footer-contact-info a:hover,
.footer-fraud-info a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Newsletter Form */
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-newsletter .form-message {
  font-size: 13px;
  padding: 10px;
  border-radius: 6px;
  display: none;
  font-weight: 500;
  margin-bottom: 5px;
}

.footer-newsletter .form-message.success {
  display: block;
  background-color: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.footer-newsletter .form-message.error {
  display: block;
  background-color: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.footer-form-group input {
  width: 100%;
  padding: 12px 15px;
  background-color: #2a2a2a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
}

.footer-form-agreement {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-form-agreement label {
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

.footer-submit-btn {
  background-color: #ffffff;
  color: #000000;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.footer-submit-btn:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

/* Footer Bottom Utilities */
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
}

.footer-apps {
  display: flex;
  gap: 20px;
}

.app-btn img {
  height: 40px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  color: #ffffff;
  font-size: 18px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-socials a:hover {
  opacity: 1;
}

.footer-copyright-bar {
  padding: 40px 0;
  text-align: center;
}

.footer-copyright-bar p {
  color: #666;
  font-size: 12px;
}

/* Watermark */
.footer-watermark {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 160px;
  font-weight: 800;
  color: #ffffff;
  opacity: 0.03;
  white-space: nowrap;
  pointer-events: none;
  text-transform: capitalize;
  font-family: "DM Serif Display", serif;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .footer-header {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .footer-watermark {
    font-size: 80px;
    bottom: -20px;
  }
}

/* Loan Intro Section */
.loan-intro-section {
  padding: 80px 0 0;
  margin-bottom: 100px;
  background-color: #ffffff;
}

.loan-intro-grid {
  display: flex;
  align-items: center;
  gap: 80px;
}

.loan-intro-image {
  flex: 0 0 600px;
  width: 600px;
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
}

.loan-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loan-intro-content {
  flex: 1;
}

.loan-intro-text {
  font-family: var(--font-nacelle);
  font-size: 36px;
  line-height: 1.4;
  color: #333333;
  margin: 0;
}

/* Loan Application Portal */
.loan-application-portal {
  padding: 0 0 120px;
}

.portal-header {
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
}

.portal-title {
  font-family: "DM Serif Display", serif;
  font-size: 65px;
  line-height: 1.1;
  color: #000000;
  width: 100%;
  margin-bottom: 30px;
  text-align: center;
}

.portal-description {
  font-family: var(--font-nacelle);
  font-size: 20px;
  line-height: 1.6;
  color: #666666;
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 20px;
}

/* Loan Form Styles */
.loan-form-container {
  max-width: 1200px;
  margin: 0 auto;
  background: #f4f4f4;
  padding: 60px;
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.loan-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.loan-form .form-group {
  margin-bottom: 30px;
}

.loan-form label {
  display: block;
  font-family: var(--font-nacelle);
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 12px;
}

.loan-form input[type="text"],
.loan-form input[type="email"],
.loan-form input[type="tel"] {
  width: 100%;
  height: 60px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 0 20px;
  font-family: var(--font-nacelle);
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.loan-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}

.country-code {
  padding: 0 15px;
  font-family: var(--font-nacelle);
  font-size: 16px;
  color: #666666;
  border-right: 1px solid #e0e0e0;
  background: #f9f9f9;
  height: 60px;
  display: flex;
  align-items: center;
}

.phone-input-wrapper input {
  border: none !important;
  flex: 1;
}

/* Custom Radio Styling */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 15px;
}

.radio-group.horizontal {
  display: flex;
  gap: 40px;
  margin-top: 15px;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-nacelle);
  font-size: 15px;
  color: #444444;
  position: relative;
  padding-left: 30px;
}

.radio-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-custom {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background-color: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.radio-label:hover input ~ .radio-custom {
  border-color: var(--primary-color);
}

.radio-label input:checked ~ .radio-custom {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.radio-custom:after {
  content: "";
  position: absolute;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.radio-label input:checked ~ .radio-custom:after {
  display: block;
}

/* Submit Button */
.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-submit-loan {
  width: 160px;
  height: 60px;
  background-color: var(--primary-color);
  border: none;
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px 0 25px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.btn-submit-loan:hover:not(:disabled) {
  background-color: #721630;
  transform: translateY(-2px);
}

.btn-submit-loan:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit-loan .btn-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
}

.btn-submit-loan .btn-icon {
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-submit-loan .btn-icon svg path {
  stroke: var(--primary-color);
}

/* Form Messages */
.form-message {
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  font-family: var(--font-nacelle);
  font-size: 16px;
  display: none;
}

.form-message.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Solutions Accordion Section Styles */
.solutions-accordion-section {
  padding: 100px 0;
  background-color: #ffffff; /* Page background */
}

.accordion-container {
  max-width: 1300px;
  margin: 0 auto;
  background-color: #f1f1f1; /* Gray container background */
  padding: 40px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-header {
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.accordion-title {
  font-family: var(--font-nacelle);
  font-size: 20px;
  font-weight: 650;
  color: #000000;
  margin: 0;
}

.accordion-icon {
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

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

.accordion-content {
  padding: 0 30px 30px 30px;
  display: none; /* Controlled by JS */
}

.accordion-content p {
  font-size: 14.5px;
  line-height: 1.5;
  color: #444444;
  margin-bottom: 2px; /* Tight paragraph spacing like screenshot */
}

.accordion-content a {
  text-decoration: underline;
}

.accordion-content a.form-link,
.accordion-content a.email-link {
  color: #4d5e75; /* Slate blue color for links */
  font-weight: 500;
}

.reduced-margin-top {
  margin-top: 25px !important;
}

.bank-details-info {
  margin-top: 20px;
}

.bank-details-info p {
  margin-bottom: 2px !important;
  color: #555 !important;
}

@media (max-width: 767px) {
  .solutions-accordion-section {
    padding: 20px 5px;
  }

  .accordion-container {
    padding: 20px;
  }

  .portal-description {
    font-size: 16px;
  }

  .accordion-header {
    padding: 18px 20px;
  }

  .accordion-title {
    font-size: 17px;
  }

  .accordion-content {
    padding: 0 20px 20px 20px;
  }

  .accordion-content p {
    font-size: 13.5px;
    line-height: 1.4;
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .loan-intro-grid {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .loan-intro-image {
    flex: unset !important;
    width: 400px !important;
    height: 400px !important;
    max-width: 100%;
    margin: 0 auto;
  }

  .portal-title {
    font-size: 32px; /* Adjusted to look appropriately scaled on mobile */
  }
}

@media (max-width: 767px) {
  .loan-intro-section {
    padding: 60px 0;
  }

  .loan-intro-text {
    font-size: 24px;
  }

  .loan-intro-image {
    flex: unset !important;
    width: 400px !important;
    height: 400px !important;
    max-width: 100%;
    margin: 0 auto;
  }

  .portal-title {
    font-size: 26px; /* Reduced for one line */
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
  }

  .loan-form-container {
    padding: 25px 20px;
    border-radius: 16px;
    background-color: #f6f6f6;
  }

  .loan-form .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .loan-form .form-group {
    margin-bottom: 18px;
  }

  .loan-form label {
    font-size: 11px;
    margin-bottom: 6px;
    font-weight: 700;
  }

  .loan-form input[type="text"],
  .loan-form input[type="email"],
  .loan-form input[type="tel"] {
    height: 40px;
    padding: 0 10px;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
  }

  .loan-form .phone-input-wrapper {
    height: 40px;
  }

  .loan-form .phone-input-wrapper .country-code {
    height: 40px;
    font-size: 14px;
  }

  .loan-form .phone-input-wrapper input {
    height: 40px;
  }

  .radio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
  }

  .radio-label {
    font-size: 11px;
    padding-left: 25px;
  }

  .radio-custom {
    width: 18px;
    height: 18px;
    border-width: 1px;
  }
}

.financing-intro-text {
  text-align: center;
}

/* Contact Us Page Specific Styles */
.contact-page-section {
  padding: 100px 0;
  background-color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-sub-title {
  font-family: "DM Serif Display", serif;
  font-size: 48px;
  color: #000;
  margin-bottom: 24px;
}

.contact-description {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 50px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: #f6f6f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-text h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 4px;
  font-weight: 700;
}

.contact-text p {
  font-size: 18px;
  color: #333;
  margin: 0;
  font-weight: 500;
}

.contact-text a {
  color: inherit;
  text-decoration: none;
}

.contact-socials h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 20px;
  font-weight: 700;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--primary-color);
}

.contact-form-container {
  background-color: #f6f6f6;
  padding: 60px;
  border-radius: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
}

.contact-form .form-group {
  margin-bottom: 25px;
}

.contact-form label {
  display: block;
  font-family: var(--font-nacelle);
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 12px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  height: 60px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 0 20px;
  font-family: var(--font-nacelle);
  font-size: 16px;
  transition: all 0.3s ease;
  color: #333;
}

.contact-form textarea {
  height: auto;
  min-height: 150px;
  padding: 20px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(139, 29, 59, 0.05);
}

.contact-form .phone-input-wrapper {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
}

.contact-form .phone-input-wrapper input {
  height: 58px; /* Slightly less to stay inside border */
  border: none !important;
}

.btn-submit-contact {
  width: 240px;
  height: 64px;
  background-color: var(--primary-color);
  border: none;
  border-radius: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px 0 30px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
  margin-top: 10px;
}

.btn-submit-contact:hover {
  background-color: #721630;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 29, 59, 0.2);
}

.btn-submit-contact .btn-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
}

.btn-submit-contact .btn-icon {
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

/* Programmes Page Specific Styles */
.programmes-hero .hero-background {
  background-position: 95% center; /* Shift woman further to the right */
}

.programmes-hero .hero-overlay {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
}

.subpage-subtitle-programmes {
  font-family: var(--font-nacelle);
  font-size: 20px;
  line-height: 1.6;
  color: #ffffff;
  max-width: 600px;
  margin-top: 25px;
  opacity: 0.95;
}

@media (max-width: 767px) {
  .programmes-hero .hero-background {
    background-position: 65% center; /* Adjust to show lady on mobile */
  }
  .programmes-hero .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.85) 100%
    );
  }
}

/* Meticulous Programmes Styling (Precise Match) */
.header-container-full {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.programmes-grid-section {
  padding: 100px 0 60px;
  background-color: #ffffff;
}

.programme-numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.programme-num-card {
  background: #f1f3f6; /* Exact light grey from screenshot */
  padding: 40px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: all 0.3s ease;
}

.programme-num-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.num-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.badge-blue {
  background-color: #004a99;
}
.badge-red {
  background-color: #8b1d3b;
}
.badge-yellow {
  background-color: #dab033;
}
.badge-pink {
  background-color: #b11675;
}

.num-card-title {
  font-family: var(--font-nacelle);
  font-size: 20px;
  font-weight: 700;
  color: #000;
  line-height: 1.4;
  margin: 0;
}

.join-community-cta-alt {
  padding: 60px 0;
  background-color: #fff;
}

.community-cta-title-alt {
  font-family: "DM Serif Display", serif;
  font-size: 44px;
  color: #000;
  margin-bottom: 25px;
  font-weight: 500;
  text-align: center;
}

.submit-btn-wrapper-center {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Precise Pill Button Style */
.btn-maroon-pill {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background-color: #8b1d3b;
  color: #fff !important; /* Ensure white text */
  height: 52px;
  padding: 0 8px 0 30px;
  border-radius: 26px;
  border: none;
  font-family: var(--font-nacelle);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-maroon-pill .btn-text {
  color: #ffffff !important;
}

.btn-maroon-pill.large {
  height: 60px;
  padding: 0 10px 0 40px;
  border-radius: 30px;
  font-size: 18px;
}

.btn-maroon-pill:hover {
  background-color: #721630;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 29, 59, 0.2);
}

.btn-maroon-pill .btn-icon {
  width: 38px;
  height: 38px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b1d3b;
}

.btn-maroon-pill.large .btn-icon {
  width: 44px;
  height: 44px;
}

/* Details Section Refinement */
.programme-details-section {
  padding: 40px 0 120px;
}

.programme-details-content {
  width: 100%;
  max-width: 100%; /* Ensure 100% width as requested */
  margin: 0 auto;
}

.programme-banner-img-v2 {
  width: 100%;
  height: 500px;
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 60px;
}

.programme-banner-img-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.read-more-content-v2 {
  font-family: var(--font-nacelle);
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

.read-more-content-v2 p {
  margin-bottom: 25px;
}

.read-more-content-v2 h4 {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #000;
  margin: 50px 0 20px;
  font-weight: 800;
}

.detail-list {
  padding-left: 20px;
  margin-bottom: 30px;
  list-style-type: disc;
}

.detail-list.enumerator {
  list-style-type: disc; /* Screenshot shows dots */
}

.detail-list li {
  margin-bottom: 15px;
  padding-left: 5px;
}

.hidden-content-v2 {
  display: none;
}

.read-more-wrapper-v2.is-expanded .hidden-content-v2 {
  display: block;
}

.read-more-trigger-v2 {
  margin-top: 20px;
  text-align: left;
}

.btn-plain-link {
  background: none;
  border: none;
  color: #8b1d3b;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  text-decoration: underline;
  padding: 10px 0;
}

.programme-meta-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin: 60px 0;
}

.meta-title-v2 {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.deadline-box-v2 {
  background: #f1f3f6;
  padding: 40px;
  border-radius: 20px;
  margin: 60px 0;
}

.final-apply-text {
  font-weight: 700;
  margin-top: 50px;
  color: #000;
}

.apply-footer {
  margin-top: 80px;
  text-align: center;
}

@media (max-width: 1100px) {
  .programme-numbers-grid {
    gap: 20px;
  }

  .programme-num-card {
    padding: 30px;
    min-height: 180px;
  }

  .community-cta-title-alt {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .programme-numbers-grid {
    grid-template-columns: 1fr;
  }

  .programme-banner-img-v2 {
    height: 300px;
  }

  .programme-meta-v2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .community-cta-title-alt {
    font-size: 28px;
  }
}

@media (max-width: 1100px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-page-section {
    padding: 60px 0;
  }
}

@media (max-width: 767px) {
  .contact-sub-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .contact-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .contact-form-container {
    padding: 25px 20px;
    border-radius: 16px;
  }

  .contact-form .form-group {
    margin-bottom: 18px;
  }

  .contact-form label {
    font-size: 11px;
    margin-bottom: 6px;
    font-weight: 700;
    display: block;
    color: #000;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form textarea {
    height: 40px;
    padding: 0 12px;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    width: 100%;
  }

  .contact-form textarea {
    height: auto;
    min-height: 100px;
    padding: 12px;
  }

  .contact-form .phone-input-wrapper {
    height: 40px;
  }

  .contact-form .phone-input-wrapper input {
    height: 38px;
  }

  .btn-submit-contact {
    width: 180px;
    height: 52px;
    padding: 0 8px 0 20px;
  }

  .btn-submit-contact .btn-text {
    font-size: 15px;
  }

  .btn-submit-contact .btn-icon {
    width: 36px;
    height: 36px;
  }
}

/* Authentication Page Styles */
.auth-page {
  background: #f8fafc;
  min-height: 100vh;
  display: block;
  padding: 0;
}

.auth-hero {
  height: 70vh;
  background-color: #8b1d3b;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.auth-hero-title {
  font-family: "DM Serif Display", serif;
  font-size: 60px;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
}

.auth-container {
  width: 100%;
  max-width: 1100px;
  margin: -150px auto 100px auto;
  position: relative;
  z-index: 10;
}

.auth-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #ffffff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  min-height: 700px;
}

.auth-form-side {
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
}

.auth-header {
  margin-bottom: 40px;
}

.auth-title {
  font-family: "DM Serif Display", serif;
  font-size: 36px;
  color: #000;
  margin-bottom: 12px;
}

.auth-subtitle {
  font-family: var(--font-nacelle);
  font-size: 16px;
  color: #64748b;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: flex;
  flex-direction: column;
  animation: fadeInAuth 0.4s ease forwards;
}

@keyframes fadeInAuth {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group-v2 {
  margin-bottom: 24px;
}

.form-group-v2 label {
  display: block;
  font-family: var(--font-nacelle);
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.form-group-v2 input {
  width: 100%;
  height: 52px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 16px;
  font-family: var(--font-nacelle);
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-group-v2 input:focus {
  outline: none;
  border-color: #8b1d3b;
  box-shadow: 0 0 0 4px rgba(139, 29, 59, 0.05);
}

.form-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
}

.forgot-password {
  font-size: 14px;
  color: #8b1d3b;
  font-weight: 600;
  text-decoration: none;
}

.btn-auth-primary {
  height: 56px;
  background: #8b1d3b;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: var(--font-nacelle);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 24px;
}

.btn-auth-primary:hover {
  background: #721630;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(139, 29, 59, 0.15);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 10px 0 24px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  padding: 0 16px;
}

.btn-google {
  height: 56px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-family: var(--font-nacelle);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.btn-google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.auth-footer-text {
  margin-top: 30px;
  text-align: center;
  font-size: 15px;
  color: #64748b;
}

.auth-footer-text a {
  color: #8b1d3b;
  font-weight: 700;
  text-decoration: none;
}

/* Brand Side Styling */
.auth-brand-side {
  position: relative;
  background-image: url("../assets/images/women-advisory.png");
  background-size: cover;
  background-position: center;
  padding: 60px;
  display: flex;
  align-items: flex-end;
}

.brand-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(139, 29, 59, 0.2),
    rgba(0, 0, 0, 0.85)
  );
}

.brand-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.brand-title {
  font-family: "DM Serif Display", serif;
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.brand-text {
  font-family: var(--font-nacelle);
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 40px;
}

.brand-stats {
  display: flex;
  gap: 40px;
}

.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 14px;
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .auth-form-side {
    padding: 60px 40px;
  }
}

@media (max-width: 1100px) {
  .auth-hero {
    height: 40vh;
  }
  .auth-hero-title {
    font-size: 36px;
  }
  .auth-container {
    margin: -80px auto 60px auto;
    padding: 0 20px;
  }
  .auth-card {
    grid-template-columns: 1fr;
  }
  .auth-brand-side {
    display: none;
  }
  .auth-page {
    padding: 0;
  }
}

@media (max-width: 575px) {
  .form-grid-v2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .auth-form-side {
    padding: 40px 24px;
  }
  .auth-title {
    font-size: 30px;
  }
}

/* WIBI Gender Loan Hero */
.wibi-hero {
  position: relative;
  height: 100vh;
  min-height: 750px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #000;
}

.wibi-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  z-index: 1;
  /* Explicitly NO transform */
}

.wibi-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #000000 0%,
    #000000 20%,
    rgba(0, 0, 0, 0) 80%
  );
  z-index: 2;
}

.wibi-hero .header-container {
  position: relative;
  z-index: 3;
}

.hero-content-wide {
  max-width: 800px;
}

.wibi-hero .hero-title {
  font-family: "DM Serif Display", serif;
  font-size: 80px;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 30px;
  text-transform: none;
}

.wibi-hero .hero-subtitle {
  font-family: "Nacelle", sans-serif;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
}

/* WIBI Mobile Adjustments */
@media (max-width: 1100px) {
  .wibi-hero {
    height: 100vh;
    min-height: 650px;
    align-items: flex-end;
    padding-bottom: 80px;
  }

  .wibi-hero-bg {
    background-position: 75% center;
  }

  .wibi-hero-overlay {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.3) 30%,
      rgba(0, 0, 0, 0.9) 90%
    );
  }

  .wibi-hero .hero-title {
    font-size: 44px;
    margin-bottom: 20px;
  }

  .wibi-hero .hero-subtitle {
    font-size: 16px;
    line-height: 1.5;
  }
}

/* WIBI Features at a Glance Section */
.wibi-features-section {
  padding: 100px 0;
  background-color: #ffffff;
  margin-bottom: 50px;
}

.wibi-features-title {
  font-family: "DM Serif Display", serif;
  font-size: 70px;
  color: #000000;
  margin-bottom: 60px;
  text-align: center;
}

.wibi-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 600px);
  gap: 50px;
  justify-content: center;
}

.wibi-feature-card {
  width: 600px;
  height: 208px;
  background-color: #f6f7f9;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wibi-num-badge {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 25px;
}

.wibi-feature-text {
  font-family: "Nacelle", sans-serif;
  font-size: 20px;
  line-height: 1.4;
  color: #000000;
  margin: 0;
  width: 100%;
}

/* Badge Colors reusing existing palette if possible, adjusting specifically for WIBI if needed */
.badge-blue {
  background-color: #004d80;
} /* Brand complementary blue */
.badge-red {
  background-color: #9c2738;
} /* Maroon/Red */
.badge-yellow {
  background-color: #dfad2b;
} /* Mustard */
.badge-pink {
  background-color: #b5076b;
} /* Deep Pink/Magenta */

/* WIBI Features Mobile Adjustments */
@media (max-width: 1250px) {
  .wibi-features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    margin: 0 auto;
  }

  .wibi-feature-card {
    width: 100%;
    height: auto;
    min-height: 208px;
  }
}

@media (max-width: 1100px) {
  .wibi-features-section {
    padding: 80px 0;
  }

  .wibi-features-title {
    font-size: 48px;
    margin-bottom: 40px;
  }
}

@media (max-width: 767px) {
  .wibi-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wibi-features-title {
    font-size: 36px;
  }

  .wibi-feature-card {
    padding: 30px;
    min-height: 180px;
  }

  .wibi-feature-text {
    font-size: 18px;
  }
}

/* WIBI Interest Form Section (Desktop Dimensions) */
.wibi-form-section {
  padding: 50px 0 150px 0; /* Increased bottom padding to give space before footer */
  background-color: #ffffff;
  box-sizing: border-box;
}

.wibi-form-title {
  font-family: "DM Serif Display", serif;
  font-size: 70px;
  color: #000000;
  margin-bottom: 20px;
  text-align: center;
}

.wibi-form-subtitle {
  font-family: "Nacelle", sans-serif;
  font-size: 30px;
  color: #000000;
  margin-bottom: 100px;
  text-align: center;
}

.wibi-form-section .community-form-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.fsdh-standard-form {
  background-color: transparent; /* Removed #f1f3f6 */
  border-radius: 24px;
  padding: 60px 80px 80px 80px;
  width: 833px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: left;
}

.fsdh-standard-form label {
  font-family: "Nacelle", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
  display: block;
}

.fsdh-standard-form input[type="text"],
.fsdh-standard-form input[type="email"],
.fsdh-standard-form input[type="tel"],
.fsdh-standard-form input[type="url"],
.fsdh-standard-form textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px; /* consistent padding for all edges */
  font-family: inherit;
  font-size: 13px;
  color: #000000;
  box-sizing: border-box;
}

/* Height specific overrides for inputs vs textures */
.fsdh-standard-form input[type="text"],
.fsdh-standard-form input[type="email"],
.fsdh-standard-form input[type="url"],
.fsdh-standard-form input[type="tel"] {
  height: 55px;
  padding: 0 16px;
}

.fsdh-standard-form input:focus,
.fsdh-standard-form textarea:focus {
  outline: none;
  border-color: #8b1d3b;
}

.fsdh-standard-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 25px;
}

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

.fsdh-standard-form label {
  font-family: "Nacelle", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
  display: block;
  text-align: left;
}

.fsdh-standard-form .phone-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  height: 50px; /* Standardized height */
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.fsdh-standard-form .phone-input-wrapper:focus-within {
  border-color: #8b1d3b;
}

.fsdh-standard-form .phone-input-wrapper input {
  border: none !important;
  height: 100% !important;
  border-radius: 0;
  padding: 0 16px !important;
  flex: 1;
}

.fsdh-standard-form .phone-input-wrapper .flag-icon {
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e5e7eb;
  background: #f9fafb;
  height: 100%;
}

.fsdh-standard-form .phone-input-wrapper .flag-icon img {
  width: 24px;
  height: auto;
  display: block;
}

.fsdh-standard-form .phone-input-wrapper .phone-hint-icon {
  position: absolute;
  right: 16px;
  display: flex;
  align-items: center;
}

/* Custom Circle Radios for WIBI */
.fsdh-radio-grid {
  display: flex;
  gap: 30px;
  margin-top: 10px;
}

.fsdh-radio-grid .radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}

.fsdh-radio-grid input[type="radio"] {
  display: none;
}

.fsdh-radio-grid .custom-radio {
  width: 23px;
  height: 23px;
  border: 2px solid #9ca3af;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  transition: all 0.2s ease;
  box-sizing: border-box;
  display: inline-block;
}

.fsdh-radio-grid input[type="radio"]:checked + .custom-radio {
  border-color: #8b1d3b;
}

.fsdh-radio-grid input[type="radio"]:checked + .custom-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 11px;
  background-color: #8b1d3b;
  border-radius: 50%;
}

.fsdh-submit-wrapper {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Specific Button sizing for fsdh standard form */
.fsdh-standard-form .fsdh-standard-btn {
  width: 167px;
  height: 69px;
  border-radius: 35px;
  background-color: #8b1d3b;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  padding: 0;
}

.fsdh-standard-form .fsdh-standard-btn .btn-text {
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
}

.fsdh-standard-form .fsdh-standard-btn .btn-icon {
  background-color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fsdh-standard-form .fsdh-standard-btn .btn-icon svg {
  width: 18px;
  height: 18px;
}

.fsdh-standard-form .fsdh-standard-btn .btn-icon svg path {
  stroke: #8b1d3b !important;
}

/* WIBI Form Mobile Adjustments */
@media (max-width: 1100px) {
  .wibi-form-section {
    height: auto;
    padding: 60px 0;
  }
  .wibi-form-title {
    font-size: 48px;
    text-align: center;
  }
  .wibi-form-subtitle {
    font-size: 18px;
    margin-bottom: 60px;
    text-align: center;
  }
  .fsdh-standard-form {
    height: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 15px; /* Added side padding to prevent touching edges */
  }
}

@media (max-width: 767px) {
  .fsdh-standard-form {
    padding: 20px 15px 40px 15px;
    border-radius: 0;
  }

  .fsdh-standard-form .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
  }

  .fsdh-standard-form .form-group {
    margin-bottom: 15px;
  }

  .fsdh-standard-form input[type="text"],
  .fsdh-standard-form input[type="email"],
  .fsdh-standard-form input[type="tel"],
  .fsdh-standard-form .phone-input-wrapper {
    height: 48px;
    font-size: 13px;
  }

  .fsdh-standard-form label {
    font-size: 13px;
  }

  /* Fix overflow on age radio grid — 3 cols fit 6 options without overflowing */
  .fsdh-radio-grid.age-groups {
    display: grid !important;
    grid-template-columns: repeat(3, auto) !important;
    gap: 10px 12px;
    flex-wrap: unset;
  }

  /* Gender radio stays side by side */
  .fsdh-radio-grid:not(.age-groups) {
    flex-wrap: wrap;
    gap: 15px;
  }

  .fsdh-radio-grid .radio-label {
    font-size: 13px;
    gap: 6px;
  }

  .fsdh-radio-grid .custom-radio {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

/* ============================================================
   CONTACT US PAGE
   ============================================================ */

.contact-page-section {
  padding: 70px 0 80px 0;
  background-color: #ffffff;
}

/* Two-column grid: info left, form right */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: flex-start;
}

/* --- Info Column --- */
.contact-sub-title {
  font-family: "DM Serif Display", serif;
  font-size: 42px;
  color: #000000;
  margin-bottom: 16px;
  line-height: 1.1;
}

.contact-description {
  font-size: 17px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background-color: #f2f2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #8b1d3b;
}

.contact-text h3 {
  font-family: "Nacelle", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-text p {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
  margin: 0;
}

.contact-text a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text a:hover {
  color: #8b1d3b;
}

/* Social Links */
.contact-socials h3 {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  display: inline-block;
  padding: 8px 18px;
  background-color: #f2f2f2;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.social-link:hover {
  background-color: #8b1d3b;
  color: #ffffff;
}

/* --- Form Column --- */
.contact-form-container {
  background-color: #f7f9fa;
  border-radius: 24px;
  padding: 40px;
}

/* Ensure the standard form inside contact page fits */
.contact-form-container .fsdh-standard-form {
  padding: 0;
  width: 100%;
  border-radius: 0;
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-sub-title {
    font-size: 36px;
  }
}

/* =========================================
   Modal Styles (Get Funding Popup)
   ========================================= */
.fsdh-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.fsdh-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.fsdh-modal-content {
  background-color: #fcfcfc;
  width: 90%;
  max-width: 600px;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.fsdh-modal-overlay.active .fsdh-modal-content {
  transform: translateY(0);
}

.fsdh-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  color: #333;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  transition: color 0.3s ease;
}

.fsdh-modal-close:hover {
  color: #8b1d3b;
}

@media (max-width: 767px) {
  .fsdh-modal-content {
    padding: 30px 20px;
    width: 95%;
  }

  .fsdh-modal-close {
    top: 15px;
    right: 15px;
  }
}

/* Digital Payments Hero Image Flip */
.digital-payments-hero .hero-background {
  transform: scaleX(1);
}

/* =========================================
   Profile Page Styles
   ========================================= */
.profile-page .profile-hero {
  min-height: 250px;
  padding-top: 100px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
}

.profile-dashboard-wrapper {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding-bottom: 80px;
}

.profile-dashboard-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
}

/* Sidebar */
.profile-sidebar {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  padding: 30px;
  height: fit-content;
}

.profile-user-card {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-name {
  font-size: 20px;
  color: var(--color-text);
  margin-bottom: 5px;
  font-weight: 600;
}

.profile-email {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.profile-role {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(139, 29, 59, 0.1);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.profile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-nav a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  color: var(--color-text-light);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.profile-nav a:hover,
.profile-nav a.active {
  background: rgba(139, 29, 59, 0.05);
  color: var(--color-primary);
}

.profile-nav a.logout-link {
  margin-top: 20px;
  color: #d32f2f;
}

.profile-nav a.logout-link:hover {
  background: rgba(211, 47, 47, 0.1);
}

/* Main Content */
.profile-main-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.profile-welcome-banner {
  background: var(--color-primary);
  color: #fff;
  padding: 40px;
  border-radius: 16px;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.profile-welcome-banner h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.profile-welcome-banner p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.profile-stat-box {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.loan-icon {
  background: rgba(139, 29, 59, 0.1);
}

.stat-icon.message-icon {
  background: rgba(22, 160, 133, 0.1);
  stroke: #16a085;
}

.stat-info h3 {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 5px;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.profile-recent-activity {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.activity-header h3 {
  font-size: 20px;
  color: var(--color-text);
}

.activity-header .view-all {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.activity-empty-state {
  text-align: center;
  padding: 40px 0;
}

.empty-icon {
  margin-bottom: 20px;
}

.activity-empty-state h4 {
  font-size: 18px;
  color: var(--color-text);
  margin-bottom: 10px;
}

.activity-empty-state p {
  color: var(--color-text-light);
  font-size: 15px;
}

/* Responsive Profile */
@media (max-width: 1100px) {
  .profile-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .profile-dashboard-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 767px) {
  .profile-stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-welcome-banner {
    padding: 30px 20px;
  }

  .profile-welcome-banner h2 {
    font-size: 24px;
  }
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
  .contact-page-section {
    padding: 40px 0 60px 0;
    overflow-x: hidden;
  }

  .contact-page-section .header-container {
    padding: 0 15px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-sub-title {
    font-size: 30px;
    margin-bottom: 12px;
  }

  .contact-description {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .contact-details {
    gap: 18px;
    margin-bottom: 28px;
  }

  .contact-icon {
    width: 36px;
    height: 36px;
  }

  .contact-text h3 {
    font-size: 12px;
  }

  .contact-text p,
  .contact-text a {
    font-size: 13px;
  }

  .contact-form-container {
    padding: 24px 16px;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .contact-form-container .fsdh-standard-form {
    padding: 0;
  }

  .contact-form-container .fsdh-standard-form input[type="text"],
  .contact-form-container .fsdh-standard-form input[type="email"],
  .contact-form-container .fsdh-standard-form input[type="tel"],
  .contact-form-container .fsdh-standard-form textarea {
    width: 100%;
    box-sizing: border-box;
  }
}
