/* ---
Project: DailyFreeTools.com
Version: 2.4 (All Tool Styles)
--- */

/* --- Root Variables --- */
:root {
    --color-bg: #f8f9fa;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-gray: #6c757d;
    --color-light-gray: #adb5bd;
    --color-border-light: #dee2e6;
    
    /* Brand Colors */
    --color-dark-blue: #0d1b2a;
    --color-dark-blue-deep: #071321;
    --color-border: #2a3b4c; /* Border for dark elements */

    /* Brand Accents */
    --color-accent-blue: #4791ff; /* Bright, modern blue */
    --color-accent-light-blue: #80b3ff; /* Lighter shade for gradients */
    --color-accent-teal: #38b2ac; /* Old accent */

    /* System Colors */
    --color-success: #28a745;
    --color-danger: #dc3545;

    /* Typography */
    --font-primary: 'Inter', sans-serif;

    /* Sizing */
    --header-height: 70px;
}

/* --- Global Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding-top: var(--header-height); /* Offset for fixed header */
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-dark-blue);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

a {
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-light-blue);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Layout --- */
.container {
    max-width: 1140px;
    width: 90%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Components --- */

/* * NEW FUTURISTIC HEADER
 * Replaced the old solid header with a new
 * "glassmorphism" design.
*/
.site-header {
    /* Glassmorphism Effect */
    background-color: rgba(13, 27, 42, 0.75); /* Dark blue with 75% opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    
    color: var(--color-white);
    padding: 0 1rem;
    height: var(--header-height);
    border-bottom: 1px solid var(--color-border); /* Keep the subtle border */
    
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    
    transition: background-color 0.3s ease;
}

.navbar.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.nav-brand:hover {
    text-decoration: none;
    color: var(--color-white);
    text-shadow: 0 0 10px rgba(71, 145, 255, 0.5); /* Blue glow on hover */
}

.nav-links {
    display: flex;
    gap: 0.5rem; /* Reduced gap slightly for the new padding */
}

.nav-links a {
    color: var(--color-light-gray);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.75rem; /* Add padding for the background effect */
    border-radius: 6px; /* Rounded corners for the hover effect */
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-white);
    background-color: rgba(71, 145, 255, 0.1); /* Soft blue glow background */
    text-decoration: none;
    transform: translateY(-2px); /* Slight lift */
}

.nav-links a.active {
    color: var(--color-white);
    background-color: rgba(71, 145, 255, 0.15); /* Slightly stronger blue glow */
    box-shadow: 0 0 10px rgba(71, 145, 255, 0.2); /* Subtle glow shadow */
    text-decoration: none;
}
/* --- End of New Header --- */


/* Footer */
.site-footer {
    background-color: var(--color-dark-blue);
    color: var(--color-light-gray);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--color-gray);
    text-decoration: none;
    margin: 0 0.5rem;
}

.site-footer a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: var(--color-accent-blue);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border: 0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -5px rgba(71, 145, 255, 0.5);
}

.button:hover {
    background-color: var(--color-accent-light-blue);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -5px rgba(71, 145, 255, 0.7);
}

.button-danger {
    background-color: var(--color-danger);
    box-shadow: 0 4px 15px -5px rgba(220, 53, 69, 0.5);
}
.button-danger:hover {
    background-color: #c82333;
    box-shadow: 0 6px 20px -5px rgba(220, 53, 69, 0.7);
}

.button-secondary {
    background-color: var(--color-gray);
    box-shadow: 0 4px 15px -5px rgba(108, 117, 125, 0.5);
}
.button-secondary:hover {
    background-color: #5a6268;
    box-shadow: 0 6px 20px -5px rgba(108, 117, 125, 0.7);
}


/* --- Page Specific Styles --- */

/* * FIXED: Generic Page Header
 * This now matches the futuristic gradient from the homepage
 * for a consistent look across all pages.
*/
.page-header {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    padding: 3rem 0; /* Reduced padding from hero */
    text-align: center;
    margin-bottom: 0; /* No margin, ad slots will handle spacing */
    position: relative;
    overflow: hidden;
    /* Futuristic gradient background */
    background-image: linear-gradient(145deg, 
        hsl(222, 47%, 11%) 0%, 
        hsl(220, 48%, 18%) 40%, 
        hsl(218, 50%, 15%) 100%);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, hsla(210, 50%, 80%, 0.05), transparent 30%),
                      radial-gradient(circle at 80% 30%, hsla(260, 50%, 80%, 0.05), transparent 30%);
    opacity: 0.5;
    pointer-events: none;
}

