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

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

:root {
    --bs-primary: #007bff;
    --bs-secondary: #6c757d;
    --bs-success: #28a745;
    --bs-info: #17a2b8;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #343a40;
}

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

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

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    text-decoration: none;
}

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

.btn-warning {
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
    text-decoration: none;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.site-title-text {
    font-size: 1.5rem;
}

/* Responsive Typography for Headings */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

/* Mobile-specific adjustments */
@media (max-width: 767.98px) {
    .site-title-text {
        font-size: 1.25rem;
    }
    h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    h2 {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }
    h3 {
        font-size: clamp(1.25rem, 4.5vw, 1.8rem);
    }
    .navbar-brand {
        margin-right: auto;
    }
    .offcanvas-body {
        padding: 1rem;
    }
    .offcanvas-body .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    .offcanvas-body .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .site-title-text {
        font-size: 1.8rem;
    }
    h1 {
        font-size: clamp(2.5rem, 4.5vw, 3rem);
    }
    h2 {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }
    h3 {
        font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    }
}

/* Desktop-specific adjustments */
@media (min-width: 1024px) {
    .site-title-text {
        font-size: 2rem;
    }
    h1 {
        font-size: clamp(3rem, 4vw, 3.5rem);
    }
    h2 {
        font-size: clamp(2.5rem, 3.5vw, 3rem);
    }
    h3 {
        font-size: clamp(2rem, 3vw, 2.5rem);
    }
}

/* Header and Navigation */
.fixed-top {
    z-index: 1030;
}

.navbar-brand img {
    max-height: 30px;
}

.offcanvas-end {
    width: 250px;
}

@media (min-width: 1100px) {
    .navbar-toggler {
        display: none;
    }
    .offcanvas {
        visibility: visible !important;
        background-color: transparent !important;
        border: none !important;
        position: static !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
    }
    .offcanvas-header {
        display: none;
    }
    .offcanvas-body {
        display: flex;
        flex-grow: 1;
        padding: 0;
    }
    .navbar-nav {
        flex-direction: row;
    }
    .navbar-nav .nav-link {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
        border-bottom: none;
    }
}

/* Hero Section */
#hero {
    background-image: url('visuals/uploads/financial-planning-background.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 150px;
    padding-bottom: 150px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

#hero .container {
    z-index: 1;
}

/* About Section */
#about img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

/* Services Section */
#services .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

#services .card-body i {
    font-size: 3.5rem;
}

/* Features Section */
.features-list li {
    align-items: flex-start !important;
}

.features-list i {
    flex-shrink: 0;
}

/* How It Works Section */
.how-it-works-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.flow-step {
    position: relative;
}

.step-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stat-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.stat-circle:hover {
    transform: translateY(-5px);
}

.stat-circle h3 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-top: 10px;
}

/* Team Section */
.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
}

.team-member-highlighted img {
    width: 180px;
    height: 180px;
    border-width: 5px !important;
}

.team-member-highlighted {
    transform: scale(1.05);
    position: relative;
    z-index: 1;
    margin-top: -20px;
    margin-bottom: -20px;
}

@media (max-width: 767.98px) {
    .team-member-highlighted {
        margin-top: 0;
        margin-bottom: 0;
        transform: none;
    }
}

/* Testimonials Section */
.testimonial-item {
    border: 1px solid #e0e0e0;
}

.testimonial-item-odd {
    background-color: var(--bs-light);
}

.testimonial-item-even {
    background-color: #fff;
}

.star-rating i {
    color: var(--bs-warning);
}

/* FAQ Section */
.accordion-button {
    background-color: #fff !important;
    color: #333 !important;
    font-weight: 600;
    border: none;
    box-shadow: none;
    padding: 1rem 1.25rem;
    position: relative;
    padding-left: 4rem;
}

.accordion-button:not(.collapsed) {
    color: var(--bs-primary) !important;
    background-color: #f8f9fa !important;
}

.accordion-button::after {
    display: none;
}

.faq-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--bs-warning);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}

