/* Base Styles and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00b3a4;
    --text-dark: #1a2b49;
    --text-light: #5a6a85;
    --dark-bg: #0d2b4d;
}

/* Universal font application - Override all fonts with Playfair Display */
html {
    font-family: 'Playfair Display', serif !important;
}

body {
    font-family: 'Playfair Display', serif !important;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Override Inter font and any other fonts */
* {
    font-family: 'Playfair Display', serif !important;
}

/* Apply Playfair Display to all text elements */
h1, h2, h3, h4, h5, h6,
p, span, div, a, li, td, th,
input, textarea, select, button,
.wp-block-heading,
.wp-block-paragraph,
.wp-block-list,
.entry-content,
.site-content,
.widget,
.menu,
nav,
header,
footer,
main,
section,
article,
aside,
.twentytwenty-default-font,
.entry-title,
.post-title,
.page-title,
.site-title,
.site-description {
    font-family: 'Playfair Display', serif !important;
}

/* Override any WordPress default fonts */
.wp-block-heading h1,
.wp-block-heading h2,
.wp-block-heading h3,
.wp-block-heading h4,
.wp-block-heading h5,
.wp-block-heading h6,
.has-large-font-size,
.has-medium-font-size,
.has-small-font-size,
.has-normal-font-size {
    font-family: 'Playfair Display', serif !important;
}

/* Ensure navigation uses Playfair Display */
nav ul li a,
.main-menu li a,
.navigation a,
.menu-item a {
    font-family: 'Playfair Display', serif !important;
}

/* Ensure form elements use Playfair Display */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
    font-family: 'Playfair Display', serif !important;
}

/* Ensure buttons use Playfair Display */
button,
.btn,
.button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.wp-block-button__link {
    font-family: 'Playfair Display', serif !important;
}

/* Override theme-specific font classes */
.inter-font,
.font-inter,
[class*="inter"],
[class*="font-"] {
    font-family: 'Playfair Display', serif !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #00b3a4;
    color: white;
}

.btn-primary:hover {
    background-color: #009b8f;
}

.btn-secondary {
    background-color: #00b3a4;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: #009b8f;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #1a2b49;
    font-size: 24px;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    position: relative;
    margin-left: 10px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    background-color: rgba(26, 43, 73, 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);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 24px;
    font-weight: 700;
    color: #00b3a4;
}

/* Dropdown Menu Styles - Improved with dark blur background */
.main-menu {
    display: flex;
}

.main-menu li {
    position: relative;
}

.has-dropdown > a {
    display: flex;
    align-items: center;
    padding-bottom: 5px;
}

.has-dropdown > a i {
    margin-left: 5px;
    font-size: 12px;
}

.dropdown-menu, .dropdown-submenu {
    position: absolute;
    background-color: rgba(13, 43, 77, 0.9); /* Dark blue with transparency */
    backdrop-filter: blur(8px); /* Blur effect */
    -webkit-backdrop-filter: blur(8px); /* For Safari */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    z-index: 100;
    border-radius: 4px;
    padding: 0;
    left: 0;
    top: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    pointer-events: none;
}

.dropdown-submenu {
    left: 100%;
    top: -12px;
}

.dropdown-menu li, .dropdown-submenu li {
    margin: 0;
    display: block;
    width: 100%;
}

/* Make these selectors more specific to override general nav styles */
nav ul.dropdown-menu li a, 
nav ul.dropdown-submenu li a {
    padding: 12px 15px;
    display: block;
    color: white !important; /* Force white text with !important */
    font-weight: 400;
    white-space: nowrap;
    transition: all 0.2s ease;
}

/* Also make hover styles more specific */
nav ul.dropdown-menu li a:hover, 
nav ul.dropdown-submenu li a:hover {
    background-color: rgba(0, 179, 164, 0.2); /* Primary color with transparency */
    color: white !important; /* Force white text on hover */
    padding-left: 20px; /* Slight indent on hover */
}

/* Prevent the underline effect on dropdown items */
nav ul.dropdown-menu li a:hover::after,
nav ul.dropdown-submenu li a:hover::after {
    display: none;
}

.has-dropdown.show > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
    pointer-events: auto;
    animation: fadeIn 0.3s ease-in-out;
}

