/* /assets/css/style.css */

:root {
    --primary-blue: #1E4D9A;
    --accent-green: #3DBC33;
    --neutral-grey: #5A5A5A;
    --text-dark: #2c3e50;
    --background-light: #F7F9FC;
    --white: #FFFFFF;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
    --header-height: 80px;
    --header-bg: #FFFFFF;
    --header-border: #E5E7EB;
    --nav-link-color: #374151;
    --nav-link-hover: var(--primary-blue);
}

/* --- BASE & UTILITIES --- */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--background-light);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}
.btn-primary:hover {
    background-color: #163a75;
    transform: translateY(-3px);
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}
.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}
.animate-up {
    opacity: 0;
    transform: translateY(50px);
}

/* --- RIDDLE-STYLE HEADER --- */
.header-main {
    background-color: var(--header-bg);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--header-border);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.3s ease-in-out, 
                background-color 0.3s ease-in-out;
}
.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo img {
    height: 4.5rem;
    display: block;
}
.header-nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}
.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--nav-link-color);
    font-weight: 600;
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}
.nav-link:hover { color: var(--nav-link-hover); }
.nav-link i { transition: transform 0.3s ease; }

.nav-item.has-dropdown { position: relative; }
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.has-dropdown:hover .nav-link i { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0.75rem;
    margin: 0;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    border: 1px solid var(--header-border);
}
.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--nav-link-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-menu li a:hover {
    background-color: #f3f4f6;
    color: var(--primary-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-text {
    background: none;
    border: none;
    color: var(--nav-link-color);
    font-weight: 600;
    padding: 14px 20px;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: color 0.3s ease;
}
.btn-text:hover { color: var(--primary-blue); }

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 1500;
}
.nav-item.mobile-only { display: none; }

/* --- FLOATING HEADER STYLES --- */
.header-main.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border-color: transparent;
}
.header-main.header-hidden {
    transform: translateY(-100%);
}

/* --- HERO SECTION --- */
.hero-simplified {
    background-color: var(--background-light);
    padding: 6rem 0;
    overflow: hidden;
}
.hero-simplified-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}
.section-tag {
    display: inline-block;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    letter-spacing: 1px;
}
.hero-title-simplified {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4rem);
    color: var(--text-dark);
    line-height: 1.2;
    margin: 1rem 0;
}
.hero-subtitle-simplified {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 1.5rem 0 2.5rem 0;
    color: var(--neutral-grey);
    max-width: 45ch;
}
.hero-image-simplified {
    border-radius: 12px;
    overflow: hidden;
    height: auto;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image-simplified img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-simplified,
    .content-section,
    .value-prop-section,
    .cta-section,
    .page-header,
    .service-grid-section,
    .service-form-section,
    .master-service-section,
    .contact-page-section,
    .tools-section,
    .faq-section,
    .new-stats-section,
    .final-quote-section,
    .testimonials-section {
        padding: 3.5rem 0;
    }

    .section-header-center {
        margin-bottom: 2.5rem;
    }

    .cta-content p {
        margin-bottom: 2rem;
    }
}

/* --- GENERAL CONTENT & CARDS --- */
.content-section { padding: 6rem 0; }
.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    color: var(--text-dark);
    margin: 0 0 1.5rem 0;
}
.section-header-center p {
    font-size: 1.1rem;
    color: var(--neutral-grey);
}
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}
.card-content { padding: 1.5rem; }
.card-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    margin-top: 0;
}
.card-content p { color: var(--neutral-grey); }
.card-content .btn { margin-top: 1rem; }


/* --- HOMEPAGE - WHY CHOOSE US --- */
.value-prop-section {
    padding: 6rem 0;
    background-color: var(--background-light);
}
.interactive-journey-container {
    max-width: 900px;
    margin: 4rem auto 0 auto;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e0e6ed;
}
.journey-item {
    border-bottom: 1px solid #e0e6ed;
}
.journey-item:last-child { border-bottom: none; }
.journey-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    width: 100%;
    cursor: pointer;
}
.journey-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.journey-item.active .journey-icon {
    transform: rotate(135deg);
}
.journey-header h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
    transition: color 0.3s ease;
}
.journey-item.active .journey-header h4 { color: var(--primary-blue); }
.journey-content { height: 0; overflow: hidden; }
.journey-content p {
    padding: 0 2rem 1.5rem 5rem;
    margin: 0;
    color: var(--neutral-grey);
    line-height: 1.7;
    font-size: 1rem;
}

