body {
    font-family: 'Inter', sans-serif;
    color: #333333;
    background-color: #f8f9fa;
    line-height: 1.6;
}

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

:root {
    --primary-green: #4CAF50;
    --light-green-bg: #E8F5E9;
    --dark-green-accent: #388E3C;
    --text-color: #333333;
    --white: #ffffff;
    --dark: #212529;
}

/* Custom Bootstrap overrides */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.navbar-brand .site-name {
    font-weight: 700;
    color: var(--dark-green-accent);
    font-size: 1.8rem;
}

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

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

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

.offcanvas-title {
    font-weight: 700;
}

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

/* Hero Section */
.hero-section {
    min-height: 80vh;
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-image {
    z-index: 0;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-section p.lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-success-custom {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.btn-success-custom:hover {
    background-color: var(--dark-green-accent);
    border-color: var(--dark-green-accent);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-success-custom {
    color: var(--primary-green);
    border-color: var(--primary-green);
    background-color: transparent;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
}

.btn-outline-success-custom:hover {
    background-color: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

/* Main Article Section */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-green-accent);
}

.article-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.table-of-contents {
    background-color: var(--light-green-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.table-of-contents a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--primary-green);
}

.article-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-green-accent);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-sub-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-image-container img {
    max-width: 100%;
    height: auto;
}

.article-details li {
    margin-bottom: 0.5rem;
}

/* Other Articles Section */
.bg-light-green {
    background-color: var(--light-green-bg);
}

.article-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.article-card-img {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

.article-card .card-body {
    padding: 1.5rem;
}

.article-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-green-accent);
    margin-bottom: 0.75rem;
}

.article-card .card-text {
    font-size: 0.95rem;
    color: #555;
}

/* Contact Section */
#contact-section .form-label {
    font-weight: 600;
    color: var(--dark-green-accent);
}

#contact-section .form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

#contact-section .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

#contact-section .text-dark {
    color: var(--text-color) !important;
}

#contact-section .text-dark:hover {
    color: var(--primary-green) !important;
}

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

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

.footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer .list-inline-item a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer .list-inline-item a:hover {
    color: var(--primary-green);
}

/* Article Modal */
.modal-article-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

/* Cookie Consent Modal */
#cookieConsentModal .modal-content, #cookieSettingsModal .modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

#cookieConsentModal .modal-title, #cookieSettingsModal .modal-title {
    color: var(--dark-green-accent);
    font-weight: 700;
}

#cookieConsentModal .btn-success, #cookieSettingsModal .btn-success {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

#cookieConsentModal .btn-success:hover, #cookieSettingsModal .btn-success:hover {
    background-color: var(--dark-green-accent);
    border-color: var(--dark-green-accent);
}

#cookieConsentModal .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

#cookieConsentModal .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

#cookieConsentModal .btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

#cookieConsentModal .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: var(--white);
}

#cookieSettingsModal .form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

/* Responsive Typography */
/* Site Name */
@media (min-width: 1024px) {
    .navbar-brand .site-name {
        font-size: 1.8rem;
    }
    .hero-section h1 {
        font-size: 3.5rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .article-subtitle {
        font-size: 2rem;
    }
}

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

@media (max-width: 767px) {
    .navbar-brand .site-name {
        font-size: 1.2rem; /* Reduced for mobile */
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .article-subtitle {
        font-size: 1.5rem;
    }
    .article-sub-subtitle {
        font-size: 1.2rem;
    }
    .navbar-brand .logo-img {
        height: 30px;
    }
    .hero-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Burger menu breakpoint */
@media (max-width: 1199px) {
    .navbar-collapse {
        display: none !important;
    }
    .navbar-toggler {
        display: block;
    }
}

@media (min-width: 1200px) {
    .navbar-toggler {
        display: none;
    }
    .navbar-collapse {
        display: flex !important;
    }
}
/* Styles for the main container */
.complianceCoreSlot {
    margin-top: 2rem; /* Top margin for separation from content above */
    padding: 1.5rem 2rem; /* Internal padding for content */
    /* Optional: Add a background-color or border for visual distinction */
    /* background-color: #f9f9f9; */
    /* border: 1px solid #eee; */
    /* border-radius: 8px; */
}

/* Heading 1 styles */
.complianceCoreSlot h1 {
    font-size: 2em; /* Moderate size for main heading */
    font-weight: 600; /* Semi-bold */
    line-height: 1.2; /* Good readability */
    margin-top: 1.5em; /* Space above heading */
    margin-bottom: 0.8em; /* Space below heading */
}

/* Heading 2 styles */
.complianceCoreSlot h2 {
    font-size: 1.75em; /* Slightly smaller than h1 */
    font-weight: 600;
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

/* Heading 3 styles */
.complianceCoreSlot h3 {
    font-size: 1.5em; /* Smaller than h2 */
    font-weight: 500; /* Medium weight */
    line-height: 1.3;
    margin-top: 1.2em;
    margin-bottom: 0.7em;
}

/* Heading 4 styles */
.complianceCoreSlot h4 {
    font-size: 1.25em; /* Smaller than h3 */
    font-weight: 500;
    line-height: 1.4;
    margin-top: 1em;
    margin-bottom: 0.6em;
}

/* Heading 5 styles */
.complianceCoreSlot h5 {
    font-size: 1.1em; /* Smaller than h4, still distinct */
    font-weight: 500;
    line-height: 1.5;
    margin-top: 0.8em;
    margin-bottom: 0.5em;
}

/* Paragraph styles */
.complianceCoreSlot p {
    font-size: 1em; /* Standard paragraph size */
    line-height: 1.6; /* Optimal line height for readability */
    margin-bottom: 1em; /* Space between paragraphs */
}

/* Unordered list styles */
.complianceCoreSlot ul {
    list-style: disc; /* Standard bullet points */
    margin-bottom: 1em; /* Space below the list */
    padding-left: 1.5em; /* Indent for bullet points */
}

/* List item styles */
.complianceCoreSlot li {
    font-size: 1em; /* Standard list item size */
    line-height: 1.5; /* Good line height for list items */
    margin-bottom: 0.5em; /* Space between list items */
}

/* Remove bottom margin from the last paragraph/list in the slot for cleaner spacing */
.complianceCoreSlot p:last-child,
.complianceCoreSlot ul:last-child {
    margin-bottom: 0;
}

/* Sticky footer for pages with minimal content */
body.sticky-footer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.sticky-footer > header {
    flex-shrink: 0;
}

body.sticky-footer > header + .container {
    flex: 1;
}

body.sticky-footer > footer {
    flex-shrink: 0;
    margin-top: auto;
}