.dropdown-menu .has-dropdown.show > .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
    pointer-events: auto;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu .has-dropdown > a::after {
    content: '\f054'; /* Font Awesome right arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7); /* Slightly dimmed arrow */
}

.dropdown-menu .has-dropdown {
    position: relative;
}

.dropdown-menu .has-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white !important; /* Ensure parent items are also white */
}

/* Hide HTML icons since we're using CSS pseudo-elements */
.dropdown-menu .has-dropdown > a i {
    display: none;
}

/* Add subtle dividers between menu items */
.dropdown-menu li:not(:last-child), 
.dropdown-submenu li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Add hover intent delay for better submenu interaction */
.dropdown-menu .has-dropdown {
    position: relative;
}

/* Main dropdown indicator */
.main-menu .has-dropdown > a::after {
    content: '\f107'; /* Font Awesome down arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    font-size: 12px;
    transform: translateY(0);
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}

nav ul li a {
    color: white; /* Ensure default color is white */
}

nav ul li a.active {
    color: #00b3a4; /* Only active links are teal */
}

/* Optional: You can keep a subtle hover effect without changing color */
nav ul li a:hover:not(.active) {
    opacity: 0.8; /* Slight opacity change on hover for non-active items */
}

/* Keep underline only for active pages */
nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #00b3a4;
}

/* Explicitly remove underline on hover */
nav ul li a:hover::after {
    display: none;
}

/* Hero Section - Updated for h1 alignment with logo */
.hero {
    height: 100vh;
    min-height: 700px;
    background-image: url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    text-align: left;
    padding-top: 0; /* Remove padding-top to help with alignment */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    padding: 0 20px;
    margin-left: 0;
    padding-top: 120px; 
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ensure consistent container padding */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Adjust logo and h1 for alignment */
.logo {
    display: flex;
    align-items: center;
    margin-left: 0; /* Ensure logo starts at the container edge */
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-left: 0; /* Ensure h1 starts at the container edge */
    padding-left: 0; /* Remove any potential padding */
}

.hero p {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 580px;
    font-weight: 400;
}

.hero p .highlight {
    color: #00b3a4;
    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;
}

/* Header Styles - Updated for better contrast with hero */
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;
}

/* Ensure nav content is vertically centered */
header nav {
    display: flex !important;
    align-items: center !important;
    height: 45px !important; /* match .logo img height for perfect alignment */
}

/* Align CTA button container with logo/menu */
.cta-button {
    display: flex;
    align-items: center;
}

/* Ensure menu items are centered within nav’s height */
nav ul.main-menu {
    align-items: center;
}

/* Reinforce link alignment within each menu item */
nav ul li a {
    display: flex;
    align-items: center;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled nav ul li a {
    color: #333;
}

header.scrolled .logo img {
    filter: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
}

.logo img {
    height: 45px;
    transition: opacity 0.3s ease;
}

.main-logo {
    filter: brightness(0) invert(1); /* Make logo white on transparent header */
    opacity: 1;
}

.scroll-logo {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

header.scrolled .main-logo {
    opacity: 0;
}

header.scrolled .scroll-logo {
    opacity: 1;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 18px;
}

nav ul li a {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    color: white;
    font-size: 15px;
    transition: color 0.3s ease;
}

nav ul li a.active {
    color: #00b3a4;
}

.cta-button .btn {
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
}
    

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.6));
}

.hero-content {
    padding-top: 40px; /* Add some top padding to match image */
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 17px;
    line-height: 1.5;
    opacity: 0.9;
}

.feature {
    margin-bottom: 12px;
}

.feature i {
    font-size: 16px;
}

.feature span {
    font-size: 15px;
}

/* Tailored Finance Section */
.tailored-finance {
  position: relative;
  margin-top: -100px;          /* keep overlap with previous section */
  padding: 120px 0 80px;
  background-color: #00b3a4;   /* Apply teal background to entire section */
}

/* This wrapper contains the content */
.finance-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;          /* reduce inner padding */
  background-color: transparent;   /* remove background from content */
  position: relative;
  z-index: 1;
}

.finance-image {
  flex: 0 0 45%;              /* Increased from 40% to 45% */
  position: relative;
  margin-top: -160px;         /* keep image pulled upward */
  border-radius: 20px;
  overflow: hidden;
  z-index: 2;
}