/* Mobile responsive styles for journey section */
@media (max-width: 768px) {
    .value-prop-section {
        padding: 3rem 0;
    }
    
    .interactive-journey-container {
        margin: 1.5rem auto 0 auto;
        border-radius: 8px;
    }
    
    .journey-header {
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
    }
    
    .journey-header h4 {
        font-size: 1.2rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        flex: 1;
        min-width: 0;
    }
    
    .journey-icon {
        margin-right: 1rem;
        flex-shrink: 0;
    }
    
    .journey-content p {
        padding: 0 1.5rem 1.5rem 1.5rem;
        font-size: 0.95rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .value-prop-section {
        padding: 2rem 0;
    }
    
    .interactive-journey-container {
        margin: 1rem auto 0 auto;
    }
    
    .journey-header {
        padding: 0.8rem 1rem;
    }
    
    .journey-header h4 {
        font-size: 1.1rem;
    }
    
    .journey-icon {
        margin-right: 0.8rem;
    }
    
    .journey-content p {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.9rem;
    }
}

/* --- FINAL CTA SECTION --- */
.cta-section {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}
.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0 auto 1.5rem auto;
    max-width: 25ch;
}
.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}
.btn-light {
    background-color: var(--white);
    color: var(--primary-blue);
    font-size: 1.1rem;
}
.btn-light:hover { background-color: #f0f0f0; }

/* --- FOOTER --- */
.footer {
    background-color: #1c2833;
    color: var(--white);
    padding: 4rem 0 2rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.footer-logo { height: 8rem; margin-bottom: 1rem; }
.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--accent-green);
    margin-bottom: 1.5rem;
}
.footer-col a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #7f8c8d;
}

/* --- FOOTER FOLLOW US WIDGET --- */
.footer-social-section {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}
.social-follow-widget {
    position: relative;
    display: inline-block;
}
.follow-us-button {
    background-color: var(--accent-green);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.follow-us-button i {
    font-size: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.social-follow-widget:hover .follow-us-button {
    background-color: #31a129;
}
.social-follow-widget:hover .follow-us-button i {
    transform: rotate(180deg);
}
.social-icons-list {
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.social-follow-widget:hover .social-icons-list {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.social-icons-list li {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.social-follow-widget:hover .social-icons-list li:nth-child(1) { transition-delay: 0.1s; }
.social-follow-widget:hover .social-icons-list li:nth-child(2) { transition-delay: 0.15s; }
.social-follow-widget:hover .social-icons-list li:nth-child(3) { transition-delay: 0.2s; }
.social-follow-widget:hover .social-icons-list li:nth-child(4) { transition-delay: 0.25s; }
.social-follow-widget:hover .social-icons-list li:nth-child(5) { transition-delay: 0.3s; }
.social-follow-widget:hover .social-icons-list li {
    opacity: 1;
    transform: translateY(0);
}
.social-icons-list a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-icons-list a:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}


/* --- GENERIC PAGE HEADER --- */
.page-header {
    padding: 6rem 0;
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
}
.page-header-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin: 0;
}
.page-header-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto 0 auto;
    opacity: 0.9;
}

/* --- CONTACT PAGE SPECIFIC --- */
.contact-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
}
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    box-sizing: border-box;
}
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}
#form-result { margin-top: 1.5rem; text-align: center; font-weight: 700; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* --- MASONRY SERVICE PAGE DESIGN (HEIGHT ADJUSTED) --- */
.service-grid-section {
    padding: 6rem 0;
}
.service-grid-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-auto-rows: 0.1rem; /* Base unit for height */
    gap: 2rem;
}
.service-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    grid-row-end: span 15; /* ADJUSTED: Default height reduced */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.service-box.span-18 { grid-row-end: span 18; } /* ADJUSTED: Taller box */
.service-box.span-21 { grid-row-end: span 21; } /* ADJUSTED: Even taller box */

.service-box-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.6s ease;
}
.service-box:hover .service-box-bg {
    transform: scale(1.05) rotate(1deg);
}
.service-box-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}
.service-box-content {
    position: relative;
    z-index: 3;
    color: white;
}
.service-box-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-green);
}
.service-box-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    line-height: 1.2;
    margin: 0 0 1rem 0;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}
