body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff; /* Bootstrap primary blue */
    --secondary-color: #6c757d;
    --light-blue: #e0f2f7;
    --dark-overlay: rgba(0, 0, 0, 0.6);
}

/* Global styles */
.bg-light-blue {
    background-color: var(--light-blue);
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
}

/* Header & Navigation */
#mainNav {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#mainNav .navbar-brand .logo-img {
    height: 40px;
    width: auto;
}

#mainNav .site-title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: #212529;
}

#mainNav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

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

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

.offcanvas-title {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
}

.offcanvas-body .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero-section {
    background: url('visuals/uploads/financial-cityscape-background.jpg') no-repeat center center/cover;
    min-height: 80vh;
    position: relative;
    padding-top: 100px; /* Adjust for fixed header */
    padding-bottom: 50px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-overlay);
    z-index: 0;
}

.hero-section h1 {
    font-size: clamp(2.3rem, 3vw, 4rem);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p.lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

/* Expertise Section */
.expertise-metric {
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.expertise-metric h3 {
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--primary-color);
}

.expertise-metric p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #555;
}

/* Services Section */
.service-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-card .video-wrapper {
    height: 200px; /* Fixed height for video/gif */
    overflow: hidden;
    position: relative;
}

.service-card .card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.service-card .card-title {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    color: #212529;
}

/* Features Section */
.feature-list li {
    background-color: #fff;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.feature-list li:hover {
    transform: translateX(5px);
}

.feature-list h5 {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 600;
    color: #212529;
}

.feature-list p {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: #555;
}

/* Industries Section */
.filter-buttons .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.filter-buttons .btn-outline-primary:hover,
.filter-buttons .btn-outline-primary.active {
    background-color: var(--primary-color);
    color: #fff;
}

.industry-info-card .card {
    border: 1px solid rgba(0, 123, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-info-card .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.industry-info-card .card-title {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    color: #212529;
}

/* How It Works Section - Timeline */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.timeline-line {
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    height: 0; /* Initial height for animation */
    transition: height 1s ease-out;
}
.timeline-line.is-visible {
    height: 100%;
}

.timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
    text-align: left;
}
@media screen and (width <768px) {
    .timeline-item:nth-child(odd) {
    padding-right: 15px;
    }
}

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

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

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

.timeline-content h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 767.98px) {
    .timeline-line {
        left: 20px;
        transform: translateX(0);
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 40px;
        padding-right: 15px;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: -3px;
        right: auto;
    }
}

/* Results & Benefits Section */
.result-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.result-card .card-title {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    color: #212529;
}