.finance-image img {
  display: block;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.finance-text {
  flex: 0 0 50%;              /* Fixed width to match image proportion */
  color: white;
  z-index: 2;
  padding-top: 0px;
  margin-top: -100px;         /* Moved text up to align with first quarter of image */
  max-width: 50%;             /* Ensure text doesn't exceed 50% width */
  box-sizing: border-box;     /* Include padding in width calculation */
}

.finance-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
  line-height: 1.2;
}

.finance-text p {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  word-wrap: break-word;      /* Ensure long words break properly */
  overflow-wrap: break-word;  /* Additional word wrapping support */
}

.finance-text .contact-btn {
  background-color: #2d3648;  /* Dark blue button */
  color: white;
  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: white;
  color: #00b3a4;
}

/* Responsive */
@media (max-width: 992px) {
  .finance-content {
    flex-direction: column;
    text-align: center;
  }
  .finance-image {
    margin-top: -50px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    flex: 0 0 100%;
  }
  .finance-text {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 20px;           /* Reset margin for mobile */
  }
  .finance-text h2 {
    font-size: 26px;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .tailored-finance {
    padding: 60px 0;
  }
  .finance-text p {
    font-size: 14px;
  }
}

/* Products Section Refinements */
.products {
    padding: 100px 0;
    background-color: #fff;
}

.products h2 {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-align: left;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    max-width: 650px;
    line-height: 1.6;
    margin: 0 auto 30px;
    text-align: left;
}

/* Ensure the short paragraph under the subtitle is readable on dark background */
.products > .container > p {
    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; /* Set minimum height for consistency */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #1a2b49;
}

.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: #ffffff;
}

.product-icon img {
    width: 60%;
    height: auto;
    filter: brightness(0) invert(1);
}

.product-card h3 {
    font-size: 21px;
    font-weight: 600;
    margin: 20px 0 15px;
    color: #ffffff;
}

.product-card p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.product-card a {
    color: #ffffff;
}


/* Responsive adjustments for product grid */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .products h2 {
        font-size: 28px;
    }
}

/* Testimonials Section Refinements */
/* 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-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a2b49;
    margin-bottom: 20px;
}

.testimonial-heading p {
    font-size: 16px;
    line-height: 1.5;
    color: #5a6a85;
    margin-bottom: 30px;
}

.testimonial-navigation {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #e1e5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1a2b49;
    font-size: 14px;
}

.nav-btn:hover {
    background-color: #00b3a4;
    color: white;
    border-color: #00b3a4;
}

.testimonial-quote-container {
    flex: 0 0 55%;
    position: relative;
    display: none; /* Hide all testimonials by default */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-quote-container.active {
    display: block; /* Show only the active testimonial */
    opacity: 1;
}

.quote-mark {
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 60px;
    color: #1a2b49;
    z-index: 2;
}

.testimonial-quote {
    background-color: #fff;
    padding: 40px 30px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.quote-text {
    font-size: 16px;
    line-height: 1.6;
    color: #1a2b49;
    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: white;
    font-size: 22px;
    font-weight: 600;
    border-radius: 50%;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a2b49;
    margin-bottom: 2px;
}

.author-info .date {
    font-size: 13px;
    color: #5a6a85;
    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: #00b3a4;
    font-weight: bold;
    font-size: 12px;
}

.google-rating {
    font-size: 13px;
    color: #5a6a85;
}

.google-rating strong {
    color: #1a2b49;
    font-weight: 600;
}

/* Guide Cards */
/* 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-size: 42px;
    font-weight: 700;
    color: #1a2b49;
    margin-bottom: 15px;
    line-height: 1.2;
}

.user-guide p {
    font-size: 18px;
    color: #011434;
    line-height: 1.5;
}

.guide-cards {
    display: flex;
    gap: 30px;
    flex: 0 0 60%;
}

.guide-card {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 1, 35, 0.05);
    text-align: center;
    border: 1px solid #e0e0e0; /* Changed to a light gray border to match the image */
}

.guide-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a2b49;
    margin-bottom: 20px;
}

.download-btn {
    display: inline-block;
    background-color: #00b3a4;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-btn:hover {
    background-color: #008c80;
}

/* Responsive adjustments for User Guide */
@media (max-width: 992px) {
    .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;
    }
}