.service-box-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}
.btn-expand, .btn-quote {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-expand:hover, .btn-quote:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}
.btn-quote {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}
.service-box-details {
    position: relative;
    z-index: 3;
    color: white;
    height: 0;
    overflow: hidden;
    transition: height 0.5s ease;
}
.service-box-details p {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0 0 0;
    line-height: 1.6;
    font-size: 0.95rem;
}
.service-box.active {
    grid-row-end: span 28; /* ADJUSTED: Expand height reduced */
}

/* Service Page Contact Form */
.service-form-section {
    padding: 6rem 0;
    background-color: var(--background-light);
}
#form-title { color: var(--primary-blue); }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 992px) {
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: calc(var(--header-height) + 2rem);
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }
    .header-nav.active { right: 0; }
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
        padding: 0 2rem;
    }
    .nav-item { width: 100%; }
    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        width: 100%;
        justify-content: space-between;
    }
    .has-dropdown .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
        display: none;
    }
    .has-dropdown.active .dropdown-menu { display: block; }
    .has-dropdown.active .nav-link i { transform: rotate(180deg); }
    .header-actions { display: none; }
    .mobile-nav-toggle { display: block; }
    .nav-item.mobile-only {
        display: block;
        border-top: 1px solid var(--header-border);
        margin-top: 1rem;
        padding-top: 1rem;
    }
    .mobile-only .nav-link {
        font-weight: 700;
        color: var(--primary-blue);
    }
    .header-main { position: sticky; }
    .hero-simplified-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image-simplified {
        grid-row: 1;
        height: auto;
        max-height: 300px;
        margin-bottom: 2rem;
    }
    .hero-subtitle-simplified {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .service-grid-masonry {
        grid-template-columns: 1fr;
    }
    .service-box, .service-box.span-18, .service-box.span-21 {
        grid-row-end: span 17; /* ADJUSTED: Mobile height reduced */
    }
    .service-box.active {
        grid-row-end: span 28; /* ADJUSTED: Mobile expanded height reduced */
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --- MASTER SERVICES ACCORDION ON SERVICES.PHP --- */

.master-service-section {
    padding: 6rem 0;
}

.master-service-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-category-block {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    border: 1px solid var(--header-border);
    transition: all 0.4s ease;
}
.service-category-block.active {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 40px rgba(30,77,154,0.1);
}

.service-category-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    cursor: pointer;
}

.service-category-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.service-category-info h2 {
    font-family: var(--font-heading);
    margin: 0 0 0.25rem 0;
    color: var(--text-dark);
}

.service-category-info p {
    margin: 0;
    color: var(--neutral-grey);
}

.btn-explore {
    margin-left: auto;
    background-color: var(--background-light);
    border: 1px solid var(--header-border);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-explore:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.btn-explore i {
    font-size: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-category-block.active .btn-explore i {
    transform: rotate(180deg);
}

.service-category-content {
    height: 0;
    overflow: hidden;
    padding: 0 2rem; /* Side padding for when content is visible */
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (max-width: 768px) {
    .service-category-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .btn-explore {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* --- NEW CONTACT PAGE DESIGN --- */

.contact-page-section {
    padding: 6rem 0;
    background-color: var(--background-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info-col h2 {
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.contact-info-block {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-block i {
    font-size: 1.8rem;
    color: var(--primary-blue);
    background-color: #eaf2ff;
    padding: 12px;
    border-radius: 50%;
    margin-top: 5px;
}

.contact-info-block h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0 0 0.25rem 0;
    color: var(--text-dark);
}

.contact-info-block p {
    margin: 0;
    color: var(--neutral-grey);
    line-height: 1.6;
}

.contact-info-block p a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info-block p a:hover {
    color: var(--accent-green);
}

.contact-socials {
    margin-top: 3rem;
}

.contact-socials h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-dark);
}

.social-icons-list-contact {
    display: flex;
    gap: 1rem;
    padding: 0;
    margin-top: 1rem;
}

.social-icons-list-contact a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background-color: #eaf2ff;
    border-radius: 50%;
    color: var(--primary-blue);
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons-list-contact a:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-4px);
}

/* --- Map Section --- */
/* --- CONTACT PAGE MAP WIDGET --- */
.map-widget-container {
    margin-top: 6rem; /* Add space above the map box */
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--header-border);
    overflow: hidden; /* This is key to making the iframe corners rounded */
}

.google-map-iframe {
    width: 100%;
    height: 400px;
    display: block; /* Removes any space below the iframe */
    border: none; /* Removes default iframe border */
}

.map-widget-footer {
    padding: 2rem;
    text-align: center;
    background-color: var(--white);
}
/* Responsive adjustments for contact page */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-info-col {
        margin-bottom: 3rem; /* Add space between info and form on mobile */
    }
}
/* --- HOMEPAGE QUICK POPUP FORM --- */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 77, 154, 0.6); /* Primary blue with opacity */
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Initially hidden */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

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

.popup-content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
    
    /* Animation */
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--neutral-grey);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s, transform 0.3s;
}
.popup-close:hover {
    color: var(--text-dark);
    transform: rotate(90deg);
}