.page-header h1 {
    color: var(--color-white);
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
/* --- End of Fixed Header --- */


/* Content wrapper for static pages like about, privacy, etc. */
.content-wrapper {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px -10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 2rem auto;
}

.content-wrapper h2 {
    border-bottom: 2px solid var(--color-border-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Blog & Article Page */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* This is the style for blog.html (and the homepage fallbac) */
.blog-grid a.article-card {
    display: block;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border-light);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.05);
}

.blog-grid a.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-blue);
    box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
}

.blog-grid a.article-card h3 {
    color: var(--color-dark-blue);
    font-size: 1.25rem; /* 20px */
    line-height: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.blog-grid a.article-card p.post-meta {
    font-size: 0.875rem; /* 14px */
    color: var(--color-gray);
    margin: 0;
}

/* Single Article Page */
.article-header {
    text-align: center;
    margin-bottom: 2rem;
}
.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.3;
}
.article-meta {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-top: 1rem;
}
.article-content {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px -10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}
.article-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border-light);
}
.article-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-content li {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
}

.form-group textarea {
    min-height: 150px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}
.text-light-gray {
    color: var(--color-light-gray);
}
.mb-4 {
    margin-bottom: 1rem;
}
.mb-8 {
    margin-bottom: 2rem;
}
.mb-16 {
    margin-bottom: 4rem;
}
.mt-12 {
    margin-top: 3rem;
}
.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.md\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.max-w-2xl {
    max-width: 42rem;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.grid {
    display: grid;
}
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
.gap-8 {
    gap: 2rem;
}
.text-5xl {
    font-size: 3rem;
    line-height: 1.1;
}
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}
.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}
.font-bold {
    font-weight: 700;
}
.font-semibold {
    font-weight: 600;
}
.inline-block {
    display: inline-block;
}
.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}
.rounded-lg {
    border-radius: 0.5rem;
}

/* Responsive Grid */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:text-6xl {
        font-size: 4rem;
        line-height: 1;
    }
    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}


/* --- Homepage v2 Styles --- */

/* New Hero Section */
.hero-v2 {
    background-color: var(--color-dark-blue);
    /* Futuristic gradient background */
    background-image: linear-gradient(145deg, 
        hsl(222, 47%, 11%) 0%, 
        hsl(220, 48%, 18%) 40%, 
        hsl(218, 50%, 15%) 100%);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Optional: Add a subtle overlay pattern for texture */
.hero-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, hsla(210, 50%, 80%, 0.05), transparent 30%),
                      radial-gradient(circle at 80% 30%, hsla(260, 50%, 80%, 0.05), transparent 30%);
    opacity: 0.5;
    pointer-events: none;
}

.hero-v2 h1 {
    /* Subtle text shadow for depth */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--color-white); /* Ensure h1 is white */
}

.hero-v2 .cta-button {
    /* New gradient button */
    background-image: linear-gradient(90deg, 
        var(--color-accent-blue), 
        var(--color-accent-light-blue));
    color: var(--color-dark-blue-deep);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px -5px rgba(71, 145, 255, 0.6);
}

.hero-v2 .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px -5px rgba(71, 145, 255, 0.8);
}

/* New Feature Grid */
.feature-grid {
    background-color: var(--color-dark-blue-deep); /* Darker background for contrast */
}

.feature-card {
    background-color: var(--color-dark-blue);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
    /* Subtle glow effect */
    box-shadow: 0 0 15px -5px rgba(71, 145, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-blue);
    /* Enhanced glow on hover */
    box-shadow: 0 5px 30px -5px rgba(71, 145, 255, 0.3);
}

.feature-card .icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 120px; /* Match placeholder */
    height: 120px; /* Match placeholder */
    border-radius: 50%;
    /* Creates the circular glowing effect */
    border: 1px solid var(--color-accent-blue);
    box-shadow: 0 0 25px 0px rgba(71, 145, 255, 0.3), 
                inset 0 0 15px 0px rgba(71, 145, 255, 0.2);
    background: var(--color-dark-blue-deep);
}

.feature-card .icon-placeholder {
    border-radius: 50%;
}

.feature-card h3 {
    color: var(--color-white);
}