@media (max-width: 768px) {
    .guide-cards {
        flex-direction: column;
        max-width: 350px;
    }
    
    .user-guide h2 {
        font-size: 36px;
    }
}

/* Mobile responsive styles - consolidated */
@media (max-width: 992px) {
    /* Header starts transparent on mobile */
    header {
        background-color: transparent;
        box-shadow: none;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }
    
    /* Mobile header when scrolled - white background */
    header.scrolled {
        background-color: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Mobile menu button color adjustments */
    .mobile-menu-btn {
        display: block !important;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: white !important;
        z-index: 1001;
        transition: color 0.3s ease;
    }
    
    /* Mobile menu button color when scrolled */
    header.scrolled .mobile-menu-btn {
        color: #1a2b49 !important;
    }
    
    /* Mobile logo adjustments */
    .logo .main-logo {
        filter: brightness(0) invert(1);
        opacity: 1;
        transition: opacity 0.3s ease;
    }
    
    .logo .scroll-logo {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    /* Logo changes when scrolled on mobile */
    header.scrolled .logo .main-logo {
        opacity: 0;
    }
    
    header.scrolled .logo .scroll-logo {
        opacity: 1;
    }
    
    /* Hide main navigation by default on mobile */
    header nav,
    #site-header nav,
    nav {
        display: none !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        background-color: #1a2b49 !important;
        background: #1a2b49 !important;
        padding: 20px !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
        z-index: 2000 !important;
        box-sizing: border-box !important;
        min-height: calc(100vh - 70px) !important;
    }
    
    /* Show navigation when toggled */
    header nav.show,
    #site-header nav.show,
    nav.show {
        display: block !important;
        background-color: #1a2b49 !important;
        background: #1a2b49 !important;
    }
    
    /* Mobile menu layout */
    nav ul,
    #site-header nav ul,
    .main-menu {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin: 0;
        padding: 0;
    }
    
    /* Add subtle borders between menu items */
    nav ul li,
    #site-header nav ul li,
    .main-menu li {
        margin: 0 0 15px 0 !important;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
    }
    
    nav ul li:last-child,
    #site-header nav ul li:last-child,
    .main-menu li:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    nav ul li a,
    #site-header nav ul li a,
    .main-menu li a {
        color: white !important;
        font-size: 18px !important;
        padding: 10px 0 !important;
        display: block !important;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    nav ul li a:hover,
    #site-header nav ul li a:hover,
    .main-menu li a:hover {
        color: #00b3a4 !important;
    }
    
    /* Hide CTA button on mobile */
    .cta-button {
        display: none !important;
    }
    
    /* Ensure header container positioning */
    .header-container {
        position: relative;
        padding: 15px 20px;
    }
    
    /* Mobile dropdown styles */
    .dropdown-menu,
    .dropdown-submenu,
    #site-header .dropdown-menu,
    #site-header .dropdown-submenu {
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 0 0 20px !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        width: 100% !important;
        border: none !important;
        margin-top: 10px;
    }
    
    .has-dropdown.open > .dropdown-menu,
    .has-dropdown.open > .dropdown-submenu,
    #site-header .has-dropdown.open > .dropdown-menu,
    #site-header .has-dropdown.open > .dropdown-submenu {
        display: block !important;
    }
    
    /* Style nested dropdown items */
    .dropdown-menu .has-dropdown > a,
    .dropdown-submenu .has-dropdown > a,
    nav .has-dropdown > a {
        position: relative;
        padding-right: 30px !important;
    }
    
    /* Add arrow indicator for dropdowns - Fixed for Font Awesome 5 */
    .dropdown-menu .has-dropdown > a::after,
    .dropdown-submenu .has-dropdown > a::after,
    nav .has-dropdown > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free', 'FontAwesome';
        font-weight: 900;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
    }
    
    /* Rotate arrow when dropdown is open */
    .dropdown-menu .has-dropdown.open > a::after,
    .dropdown-submenu .has-dropdown.open > a::after,
    nav .has-dropdown.open > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    /* Style nested dropdown links */
    .dropdown-menu li a,
    .dropdown-submenu li a {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 16px !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Remove border from last item in each submenu */
    .dropdown-menu li:last-child a,
    .dropdown-submenu li:last-child a {
        border-bottom: none !important;
    }
    
    /* Style sub-submenu items (third level) */
    .dropdown-submenu .dropdown-submenu {
        padding-left: 40px !important;
    }
    
    .dropdown-submenu .dropdown-submenu li a {
        font-size: 15px !important;
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    /* Hover effects for mobile dropdown items */
    .dropdown-menu li a:hover,
    .dropdown-submenu li a:hover {
        color: #00b3a4 !important;
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
    }
    
    .testimonial-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .testimonial-heading,
    .testimonial-quote-container {
        flex: 0 0 100%;
    }
    
    .testimonial-heading {
        text-align: center;
    }
    
    .testimonial-navigation {
        justify-content: center;
    }
    
    .guide-cards {
        flex-direction: column;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .team-container {
        justify-content: center;
        gap: 20px;
    }
    
    .team-card {
        width: calc(33.33% - 20px);
        margin: 0 10px 20px;
    }
}

@media (max-width: 900px) {
    .team-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .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;
    }
    
    .team-card > div:first-child {
        height: 220px;
    }
    
    .team-card {
        height: 340px;
    }
    
    .team-container {
        justify-content: center;
        gap: 20px; /* Keep this consistent with the main style */
    }
    
    .team-card {
        width: calc(50% - 10px); /* Adjust width calculation */
        margin: 0; /* Remove margin since we're using gap */
    }
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .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;
    }
}

@media (max-width: 600px) {
    .team-card {
        width: 100%;
        max-width: 320px;
        margin: 0; /* Remove margin */
    }
}

@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 Refinements */
footer {
    background-color: #0D2B4D !important;
    color: #fff;
    /* Enough space so the newsletter can sit half-overlapping without covering content */
    padding: 140px 0 30px;
    position: relative;
}

/* Typography Refinements */
body {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Add to the end of your CSS file */

/* Achievements Section */
.achievements {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.achievements h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a2b49;
    margin-bottom: 15px;
    text-align: center; /* Changed to center */
}

.section-subtitle {
    font-size: 18px;
    color: #5a6a85;
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.5;
    text-align: center; /* Added center alignment */
    margin-left: auto;
    margin-right: auto;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Changed to 2 columns */
    gap: 25px;
    max-width: 900px; /* Added max-width to center the grid */
    margin: 0 auto; /* Center the grid */
}

.achievement-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: row; /* Changed from column to 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: #0d2b4d;
    color: white;
    width: 60%; /* Added width to control content area size */
}

.achievement-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.achievement-card p {
    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: #0d2b4d; /* Changed from white/transparent to match content area */
    width: 40%; /* Added width to control image area size */
}

.achievement-image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

/* Responsive adjustments for achievements */
@media (max-width: 992px) {
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
    
    .achievement-card.empty {
        display: none;
    }
}

@media (max-width: 768px) {
    .achievement-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .achievement-card {
        flex-direction: column; /* Stack vertically on mobile */
    }
    
    .achievement-content,
    .achievement-image {
        width: 100%; /* Full width on mobile */
    }
    
    .achievements h2 {
        font-size: 36px;
        text-align: center;
    }
    
    .section-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

.testimonial-quote-container {
    flex: 0 0 55%;
    position: relative;
    display: none; /* Hide all testimonials by default */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-quote-container.active {
    display: block; /* Show only the active testimonial */
    opacity: 1;
}

.quote-mark {
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 60px;
    color: #1a2b49;
    z-index: 2;
}

.testimonial-quote {
    background-color: #fff;
    padding: 40px 30px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.quote-text {
    font-size: 16px;
    line-height: 1.6;
    color: #1a2b49;
    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: white;
    font-size: 22px;
    font-weight: 600;
    border-radius: 50%;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a2b49;
    margin-bottom: 2px;
}

.author-info .date {
    font-size: 13px;
    color: #5a6a85;
    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: #00b3a4;
    font-weight: bold;
    font-size: 12px;
}

.google-rating {
    font-size: 13px;
    color: #5a6a85;
}

.google-rating strong {
    color: #1a2b49;
    font-weight: 600;
}

/* Guide Cards */
/* 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-size: 42px;
    font-weight: 700;
    color: #1a2b49;
    margin-bottom: 15px;
    line-height: 1.2;
}

.user-guide p {
    font-size: 18px;
    color: #5a6a85;
    line-height: 1.5;
}

.guide-cards {
    display: flex;
    gap: 30px;
    flex: 0 0 60%;
}

.guide-card {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #e1e5ee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px; /* Ensure consistent height */
}

.guide-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a2b49;
    margin-bottom: 10px; /* Reduced from 20px */
    margin-top: 0; /* Remove default top margin */
}

.guide-card p {
    margin-bottom: 10px; /* Reduced from 20px */
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn {
    display: inline-block;
    background-color: #00b3a4;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: auto; /* Push button to bottom if needed */
}

.download-btn:hover {
    background-color: #008c80;
}

/* Responsive adjustments for User Guide */
@media (max-width: 992px) {
    .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;
    }
}

@media (max-width: 768px) {
    .guide-cards {
        flex-direction: column;
        max-width: 350px;
    }
    
    .user-guide h2 {
        font-size: 36px;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .testimonial-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .testimonial-heading,
    .testimonial-slider {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .guide-cards {
        flex-direction: column;
        max-width: 450px;
        margin: 0 auto;
    }
}

/* Footer Styles */
.footer-nav {
    background-color: #0D2B4D;
    color: white;
    padding: 120px 0 20px; /* Increased top padding for overlap */
    position: relative; /* Needed for z-index stacking */
    z-index: 1; /* Ensure footer is behind the newsletter */
}

.footer-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Balanced space between the left (logo/contact) and right columns */
    gap: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px; /* matches header side padding */
}

.footer-info {
    flex: 0 0 320px;
    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-contact {
    margin-bottom: 20px;
}

.footer-contact p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #00b3a4;
}

.footer-nav-sections {
    display: grid;
    grid-template-columns: repeat(3, 180px);
    justify-content: end;
    align-items: start;
    column-gap: 50px;
}

.footer-column {
    display: block;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 18px 0;
    color: #fff;
    text-align: left;
    letter-spacing: normal;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin: 0 0 12px 0;
    padding: 0;
}

.footer-column ul li a {
    display: block;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.25s ease;
    text-align: left;
}
.footer-column ul li a:hover {
    color: #00b3a4;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 1200px;
    margin: 20px auto 0;
}

/* Newsletter Section */
.newsletter {
    position: relative;
    padding: 0 20px; /* Add horizontal padding */
    margin-bottom: -100px;   /* pulls the teal card down to overlap ~half */
    z-index: 10;             /* sits visually above the footer background */
}

.newsletter-container {
    background-color: #00b3a4;
    border-radius: 14px;
    padding: 34px 46px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* Increased shadow for better visibility */
    position: relative; /* Ensure proper positioning */
}

.newsletter-content {
    flex: 1;
}

.newsletter h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px; /* Slightly increased margin */
    text-align: left;
    color: white;
    line-height: 1.2; /* Better line height */
}

.newsletter p {
    font-size: 16px;
    margin-bottom: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.95); /* Slightly more opaque for better readability */
    line-height: 1.4;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    width: 100%;
    margin-left: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Add shadow to form */
    border-radius: 5px;
    overflow: hidden; /* Ensure rounded corners */
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 15px; /* Slightly increased padding */
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    background-color: white;
    outline: none; /* Remove default outline */
}

.newsletter-form input[type="email"]:focus {
    box-shadow: inset 0 0 0 2px #00b3a4; /* Add focus state */
}

.newsletter-form button {
    padding: 14px 20px; /* Match input padding */
    border: none;
    border-radius: 0 5px 5px 0;
    background-color: #0f2837;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
}

.newsletter-form button:hover {
    background-color: #0a1f38;
}

/* Enhanced Email Dialog Styles */
.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: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: dialogFadeIn 0.3s;
}