.popup-header i {
    font-size: 3rem;
    color: var(--accent-green);
}
.popup-header h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin: 1rem 0 0.5rem 0;
}
.popup-header p {
    color: var(--neutral-grey);
    line-height: 1.6;
    margin: 0 auto 2rem auto;
    max-width: 90%;
}

.popup-form .form-group {
    margin-bottom: 1rem;
}
.popup-form .form-group input {
    text-align: center;
}
.popup-form .btn {
    width: 100%;
}

.popup-form-result {
    margin-top: 1rem;
    font-weight: 600;
    min-height: 20px;
}
/* --- RESOURCES PAGE - FINANCIAL TOOLS --- */

.tools-section {
    padding: 6rem 0;
}

.tools-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tool-accordion-block {
    background-color: var(--white);
    border: 1px solid var(--header-border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
}

.tool-accordion-block.active {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 30px rgba(30,77,154,0.1);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    cursor: pointer;
}

.tool-header i {
    font-size: 2.2rem;
    color: var(--primary-blue);
}

.tool-info h3 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin: 0 0 0.2rem 0;
}
.tool-info p {
    margin: 0;
    color: var(--neutral-grey);
}

.btn-tool-toggle {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--neutral-grey);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.tool-accordion-block.active .btn-tool-toggle {
    transform: rotate(180deg);
}

.tool-content {
    height: 0;
    overflow: hidden;
}

.calculator-form {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
}
.calculator-grid-single {
    max-width: 400px;
    margin: 0 auto 2rem auto;
}

.calculator-results {
    background: var(--background-light);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.results-item {
    text-align: center;
}
.results-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--neutral-grey);
    margin-bottom: 0.5rem;
}
.results-item strong {
    display: block;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--primary-blue);
}
.results-item.highlight strong {
    color: var(--accent-green);
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--neutral-grey);
    text-align: center;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.radio-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 0.5rem;
}
/* --- HERO TYPING ANIMATION STYLES --- */

#typed-words-container {
    color: var(--accent-green); /* The color of the animated words */
}

.typed-cursor {
    color: var(--accent-green); /* The color of the blinking cursor */
    font-weight: 300; /* Makes the cursor a bit thinner */
}

/* --- LEGAL PAGES (PRIVACY, TERMS) --- */
/* html {
    scroll-behavior: smooth; Enables smooth scrolling for anchor links
} */

.legal-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr; /* Sidebar and main content */
    gap: 3.5rem;
    align-items: flex-start;
}

/* --- Legal Content Area Styling --- */
.legal-content {
    background: var(--white);
    padding: 2.5rem 3rem;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin: 0 0 1rem 0;
    padding-top: 2rem; /* Spacing for anchor link positioning */
    border-bottom: 1px solid #e0e6ed;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}
.legal-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

.legal-content p, .legal-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--neutral-grey);
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 1.5rem;
}
.legal-content ul li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.legal-content a:hover {
    border-color: var(--primary-blue);
}

/* --- Sticky Sidebar Navigation --- */
.legal-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 120px; /* Header height (80px) + 40px spacing */
    align-self: start;
}

.legal-sidebar h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-green);
    display: inline-block;
}

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

