/* === Base Styles === */
:root {
    --primary-color: #0046ad; /* Blue */
    --secondary-color: #e30613; /* Red */
    --accent-color: #ffcc00; /* Yellow */
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #333333;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --error-color: #dc3545;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    padding-bottom: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #003c92; /* Darker blue */
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-review {
    background-color: #F4B400; /* Google review gold */
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 12px 20px;
}

.btn-review:hover {
    background-color: #E6A800;
    color: #333;
}

.btn-review i {
    color: #333;
}

.google-logo {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* === Header Styles === */
header.sticky-header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    height: 80px; /* Fixed height */
}

header.header-hidden {
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 100%;
}

.logo img {
    max-height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
}

.btn-contact:hover {
    background-color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

/* Mobile call-to-action buttons in header */
.mobile-cta-buttons {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-cta-button {
    padding: 8px 12px;
    border-radius: 4px;
    margin: 0 5px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 16px;
}

.call-now-btn {
    background-color: #4CAF50;
    color: white;
}

.callback-btn {
    background-color: #2196F3;
    color: white;
}

/* === Hero Section === */
.hero {
    padding: 0 0 60px 0;
    position: relative;
    background-color: var(--light-color);
    margin-top: 80px; /* Match header height */
}

/* Container styling matches service section */
.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero image at the top */
.hero-image {
    width: 100%;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Desktop - image fills container width */
.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content layout with flexbox for side-by-side */
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Text content sizing and positioning */
.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* CTA buttons styling */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Review text layout */
.review-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.review-stars {
    color: #FBBC05;
    display: flex;
    margin-bottom: 3px;
}

.review-rating {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

/* QR code container positioning */
.qr-code-container {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 220px;
    flex-shrink: 0;
}

.qr-code-container img {
    width: 100%;
    height: auto;
}

/* === Services Section === */
.services {
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--primary-color);
}

.service-tagline {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.service-tagline h3 {
    font-size: 28px;
    color: var(--secondary-color);
    padding: 15px;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* === About Section === */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-text {
    font-size: 14px;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.team-section {
    margin-top: 50px;
}

.team-section h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.team-member p {
    color: #666;
}

/* === Affiliations Section === */
.affiliations {
    background-color: var(--light-color);
    padding: 60px 0;
}

/* Accreditation slider - Continuous motion */
.accreditation-slider-container {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.accreditation-slider-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.accreditation-slider {
    display: flex;
    animation: scroll-left 25s linear infinite;
    flex-wrap: nowrap;
    width: max-content; /* Important for continuous effect */
}

.accreditation-slide {
    flex: 0 0 auto;
    min-width: 200px;
    padding: 2px;
    margin: 0 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
}

.accreditation-slide:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.accreditation-slide:nth-child(3n+1):hover {
    border-color: var(--primary-color);
}

.accreditation-slide:nth-child(3n+2):hover {
    border-color: var(--secondary-color);
}

.accreditation-slide:nth-child(3n+3):hover {
    border-color: var(--accent-color);
}

.accreditation-slide img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    margin-bottom: 10px;
}

.accreditation-name {
    text-align: center;
    font-size: 14px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Move left by 50% (half the slides) */
    }
}

.affiliations-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.affiliation-item {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.affiliation-item img {
    width: 100px;
    margin-right: 20px;
}

.affiliation-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.affiliation-info p {
    color: #666;
}

/* === Calculator Section === */
.calculator {
    background-color: white;
}

.calculator-container {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

/* === Lenders Section === */
.lenders {
    background-color: var(--light-color);
    padding: 60px 0;
}

.lender-category-title {
    text-align: center;
    font-size: 24px;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.major-lenders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
    margin-bottom: 50px;
}

.lender-logo {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lender-logo:hover {
    transform: scale(1.05);
}

.lender-logo img {
    max-height: 60px;
    max-width: 100%;
}

/* Lender slider - Continuous motion */
.lender-slider-container {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.lender-slider-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.lender-slider {
    display: flex;
    animation: scroll-left 30s linear infinite;
    flex-wrap: nowrap;
    width: max-content; /* Important for continuous effect */
}

.lender-slide {
    flex: 0 0 auto;
    min-width: 180px;
    padding: 2px;
    margin: 0 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 8px;
}

.lender-slide:hover {
    border-color: var(--accent-color);
}

.lender-slide:nth-child(4n+1):hover {
    border-color: var(--primary-color);
}

.lender-slide:nth-child(4n+2):hover {
    border-color: var(--secondary-color);
}

.lender-slide:nth-child(4n+3):hover {
    border-color: var(--accent-color);
}

.lender-slide:nth-child(4n+4):hover {
    border-color: #4CAF50;
}

.lender-slide img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    margin-bottom: 10px;
}

.lender-name {
    text-align: center;
    font-size: 14px;
}

/* === Reviews Section === */
.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.review-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.review-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 15px;
    border-radius: 4px;
}

.google-review-section .review-section-header {
    background-color: #f2f2f2;
}

.facebook-review-section .review-section-header {
    background-color: #f0f2f5;
}

.review-section-title {
    font-size: 20px;
    color: var(--primary-color);
    margin: 0;
    flex-grow: 1;
}

.review-platform-logo {
    font-size: 24px;
    margin-right: 10px;
}

.star-rating {
    display: flex;
    align-items: center;
}

.star-rating .fas.fa-star {
    color: #FBBC05;
    margin-right: 2px;
}

.star-rating .fas.fa-thumbs-up {
    color: #4267B2;
    margin-right: 2px;
}

.review-rating {
    margin-left: 5px;
    font-weight: bold;
}

.review-count {
    margin-left: 5px;
    color: #666;
}

/* IMPROVED: Review slider with proper overflow handling */
.review-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.review-slider {
    display: flex;
    transition: transform 0.5s ease;
    height: auto;
    min-height: 300px; /* Starting height that will be adjusted by JS */
}

/* IMPROVED: Review slides with proper sizing */
.review-slide {
    min-width: 100%;
    width: 100%;
    padding: 10px;
    flex-shrink: 0;
    height: auto;
    display: flex;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.slider-arrow {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.slider-arrow:hover {
    background-color: var(--secondary-color);
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #555;
    font-size: 24px;
    overflow: hidden;
}

.reviewer-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.review-stars {
    color: #FBBC05;
    margin-bottom: 10px;
    display: flex;
}

/* IMPROVED: Review card with full content display */
.review-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
}

.review-content {
    flex: 1;
    overflow: visible;
    height: auto;
    margin-bottom: 15px;
}

.review-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: none;
    overflow: visible;
}

.review-source {
    text-align: right;
    margin-top: auto;
}

.review-source-logo {
    height: 20px;
    width: auto;
}

/* Default reviews (hidden initially) */
.default-reviews {
    display: none;
}

/* === Contact Section === */
.contact-section-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* Contact info container */
.contact-info-container {
    flex: 1;
    min-width: 300px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-item {
    padding: 25px 20px;
    background-color: var(--light-color);
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.info-item i {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 20px;
}

.info-item p {
    font-size: 16px;
    line-height: 1.5;
}

/* Contact form container */
.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px; /* Prevents zoom on iOS */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    background-color: var(--primary-color);
}

.error {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.form-success {
    text-align: center;
    padding: 50px 20px;
}

.form-success h3 {
    color: var(--success-color);
    margin-bottom: 15px;
}

/* Map Section */
.map-section {
    padding: 0;
}

/* === Footer === */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 15px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-link-group h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: white;
}

.footer-link-group ul {
    list-style: none;
}

.footer-link-group ul li {
    margin-bottom: 10px;
}

.footer-link-group ul li a {
    color: #bbb;
}

.footer-link-group ul li a:hover {
    color: white;
}

.footer-contact-info li {
    color: #bbb;
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact-info li i {
    margin-right: 10px;
    color: var(--accent-color);
    margin-top: 4px;
}

.footer-social h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-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;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #bbb;
}

.footer-disclaimer {
    text-align: center;
    font-size: 14px;
    color: #bbb;
}

.footer-disclaimer p {
    margin-bottom: 10px;
}

/* Mobile Bottom Menu */
.mobile-bottom-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.bottom-menu-tabs {
    display: flex;
    justify-content: space-around;
}

.menu-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    width: 25%;
    padding: 12px 5px;
}

.menu-tab:nth-child(1) {
    background-color: var(--primary-color);
    color: white;
}

.menu-tab:nth-child(2) {
    background-color: #25D366;
    color: white;
}

.menu-tab:nth-child(3) {
    background-color: var(--secondary-color);
    color: white;
}

.menu-tab:nth-child(4) {
    background-color: #3b5998;
    color: white;
}

.menu-tab i {
    font-size: 24px;
    margin-bottom: 5px;
}

.menu-tab span {
    font-size: 11px;
    font-weight: 600;
}

/* Desktop floating action buttons */
.desktop-action-buttons {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.action-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.action-button:hover {
    transform: scale(1.1);
}

.facebook-btn {
    background-color: #3b5998;
    color: white;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.call-btn {
    background-color: #4CAF50;
    color: white;
}

/* === Responsive Design === */
@media (max-width: 1200px) {
    .major-lenders-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .section-header h2 {
        font-size: 32px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero {
        padding: 0 0 50px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .accreditation-slide {
        min-width: 33.33%;
    }
    
    .lender-slide {
        min-width: 25%;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }

    /* Fixed header layout for mobile */
    header.sticky-header {
        height: 80px; /* Fixed height for mobile header */
    }
    
    header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
        position: relative;
        height: 100%;
    }

    /* Normal size logo */
    .logo {
        position: relative;
        z-index: 15;
    }
    
    .logo img {
        max-height: 50px;
    }

    /* Mobile menu toggle - positioned right with improved clickability */
    .mobile-menu-toggle {
        display: block;
        font-size: 30px;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        text-align: center;
        line-height: 30px;
        z-index: 20; /* Ensure it's above other elements */
    }
    
    nav ul {
        display: none;
    }
    
    nav ul.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    nav ul.active li {
        margin: 10px 0;
    }
    
    /* Mobile CTA buttons - now properly centered and sized */
    .mobile-cta-buttons {
        display: flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
    }
    
    .mobile-cta-button {
        padding: 8px 12px;
        margin: 0 5px;
        min-width: 80px;
        font-size: 14px;
    }

    /* Adjust hero margin for header height */
    .hero {
        margin-top: 80px;
    }
    
    /* Hero section mobile adjustments */
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 30px;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .qr-code-container {
        width: 50%;
    }
    
    /* Services section mobile adjustments */
    .service-card {
        padding: 20px;
    }
    
    /* Stats container adjustment */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact section - form first on mobile */
    .contact-section-wrapper {
        flex-direction: column-reverse; /* Form first */
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .info-item {
        padding: 15px;
    }
    
    .info-item i {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .info-item h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .info-item p {
        font-size: 14px;
    }
    
    /* Footer mobile adjustments */
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Lenders grid mobile adjustments */
    .major-lenders-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* IMPROVED: Show 3 logos at a time with minimal gap */
    .lender-slide {
        min-width: 33.33%; /* Show 3 at once instead of 2 */
        padding: 1px;
        margin: 0 1px;
    }
    
    /* IMPROVED: Show 3 accreditations at a time with minimal gap */
    .accreditation-slide {
        min-width: 33.33%;
        padding: 1px;
        margin: 0 1px;
    }
    
    /* IMPROVED: Animation speeds for mobile */
    .accreditation-slider {
        animation-duration: 10s; /* Much faster */
    }
    
    .lender-slider {
        animation-duration: 12s; /* Much faster */
    }
    
    /* Mobile bottom menu display */
    .mobile-bottom-menu {
        display: block;
    }
    
    .desktop-action-buttons {
        display: none;
    }
    
    /* Review section mobile adjustments */
    .review-section-header {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .review-platform-logo {
        margin-right: 10px;
    }
    
    .review-section-title {
        font-size: 18px;
        flex: 1;
    }
    
    .star-rating {
        margin-left: 34px; /* Aligned with section title */
        margin-top: 5px;
    }
    
    /* IMPROVED: Review card styling for mobile */
    .review-card {
        padding: 15px;
    }
    
    .reviewer-info h4 {
        font-size: 14px;
    }
    
    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }
    
    .review-content p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .review-slider {
        min-height: 250px; /* Starting height - will adjust via JS */
    }
}

@media (min-width: 769px) {
    .desktop-action-buttons {
        display: block;
    }
    
    .contact-section-wrapper {
        flex-direction: row; /* Side by side on desktop */
    }
}

@media (max-width: 576px) {
    /* General mobile adjustments */
    section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    /* Hero section small screen adjustments */
    .hero {
        padding: 0 0 40px 0;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .qr-code-container {
        width: 70%;
        max-width: 220px;
        padding: 15px;
    }
    
    /* Service cards on small screens */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stats container for small screens */
    .stats-container {
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* Contact form mobile adjustments */
    .contact-form {
        padding: 20px 15px;
    }
    
    .info-item {
        padding: 15px;
    }
    
    /* Lenders grid small screen adjustments */
    .lender-logo {
        padding: 15px;
        height: 100px;
    }
    
    /* Form elements touch-friendly size */
    .form-group input,
    .form-group textarea,
    .form-group select,
    .form-group button {
        padding: 16px;
        font-size: 16px;
    }
    
    /* Keep smaller gaps between items on very small screens */
    .lender-slide {
        min-width: 50%;
        padding: 1px;
        margin: 0 1px;
    }
    
    /* Keep smaller gaps between items on very small screens */
    .accreditation-slide {
        min-width: 50%;
        padding: 1px;
        margin: 0 1px;
    }
    
    /* Hero button adjustments */
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-review {
        width: 100%;
        justify-content: center;
    }
    
    /* Review header on small screens */
    .review-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .star-rating {
        margin-left: 0;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    /* Even smaller screens adjustments */
    .mobile-cta-button {
        min-width: 70px;
        padding: 8px 10px;
        font-size: 13px;
    }
    
    /* Prevent input zoom on iOS */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
    
    /* Ensure buttons are easily tappable */
    .btn, 
    button,
    .form-group button,
    nav ul li a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve readability of service tagline */
    .service-tagline h3 {
        font-size: 22px;
        padding: 10px;
    }
    
    /* Ensure review cards look good on mobile */
    .review-card {
        padding: 12px;
    }
    
    .reviewer-info {
        margin-bottom: 5px;
    }
    
    .review-stars {
        margin-bottom: 5px;
    }
}

/* Review loading and error states */
.review-loading {
    text-align: center;
    padding: 30px;
}

.review-loading i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.review-error {
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff3cd;
    border-radius: 4px;
    color: #856404;
}

.no-reviews {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Pause animations on hover */
.accreditation-slider:hover,
.lender-slider:hover {
    animation-play-state: paused;
}

/* Accessibility improvements */
.slider-arrow:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}