.close-email-dialog {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #1a2b49;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.email-dialog-container {
    padding: 30px;
}

.email-dialog-info h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #1a2b49;
}

.dialog-subtitle {
    font-size: 16px;
    margin: 0 0 25px 0;
    color: #5a6a85;
}

#guide-email-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.email-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.email-validation-icon {
    position: absolute;
    right: 15px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.email-validation-icon.valid {
    color: #27ae60;
}

.email-validation-icon.invalid {
    color: #e74c3c;
}

#guide-email {
    padding: 12px 45px 12px 15px; /* Extra padding for icon */
    border: 2px solid #e1e5ee;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

#guide-email:focus {
    outline: none;
    border-color: #00b3a4;
    box-shadow: 0 0 0 3px rgba(0, 179, 164, 0.1);
}

#guide-email.valid {
    border-color: #27ae60;
    background-color: #f8fff9;
}

#guide-email.invalid {
    border-color: #e74c3c;
    background-color: #fff8f8;
}

.email-submit-btn {
    background-color: #bdc3c7;
    color: #7f8c8d;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.email-submit-btn.enabled {
    background-color: #00b3a4;
    color: white;
    cursor: pointer;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 179, 164, 0.3);
}

.email-submit-btn.enabled:hover {
    background-color: #008c80;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 179, 164, 0.4);
}