.legal-nav li a {
    display: block;
    text-decoration: none;
    padding: 0.6rem 0;
    color: var(--neutral-grey);
    font-weight: 700;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.legal-nav li a:hover {
    color: var(--primary-blue);
    background-color: #f7f9fc;
    border-left-color: var(--primary-blue);
}

/* --- Responsive Adjustments for Legal Page --- */
@media (max-width: 992px) {
    .legal-layout-grid {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 2.5rem;
    }

    .legal-sidebar {
        position: static; /* Un-stick the sidebar */
        top: auto;
        border: 1px solid #e0e6ed;
        padding: 1.5rem;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .legal-content {
        padding: 1.5rem;
    }
    .legal-content h2 {
        font-size: 1.5rem;
    }
}


/* --- NESTED FAQ ACCORDION STYLES --- */
.faq-section {
    padding: 6rem 0;
    background-color: var(--background-light);
}

.faq-nested-accordion {
    max-width: 900px;
    margin: 3rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* Space between categories */
}

/* --- Category Level Styling --- */
.faq-category-item {
    background-color: var(--white);
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    overflow: hidden; /* Important for border-radius on children */
    transition: all 0.3s ease;
}
.faq-category-item.active {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.faq-category-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.faq-category-header h3 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin: 0;
    font-size: 1.5rem;
}
.faq-category-icon {
    font-size: 1.8rem;
    color: var(--primary-blue);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex-shrink: 0;
}
.faq-category-item.active .faq-category-icon {
    transform: rotate(180deg);
}

.faq-questions-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out, padding 0.6s ease-in-out;
}
.faq-category-item.active .faq-questions-container {
    max-height: 1500px; /* Large value to accommodate all questions */
    padding-bottom: 1rem;
}

/* --- Question Level Styling (Inside Category) --- */
.faq-item {
    padding: 0 2rem;
    border-top: 1px solid #f0f3f6;
}
.faq-question {
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.faq-question h4 {
    font-family: var(--font-heading);
    color: var(--neutral-grey);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.faq-item.active .faq-question h4 {
    color: var(--primary-blue);
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--neutral-grey);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust if answers are very long */
}
.faq-answer p {
    padding: 0 0 1.25rem 0;
    margin: 0;
    color: var(--neutral-grey);
    line-height: 1.7;
}

/* --- BLOG PAGE STYLES --- */
.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--neutral-grey);
    margin-bottom: 1rem;
}
.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-read-more {
    color: var(--primary-blue);
    font-weight: 700;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.card:hover .btn-read-more {
    gap: 0.8rem;
    color: var(--accent-green);
}

/* --- SINGLE BLOG POST STYLES --- */
.blog-post-hero {
    position: relative;
    padding: 8rem 0;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(30, 77, 154, 0.7); /* Dark blue overlay */
    z-index: 1;
}
.blog-post-hero .container {
    position: relative;
    z-index: 2;
}
.blog-post-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    max-width: 20ch;
    margin: 0 auto;
}

.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3.5rem;
    align-items: flex-start;
}
.blog-post-content .blog-post-meta {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e6ed;
    display: flex;
    gap: 2rem;
    font-weight: 600;
    color: var(--neutral-grey);
}
.blog-post-content .blog-post-meta span i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.blog-post-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem 0;
}
.blog-post-content h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
}
.blog-post-content p, .blog-post-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutral-grey);
    margin-bottom: 1.5rem;
}
.blog-post-content ul {
    list-style-position: outside;
    padding-left: 1.5rem;
}

.blog-post-sidebar .sidebar-widget {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.sidebar-widget h4 {
    font-family: var(--font-heading);
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 0.5rem;
    margin: 0 0 1rem 0;
}
.sidebar-widget .recent-posts-list {
    list-style: none;
    padding: 0; margin: 0;
}
.sidebar-widget .recent-posts-list li a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s;
}
.sidebar-widget .recent-posts-list li a:hover {
    color: var(--accent-green);
}
.sidebar-widget.cta-widget {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
}
.sidebar-widget.cta-widget h4 {
    border-bottom-color: var(--accent-green);
    color: var(--white);
}
.sidebar-widget.cta-widget .btn {
    margin-top: 1rem;
    background-color: var(--white);
    color: var(--primary-blue);
}
.sidebar-widget.cta-widget .btn:hover {
    background-color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .blog-post-layout {
        grid-template-columns: 1fr;
    }
}
/* --- NEW CAREER PAGE STYLES --- */

/* Redesigned Value Cards */
.values-grid-career {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.value-card-career {
    background: var(--white);
    text-align: center;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}
.value-card-career:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(30,77,154,0.1);
    border-color: var(--primary-blue);
}
.value-icon-career {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #eaf2ff;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}
.value-card-career h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}
.value-card-career p {
    color: var(--neutral-grey);
    line-height: 1.6;
}

