body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    box-sizing: border-box;
    overflow-x: hidden;
}

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

:root {
    --primary-green: #28a745; /* A standard green */
    --dark-green: #1e7e34;
    --light-green: #e6ffe6;
    --teal-cyan: #20c997; /* For How It Works icons */
    --gradient-start: #28a745;
    --gradient-end: #20c997; /* A slightly different green/teal for gradient */
    --text-muted-custom: #6c757d;
    --bg-near-black: #212529;
}

/* Global Styles */
.text-muted-custom {
    color: var(--text-muted-custom) !important;
}

.bg-gradient-green {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
}

.bg-teal-cyan {
    background-color: var(--teal-cyan);
}

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

.custom-btn-green {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.custom-btn-green:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    color: #fff;
}

.custom-rounded-border {
    border-radius: 1rem !important;
}

.custom-shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

.text-white .section-title {
    color: #fff !important;
}

.text-white .section-title::after {
    background-color: #fff;
}

/* Adaptive Typography for Headings */
.site-title {
    font-size: 1.5rem; /* Default for mobile */
}

.hero-title {
    font-size: 2rem; /* Mobile */
}

.hero-subtitle {
    font-size: 1.1rem; /* Mobile */
}

@media (min-width: 768px) { /* Tablet */
    .site-title {
        font-size: 1.8rem;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) { /* Desktop */
    .site-title {
        font-size: 2.2rem;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 2.8rem;
    }
}

/* Header & Navigation */
.navbar-brand .site-title {
    color: var(--dark-green) !important;
}

.navbar-nav .nav-link {
    color: var(--text-muted-custom);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.offcanvas-header .btn-close {
    font-size: 1.25rem;
}

/* Hero Section */
.hero-section {
    background-image: url('graphics/uploads/investment-strategy-background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 10rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.hero-section .container-fluid {
    position: relative;
    z-index: 2;
}

/* About 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-green);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    height: 25px;
    width: 25px;
    background-color: var(--primary-green);
    position: absolute;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    border: 3px solid #fff;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -12.5px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -12.5px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: #fff;
    position: relative;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
    border-width: 10px;
    right: -10px;
    top: 20px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
    border-width: 10px;
    left: -10px;
    top: 20px;
}

.timeline-title {
    color: var(--dark-green);
    font-weight: 600;
    font-size: 1.3rem;
}

.timeline-text {
    color: var(--text-muted-custom);
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 20px;
        margin-left: 0;
    }
    .timeline-item:nth-child(odd) .timeline-content::after {
        border-color: transparent #fff transparent transparent;
        left: -10px;
        right: auto;
    }
    .timeline-item:nth-child(even) .timeline-content::after {
        border-color: transparent #fff transparent transparent;
        left: -10px;
        right: auto;
    }
}

/* Services Section */
.icon-circle {
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 2rem;
    color: #fff;
    text-align: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Features Section */
.feature-card {
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1) !important;
}

/* Stats Section */
#stats {
    background-color: var(--dark-green); /* Fallback */
    position: relative;
    overflow: hidden;
}

.stat-block {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 200px;
    border-radius: 0.75rem;
    overflow: hidden;
}

.stat-block .dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 0;
}

.stat-block h2, .stat-block p {
    color: #fff;
    position: relative;
    z-index: 1;
}

/* How It Works Section */
.process-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* Consistent spacing between steps */
}

.process-flow .process-step {
    position: relative;
    text-align: center;
    flex: 1 1 calc(25% - 2rem); /* For 4 items in a row */
    max-width: calc(25% - 2rem);
    margin-bottom: 3rem; /* Space for the vertical line */
}

@media (max-width: 1199.98px) { /* Tablet landscape */
    .process-flow .process-step {
        flex: 1 1 calc(50% - 2rem); /* 2 items per row */
        max-width: calc(50% - 2rem);
    }
}

@media (max-width: 767.98px) { /* Mobile */
    .process-flow .process-step {
        flex: 1 1 100%; /* 1 item per row */
        max-width: 100%;
    }
}
 

/* Hide vertical line for the last item in a row on tablet/desktop if it's not the absolute last item */
@media (min-width: 768px) {
    .process-flow .process-step:nth-child(2n)::after {
        display: none;
    }
}
@media (min-width: 1200px) {
    .process-flow .process-step:nth-child(4n)::after {
        display: none;
    }
}
/* Ensure the very last item never has a line */
.process-flow .process-step:last-child::after {
    display: none !important;
}


/* FAQ Section */
.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.accordion-body {
    padding: 1rem 1.25rem;
}

/* Footer */
footer {
    background-color: var(--bg-near-black) !important;
}

footer .site-title {
    color: #fff !important;
}

footer .hover-green:hover {
    color: var(--primary-green) !important;
}

/* Cookie Consent Modal */
#cookieConsentModal .modal-content {
    border-radius: 1rem;
    overflow: hidden;
    z-index: 1055; /* Ensure it's above other elements */
}

#cookieConsentModal .modal-footer {
    border-top: none;
    padding-top: 0;
    padding-bottom: 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

#cookieConsentModal .modal-body {
    padding-top: 0;
}

#cookieConsentModal .form-check-label {
    font-weight: 500;
}

#cookieConsentModal .btn {
    flex-grow: 1;
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

@media (min-width: 768px) {
    #cookieConsentModal .modal-footer {
        flex-direction: row;
    }
    #cookieConsentModal .btn {
        flex-grow: 0;
        margin-bottom: 0 !important;
    }
}.complianceCoreSlot {
    /* Add padding to the top and sides of the container */
    padding: 1.5rem; /* Provides 1.5rem padding on all sides */
}

.complianceCoreSlot h1 {
    /* Moderate size for H1 heading */
    font-size: 2rem; 
    font-weight: bold;
    line-height: 1.2;
    margin-top: 1.5em; /* Space above H1 */
    margin-bottom: 0.75em; /* Space below H1 */
}

.complianceCoreSlot h2 {
    /* Moderate size for H2 heading */
    font-size: 1.75rem;
    font-weight: bold;
    line-height: 1.2;
    margin-top: 1.5em; /* Space above H2 */
    margin-bottom: 0.75em; /* Space below H2 */
}

.complianceCoreSlot h3 {
    /* Moderate size for H3 heading */
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-top: 1.2em; /* Space above H3 */
    margin-bottom: 0.6em; /* Space below H3 */
}

.complianceCoreSlot h4 {
    /* Moderate size for H4 heading */
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.3;
    margin-top: 1em; /* Space above H4 */
    margin-bottom: 0.5em; /* Space below H4 */
}

.complianceCoreSlot h5 {
    /* Moderate size for H5 heading */
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.3;
    margin-top: 1em; /* Space above H5 */
    margin-bottom: 0.5em; /* Space below H5 */
}

.complianceCoreSlot p {
    /* Standard paragraph font size and line height for readability */
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0; /* Reset default browser margin */
    margin-bottom: 1rem; /* Space between paragraphs */
}

.complianceCoreSlot ul {
    /* Default bullet list styling */
    list-style-type: disc; /* Standard disc bullet */
    margin-top: 1rem; /* Space above the list */
    margin-bottom: 1rem; /* Space below the list */
    padding-left: 1.5rem; /* Indentation for bullet points */
}

.complianceCoreSlot li {
    /* Standard list item font size and line height */
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem; /* Space between list items */
}
