/* 1. Base & Body Styles */
html, body {
    height: 100%;
}
body {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem; /* Slightly larger base font size for readability */
    line-height: 1.7; /* Generous line spacing for long-form text */
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa; /* A very light, neutral gray */
    color: #495057; /* Softer dark gray for high contrast text */
}

/* 2. Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700; /* Bold headings */
    color: #343a40; /* A slightly softer black for main headings */
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

/* 3. Links */
a {
    color: #E65C2C; /* Use a slightly less bright orange for links */
    text-decoration: none; /* Remove underline by default */
    transition: color 0.3s ease;
}
a:hover {
    text-decoration: none; /* Keep underline off on hover for a cleaner look */
    color: #CC4F26; /* Darken link color on hover */
}

/* 4. Layout & Component Styling */
.container {
    background-color: white;
    padding: 2rem 3rem; /* More horizontal padding */
    /* border-radius: 0.5rem; /* Slightly smaller border radius for a flatter look */
    box-shadow: 0 0.05rem 0.5rem rgba(0,0,0,0.02); /* Even more subtle shadow */
}
main {
    flex: 1;
}
.bg-orange {
    background-color: #E65C2C !important;
}
.navbar-nav .nav-link {
    color: white !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-logo rect {
    fill: transparent;
    stroke: white;
}

.navbar-logo text {
    font-family: 'Nunito', sans-serif;
    fill: white;
}
.text-muted {
    color: #6c757d !important; /* A softer gray for muted text */
}

.h-100.p-5.bg-light.border.rounded-3 {
    border: none !important; /* Remove border from the light box */
}

.img-thumbnail {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 0;
}

/* 5. Blog Post Specifics */
img.blog-featured-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    /* border-radius: 0.5rem; /* Softer radius for images */
}
.blog-post-content p {
    margin-bottom: 1.25rem; /* Spacing between paragraphs */
}
.blog-post-content ul, .blog-post-content ol {
    padding-left: 2rem;
    margin-bottom: 1.25rem;
}

/* Styles from blogs.html */
.list-group-item.active {
    background-color: #E65C2C !important;
    border-color: #E65C2C !important;
}
.list-group-item-action:hover {
    background-color: #F2D7CC !important; /* A lighter shade of the new orange for hover */
}

/* 6. Footer Override */
footer .container {
    background-color: transparent;
    box-shadow: none;
}

/* 7. Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem; /* Reduced padding for smaller screens */
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 576px) {
    body {
        font-size: 1rem;
    }
    .container {
        padding: 1rem 0.75rem; /* Even less padding for very small screens */
    }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

.text-white h2 {
    color: white;
}

/* Global border-radius reset */
* {
    border-radius: 0 !important;
}

/* Specific overrides for buttons and form controls */
.btn, .form-control {
    border-radius: 0 !important;
}

/* Calculator Styles */
.card-header h2 {
    margin-top: 0;
}

#savings-result {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-top: 3px solid #E65C2C;
}

#savings-result h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

#mortgage-result {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-top: 3px solid #E65C2C;
}

#mortgage-result h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

#debt-result {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-top: 3px solid #E65C2C;
}

#debt-result h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

#budget-summary {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-top: 3px solid #E65C2C;
}