.feature-card p {
    color: var(--color-light-gray);
}


/* New Blog Grid (on Homepage) */
.blog-grid {
    background-color: var(--color-bg); /* Use the default light background */
}

#recent-blog-posts a.article-card {
    display: block;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border-light);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.05);
}

#recent-blog-posts a.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-blue);
    box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
}

#recent-blog-posts a.article-card h3 {
    color: var(--color-dark-blue);
    font-size: 1.25rem; /* 20px */
    line-height: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

#recent-blog-posts a.article-card p.post-meta {
    font-size: 0.875rem; /* 14px */
    color: var(--color-gray);
    margin: 0;
}

/* --- End of Homepage v2 Styles --- */

/* --- NEW: Tool Page Styles (v2 - AdSense Layout) --- */

/* This is the clickable card for the /tools.html page */
.tool-card {
    display: block;
    background-color: var(--color-dark-blue);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px -5px rgba(71, 145, 255, 0.1);
    text-decoration: none;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-blue);
    box-shadow: 0 5px 30px -5px rgba(71, 145, 255, 0.3);
    text-decoration: none;
}

/* This is for disabled/coming soon cards */
.tool-card.is-disabled {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(50%);
}

.tool-card .icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid var(--color-accent-blue);
    box-shadow: 0 0 25px 0px rgba(71, 145, 255, 0.3), 
                inset 0 0 15px 0px rgba(71, 145, 255, 0.2);
    background: var(--color-dark-blue-deep);
    margin-bottom: 1.5rem;
}

/* Style for the text-based icons */
.tool-icon-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-accent-light-blue);
    text-shadow: 0 0 10px rgba(71, 145, 255, 0.5);
}

.tool-card h3 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: var(--color-light-gray);
    margin-bottom: 0; /* Remove default p margin */
}

