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

* {
    box-sizing: border-box;
}

.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1030;
}

.navbar-brand .logo {
    height: 30px;
}

.navbar-brand .site-name {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #004d40; /* Dark Teal */
}

.navbar-nav .nav-link {
    color: #004d40;
    font-weight: 600;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: #00796b;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler .material-symbols-outlined {
    font-size: 28px;
    color: #004d40;
}

.offcanvas-header {
    background-color: #004d40;
    color: #ffffff;
}

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

.offcanvas-body .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}

.offcanvas-body .nav-link:hover {
    background-color: #f0f0f0;
}

.hero-section {
    position: relative;
    background-image: url('media/pics/finance-hero-background_3.jpg');
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 100px 0;
}

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

.hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffc107; /* Gold accent */
}

.hero-section .lead {
    font-size: clamp(1rem, 3vw, 1.5rem);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #004d40;
    margin-bottom: 2rem;
}

.bg-light-gray {
    background-color: #f0f4f7;
}

.advantage-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.advantage-icon {
    font-size: 3rem;
    color: #00796b;
    margin-bottom: 0.5rem;
}

.advantage-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #004d40;
}

.news-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

.news-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #004d40;
    margin-bottom: 0.75rem;
}

.news-card .card-text {
    font-size: 0.95rem;
    color: #555;
    flex-grow: 1;
}

#newsModal .modal-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    color: #004d40;
}

#modalNewsImage {
    max-height: 400px;
    object-fit: cover;
}

#modalNewsContent h3 {
    font-size: 1.5rem;
    color: #004d40;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#modalNewsContent p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

#modalNewsContent ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

#modalNewsContent li {
    margin-bottom: 0.5rem;
}

.accordion-button {
    font-weight: 600;
    color: #004d40;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.accordion-button:not(.collapsed) {
    color: #ffffff;
    background-color: #004d40;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-body {
    background-color: #ffffff;
    color: #333;
}

.testimonial-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
}

.testimonial-card .avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #00796b;
}

.testimonial-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #004d40;
}

footer {
    background-color: #00332e !important; /* Darker Teal */
    color: rgba(255, 255, 255, 0.7) !important;
}

.logo-footer {
    height: 40px;
}

footer a {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer a:hover {
    color: #ffc107 !important;
}

.cookie-banner {
    z-index: 1040;
    max-width: 350px;
    animation-duration: 0.5s;
}

.cookie-banner p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cookie-banner .btn-primary {
    background-color: #00796b;
    border-color: #00796b;
}

.cookie-banner .btn-primary:hover {
    background-color: #004d40;
    border-color: #004d40;
}

.cookie-banner .btn-outline-secondary {
    color: #004d40;
    border-color: #004d40;
}

.cookie-banner .btn-outline-secondary:hover {
    background-color: #004d40;
    color: #ffffff;
}

#cookieSettingsModal {
    z-index: 105099;
}

#cookieSettingsModal .modal-header {
    background-color: #004d40;
    color: #ffffff;
}

#cookieSettingsModal .modal-title {
    color: #ffffff;
}

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

.form-check-label {
    font-weight: 600;
    color: #004d40;
}

.form-check-input:checked {
    background-color: #00796b;
    border-color: #00796b;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 121, 107, 0.25);
}

/* Responsive Typography for Headings */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .navbar-brand .site-name {
        font-size: 1.25rem;
    }
    #newsModal .modal-title {
        font-size: 1.25rem;
    }
    .advantage-icon {
        font-size: 2.5rem;
    }
    .advantage-title {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-section .lead {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .navbar-brand .site-name {
        font-size: 1.35rem;
    }
    #newsModal .modal-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 1199.98px) {
    .navbar-collapse {
        display: none !important;
    }
    .navbar-toggler {
        display: block;
    }
}

@media (min-width: 1200px) {
    .navbar-toggler {
        display: none;
    }
    .offcanvas {
        visibility: hidden;
    }
    .offcanvas.show {
        visibility: visible;
    }
    .navbar-nav {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }
    .navbar-nav .nav-item {
        flex-shrink: 0;
    }
}

/* Custom scrollbar for offcanvas on larger screens if needed */
@media (min-width: 1200px) {
    .offcanvas-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
/* Parent container for user-generated content */
.userClauseNet {
    margin-top: 2rem; /* Top margin for the entire block */
    margin-left: 1.5rem; /* Left margin for the content block */
    margin-right: 1.5rem; /* Right margin for the content block */
    line-height: 1.6; /* Default line height for text within the block */
    color: #333; /* A common default text color for readability */
}

/* Heading 1 styles within .userClauseNet */
.userClauseNet h1 {
    font-size: 1.8rem; /* Moderately sized h1, not overly large */
    font-weight: 700; /* Bold font weight */
    margin-top: 2rem; /* Space above h1 */
    margin-bottom: 1rem; /* Space below h1 */
    line-height: 1.2; /* Tighter line height for headings */
}

/* Heading 2 styles within .userClauseNet */
.userClauseNet h2 {
    font-size: 1.5rem; /* Moderately sized h2 */
    font-weight: 600; /* Slightly less bold than h1 */
    margin-top: 1.8rem; /* Space above h2 */
    margin-bottom: 0.8rem; /* Space below h2 */
    line-height: 1.3;
}

/* Heading 3 styles within .userClauseNet */
.userClauseNet h3 {
    font-size: 1.3rem; /* Moderately sized h3 */
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

/* Heading 4 styles within .userClauseNet */
.userClauseNet h4 {
    font-size: 1.1rem; /* Moderately sized h4 */
    font-weight: 500; /* Slightly lighter weight */
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

/* Heading 5 styles within .userClauseNet */
.userClauseNet h5 {
    font-size: 1rem; /* Moderately sized h5, close to body text */
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Paragraph styles within .userClauseNet */
.userClauseNet p {
    font-size: 1rem; /* Standard paragraph font size */
    margin-top: 1em; /* Space above paragraph */
    margin-bottom: 1em; /* Space below paragraph */
    line-height: 1.6; /* Good line height for readability */
}

/* Unordered list styles within .userClauseNet */
.userClauseNet ul {
    list-style-type: disc; /* Default disc bullet */
    margin-top: 1em; /* Space above list */
    margin-bottom: 1em; /* Space below list */
    padding-left: 1.5em; /* Indentation for bullets */
}

/* List item styles within .userClauseNet */
.userClauseNet li {
    margin-bottom: 0.5em; /* Space between list items */
    line-height: 1.5; /* Line height for list item text */
}


.offcanvas-body .nav-link{
    border: none;
}

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