.accordion-button.collapsed .faq-icon::before {
    content: "+";
}

.accordion-button:not(.collapsed) .faq-icon::before {
    content: "-";
}

.accordion-item {
    border: none;
}

.accordion-body {
    padding: 1rem 1.25rem;
    border-top: 1px solid #eee;
}

/* Contact Section */
#contact a {
    text-decoration: none;
}

.email-break {
    word-break: break-all;
}

/* Footer */
#footer a {
    transition: color 0.2s ease-in-out;
}

#footer a:hover {
    color: var(--bs-white) !important;
}

@media (max-width: 767.98px) {
    #footer .d-flex.flex-column.flex-md-row {
        align-items: center !important;
    }
    #footer .d-flex.mt-3.mt-md-0 {
        flex-direction: column;
        text-align: center;
    }
    #footer .d-flex.mt-3.mt-md-0 a {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}
/*
 * New stock styles for common HTML elements
 * All styles are scoped under the .rightsCloudWrap parent class.
 */

.rightsCloudWrap {
    /* Add top and side spacing for the wrapper */
    padding-top: 1.5rem; /* Spacing from the top of the wrapper */
    padding-left: 2rem;  /* Spacing from the left side */
    padding-right: 2rem; /* Spacing from the right side */
    /* Optional: Constrain width and center for better readability on large screens */
    max-width: 1200px;   /* Maximum width for the content area */
    margin-left: auto;   /* Center the wrapper horizontally */
    margin-right: auto;  /* Center the wrapper horizontally */
}

/* Heading styles: Keeping font sizes moderate as requested */
.rightsCloudWrap h1 {
    font-size: 2.2rem;       /* Moderate font size for H1 */
    line-height: 1.2;        /* Line height for better readability */
    margin-top: 2rem;        /* Space above the heading */
    margin-bottom: 1rem;     /* Space below the heading */
    font-weight: 700;        /* Bold font weight */
}

.rightsCloudWrap h2 {
    font-size: 1.8rem;       /* Moderate font size for H2 */
    line-height: 1.25;       /* Line height */
    margin-top: 1.8rem;      /* Space above the heading */
    margin-bottom: 0.9rem;   /* Space below the heading */
    font-weight: 600;        /* Semi-bold font weight */
}

.rightsCloudWrap h3 {
    font-size: 1.5rem;       /* Moderate font size for H3 */
    line-height: 1.3;        /* Line height */
    margin-top: 1.5rem;      /* Space above the heading */
    margin-bottom: 0.8rem;   /* Space below the heading */
    font-weight: 600;        /* Semi-bold font weight */
}

.rightsCloudWrap h4 {
    font-size: 1.25rem;      /* Moderate font size for H4 */
    line-height: 1.35;       /* Line height */
    margin-top: 1.25rem;     /* Space above the heading */
    margin-bottom: 0.7rem;   /* Space below the heading */
    font-weight: 500;        /* Medium font weight */
}

.rightsCloudWrap h5 {
    font-size: 1.1rem;       /* Moderate font size for H5 */
    line-height: 1.4;        /* Line height */
    margin-top: 1.1rem;      /* Space above the heading */
    margin-bottom: 0.6rem;   /* Space below the heading */
    font-weight: 500;        /* Medium font weight */
}

/* Paragraph styles */
.rightsCloudWrap p {
    font-size: 1rem;         /* Standard paragraph font size */
    line-height: 1.6;        /* Generous line height for readability */
    margin-bottom: 1rem;     /* Space below each paragraph */
}

/* Unordered list styles */
.rightsCloudWrap ul {
    list-style-type: disc;   /* Default bullet points */
    margin-top: 1rem;        /* Space above the list */
    margin-bottom: 1rem;     /* Space below the list */
    padding-left: 1.5rem;    /* Indent for bullet points */
}

/* List item styles */
.rightsCloudWrap li {
    font-size: 1rem;         /* Standard font size for list items */
    line-height: 1.5;        /* Line height for list items */
    margin-bottom: 0.5rem;   /* Spacing between individual list items */
}