.email-submit-btn.enabled:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 179, 164, 0.3);
}

.btn-text {
    transition: all 0.3s ease;
}

.btn-icon {
    font-size: 18px;
    transition: all 0.3s ease;
}

.email-submit-btn.enabled .btn-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Loading state */
.email-submit-btn.loading {
    background-color: #95a5a6;
    cursor: wait;
}

.email-submit-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced error message */
.email-error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    font-weight: 500;
    animation: errorSlideIn 0.3s ease;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#guide-email.error {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

/* Animation for dialog */
@keyframes dialogFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .email-dialog-content {
        margin: 20% auto;
        width: 95%;
    }
    
    .email-dialog-container {
        padding: 20px;
    }
    
    .email-dialog-info h3 {
        font-size: 20px;
    }
    
    .email-submit-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    /* Newsletter Mobile Styles */
    .newsletter {
        margin-bottom: -50px; /* Reduce overlap on mobile */
        padding: 0 20px; /* Add side padding */
    }
    
    .newsletter-container {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        margin: 0 auto;
        max-width: 100%;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }
    
    .newsletter-content {
        margin-bottom: 20px;
    }
    
    .newsletter h2 {
        font-size: 22px;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .newsletter p {
        font-size: 14px;
        text-align: center;
        margin-bottom: 0;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: 100%;
        margin-left: 0;
        gap: 10px;
    }
    
    .newsletter-form input[type="email"] {
        border-radius: 5px;
        margin-bottom: 10px;
        padding: 14px 15px;
        font-size: 16px;
        width: 100%;
    }
    
    .newsletter-form button {
        border-radius: 5px;
        padding: 14px 20px;
        font-size: 16px;
        width: 100%;
    }
}

