/* General Styles */
:root {
    --primary-color: #6B8E23; /* Olive Drab - a muted green */
    --secondary-color: #A0A083; /* Sage Green - light green */
    --tertiary-color: #D2B48C; /* Tan - sandy color */
    --gray-color: #405368;
    --dark-color: #2c3e50; /* Dark blue-grey for text/footer */
    --light-color: #f8f9fa; /* Light grey */
    --text-color: #333;
    --light-mint: #e0ffe0;
    --sand: #fcf8f3;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-color);
}

.h2-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

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

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.navbar-brand .brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-color);
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

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

.hero-section h1 {
    color: #c1bebe;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-section blockquote {
    font-size: 1.8rem;
    font-style: italic;
    margin-top: 2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

.hero-section .blockquote-footer {
    font-size: 1rem;
}

/* Blog Content Sections */
#blog-content article {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 4rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#blog-content article:last-of-type {
    margin-bottom: 0;
}

#blog-content img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Team Carousel */
#team-carousel {
    background-color: var(--light-mint);
    padding: 60px 0;
}

.team-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.carousel-item:hover .team-avatar {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5em 0.8em;
    font-size: 0.85em;
    border-radius: 5px;
    margin: 0.2em;
    display: inline-block;
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 15px;
}

/* Testimonials */
#testimonials {
    background-color: var(--light-color);
}

.testimonial-card {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

/* Newsletter Form */
#newsletter-form {
    background-color: var(--sand);
    padding: 60px 0;
}

#newsletterSubscriptionForm {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#newsletterSubscriptionForm .form-control {
    border: 1px solid var(--secondary-color);
    padding: 10px 15px;
    border-radius: 8px;
}

#newsletterSubscriptionForm .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(107, 142, 35, 0.25);
}

#newsletterSubscriptionForm .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 8px;
}

#newsletterSubscriptionForm .btn-primary:hover {
    background-color: #55721c;
    border-color: #55721c;
}

/* Footer */
.footer {
    background-color: var(--dark-color) !important;
    color: var(--light-color);
}

.footer .navbar-brand .logo {
    filter: brightness(0) invert(1); /* Makes logo white for dark background */
}

.footer a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer .list-unstyled li {
    margin-bottom: 8px;
}

/* Back to Top Button */
#backToTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out, background-color 0.3s ease;
    opacity: 0; /* Start with 0 opacity for fade-in */
}

#backToTopBtn:hover {
    background-color: #55721c;
}

#backToTopBtn.show {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }

    .hero-section blockquote {
        font-size: 1.5rem;
    }

    .h2-title {
        font-size: 2rem;
    }

    #blog-content article {
        padding: 30px;
    }

    .footer .col-md-4 {
        text-align: center !important;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 60vh;
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .hero-section blockquote {
        font-size: 1.2rem;
    }

    .h2-title {
        font-size: 1.8rem;
    }

    #blog-content article {
        padding: 20px;
    }

    .team-avatar {
        width: 120px;
        height: 120px;
    }

    #backToTopBtn {
        bottom: 20px;
        right: 20px;
        padding: 12px;
        font-size: 1rem;
    }

    .navbar-brand .brand-name {
        font-size: 1.5rem;
    }
}
/* New styles for content within .complianceVaultNode */
.complianceVaultNode {
    /* Padding for the main content block, top/bottom and left/right */
    padding: 60px 25px;
    /* Optional: Max width to keep content readable on large screens */
    max-width: 1200px;
    margin: 0 auto; /* Center the block horizontally */
}

.complianceVaultNode h1 {
    /* Heading 1 styles for content sections, smaller than hero H1 */
    font-size: 2.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--dark-color); /* Using existing dark color variable */
}

.complianceVaultNode h2 {
    /* Heading 2 styles */
    font-size: 1.8rem;
    margin-top: 1.8rem;
    margin-bottom: 0.9rem;
    line-height: 1.3;
    color: var(--dark-color);
}

.complianceVaultNode h3 {
    /* Heading 3 styles */
    font-size: 1.5rem;
    margin-top: 1.6rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: var(--dark-color);
}

.complianceVaultNode h4 {
    /* Heading 4 styles */
    font-size: 1.25rem;
    margin-top: 1.4rem;
    margin-bottom: 0.7rem;
    line-height: 1.5;
    color: var(--dark-color);
}

.complianceVaultNode h5 {
    /* Heading 5 styles */
    font-size: 1.1rem;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    line-height: 1.6;
    color: var(--dark-color);
}

.complianceVaultNode p {
    /* Paragraph styles */
    font-size: 1.1rem; /* Slightly larger for improved readability */
    line-height: 1.7;
    margin-bottom: 1rem; /* Space between paragraphs */
    color: var(--text-color); /* Using existing text color variable */
}

.complianceVaultNode ul,
.complianceVaultNode ol {
    /* Unordered and ordered list general styles */
    margin-bottom: 1.5rem;
    padding-left: 25px; /* Indentation for list items */
}

.complianceVaultNode ul li,
.complianceVaultNode ol li {
    /* List item styles */
    font-size: 1.1rem; /* Consistent with paragraph text */
    line-height: 1.6;
    margin-bottom: 0.5rem; /* Space between individual list items */
    color: var(--text-color);
}

/* Optional: Ensure default list styles are visible */
.complianceVaultNode ul {
    list-style-type: disc; /* Default disc for unordered lists */
}

.complianceVaultNode ol {
    list-style-type: decimal; /* Default decimal for ordered lists */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
    .complianceVaultNode {
        padding: 40px 15px; /* Adjust padding for mobile devices */
    }

    .complianceVaultNode h1 {
        font-size: 1.8rem;
    }

    .complianceVaultNode h2 {
        font-size: 1.5rem;
    }

    .complianceVaultNode h3 {
        font-size: 1.3rem;
    }

    .complianceVaultNode h4 {
        font-size: 1.1rem;
    }

    .complianceVaultNode h5 {
        font-size: 1rem;
    }

    .complianceVaultNode p,
    .complianceVaultNode ul li,
    .complianceVaultNode ol li {
        font-size: 1rem; /* Slightly smaller text on mobile for better fit */
    }

    .complianceVaultNode ul,
    .complianceVaultNode ol {
        padding-left: 20px; /* Adjust list indentation for mobile */
    }
}
