/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5f7a;
    --secondary-color: #159895;
    --accent-color: #57c5b6;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.tagline {
    font-size: 14px;
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 5px 0;
}

.nav a:hover {
    opacity: 0.8;
    border-bottom: 2px solid white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a5f7a 0%, #159895 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, background 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 13px;
    opacity: 0.85;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-light {
    background-color: var(--bg-light);
}

.section h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-intro {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.content-main h3 {
    font-size: 24px;
    margin: 25px 0 15px;
    color: var(--primary-color);
}

.content-main p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.info-box {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.info-box h3 {
    color: white;
    margin: 0 0 10px 0;
}

/* Rate History */
.rate-history {
    margin-top: 20px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.history-item .date {
    font-weight: 500;
    flex: 1;
}

.history-item .rate {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    flex: 1;
    text-align: center;
}

.status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-hold {
    background: #e3f2fd;
    color: #1976d2;
}

/* Sidebar */
.sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.sidebar-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.sidebar-card .highlight {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.sidebar-card ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Comparison Cards */
.rate-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.comparison-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.comparison-card.featured {
    border: 2px solid var(--accent-color);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.comparison-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.rate-range {
    margin-bottom: 20px;
}

.rate-large {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.rate-type {
    font-size: 14px;
    color: var(--text-light);
}

.comparison-card ul {
    list-style: none;
}

.comparison-card ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.comparison-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Savings Grid */
.savings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.savings-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.savings-card:hover {
    transform: translateY(-5px);
}

.savings-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.savings-rate {
    font-size: 30px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.features {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-tag {
    background: var(--bg-light);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

/* Calculator */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-top: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.input-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.input-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--bg-light);
    outline: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
}

.input-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
    border: none;
}

.btn-calculate {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.calculator-results {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
}

.calculator-results h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-label {
    font-weight: 500;
    color: var(--text-light);
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.disclaimer {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}

/* Blog Preview Cards (Homepage) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-preview-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-preview-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px;
}

.blog-preview-header h3 {
    font-size: 20px;
    margin: 0;
    line-height: 1.3;
    color: white;
}

.blog-preview-content {
    padding: 20px 25px;
    flex: 1;
}

.blog-preview-content p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-dark);
}

.blog-preview-footer {
    padding: 0 25px 25px;
}

.blog-read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.blog-read-more:hover {
    color: var(--primary-color);
}

/* Individual Blog Post Pages */
.blog-post-page {
    padding: 40px 0 60px;
}

.blog-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-light);
}

.blog-breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    text-decoration: underline;
}

.blog-breadcrumb span {
    color: var(--text-dark);
}

.blog-post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent-color);
}

.blog-post-header h1 {
    font-size: 36px;
    color: var(--primary-color);
    line-height: 1.3;
    margin: 0;
}

.blog-post-content {
    max-width: 900px;
    font-size: 17px;
    line-height: 1.8;
}

.blog-post-content .lead {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
}

.blog-post-content h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin: 40px 0 20px;
    line-height: 1.3;
}

.blog-post-content p {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.blog-post-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.blog-post-content h4 {
    font-size: 20px;
    color: var(--secondary-color);
    margin: 25px 0 15px;
}

.blog-post-content ul, .blog-post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-post-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.blog-cta {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.blog-cta h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.blog-cta p {
    color: white;
    margin-bottom: 20px;
    opacity: 0.95;
}

.btn-primary {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.btn-back {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}

.btn-back:hover {
    background: var(--secondary-color);
    color: white;
}

/* SEO Content Section */
.seo-content {
    background: white;
}

.content-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.content-columns h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin: 20px 0 15px;
}

.content-columns p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.email-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.email-link:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.8;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .calculator-container {
        grid-template-columns: 1fr;
    }

    .content-columns {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 32px;
    }

    .section h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        margin-top: 15px;
        justify-content: center;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .stat-value {
        font-size: 28px;
    }

    .rate-comparison {
        grid-template-columns: 1fr;
    }

    .savings-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* =============================================
   ADSENSE COMPLIANCE & NEW COMPONENT STYLES
   ============================================= */

/* Breadcrumb Navigation */
.breadcrumb-section {
    background-color: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Tool Introduction Section */
.tool-intro {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-color);
}

.tool-intro h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tool-intro p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.tool-intro p:last-child {
    margin-bottom: 0;
}

/* Calculator Guide & FAQ */
.calculator-guide {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.calculator-guide h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.calculator-guide p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.faq-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.faq-item {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.faq-item p {
    margin-bottom: 0;
    color: var(--text-dark);
    line-height: 1.7;
}

.faq-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Blog Badge */
.blog-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* View All Articles Button */
.view-all-articles {
    text-align: center;
    margin-top: 40px;
}

.btn-view-all {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Legal Pages (Privacy, Terms) */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.last-updated {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 40px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.legal-section h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin: 20px 0 10px;
}

.legal-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-section ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-section a {
    color: var(--secondary-color);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Contact Page */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.contact-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.contact-hero p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info > p {
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.contact-methods {
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 15px;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-details h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.6;
}

.contact-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-topics h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-topics ul {
    list-style: none;
}

.contact-topics ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.6;
}

.contact-topics ul li:last-child {
    border-bottom: none;
}

.contact-sidebar .sidebar-card {
    margin-bottom: 25px;
}

.contact-sidebar .sidebar-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-sidebar .sidebar-card p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 15px;
}

.quick-links-list {
    list-style: none;
}

.quick-links-list li {
    padding: 8px 0;
}

.quick-links-list li a {
    color: var(--secondary-color);
    text-decoration: none;
}

.quick-links-list li a:hover {
    text-decoration: underline;
}

.contact-cta .btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* FAQ Grid (Contact Page) */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.faq-grid .faq-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.faq-grid .faq-item h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.faq-grid .faq-item p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* About Page */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.about-hero .hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.about-main h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin: 40px 0 20px;
}

.about-main h2:first-child {
    margin-top: 0;
}

.lead-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-main p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.about-main ul {
    margin: 15px 0 25px;
    padding-left: 25px;
}

.about-main ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.about-main a {
    color: var(--secondary-color);
    text-decoration: none;
}

.about-main a:hover {
    text-decoration: underline;
}

.features-list {
    margin: 30px 0;
}

.feature-block {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
}

.feature-block h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-block p {
    margin-bottom: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.value-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.value-item h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.value-item p {
    margin-bottom: 0;
    color: var(--text-dark);
}

.about-sidebar .sidebar-card {
    margin-bottom: 25px;
}

.about-sidebar .sidebar-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.facts-list {
    list-style: none;
}

.facts-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.facts-list li:last-child {
    border-bottom: none;
}

.view-all-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.view-all-link:hover {
    text-decoration: underline;
}

.contact-card .btn-primary {
    display: inline-block;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* CTA Block */
.cta-block {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-block h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cta-block p {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: background 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Blog Index Page */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.blog-hero .hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.blog-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blog-intro p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* Featured Article */
.featured-article {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--accent-color);
}

.featured-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-article h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.featured-article h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.featured-article h3 a:hover {
    color: var(--secondary-color);
}

.featured-article p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.btn-read-more {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-read-more:hover {
    transform: translateY(-2px);
}

/* Blog Grid Full */
.blog-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid var(--border-color);
}

.blog-category {
    display: inline-block;
    background: var(--bg-light);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-card-content {
    padding: 15px 25px;
    flex: 1;
}

.blog-card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-card-content h3 a:hover {
    color: var(--secondary-color);
}

.blog-card-content p {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.7;
}

.blog-card-footer {
    padding: 15px 25px 25px;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.category-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.category-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.category-card ul {
    list-style: none;
}

.category-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-card ul li:last-child {
    border-bottom: none;
}

.category-card ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
}

.category-card ul li a:hover {
    text-decoration: underline;
}

/* Blog CTA Section */
.blog-cta-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: white;
}

.blog-cta-section h2 {
    color: white;
    margin-bottom: 15px;
}

.blog-cta-section p {
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.7;
}

.blog-cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
}

/* Active Nav Link */
.nav a.active {
    border-bottom: 2px solid white;
}

/* Responsive Additions */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid-full {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero h1,
    .about-hero h1,
    .blog-hero h1 {
        font-size: 32px;
    }

    .featured-article {
        padding: 25px;
    }

    .featured-article h3 {
        font-size: 22px;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto 15px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tool-intro,
    .calculator-guide {
        padding: 20px;
    }
}