/* Tabbed Forms Section */
.career-tabs-container {
    max-width: 900px;
    margin: 3rem auto 0 auto;
}
.tab-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 2px solid #e0e6ed;
    margin-bottom: -2px; /* Overlap border */
}
.tab-link {
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--neutral-grey);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}
.tab-link:hover {
    color: var(--primary-blue);
}
.tab-link.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-content-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid #e0e6ed;
    border-radius: 0 8px 8px 8px;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group { margin-bottom: 0; }
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}
.form-group-checkbox input { width: auto; }
.form-result { margin-top: 1rem; font-weight: 700; text-align: center; }

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .tab-links { justify-content: center; }
}

/* =================================================================== */
/* === DEFINITIVE JOURNEY PAGE DESIGN (Founder + Timeline + Stats + Quote) === */
/* =================================================================== */

/* --- 1. Founder & Narrative Layout --- */
.founder-journey-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 4rem;
    align-items: flex-start;
}

/* Sticky Founder Sidebar */
.founder-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
}
.founder-card {
    background: var(--white);
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}
.founder-photo-new {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem auto;
    border: 5px solid var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.founder-photo-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.founder-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-dark);
}
.founder-card p {
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin: 0.25rem 0 0 0;
}

/* Main Narrative & Timeline Content */
.journey-main-content .section-title {
    margin-top: 0;
}
.founder-narrative p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--neutral-grey);
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e6ed;
}
.journey-timeline-wrapper { 
    position: relative; 
    width: 100%;
    margin-top: 2rem;
    padding-left: 30px; /* Space for the timeline line */
}
.journey-timeline-wrapper::after { 
    content: ''; 
    position: absolute; 
    width: 3px; 
    background-color: #e0e6ed; 
    top: 0; 
    bottom: 0; 
    left: 0; 
    z-index: 1; 
}
.timeline-item { 
    padding: 1rem 0 2rem 30px; /* Space from the line */
    position: relative; 
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}
.timeline-dot { 
    position: absolute; 
    width: 22px; 
    height: 22px; 
    background-color: var(--background-light); 
    border: 4px solid var(--accent-green); 
    top: 15px; 
    left: -11px; /* Center on the line */
    border-radius: 50%; 
    z-index: 10; 
}
.timeline-content { 
    position: relative; 
    z-index: 5;
}
.timeline-date { font-family: var(--font-heading); font-weight: 700; color: var(--primary-blue); font-size: 1.25rem; }
.timeline-content h3 { margin: 0.5rem 0; font-family: var(--font-heading); color: var(--text-dark); }
.timeline-content p { font-size: 1rem; line-height: 1.7; color: var(--neutral-grey); margin: 0; }

/* --- 2. Stats Section --- */
.new-stats-section { padding: 6rem 0; background-color: var(--white); }
.stats-card-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.stat-card { background: var(--background-light); padding: 2.5rem 2rem; text-align: center; border-radius: 12px; border: 1px solid #e0e6ed; transition: all 0.3s ease; }
.stat-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(30,77,154,0.1); background: var(--primary-blue); color: var(--white); }
.stat-icon { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 1rem; transition: color 0.3s ease; }
.stat-card:hover .stat-icon { color: var(--white); }
.stat-card .stat-number { font-family: var(--font-heading); font-size: 3.5rem; color: var(--text-dark); margin: 0; transition: color 0.3s ease; }
.stat-card:hover .stat-number { color: var(--white); }
.stat-card p { color: var(--neutral-grey); font-weight: 600; margin: 0.5rem 0 0 0; transition: color 0.3s ease; }
.stat-card:hover p { color: rgba(255,255,255,0.8); }

/* --- 3. Final Quote Section --- */
.final-quote-section {
    background-color: var(--primary-blue);
    padding: 6rem 0;
}
.quote-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
}
.quote-mark-open, .quote-mark-close {
    font-family: serif;
    font-size: 8rem;
    line-height: 1;
    color: rgba(255,255,255,0.1);
    position: absolute;
    z-index: 1;
}
.quote-mark-open {
    top: -1rem;
    left: -1rem;
}
.quote-mark-close {
    bottom: -2rem;
    right: -1rem;
}
.final-quote-section blockquote {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--white);
    margin: 0;
    position: relative;
    z-index: 2;
}
.final-quote-section footer {
    margin-top: 2rem;
    color: var(--accent-green);
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .founder-journey-layout { grid-template-columns: 1fr; }
    .founder-sidebar { position: static; margin-bottom: 3rem; }
    /* .journey-main-content { No changes needed } */
    .journey-timeline-wrapper { padding-left: 20px; }
}