/* AdSense Layout & Placeholders */
.adsense-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    border: 1px dashed var(--color-light-gray);
    color: var(--color-gray);
    font-weight: 600;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.ad-label {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--color-gray);
    color: var(--color-white);
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
}
.adsense-leaderboard {
    width: 728px;
    max-width: 100%;
    height: 90px;
    margin: 2rem auto;
}
.adsense-skyscraper {
    width: 160px;
    max-width: 100%;
    height: 600px;
}
.tool-layout-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first: single column */
    gap: 2.5rem;
}
.tool-main-content {
    /* Main content area for the tool */
}
.tool-sidebar {
    /* Sidebar styles */
}
.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark-blue);
    border-bottom: 2px solid var(--color-border-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive 2-column layout for desktop */
@media (min-width: 992px) {
    .tool-layout-grid {
        /* 3/4 for main content, 1/4 for sidebar */
        grid-template-columns: 3fr 1fr;
    }
}
@media (max-width: 991px) {
    .tool-sidebar {
        /* On mobile, center the ad */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* --- End of Tool Page Styles --- */


/* --- STYLES FROM PREVIOUS CONVERSATION (BLOG, ARTICLE, ETC.) --- */
/* --- This section is from your context file and may be redundant --- */
/* --- but is included to be safe --- */

/* --- Unified Page Header Styles --- */
.blog-header {
    background-color: var(--color-dark-blue);
    background-image: linear-gradient(145deg,
        hsl(222, 47%, 11%) 0%,
        hsl(220, 48%, 18%) 40%,
        hsl(218, 50%, 15%) 100%);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, hsla(210, 50%, 80%, 0.05), transparent 30%),
                      radial-gradient(circle at 80% 30%, hsla(260, 50%, 80%, 0.05), transparent 30%);
    opacity: 0.5;
    pointer-events: none;
}

.blog-header h1 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.blog-header p {
    color: var(--color-light-gray);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Static Page Styles */
.static-page-container {
    padding: 4rem 0;
}

.static-page {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.static-page h1 {
    color: var(--color-dark-blue);
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border-light);
}

.static-page h2 {
    color: var(--color-dark-blue);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border-light);
}

.static-page p {
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.static-page a {
    color: var(--color-accent-blue);
}

.static-page a:hover {
    color: var(--color-accent-light-blue);
    text-decoration: underline;
}

.static-page ul,
.static-page ol {
    margin-left: 2rem;
}

.static-page li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* Blog Feed Container */
.blog-feed-container {
    padding: 3rem 0;
}

.blog-feed-container .article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Full Article Container */
.full-article-container {
    padding: 3rem 0;
}

.full-article {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.full-article h1 {
    color: var(--color-dark-blue);
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.full-article .article-meta {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border-light);
}

.full-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.full-article h2 {
    color: var(--color-dark-blue);
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border-light);
}

.full-article p {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.full-article ul,
.full-article ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.full-article li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.full-article blockquote {
    border-left: 4px solid var(--color-accent-blue);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--color-gray);
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-header {
        padding: 2.5rem 1rem;
    }

    .blog-header h1 {
        font-size: 1.75rem;
    }

    .blog-header p {
        font-size: 1rem;
    }

    .static-page {
        padding: 2rem 1.5rem;
    }

    .static-page h1 {
        font-size: 1.5rem;
    }

    .full-article {
        padding: 2rem 1.5rem;
    }

    .full-article h1 {
        font-size: 1.75rem;
    }

    .full-article h2 {
        font-size: 1.25rem;
    }

    .blog-feed-container .article-grid {
        grid-template-columns: 1fr;
    }
}


/* --- NEW: Investment Calculator Tool Styles --- */
.tool-form-container {
    background-color: var(--color-dark-blue);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    box-shadow: 0 5px 30px -5px rgba(0, 0, 0, 0.1);
}

.tool-form-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
}

.tool-form-group {
    display: flex;
    flex-direction: column;
}

.tool-form-group label {
    color: var(--color-light-gray);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.tool-form-group input,
.tool-form-group select { /* Added select */
    background-color: var(--color-dark-blue-deep);
    border: 1px solid var(--color-border);
    color: var(--color-white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-primary); /* Ensure select inherits font */
    -webkit-appearance: none; /* Removes default OS styling */
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23adb5bd' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em 1em;
}

.tool-form-group input:focus,
.tool-form-group select:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 10px rgba(71, 145, 255, 0.3);
}

/* Responsive grid for form */
@media (min-width: 768px) {
    .tool-form-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on desktop */
    }
}

/* Results Section */
.tool-results-container {
    background-color: var(--color-dark-blue-deep);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    border-radius: 12px;
}

.tool-results-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.result-card {
    background-color: var(--color-dark-blue);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    text-align: center;
}

.result-card h4 {
    color: var(--color-accent-light-blue);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-card .result-value {
    color: var(--color-white);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* Responsive grid for results */
@media (min-width: 768px) {
    .tool-results-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns on desktop */
    }
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 400px; /* Set a fixed height for the chart */
}

/* --- NEW: Mortgage Calculator Tool Styles --- */

.mortgage-result-summary {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background-color: var(--color-dark-blue);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.mortgage-result-summary p {
    color: var(--color-accent-light-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.mortgage-result-summary h3 {
    color: var(--color-white);
    font-size: 3rem;
    font-weight: 700;
    margin: 0.5rem 0 0 0;
    line-height: 1.2;
}

.mortgage-result-breakdown {
    margin-top: 2.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.breakdown-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.breakdown-item span:first-child {
    color: var(--color-light-gray);
    font-size: 1rem;
    font-weight: 600;
}

.breakdown-item span:last-child {
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 600;
}

.breakdown-item.total span {
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 700;
}

/* --- NEW: PDF Tool Styles --- */

.file-upload-area {
    border: 2px dashed var(--color-border);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover,
.file-upload-area.dragging {
    border-color: var(--color-accent-blue);
    background-color: var(--color-dark-blue-deep);
}

.file-upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.file-upload-text {
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.file-upload-or {
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.file-upload-input {
    display: none;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-list li {
    background-color: var(--color-dark-blue);
    border: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-white);
}

.btn {
    display: inline-block;
    background-color: var(--color-accent-blue);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border: 0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -5px rgba(71, 145, 255, 0.5);
}

.btn:hover {
    background-color: var(--color-accent-light-blue);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -5px rgba(71, 145, 255, 0.7);
}

.btn-danger {
    background-color: var(--color-danger);
    box-shadow: 0 4px 15px -5px rgba(220, 53, 69, 0.5);
}

.btn-danger:hover {
    background-color: #c82333;
    box-shadow: 0 6px 20px -5px rgba(220, 53, 69, 0.7);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.25rem;
}

.btn:disabled {
    background-color: var(--color-gray);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.hidden {
    display: none;
}

