/* =========================================================
   Base Styles + Reset
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #00b3a4;
  --primary-hover: #009b8f;

  --text-dark: #1a2b49;
  --text-light: #5a6a85;

  --dark-bg: #0d2b4d;
  --footer-bg: #0e2c4b;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 15px;

  --container-max: 1200px;
  --container-pad: 20px;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #000000;
  background-color: #fff;
  animation: fadeIn 0.5s ease-in-out;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================================================
   Layout
========================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::after {
  transform: translateX(0);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
}

.btn-secondary:hover {
  background-color: var(--primary-hover);
}

/* =========================================================
   Header + Navigation
========================================================= */
header {
  background-color: rgba(13, 20, 33, 0.2);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: 0;
}

.logo img {
  height: 45px;
  max-width: 100%;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.main-logo {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.scroll-logo {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

header.scrolled .main-logo {
  opacity: 0;
}

header.scrolled .scroll-logo {
  opacity: 1;
}

.logo span {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

/* Nav base */
nav ul {
  display: flex;
}

nav ul li {
  margin: 0 18px;
  position: relative;
}

nav ul li a {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  color: #fff;
  font-size: 15px;
  transition: color 0.3s ease, opacity 0.2s ease;
}

header.scrolled nav ul li a {
  color: #333;
}

nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a:hover:not(.active) {
  opacity: 0.8;
}

nav ul li a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

nav ul li a:hover::after {
  display: none;
}

.cta-button .btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
}

/* =========================================================
   Dropdowns (Desktop)
========================================================= */
.main-menu {
  display: flex;
}

.has-dropdown > a {
  display: flex;
  align-items: center;
}

.main-menu .has-dropdown > a::after {
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 5px;
  font-size: 12px;
}

.dropdown-menu,
.dropdown-submenu {
  position: absolute;
  background-color: rgba(13, 43, 77, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  display: none;
  z-index: 100;
  border-radius: var(--radius-sm);
  padding: 10px 0;
  left: 0;
  top: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-submenu {
  left: 100%;
  top: 0;
}

.dropdown-menu li,
.dropdown-submenu li {
  margin: 0;
  display: block;
  width: 100%;
}

nav ul.dropdown-menu li a,
nav ul.dropdown-submenu li a {
  padding: 10px 15px;
  display: block;
  color: #fff !important;
  font-weight: 400;
  white-space: nowrap;
  transition: all 0.2s ease;
}

nav ul.dropdown-menu li a:hover,
nav ul.dropdown-submenu li a:hover {
  background-color: rgba(0, 179, 164, 0.2);
  color: #fff !important;
  padding-left: 20px;
}

nav ul.dropdown-menu li a:hover::after,
nav ul.dropdown-submenu li a:hover::after {
  display: none;
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:hover > .dropdown-submenu {
  display: block;
  animation: fadeInDropdown 0.3s ease-in-out;
}

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

.dropdown-menu .has-dropdown > a::after {
  content: "\f054";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: auto;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.dropdown-menu .has-dropdown {
  position: relative;
}

.dropdown-menu .has-dropdown > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff !important;
}

.dropdown-menu .has-dropdown > a i {
  display: none;
}

.dropdown-menu li:not(:last-child),
.dropdown-submenu li:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================================
   Mobile Menu Button
========================================================= */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 12px;
  z-index: 1001;
  position: relative;
  margin-left: 10px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
}

.mobile-menu-btn i {
  transition: transform 0.3s ease;
}

.mobile-menu-btn.active i {
  transform: rotate(90deg);
}

header.scrolled .mobile-menu-btn {
  color: var(--text-dark);
}

/* =========================================================
   Hero Section
========================================================= */
.hero {
  height: 100vh;
  min-height: 700px;
  background-image: var(--wpr-bg-daa441c8-cad5-4cec-9656-8aad722b4d58);
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  text-align: left;
  padding-top: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.6)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding: 0 20px;
  margin-left: 0;
  padding-top: 40px;
}

.hero h1 {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-left: 0;
  padding-left: 0;
}

.hero p {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 16px;
  max-width: 580px;
  font-weight: 400;
}

.hero p .highlight {
  color: var(--primary-color);
  font-weight: 600;
}

.hero-tagline {
  margin-top: 24px;
  margin-bottom: 32px !important;
  font-weight: 500 !important;
}

.hero .btn-primary {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 50px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 179, 164, 0.3);
}

.hero .btn-primary:hover {
  background-color: #00c5b5;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 179, 164, 0.4);
}

.hero .btn-primary i {
  font-size: 18px;
}

.feature {
  margin-bottom: 12px;
}

.feature i {
  font-size: 16px;
}

.feature span {
  font-size: 15px;
  font-family: "Inter", sans-serif;
}

/* =========================================================
   Tailored Finance Section
========================================================= */
.tailored-finance {
  position: relative;
  margin-top: -100px;
  padding: 120px 0 80px;
  background-color: var(--primary-color);
}

.finance-content {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

.finance-image {
  flex: 0 0 40%;
  position: relative;
  margin-top: -160px;
  border-radius: 20px;
  overflow: hidden;
  z-index: 2;
}

.finance-image img {
  display: block;
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.finance-text {
  flex: 1;
  color: #fff;
  z-index: 2;
  padding-top: 0px;
  margin-top: -150px;
}

.finance-text h2 {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
  line-height: 1.2;
}

.finance-text p {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.finance-text .contact-btn {
  background-color: #2d3648;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 0;
  position: relative;
  bottom: 0;
}

.finance-text .contact-btn:hover {
  background-color: #fff;
  color: var(--primary-color);
}

/* =========================================================
   Products Section
========================================================= */
.products {
  padding: 100px 0;
  background-color: #fff;
}

.products h2 {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
  text-align: left;
}

.section-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--text-light);
  max-width: 650px;
  line-height: 1.6;
  margin: 0 auto 30px;
  text-align: left;
}

.products > .container > p {
  font-family: "Inter", sans-serif;
  color: rgba(5, 17, 72, 0.9);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--text-dark);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-icon {
  width: 65px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.product-icon i {
  font-size: 28px;
  color: #fff;
}

.product-icon img {
  width: 60%;
  height: auto;
  filter: brightness(0) invert(1);
}

.product-card h3 {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-size: 21px;
  font-weight: 600;
  margin: 20px 0 15px;
  color: #fff;
}

.product-card p {
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.product-card a {
  color: #fff;
}

/* =========================================================
   Testimonials Section
========================================================= */
.testimonials {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.testimonial-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  margin-bottom: 60px;
}

.testimonial-heading {
  flex: 0 0 35%;
  padding-top: 10px;
}

.testimonial-heading h2 {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.testimonial-heading p {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-light);
  margin-bottom: 30px;
}

.testimonial-navigation {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #e1e5ee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-dark);
  font-size: 14px;
}

.nav-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.testimonial-quote-container {
  flex: 0 0 55%;
  position: relative;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-quote-container.active {
  display: block;
  opacity: 1;
}

.quote-mark {
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 60px;
  color: var(--text-dark);
  z-index: 2;
}

.testimonial-quote {
  background-color: #fff;
  padding: 40px 30px 30px;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.quote-text {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.quote-author {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.author-avatar {
  width: 48px;
  height: 48px;
  margin-right: 15px;
}

.avatar-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #00694e;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  border-radius: 50%;
}

.author-info h4 {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.author-info .date {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.rating {
  display: flex;
  align-items: center;
}

.rating i {
  color: #ffb400;
  font-size: 14px;
  margin-right: 2px;
}

.verified {
  display: inline-block;
  margin-left: 5px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 12px;
}

.google-rating {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--text-light);
}

.google-rating strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* =========================================================
   User Guide Section
========================================================= */
.user-guide {
  padding: 80px 0;
  background-color: #fff;
}

.user-guide-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.guide-text {
  flex: 0 0 35%;
}

.user-guide h2 {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.2;
}

.user-guide p {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.5;
}

.guide-cards {
  display: flex;
  gap: 30px;
  flex: 0 0 60%;
}

.guide-card {
  flex: 1;
  background-color: #fff;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #e1e5ee;
}

.guide-card h3 {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.download-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: "Inter", sans-serif;
}

.download-btn:hover {
  background-color: #008c80;
}

/* =========================================================
   Achievements Section
========================================================= */
.achievements {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.achievements h2 {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
  text-align: center;
}

.achievements .section-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.5;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.achievement-card {
  background-color: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: row;
  height: 100%;
}

.achievement-card.empty {
  background-color: #f0f5ff;
  min-height: 200px;
}

.achievement-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--dark-bg);
  color: #fff;
  width: 60%;
}

.achievement-card h3 {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
}

.achievement-card p {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.achievement-image {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--dark-bg);
  width: 40%;
}

.achievement-image img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

/* =========================================================
   Newsletter Section
========================================================= */
.newsletter {
  position: relative;
  padding: 0;
  margin-bottom: -50px;
  z-index: 10;
  color: #fff;
}

.newsletter-container {
  background-color: var(--primary-color);
  border-radius: var(--radius-xl);
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-content {
  flex: 1;
}

.newsletter h2 {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 5px;
  text-align: left;
  color: #fff;
}

.newsletter p {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  margin-bottom: 0;
  text-align: left;
  color: #fff;
}

.newsletter-form {
  display: flex;
  max-width: 400px;
  width: 100%;
  margin-left: 20px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 5px 0 0 5px;
  font-size: 16px;
  background-color: #fff;
  font-family: "Inter", sans-serif;
}

.newsletter-form button {
  padding: 12px 20px;
  border: none;
  border-radius: 0 5px 5px 0;
  background-color: var(--dark-bg);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "Inter", sans-serif;
}

.newsletter-form button:hover {
  background-color: #0a1f38;
}

/* =========================================================
   Email Dialog Box
========================================================= */
.email-dialog {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.email-dialog-content {
  position: relative;
  background-color: #fff;
  margin: 10% auto;
  width: 90%;
  max-width: 500px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  animation: dialogFadeIn 0.3s;
}

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

.close-email-dialog {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--text-dark);
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
}

.email-dialog-container {
  padding: 30px;
}

.email-dialog-info h3 {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-size: 24px;
  margin: 0 0 10px 0;
  color: var(--text-dark);
}

.dialog-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  margin: 0 0 25px 0;
  color: var(--text-light);
}

#guide-email-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#guide-email {
  padding: 12px 15px;
  border: 1px solid #e1e5ee;
  border-radius: 5px;
  font-size: 16px;
  font-family: "Inter", sans-serif;
}

.email-submit-btn {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "Inter", sans-serif;
}

.email-submit-btn:hover {
  background-color: #008c80;
}

/* =========================================================
   Footer
========================================================= */
footer {
  background-color: var(--footer-bg);
  color: #fff;
  padding: 80px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-info {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 120px;
  filter: brightness(0) invert(1);
}

.footer-logo span {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.footer-contact {
  margin-bottom: 20px;
}

.footer-contact .contact-line {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  color: #fff;
  font-size: 14px;
  font-family: "Inter", sans-serif;
}

.footer-contact .contact-line span {
  display: flex;
  align-items: center;
}

.footer-contact .contact-line i {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  margin-top: 20px;
  margin-bottom: 30px;
  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--primary-color);
}

.footer-nav-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  flex: 2 1 600px;
}

.footer-column {
  flex: 1 1 160px;
}

.company-column {
  flex: 1 1 160px;
}

.services-help-container {
  display: flex;
  flex: 2 1 320px;
  gap: 30px;
}

.services-column,
.help-column {
  flex: 1 1 160px;
}

.footer-column h3 {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #fff;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: left;
}

.footer-bottom p {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   Reveal Animations
   NOTE: team-card is intentionally excluded here to prevent
   opacity:0 from conflicting with the dialog trigger.
========================================================= */
.product-card,
.achievement-card,
.finance-image,
.finance-text,
.testimonial-heading,
.testimonial-quote {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card.revealed,
.achievement-card.revealed,
.finance-image.revealed,
.finance-text.revealed,
.testimonial-heading.revealed,
.testimonial-quote.revealed {
  opacity: 1;
  transform: translateY(0);
}

.product-card:nth-child(1) { transition-delay: 0.1s; }
.product-card:nth-child(2) { transition-delay: 0.2s; }
.product-card:nth-child(3) { transition-delay: 0.3s; }
.product-card:nth-child(4) { transition-delay: 0.4s; }
.product-card:nth-child(5) { transition-delay: 0.5s; }
.product-card:nth-child(6) { transition-delay: 0.6s; }

/* =========================================================
   Accessibility
========================================================= */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* =========================================================
   Animations
========================================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

/* =========================================================
   Team Section
========================================================= */
.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.team-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #0a3158;
  display: flex;
  flex-direction: column;
  /* 4 per row */
  width: calc((100% - 90px) / 4);
  margin-bottom: 0;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.team-card > div:first-child {
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.team-card:hover img {
  transform: scale(1.04);
}

.team-card > div:last-child {
  padding: 20px;
  color: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* =========================================================
   Team Member Dialog  ← THE FIX
========================================================= */

/* 
  FIX 1: z-index raised to 9999 — above nav (1000) and
          mobile nav (2000) so nothing blocks the overlay.
  FIX 2: overflow-y: auto on the backdrop so very long
          bios are scrollable without locking the viewport.
*/
.team-dialog {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.team-dialog-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 35px;
  border-radius: 16px;
  width: 85%;
  max-width: 860px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: teamDialogFadeIn 0.3s ease;
}

/* Close button */
.close-dialog {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: #555;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
}

.close-dialog:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

/* Two-column layout inside dialog */
.team-dialog-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Left column — photo */
.team-dialog-image {
  flex: 0 0 260px;
  max-width: 260px;
}

.team-dialog-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  display: block;
}

/* Right column — info */
.team-dialog-info {
  flex: 1;
  min-width: 0; /* prevent text overflow */
}

.team-dialog-info h3 {
  font-family: "Google Sans Flex", "Google Sans", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px 0;
}

.dialog-title {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 18px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dialog-description {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 22px;
}

/* Contact rows */
.dialog-contact {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dialog-contact p {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.dialog-contact i {
  color: var(--primary-color);
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* LinkedIn button */
.dialog-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0077b5;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.dialog-linkedin:hover {
  background-color: #005f91;
  transform: translateY(-1px);
}

.dialog-linkedin i {
  font-size: 16px;
}

/* =========================================================
   Finance Bridging Cards (Team page)
========================================================= */
.finance-bridging {
  padding: 80px 0;
  background-color: #fff;
}

.finance-bridging h2 {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.finance-bridging-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.finance-card {
  padding: 30px;
  border-radius: 10px;
  background-color: #1a2332;
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.finance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 1200px) {
  .team-card {
    width: calc((100% - 60px) / 3);
  }
}

@media (max-width: 992px) {
  .mobile-menu-btn {
    display: block !important;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--text-dark);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: none;
  }

  nav.show {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  header.scrolled nav {
    background-color: #fff;
  }

  nav ul.main-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul li {
    margin: 10px 0;
    width: 100%;
  }

  .main-menu li a {
    color: #fff !important;
    font-size: 18px;
    padding: 10px 0;
    display: block;
  }

  header.scrolled nav .main-menu li a,
  header.scrolled nav .main-menu li {
    color: var(--text-dark) !important;
  }

  header.scrolled nav .dropdown-menu a,
  header.scrolled nav .dropdown-submenu a {
    color: var(--text-dark) !important;
  }

  .dropdown-menu,
  .dropdown-submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    background-color: transparent;
    border: none;
    padding-left: 20px;
    display: none;
    opacity: 1;
    transform: none;
  }

  .has-dropdown.open > .dropdown-menu,
  .has-dropdown.open > .dropdown-submenu {
    display: block;
  }

  .main-menu .has-dropdown > a::after {
    float: right;
    transition: transform 0.3s ease;
  }

  .main-menu .has-dropdown.open > a::after {
    transform: rotate(180deg);
  }

  .cta-button {
    display: none;
  }

  .testimonial-content {
    flex-direction: column;
    gap: 40px;
  }

  .testimonial-heading,
  .testimonial-quote-container {
    flex: 0 0 100%;
    width: 100%;
  }

  .testimonial-heading {
    text-align: center;
  }

  .testimonial-navigation {
    justify-content: center;
  }

  .user-guide-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .guide-text {
    flex: 0 0 100%;
  }

  .guide-cards {
    flex: 0 0 100%;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .finance-content {
    flex-direction: column;
    text-align: center;
  }

  .finance-image {
    margin-top: -50px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }

  .finance-text h2 {
    font-size: 28px;
    margin-top: 20px;
  }

  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
  }

  .achievement-card.empty {
    display: none;
  }

  .team-container {
    justify-content: center;
    gap: 20px;
  }

  .team-card {
    width: calc(33.33% - 14px);
  }

  /* Dialog responsive */
  .team-dialog-content {
    margin: 8% auto;
    width: 90%;
    padding: 25px;
  }
}

@media (max-width: 900px) {
  .team-card {
    width: calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .newsletter {
    display: none;
  }

  .hero {
    min-height: 600px;
  }

  .hero-content {
    padding-top: 100px;
    text-align: center;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 36px;
    text-align: center;
  }

  .hero p {
    font-size: 16px;
    text-align: center;
  }

  .hero .btn-primary {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    max-width: 250px;
  }

  .testimonial-quote {
    padding: 30px 20px 20px;
  }

  .quote-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-info {
    margin-top: 10px;
    text-align: center;
  }

  .logo img {
    height: 35px;
  }

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

  .product-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }

  .products h2 {
    font-size: 30px;
  }

  .tailored-finance {
    padding: 60px 0;
  }

  .finance-text p {
    font-size: 14px;
  }

  .achievement-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .achievement-card {
    flex-direction: column;
  }

  .achievement-content,
  .achievement-image {
    width: 100%;
  }

  .achievements h2 {
    font-size: 38px;
    text-align: center;
  }

  .guide-cards {
    flex-direction: column;
    max-width: 350px;
  }

  .user-guide h2 {
    font-size: 38px;
  }

  .footer-nav-container {
    flex-direction: column;
    gap: 40px;
  }

  .footer-info {
    text-align: center;
  }

  .footer-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-contact .contact-line {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .footer-social {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
  }

  .footer-nav-sections {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }

  .services-help-container {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }

  .footer-column,
  .company-column,
  .services-column,
  .help-column {
    flex: 1 1 140px;
    margin-bottom: 20px;
    text-align: center;
  }

  .footer-bottom {
    text-align: center;
    margin-top: 20px;
  }

  .email-dialog-content {
    margin: 20% auto;
    width: 95%;
  }

  .email-dialog-container {
    padding: 20px;
  }

  .team-card > div:first-child {
    height: 220px;
  }

  .team-card {
    height: 340px;
  }

  .team-container {
    justify-content: center;
    gap: 20px;
  }

  .team-card {
    width: calc(50% - 10px);
    margin: 0;
  }

  /* Team dialog stacks vertically on mobile */
  .team-dialog-container {
    flex-direction: column;
  }

  .team-dialog-image {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  .team-dialog-image img {
    height: 260px;
    width: 100%;
  }

  .team-dialog-content {
    margin: 10% auto;
    width: 95%;
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .team-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-content {
    padding-top: 80px;
  }

  .logo img {
    height: 30px;
  }

  .header-container {
    padding: 10px 0;
  }

  .team-card > div:first-child {
    height: 200px;
  }

  .team-card {
    height: 320px;
  }

  .footer-nav-sections {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    width: 100%;
    text-align: center;
  }

  .footer-column ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .services-help-container {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .services-column,
  .help-column {
    width: 100%;
  }

  .footer-contact .contact-line span {
    justify-content: center;
    width: 100%;
  }

  .team-dialog-content {
    margin: 5% auto;
    width: 98%;
    padding: 16px;
  }

  .team-dialog-info h3 {
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  .footer-logo img {
    max-width: 100px;
  }

  .footer-contact .contact-line {
    font-size: 13px;
  }

  .footer-column h3 {
    font-size: 16px;
  }

  .footer-column ul li a {
    font-size: 13px;
  }

  .footer-social a {
    width: 32px;
    height: 32px;
  }
}

/* =========================================================
   Global Font Overrides
========================================================= */
body {
  font-family: "Inter", sans-serif !important;
  color: #000000 !important;
}

p, span, li, input, textarea, label, small,
strong, b, em, i, cite, mark, del, ins, sub, sup {
  font-family: "Inter", sans-serif !important;
}

::placeholder                { font-family: "Inter", sans-serif !important; }
::-webkit-input-placeholder  { font-family: "Inter", sans-serif !important; }
::-moz-placeholder           { font-family: "Inter", sans-serif !important; }
:-ms-input-placeholder       { font-family: "Inter", sans-serif !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Google Sans Flex", "Google Sans", sans-serif !important;
}

nav ul li a,
nav ul.main-menu li a,
nav ul.dropdown-menu li a,
nav ul.dropdown-submenu li a,
.main-menu a,
.dropdown-menu a,
.dropdown-submenu a {
  font-family: "Google Sans Flex", "Google Sans", sans-serif !important;
}

button,
a.btn,
.btn,
.btn-primary,
.btn-secondary,
.cta-button .btn,
.contact-btn,
.download-btn,
.email-submit-btn,
.nav-btn,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  font-family: "Google Sans Flex", "Google Sans", sans-serif !important;
}