/* FAQ Section */
.accordion-item {
    border: 1px solid rgba(0, 123, 255, 0.2);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.accordion-item:last-child {
    margin-bottom: 0;
}

.accordion-button {
    background-color: #fff;
    color: #333;
    font-weight: 600;
    padding: 1rem 1.25rem;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    border: none;
    text-align: left;
    transition: background-color 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--light-blue);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23007bff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-body {
    padding: 1rem 1.25rem;
    background-color: #fff;
    border-top: 1px solid rgba(0, 123, 255, 0.1);
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #555;
}

/* Testimonials Section */
.testimonial-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .avatar-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.testimonial-card h5 {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 600;
    color: #212529;
}

.testimonial-card p.card-text {
    font-style: italic;
    color: #555;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Contact Section */
.contact-list li {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: #333;
}

.contact-list a {
    color: #333;
    word-break: break-all;
}

.contact-list a:hover {
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.site-footer .footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .navbar-brand .logo-img {
    height: 35px;
}

.site-footer .site-title {
    color: #fff;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

.site-footer p {
    font-size: 0.9rem;
    color: #adb5bd !important;
}

.site-footer a {
    color: #adb5bd !important;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #fff;
}

/* Animations (Intersection Observer) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.slide-in-up {
    transform: translateY(50px);
}

.animate-on-scroll.slide-in-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.fade-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.fade-in {
    transform: none;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.animate-on-scroll.delay-1 {
    transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
    transition-delay: 0.4s;
}

.animate-on-scroll.delay-5 {
    transition-delay: 0.5s;
}

.animate-on-scroll.delay-6 {
    transition-delay: 0.6s;
}

/* Mobile Adaptation */
@media (max-width: 1199.98px) {
    #mainNav .navbar-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    #mainNav .navbar-toggler {
        display: block;
    }
    #mainNav .offcanvas {
        width: 250px;
    }
    #mainNav .navbar-collapse {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }
    .hero-section h1 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    .hero-section p.lead {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    .expertise-metric {
        margin-bottom: 1rem;
    }
    .feature-list li {
        margin-bottom: 1rem;
    }
    .offcanvas-body .navbar-nav {
        flex-direction: column;
    }
    .site-footer .d-flex.flex-column.flex-md-row {
        text-align: center;
    }
    .site-footer .navbar-brand {
        margin-bottom: 1rem !important;
    }
    .site-footer .d-flex.flex-column.flex-md-row.align-items-center {
        flex-direction: column;
        align-items: center;
    }
    .site-footer .d-flex.flex-column.flex-md-row.align-items-center a {
        margin: 0.5rem 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .section-title {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
    }
    #mainNav .site-title {
        font-size: clamp(1.2rem, 2vw, 1.8rem);
    }
}

@media (max-width: 767px) {
    #mainNav .site-title {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
    .hero-section h1 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }
    .hero-section p.lead {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    }
    .section-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }
    .expertise-metric h3, .service-card .card-title, .feature-list h5, .industry-info-card .card-title, .timeline-content h4, .result-card .card-title, .accordion-button, .testimonial-card h5, .contact-list li {
        font-size: clamp(1rem, 3.5vw, 1.25rem);
    }
    .testimonial-card p.card-text, .accordion-body, .feature-list p, .expertise-metric p {
        font-size: clamp(0.85rem, 3vw, 1rem);
    }
    .btn-lg {
        font-size: clamp(1rem, 3.5vw, 1.25rem);
        padding: 0.75rem 1.25rem;
    }
}
/*
 * Styles for the .legalFoldBox container and its nested elements.
 * These styles provide standard typography and spacing,
 * with moderate heading sizes and appropriate margins.
 */

/* Container styles for .legalFoldBox */
.legalFoldBox {
  margin-top: 2rem; /* Top margin for the entire legal content box */
  margin-inline: 1.5rem; /* Side margins (left and right) for the entire legal content box */
  line-height: 1.6; /* General line height for better readability within the box */
}

/* Heading styles */
.legalFoldBox h1 {
  font-size: 1.8rem; /* Moderate size for H1 */
  margin-top: 1.5em; /* Top margin relative to H1 font size */
  margin-bottom: 0.8em; /* Bottom margin relative to H1 font size */
  font-weight: bold; /* Make H1 bold */
  line-height: 1.2; /* Tighter line height for headings */
}

.legalFoldBox h2 {
  font-size: 1.5rem; /* Moderate size for H2 */
  margin-top: 1.2em;
  margin-bottom: 0.7em;
  font-weight: bold; /* Make H2 bold */
  line-height: 1.3;
}

.legalFoldBox h3 {
  font-size: 1.3rem; /* Moderate size for H3 */
  margin-top: 1em;
  margin-bottom: 0.6em;
  font-weight: bold; /* Make H3 bold */
  line-height: 1.4;
}

.legalFoldBox h4 {
  font-size: 1.1rem; /* Moderate size for H4 */
  margin-top: 0.8em;
  margin-bottom: 0.5em;
  font-weight: bold; /* Make H4 bold */
  line-height: 1.5;
}

.legalFoldBox h5 {
  font-size: 1rem; /* Moderate size for H5, similar to body text but bold */
  margin-top: 0.7em;
  margin-bottom: 0.4em;
  font-weight: bold; /* Make H5 bold */
  line-height: 1.5;
}

/* Paragraph styles */
.legalFoldBox p {
  font-size: 1rem; /* Standard paragraph font size */
  margin-top: 0; /* Reset default top margin for paragraphs */
  margin-bottom: 1em; /* Spacing between paragraphs */
  line-height: 1.6; /* Good line height for paragraph readability */
}

/* Unordered and ordered list styles */
.legalFoldBox ul,
.legalFoldBox ol {
  font-size: 1rem; /* Standard list font size */
  margin-top: 1em; /* Top margin for lists */
  margin-bottom: 1em; /* Bottom margin for lists */
  padding-left: 1.5rem; /* Indentation for list items */
  line-height: 1.6; /* Good line height for list readability */
}

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

/* Optional: Remove bottom margin for the last paragraph or list if it's the last child within the container */
.legalFoldBox p:last-child,
.legalFoldBox ul:last-child,
.legalFoldBox ol:last-child {
  margin-bottom: 0;
}
main {
    overflow: hidden;
}