/* =================================================================== */
/* === TESTIMONIALS SLIDER SECTION === */
/* =================================================================== */

.testimonials-section {
    padding: 6rem 0;
    background-color: var(--background-light);
    position: relative;
}

.testimonials-slider {
    padding: 2rem 0 4rem 0 !important; /* !important to override swiper default */
    margin: 0 -15px; /* Negative margin for better edge alignment */
}

.testimonials-slider .swiper-wrapper {
    align-items: stretch;
}

.testimonials-slider .swiper-slide {
    display: flex;
    height: auto;
}

.testimonials-slider.is-loading {
    opacity: 0.35;
    pointer-events: none;
}

.testimonials-slider.is-empty {
    display: none;
}

.reviews-loading-state,
.reviews-error-state {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--neutral-grey);
    font-size: 1rem;
}

.reviews-error-state {
    color: #d35400;
}

.reviews-state {
    margin-bottom: 1.5rem;
}

.testimonial-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
    border-radius: 18px;
    padding: 2.5rem;
    height: 100%;
    min-height: 300px;
    border: 1px solid rgba(30, 77, 154, 0.08);
    box-shadow: 0 18px 40px rgba(15, 31, 64, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #3dbc33 0%, #1e4d9a 100%);
}

.testimonial-quote-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    opacity: 0.4;
    margin-bottom: 1.25rem;
}

.testimonial-content {
    flex-grow: 1; /* Pushes author to the bottom */
    margin-bottom: 1.25rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--neutral-grey);
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.testimonial-full-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}
.testimonial-card.expanded .testimonial-full-text {
    max-height: 500px; /* Adjust if content is longer */
}

.testimonial-read-more {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    margin-top: auto;
    padding: 0;
}

.testimonial-card[data-show-read="false"] .testimonial-read-more {
    display: none;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(30, 77, 154, 0.12);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(30, 77, 154, 0.18);
    box-shadow: 0 6px 14px rgba(30, 77, 154, 0.15);
    background: #f4f6fb;
}

.author-details h4 {
    font-family: var(--font-heading);
    margin: 0;
    color: var(--text-dark);
}
.author-details p {
    margin: 0;
    color: var(--neutral-grey);
    font-size: 0.9rem;
}

/* Swiper Navigation and Pagination */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.1rem;
    font-weight: 800;
}

.testimonials-section .swiper-button-next,
.testimonials-section .swiper-button-prev {
    color: #ffffff;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e4d9a 0%, #3dbc33 100%);
    box-shadow: 0 14px 30px rgba(30, 77, 154, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.testimonials-section .swiper-button-next:hover,
.testimonials-section .swiper-button-prev:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(30, 77, 154, 0.3);
    background: linear-gradient(135deg, #3dbc33 0%, #1e4d9a 100%);
}

.testimonials-section .swiper-button-next:after,
.testimonials-section .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: 700;
}
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background: var(--primary-blue);
}

@media (max-width: 768px) {
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 1024px) {
    .testimonial-card {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        min-height: 220px;
        padding: 1.85rem;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        min-height: 200px;
        padding: 1.6rem;
    }
}
/* =================================================================== */
/* === TESTIMONIALS MODAL-EFFECT SECTION === */
/* =================================================================== */
.testimonials-section { padding: 6rem 0; background-color: var(--background-light); position: relative; }
.testimonials-slider { padding: 2rem 0 4rem 0 !important; margin: 0 -15px; }

.testimonial-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
    border-radius: 18px;
    padding: 2.5rem;
    height: 100%;
    min-height: 320px;
    border: 1px solid rgba(30, 77, 154, 0.08);
    box-shadow: 0 18px 40px rgba(15, 31, 64, 0.08);
    display: flex;
    flex-direction: column;
    transition: visibility 0s 0.3s; /* Delay hiding the original card */
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #3dbc33 0%, #1e4d9a 100%);
}
.testimonial-card.is-hidden {
    visibility: hidden;
    transition-delay: 0s;
}

