body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

:root {
    --primary-teal: #00a88c;
    --light-pink: #ffe0e6;
    --dark-bg: #212529;
    --text-light: #f8f9fa;
    --text-dark: #333;
}

.text-teal {
    color: var(--primary-teal) !important;
}

.bg-light-pink {
    background-color: var(--light-pink) !important;
}

.btn-primary {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    color: white;
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

.btn-primary:hover {
    background-color: #008c72;
    border-color: #008c72;
}

.btn-outline-light {
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--dark-bg);
}

.navbar-brand .site-name {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 600;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-teal);
}

.hero-section {
    background-image: url('static/graphics/financial-goals-background_2.jpg');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-title {
    font-size: 3.5rem;
}

.section-title {
    color: var(--primary-teal);
}

/* Responsive Typography */
@media (min-width: 1024px) {
    .site-name { font-size: 2.2rem; }
    .hero-title { font-size: 3.8rem; }
    .section-title { font-size: 2.8rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .site-name { font-size: 1.8rem; }
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 767px) {
    .site-name { font-size: 1.25rem; }
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 1.5rem; }
    .hero-section {
        min-height: 60vh;
        padding-top: 80px;
    }
    .navbar-brand img {
        width: 30px;
        height: 30px;
    }
}

/* About Section */
.process-step {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.process-step h3 {
    color: var(--primary-teal);
}

.progress-bar-static {
    height: 8px;
    background-color: var(--primary-teal);
    border-radius: 4px;
    margin-top: 10px;
}

/* Services Section */
.nav-pills .nav-link {
    background-color: #f0f0f0;
    color: var(--text-dark);
    margin-bottom: 10px;
    border-radius: 8px;
    padding: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.nav-pills .nav-link:hover {
    background-color: #e0e0e0;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-teal);
    color: white;
    box-shadow: 0 4px 10px rgba(0,168,140,0.2);
}

.nav-pills .nav-link i {
    font-size: 1.2rem;
}

.tab-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.tab-pane ul {
    list-style: none;
    padding-left: 0;
}

.tab-pane ul li::before {
    content: '\2713'; 
    color: var(--primary-teal);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.service-img {
    max-height: 250px;
    width: auto;
    object-fit: cover;
}

/* Features Section */
.feature-card {
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: none;
}

.feature-card .feature-icon {
    font-size: 3rem;
    color: var(--primary-teal);
}

/* Team Section */
.team-member .card-img-top {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--primary-teal);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.team-member .card-body {
    padding-top: 15px;
}

/* Stats Section */
.stat-circle {
    width: 200px;
    height: 200px;
    background-color: #fff;
    border: 2px solid var(--primary-teal);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stat-circle .stat-icon {
    font-size: 2.5rem;
    color: var(--primary-teal);
}

.stat-circle p {
    font-weight: 600;
    color: var(--text-dark);
}

/* How It Works Section (Timeline) */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-teal);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
}

.timeline-item.left {
    left: 0;
    padding-right: 40px;
}

.timeline-item.right {
    left: 50%;
    padding-left: 40px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--primary-teal);
    border: 4px solid #fff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -17px;
}

.timeline-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item.right {
        left: 0%;
        padding-left: 70px;
    }
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 15px;
    }
}

/* FAQ Section */
.accordion-item {
    border: none;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-teal);
    background-color: #e6f7f5;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-teal);
}

.accordion-button i {
    color: var(--primary-teal);
}

/* Contact Section */
.contact-section form {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.contact-section .form-label {
    color: var(--text-dark);
}

/* Footer */
.footer-section {
    background-color: var(--dark-bg);
}

.footer-section .navbar-brand .text-white {
    color: white !important;
}

.footer-section a {
    color: #adb5bd;
}

.footer-section a:hover {
    color: var(--primary-teal);
}

.footer-desc {
    font-size: 0.9rem;
    color: #adb5bd;
}

/* Cookie Banner */
.cookie-banner {
    background-color: var(--dark-bg);
    color: white;
    z-index: 1050;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.cookie-banner a {
    color: var(--primary-teal);
    text-decoration: underline;
}

.cookie-banner .btn-teal {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    color: white;
}

.cookie-banner .btn-teal:hover {
    background-color: #008c72;
    border-color: #008c72;
}

.modal-content {
    z-index: 1060;
}

@media (max-width: 1100px) {
    .navbar-collapse {
        display: none !important;
    }
    .navbar-toggler {
        display: block;
    }
}

@media (min-width: 1101px) {
    .navbar-toggler {
        display: none;
    }
    .navbar-collapse {
        display: flex !important;
    }
}

.offcanvas-body .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
}

.offcanvas-body .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
}

.offcanvas-end {
    width: 250px;
}

.offcanvas-header {
    background-color: var(--primary-teal);
    color: white;
}

.offcanvas-title {
    color: white;
}

.offcanvas .btn-close {
    filter: invert(1);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.form-control:valid,
.form-select:valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.form-control:invalid:not(:placeholder-shown) ~ .invalid-feedback,
.form-select:invalid:not([value=""]) ~ .invalid-feedback {
    display: block;
}

.form-control:valid ~ .invalid-feedback,
.form-select:valid ~ .invalid-feedback {
    display: none;
}
/*
 * Styles for the .lawMatrixNode container and its common child elements.
 * These styles are designed to provide a clean, professional, and readable layout
 * without overly large headings, suitable for document-like content.
 */

.lawMatrixNode {
    /* General padding for the content area within the node */
    padding: 30px;
    /* You might want to add a background-color, border, or max-width here if needed */
}

/* Heading styles: Keeping them moderate in size for a document-like feel */
.lawMatrixNode h1 {
    /* Heading 1 styles */
    font-size: 1.8em; /* Moderately sized for primary titles */
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.2;
    font-weight: bold;
    color: #333; /* A slightly softer black */
}

.lawMatrixNode h2 {
    /* Heading 2 styles */
    font-size: 1.5em;
    margin-top: 1.4em;
    margin-bottom: 0.7em;
    line-height: 1.3;
    font-weight: bold;
    color: #333;
}

.lawMatrixNode h3 {
    /* Heading 3 styles */
    font-size: 1.3em;
    margin-top: 1.3em;
    margin-bottom: 0.6em;
    line-height: 1.4;
    font-weight: bold;
    color: #444;
}

.lawMatrixNode h4 {
    /* Heading 4 styles */
    font-size: 1.1em;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    line-height: 1.5;
    font-weight: bold;
    color: #555;
}

.lawMatrixNode h5 {
    /* Heading 5 styles */
    font-size: 1em; /* Similar to paragraph text, but bold */
    margin-top: 1.1em;
    margin-bottom: 0.4em;
    line-height: 1.5;
    font-weight: bold;
    color: #666;
}

/* Paragraph styles */
.lawMatrixNode p {
    /* Standard paragraph text styles */
    font-size: 1em; /* Base font size, typically 16px */
    line-height: 1.6; /* Good for readability */
    margin-bottom: 1em; /* Space between paragraphs */
    color: #333;
}

/* Unordered list styles */
.lawMatrixNode ul {
    /* Default unordered list indentation and spacing */
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 25px; /* Indentation for bullet points */
    list-style-type: disc; /* Standard bullet style */
    color: #333;
}

/* List item styles */
.lawMatrixNode li {
    /* Spacing for individual list items */
    margin-bottom: 0.5em; /* Space between list items */
    line-height: 1.5;
}


@media (min-width: 992px){
    .offcanvas-body .navbar-nav{
        flex-direction: row;
    }

    .stat-circle{
        width: 250px;
        height: 250px;
    }
}