/* Reveal Animations */
.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);
}

/* Stagger the animations for product cards */
.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; }

/* Subtle hover effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn:hover::after {
    transform: translateX(0);
}

/* Improved focus states for accessibility */
a:focus, button:focus, input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth page transitions */
body {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Improved Logo Responsiveness */
.logo img {
    height: 45px;
    max-width: 100%;
    transition: opacity 0.3s ease, height 0.3s ease;
}

/* Ensure team images display properly */
.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

/* Light neutralization so Elementor widgets don't inherit header styles */
.elementor nav ul li a { color: inherit; }
.elementor nav ul li a::after { display: none; }

/* Font Awesome Icon Fixes */
/* Ensure Font Awesome icons display properly in footer */
.footer-contact i,
.footer-social i {
    font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands' !important;
    font-weight: 900;
    display: inline-block !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Specific Font Awesome brand icons need different font-weight */
.footer-social i.fab {
    font-family: 'Font Awesome 5 Brands' !important;
    font-weight: 400 !important;
}

/* Override theme's ::before pseudo-elements for social icons */
.footer-social a::before {
    display: none !important;
}

/* Ensure contact icons are visible */
.footer-contact p i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Force Font Awesome to load and display */
i[class^="fa"],
i[class*=" fa"] {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    display: inline-block !important;
}

i[class^="fab"],
i[class*=" fab"] {
    font-family: 'Font Awesome 5 Brands' !important;
    font-weight: 400 !important;
    display: inline-block !important;
}

/* Mobile Footer Centering */
@media (max-width: 768px) {
    .footer-nav-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
    
    .footer-info {
        flex: none;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .footer-contact {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-contact p {
        justify-content: center;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer-nav-sections {
        grid-template-columns: 1fr;
        justify-content: center;
        text-align: center;
        gap: 30px;
        width: 100%;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h3 {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .footer-column ul li a {
        text-align: center;
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
        padding: 20px;
    }
}