.testimonial-quote-icon { font-size: 3rem; color: var(--primary-blue); opacity: 0.4; margin-bottom: 1.25rem; }
.testimonial-content { flex-grow: 1; margin-bottom: 1.5rem; }
.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--neutral-grey);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* The magic number of lines */
    -webkit-box-orient: vertical;
}
.testimonial-read-more { background: none; border: none; color: var(--primary-blue); font-weight: 700; font-family: var(--font-heading); cursor: pointer; margin-top: auto; padding: 0; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(30, 77, 154, 0.12); }
.testimonial-author .testimonial-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(30, 77, 154, 0.18); box-shadow: 0 6px 14px rgba(30, 77, 154, 0.15); background: #f4f6fb; }
.author-details h4 { font-family: var(--font-heading); margin: 0; color: var(--text-dark); }
.author-details p { margin: 0; color: var(--neutral-grey); font-size: 0.9rem; }
.testimonial-close-btn { display: none; /* Hidden by default */ }

/* The CLONED, expanded card styling */
.testimonial-clone {
    position: fixed;
    z-index: 2000;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: auto;
}
.testimonial-clone .testimonial-text {
    -webkit-line-clamp: unset; /* Remove the line limit */
    max-height: none;
    display: block;
}
.testimonial-clone .testimonial-read-more {
    display: none; /* Hide 'Read More' in expanded view */
}
.testimonial-clone .testimonial-close-btn {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f1f1;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    font-weight: 700;
    color: var(--neutral-grey);
}
.testimonial-clone.is-expanded {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 700px !important;
    height: auto !important;
}

/* Background Overlay */
.testimonial-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(30, 77, 154, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.testimonial-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Swiper Navigation and Pagination (no changes) */
.swiper-button-next, .swiper-button-prev { color: var(--primary-blue); width: 50px; height: 50px; background: var(--white); border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.swiper-button-next:after, .swiper-button-prev:after { font-size: 1.2rem; font-weight: 900; }
.swiper-pagination-bullet { width: 12px; height: 12px; background: #ccc; opacity: 1; }
.swiper-pagination-bullet-active { background: var(--primary-blue); }
@media (max-width: 768px) { .swiper-button-next, .swiper-button-prev { display: none; } }

.avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}
.testimonial-avatar {
    flex-shrink: 0;
}
.hero-image-simplified img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.mobile-only {
    display: none;
}

@media (min-width: 769px) and (max-width: 989px) {
    .hero-image-simplified {
        height: auto;
        max-height: 400px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-image-simplified img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .hero-image-simplified {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
}
/* Floating Navbar Design - Reduced Padding & Lower Opacity */
.header-main {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-main.header-hidden {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
}

.header-main .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.header-container {
    padding: 8px 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-main.header-scrolled {
    top: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Add top padding to body to account for floating navbar */
body {
    padding-top: 80px;
}

@media (max-width: 768px) {
    .header-main {
        top: 0;
        width: 100%;
        border-radius: 0;
        margin: 0;
    }

    .header-main.header-scrolled {
        top: 0;
    }

    .header-container {
        padding: 6px 2.5rem;
    }
    
    body {
        padding-top: 70px;
    }
}
.header-logo {
    margin-left: 1rem;
}

.header-actions {
    margin-right: 1rem;
}

/* Footer Logo Section Redesign */
.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-tagline {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.4;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 350px;
    margin: 0 0 1.5rem 0;
}

.footer-contact {
    margin-top: 1.5rem;
}

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.footer-contact strong {
    color: #ffffff;
}


/* Sleek Footer Design */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 3rem 0 1rem;
    width: 100%;
    margin: 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-company {
    flex: 2;
    max-width: 400px;
}

.footer-links-row {
    flex: 1;
    display: flex;
    gap: 3rem;
    justify-content: flex-end;
}

.footer-links-row .footer-col {
    flex: 1;
    min-width: 120px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 25px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding-left: 0;
}

.footer-col a:hover {
    color: #ffffff;
    padding-left: 8px;
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links-row {
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
        text-align: center;
    }
}
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-grid {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
        max-width: 100%;
        width: 100%;
        align-items: center;
        text-align: center;
    }

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

    .footer-links-row {
        justify-content: center;
        gap: 2rem;
        width: 100%;
        flex-wrap: wrap;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

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

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
