/*
Theme Name: Calculator.net.cn - GeneratePress Child
Description: Child theme for calculator.net.cn website
Author: Calculator.net.cn
Template: generatepress
Version: 1.0.0
Text Domain: generatepress-child
*/

/* Import parent theme styles */
@import url("../generatepress/style.css");

/* Calculator.net Clone Styles */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif !important;
    line-height: 1.4 !important;
    color: #333 !important;
    background: #e8e8e8 !important;
    margin: 0;
    padding: 0;
}

/* Override GeneratePress container */
.site {
    background: #e8e8e8 !important;
}

/* Hide GeneratePress default header elements */
.main-navigation,
.site-header .inside-header,
.generate-navigation-search,
.menu-toggle,
.site-header .site-branding:not(.global-header .site-branding),
.site-header .main-navigation,
.site-header .header-widget,
.site-header .navigation-branding {
    display: none !important;
}

/* Hide old custom header elements */
.custom-header,
.header-container:not(.global-header-container) {
    display: none !important;
}

/* Global Header - Matches Image Design */
.global-header {
    background: #1e4a72 !important;
    border-bottom: none !important;
    padding: 0 !important;
    position: relative !important;
    box-shadow: none !important;
    width: 100% !important;
    height: 60px !important;
}

.global-header::before,
.global-header::after {
    display: none !important;
}

.global-header-container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 40px !important;
    height: 60px !important;
    position: relative !important;
    z-index: 999 !important;
}

/* Site Branding - Left Side */
.global-header .site-branding {
    display: flex !important;
    align-items: center !important;
    height: 60px !important;
}

.global-header .site-branding .site-title {
    margin: 0 !important;
    font-size: 32px !important;
    font-weight: bold !important;
    line-height: 60px !important;
}

.global-header .site-branding .site-title a {
    text-decoration: none !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    height: 60px !important;
}

.global-header .site-branding .site-title a:hover {
    text-decoration: none !important;
    color: white !important;
}

/* Double Color Title Styles */
.global-header .site-title .title-part1 {
    color: white !important;
}

.global-header .site-title .title-part2 {
    color: #7cb342 !important;
}

/* Homepage Title Double Color */
.page-title .title-part1 {
    color: #1e4a72 !important;
}

.page-title .title-part2 {
    color: #7cb342 !important;
}

/* Global Navigation - Right Side */
.global-navigation {
    display: flex !important;
    align-items: center !important;
    height: 60px !important;
}

.global-nav-menu {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    height: 60px !important;
    align-items: center !important;
}

.global-nav-item {
    margin: 0 !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
}

.global-nav-item a {
    display: flex !important;
    align-items: center !important;
    color: white !important;
    text-decoration: none !important;
    padding: 0 25px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    transition: background-color 0.3s ease !important;
    border: none !important;
    height: 60px !important;
    white-space: nowrap !important;
}

.global-nav-item a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    text-decoration: none !important;
}

.global-nav-item.active a {
    background: #7cb342 !important;
    color: white !important;
}

/* Override any existing header styles */
.site-header {
    background: #1e4a72 !important;
    border-bottom: none !important;
    padding: 0 !important;
    position: relative !important;
    box-shadow: none !important;
}

/* Global Footer */
.site-footer {
    background: #000;
    color: #fff;
    padding: 20px 0;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section, .footer-section h3, .footer-section ul, .footer-section ul li { display:none !important; }

.footer-bottom {
    border-top: 1px solid #2c5282;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    margin: 0;
    color: #ccc;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Calculator Category Page Container - Moved to separate CSS file */

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #4a7c9a;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
    text-align: left;
}

.page-header .page-title {
    font-size: 32px;
    color: #1e4a72;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.page-header .page-description {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Calculator Grid Container */
.calculator-grid-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Calculator Posts Grid */
.calculator-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.calculator-post-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.calculator-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.calculator-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.calculator-post-card:hover .calculator-thumbnail img {
    transform: scale(1.05);
}

.calculator-content {
    padding: 20px;
}

.calculator-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: bold;
}

.calculator-title a {
    color: #1e4a72;
    text-decoration: none;
    transition: color 0.3s ease;
}

.calculator-title a:hover {
    color: #7cb342;
}

.calculator-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.calculator-link-btn {
    display: inline-block;
    background: #7cb342;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.calculator-link-btn:hover {
    background: #689f38;
    text-decoration: none;
    color: white;
}

.no-calculators {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-calculators p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.no-calculators a {
    color: #7cb342;
    text-decoration: none;
}

.no-calculators a:hover {
    text-decoration: underline;
}

/* Sidebar */
.calculator-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Sidebar Search */
.sidebar-search {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #4a7c9a;
    box-shadow: 0 0 0 2px rgba(74, 124, 154, 0.1);
}

.search-button {
    width: 100%;
    padding: 10px;
    background: #4a7c9a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-button:hover {
    background: #1e4a72;
}

/* Sidebar Widgets */
.sidebar-widget {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin: 0 0 15px 0;
    background: #4a7c9a;
    padding: 8px 12px;
    margin: -20px -20px 15px -20px;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-link {
    background: #f8fafc;
    color: #4a7c9a;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.quick-link:hover {
    background: #4a7c9a;
    color: white;
}

/* Category Navigation */
.category-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-link {
    color: #4a7c9a;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #f8fafc;
}

.nav-link.active {
    background: #4a7c9a;
    color: white;
}

/* Global Header Responsive */
@media (max-width: 1200px) {
    .global-header-container {
        padding: 0 20px !important;
    }
    
    .global-nav-item a {
        padding: 0 20px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 1024px) {
    .global-header-container {
        padding: 0 15px !important;
    }
    
    .global-header .site-branding .site-title {
        font-size: 28px !important;
    }
    
    .global-nav-item a {
        padding: 0 15px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {
    .global-header {
        height: auto !important;
        min-height: 60px !important;
    }
    
    .global-header-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
        height: auto !important;
        gap: 10px !important;
    }

    /* Mobile hamburger */
    .mobile-nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 36px;
        height: 30px;
        background: transparent;
        border: 1px solid rgba(255,255,255,0.4);
        border-radius: 4px;
        cursor: pointer;
    }
    .mobile-nav-toggle .bar {
        display: block;
        width: 20px;
        height: 2px;
        margin: 0 auto;
        background: #fff;
    }

    /* Hide menu by default on mobile */
    .global-nav-menu {
        display: none !important;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #1e4a72;
        flex-direction: column !important;
        padding: 10px 0 !important;
        z-index: 1000;
    }

    /* Show when toggled */
    .global-nav-menu.open {
        display: flex !important;
    }

    .global-nav-item a {
        height: 44px !important;
        padding: 0 15px !important;
        font-size: 14px !important;
        width: 100%;
    }
}

@media (min-width: 769px) {
    .mobile-nav-toggle { display: none; }
    .global-nav-menu { display: flex !important; position: static; }
}

@media (max-width: 480px) {
    .global-header-container {
        padding: 8px 10px !important;
    }
    
    .global-header .site-branding .site-title {
        font-size: 20px !important;
    }
    
    .global-nav-item a {
        height: 40px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
    }
}

/* Responsive Footer */
@media (max-width: 1024px) {
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .calculator-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .global-navigation .nav-item a {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .calculator-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calculator-grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .calculator-sidebar {
        order: -1;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .site-branding .site-title {
        font-size: 24px;
    }
    
    .global-navigation .nav-item a {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .calculator-content {
        padding: 15px;
    }
    
    .calculator-title {
        font-size: 16px;
    }
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    display: none;
}

.site-title {
    font-size: 36px !important;
    font-weight: normal !important;
    color: #fff !important;
    text-decoration: none !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.site-title a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 36px !important;
    font-weight: normal !important;
}

.site-title a:hover {
    color: #fff !important;
}

.header-right {
    color: #fff;
    font-size: 14px;
}

.sign-in-link {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

.sign-in-link:hover {
    text-decoration: underline !important;
}

/* Override GeneratePress content styles */
.site-content {
    padding: 0 !important;
    background: #e8e8e8 !important;
}

.content-area {
    width: 100% !important;
    float: none !important;
}

.site-main {
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide Sign In Link */
.sign-in-link,
.login-link,
a[href*="wp-login"],
a[href*="sign-in"],
a[href*="login"] {
    display: none !important;
}

/* Site Main Centering - homepage only */
.home .site-main,
.calculator-home .site-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Default for all other pages/posts */
body:not(.home) .site-main {
    display: block;
    justify-content: initial;
    align-items: initial;
    text-align: left;
}

/* Main Content Area */
.calculator-net-layout {
    background: #e8e8e8 !important;
    padding: 30px 0;
    min-height: 400px;
    text-align: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.calculator-net-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
}

/* Calculator Widget */
.calculator-widget {
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    width: 450px;
    flex-shrink: 0;
    text-align: left;
}

.calculator-display {
    background: #1e4a72 !important;
    color: #fff !important;
    padding: 10px 15px;
    text-align: right;
    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    margin-bottom: 10px;
    border-radius: 4px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border: 1px solid #1e4a72 !important;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
}

.radio-group {
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px;
}

.radio-group input[type="radio"] {
    margin: 0 2px 0 0;
    transform: scale(0.8);
}

.radio-group label {
    margin: 0;
    font-size: 10px;
    color: #333;
}

.calc-btn {
    background: #f0f0f0 !important;
    border: 1px solid #ccc !important;
    padding: 8px 4px !important;
    font-size: 11px !important;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s;
    color: #333 !important;
    text-align: center;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif !important;
}

.calc-btn:hover {
    background: #e0e0e0 !important;
}

.calc-btn.number {
    background: #e8e8e8 !important;
}

.calc-btn.operator {
    background: #d0d0d0 !important;
}

.calc-btn.function {
    background: #f0f0f0 !important;
}

.calc-btn.equals {
    background: #d0d0d0 !important;
}

/* Keyboard pressed visual feedback */
.calc-btn.keyboard-pressed {
    background: #1e4a72 !important;
    color: white !important;
    transform: scale(0.95);
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.3) !important;
}

/* Toggle Button Styling */
.calc-toggle-btn {
    position: absolute !important;
    top: -35px !important;
    right: 10px !important;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    cursor: pointer !important;
    font-size: 18px !important;
    font-weight: bold !important;
    z-index: 1002 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.calc-toggle-btn:hover {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.6) !important;
    transform: scale(1.1) !important;
}

/* Calculator Controls Styling */
.calc-controls {
    gap: 8px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,0.95) !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-bottom: none !important;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1) !important;
    position: absolute !important;
    top: -45px !important;
    right: 0 !important;
    z-index: 1001 !important;
    display: none;
}

.calc-controls button {
    font-family: Arial, sans-serif !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    font-weight: bold !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    min-width: 32px !important;
}

.calc-controls button:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
    transform: translateY(-2px) scale(1.08) !important;
}

.calc-controls button:active {
    transform: translateY(0) scale(0.95) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

/* Size display styling */
.size-display {
    font-family: 'Courier New', monospace !important;
    letter-spacing: 1px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
    position: absolute !important;
    top: -45px !important;
    left: 10px !important;
    background: rgba(30, 74, 114, 0.9) !important;
    color: white !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    z-index: 1001 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
}

/* Calculator Display Enhanced Styling */
.calculator-display {
    background: #000 !important;
    color: #00ff00 !important;
    padding: 10px 15px !important;
    font-family: 'Courier New', 'Consolas', monospace !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-align: right !important;
    border: 2px solid #333 !important;
    border-radius: 6px !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.2s ease !important;
}

/* Small text styling for long numbers */
.calculator-display.small-text {
    color: #ffff00 !important;
    background: linear-gradient(135deg, #001a00 0%, #003300 100%) !important;
    box-shadow: inset 0 2px 4px rgba(255, 255, 0, 0.2) !important;
}

/* Custom scrollbar for display */
.calculator-display::-webkit-scrollbar {
    height: 4px !important;
}

.calculator-display::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1) !important;
    border-radius: 2px !important;
}

.calculator-display::-webkit-scrollbar-thumb {
    background: #00ff00 !important;
    border-radius: 2px !important;
}

.calculator-display::-webkit-scrollbar-thumb:hover {
    background: #00cc00 !important;
}

/* Display animation for updates */
@keyframes displayUpdate {
    0% { background-color: #000; }
    50% { background-color: #001100; }
    100% { background-color: #000; }
}

.calculator-display.updating {
    animation: displayUpdate 0.3s ease-in-out !important;
}

/* Slide down animation for controls */
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-controls {
    animation: slideDown 0.3s ease-out;
}

/* Calculator scaling container */
.calculator-widget {
    transform-origin: top left !important;
    transition: transform 0.3s ease-in-out !important;
    margin-top: 50px !important;
    position: relative !important;
}

/* Ensure calculator container has relative positioning for controls */
.calculator-container {
    position: relative !important;
    margin-top: 50px !important;
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
    .calc-toggle-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 16px !important;
        top: -32px !important;
        right: 8px !important;
    }
    
    .calc-controls {
        flex-direction: row !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        padding: 6px 8px !important;
        top: -40px !important;
    }
    
    .calc-controls button {
        font-size: 11px !important;
        padding: 4px 6px !important;
        min-width: 28px !important;
    }
    
    .size-display {
        font-size: 10px !important;
        padding: 4px 6px !important;
        top: -40px !important;
    }
    
    .calculator-widget,
    .calculator-container {
        margin-top: 45px !important;
    }
    
    .calculator-display {
        padding: 8px 12px !important;
        font-size: 16px !important;
        min-height: 36px !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .calc-controls button {
        border: 2px solid !important;
    }
    
    .keyboard-help-btn {
        border-color: #1e4a72 !important;
    }
    
    .size-control-btn {
        border-color: #4a7c59 !important;
    }
}

/* Right Side Content */

/* Home SEO section - full width block below categories */
.home-seo-section {
    background: #e8e8e8 !important;
    color: #333 !important;
    width: 100%;
    display: block;
    clear: both; /* ensure it starts on a new row regardless of floats */
}
.home-seo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 40px;
}
/* Center and round the first image at the top of homepage content */
body.home .home-seo-content img:first-of-type,
body.front-page .home-seo-content img:first-of-type,
body.home .right-content img:first-of-type,
body.front-page .right-content img:first-of-type {
    display: block !important;
    margin: 0 auto 16px !important;
    width: 160px !important;
    height: 160px !important;
    border-radius: 50% !important; /* make circle */
    object-fit: cover !important;
}
.home-about-box {
    max-width: 1200px;
    margin: 0 auto 20px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 16px 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.home-about-box h2 {
    margin: 0;
    font-size: 22px;
    color: #1e4a72;
}
.home-seo-content { text-align: left; max-width: 1200px; margin: 0 auto; }
.home-seo-section a { color: #1e4a72; }
.home-seo-section h1, .home-seo-section h2, .home-seo-section h3, .home-seo-section h4, .home-seo-section h5, .home-seo-section h6 { color: #1e4a72; }
.home-seo-section p { color: #333; }

/* Hide any default WP content that may render in top flex area on the homepage */
body.home .calculator-net-container .entry-content,
body.front-page .calculator-net-container .entry-content,
body.page-template-front-page-php .calculator-net-container .entry-content,
body.home .calculator-net-container article,
body.front-page .calculator-net-container article,
body.page-template-front-page-php .calculator-net-container article,
body.home .calculator-net-container .inside-article,
body.front-page .calculator-net-container .inside-article,
body.page-template-front-page-php .calculator-net-container .inside-article,
body.home .right-content .entry-content,
body.front-page .right-content .entry-content,
body.page-template-front-page-php .right-content .entry-content,
body.home .right-content article,
body.front-page .right-content article,
body.page-template-front-page-php .right-content article,
body.home .right-content .inside-article,
body.front-page .right-content .inside-article,
body.page-template-front-page-php .right-content .inside-article,
body.home .right-content .entry-title,
body.front-page .right-content .entry-title,
body.page-template-front-page-php .right-content .entry-title { display: none !important; }
.right-content {
    flex: 1;
    text-align: left;
}

/* keep right column visible on home; only content will live in SEO section below categories */
/* Guard: ensure only title + search show in right column */
body.home .right-content > *:not(.page-title):not(.search-container) { display: none !important; }
/* Extra: block any WP content wrappers if injected */
body.home .right-content .entry-content,
body.home .right-content article,
body.home .right-content .inside-article,
body.home .right-content .wp-block-post-content { display:none !important; }

/* Remove any content from right column except title + search (homepage) */
body.home .right-content > :not(.page-title):not(.search-container) { display: none !important; }
body.front-page .right-content > :not(.page-title):not(.search-container) { display: none !important; }
body.page-template-front-page-php .right-content > :not(.page-title):not(.search-container) { display: none !important; }

/* Strict: allow ONLY .calculator-widget and .right-content in the top container */
body.home .calculator-net-container > *:not(.calculator-widget):not(.right-content),
body.front-page .calculator-net-container > *:not(.calculator-widget):not(.right-content),
body.page-template-front-page-php .calculator-net-container > *:not(.calculator-widget):not(.right-content) { display: none !important; }

.page-title {
    font-size: 28px !important;
    font-weight: bold !important;
    margin-bottom: 20px !important;
    color: #1e4a72 !important;
    line-height: 1.2 !important;
}

.search-container {
    margin-bottom: 40px;
    display: flex;
    gap: 0;
    max-width: 400px;
}

.search-box {
    padding: 8px 12px !important;
    font-size: 14px !important;
    border: 1px solid #ccc !important;
    border-right: none !important;
    border-radius: 3px 0 0 3px !important;
    flex: 1;
    outline: none !important;
    background: #fff !important;
    color: #333 !important;
}

.search-btn {
    background: #1e4a72 !important;
    color: #fff !important;
    border: 1px solid #1e4a72 !important;
    padding: 8px 15px !important;
    font-size: 14px !important;
    cursor: pointer;
    border-radius: 0 3px 3px 0 !important;
    font-family: Arial, sans-serif !important;
}

.search-btn:hover {
    background: #2a5a82 !important;
}

/* Calculator Categories Section - Below Calculator */
.calculator-categories-section {
    background: #e8e8e8 !important;
    color: #333 !important;
    padding: 40px 0;
    width: 100%;
    clear: both;
    text-align: center;
}

/* Center title + search inline and centered */
.page-title { text-align: center; }
.search-container { justify-content: center; margin-left: auto; margin-right: auto; }

/* Colors and font sizes per your design */
.calculator-categories-section a { color: #0066cc !important; } /* blue links */
.calculator-categories-section .category-title a { color: #4a7c59 !important; } /* green heading */

.calculator-categories {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100% !important;
    clear: both !important;
    justify-items: center; /* center each column */
}

.category-card {
    background: transparent !important;
    border: none !important;
    text-align: center; /* center heading + list */
    display: block !important;
    width: 100% !important;
    max-width: 280px;
}
/* Heading font-size 18, list font-size 15 */
.category-card .category-title { font-size: 18px !important; margin-bottom: 8px; }
.category-card .calculator-list a { font-size: 15px !important; color: #0066cc !important; }
.category-card .calculator-list a:hover { color: #004c99 !important; text-decoration: underline !important; }
.seo-card .home-seo-content { color: #333; text-align: left; padding: 10px 0 0; }

/* Show category images */
.category-image { 
    display: flex !important; 
    justify-content: center !important; 
    align-items: center !important; 
    margin: 0 auto 12px !important; 
    width: 120px !important; 
    height: 120px !important; 
    border-radius: 50% !important; 
    background: #d9d9d9 !important; /* light gray background like screenshot */
    overflow: hidden !important; /* clip image to circle */
}
.category-image img { 
    display: block !important; 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    border-radius: 50% !important; 
}

.category-title {
    font-size: 18px !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
    color: #4a7c59 !important;
    line-height: 1.2 !important;
}

.category-title a {
    color: #4a7c59 !important;
    text-decoration: none !important;
}

.category-title a:hover {
    color: #2d5233 !important;
}

.calculator-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center; /* center list under heading */
}

.calculator-list li {
    margin-bottom: 5px !important;
    padding: 0 !important;
}

.calculator-list li::before {
    display: none !important;
}

.calculator-list a {
    color: #1e4a72 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.calculator-list a:hover {
    text-decoration: underline !important;
}

/* Footer */
.site-footer {
    background: #000 !important;
    color: #fff !important;
    padding: 40px 0 20px !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-net-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .calculator-widget {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .right-content {
        text-align: center;
        width: 100%;
        max-width: 450px;
    }
    
    .calculator-categories {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        justify-items: center;
    }
    
    .calculator-categories-section {
        padding: 30px 0;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 28px !important;
    }
    
    .calculator-categories {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        justify-items: center;
    }
    
    .calculator-net-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 15px;
    }
    
    .right-content {
        text-align: center;
        width: 100%;
    }
    
    .calculator-widget {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        background: #fff !important;
        border: 2px solid #ddd !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        padding: 15px;
    }
    
    .calculator-buttons {
        grid-template-columns: repeat(10, 1fr);
        gap: 2px;
    }
    
    .calc-btn {
        padding: 8px 2px !important;
        font-size: 10px !important;
        min-height: 32px;
        border-radius: 3px;
        font-weight: normal !important;
    }
    
    .calc-btn.number {
        background: #e8e8e8 !important;
        color: #333 !important;
    }
    
    .calc-btn.operator {
        background: #d0d0d0 !important;
        color: #333 !important;
    }
    
    .calc-btn.function {
        background: #f0f0f0 !important;
        color: #333 !important;
    }
    
    .calc-btn.equals {
        background: #d0d0d0 !important;
        color: #333 !important;
    }
    
    .radio-group {
        grid-column: span 2;
        font-size: 8px;
        padding: 4px 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
    }
    
    .radio-group input[type="radio"] {
        transform: scale(0.7);
        margin: 0 1px 0 0;
    }
    
    .radio-group label {
        font-size: 8px;
        margin: 0;
    }
    
    .calculator-display {
        font-size: 20px !important;
        min-height: 45px;
        padding: 12px 15px;
        background: #4a7c9a !important;
        color: #fff !important;
        border: 2px solid #4a7c9a !important;
        border-radius: 6px !important;
        font-weight: bold !important;
        text-align: right !important;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .calculator-net-container {
        padding: 0 10px;
        align-items: center;
    }
    
    .calculator-widget {
        padding: 12px;
        max-width: 340px;
        margin: 0 auto;
    }
    
    .right-content {
        text-align: center;
        width: 100%;
    }
    
    .calculator-display {
        font-size: 18px !important;
        min-height: 40px;
        padding: 10px 12px;
        background: #4a7c9a !important;
        color: #fff !important;
        border: 2px solid #4a7c9a !important;
        border-radius: 6px !important;
        font-weight: bold !important;
        text-align: right !important;
        margin-bottom: 6px;
    }
    
    .calculator-buttons {
        grid-template-columns: repeat(10, 1fr);
        gap: 1px;
    }
    
    .calc-btn {
        padding: 6px 1px !important;
        font-size: 9px !important;
        min-height: 28px;
        border-radius: 2px;
        font-weight: normal !important;
    }
    
    .calc-btn.number {
        background: #e8e8e8 !important;
        color: #333 !important;
    }
    
    .calc-btn.operator {
        background: #d0d0d0 !important;
        color: #333 !important;
    }
    
    .calc-btn.function {
        background: #f0f0f0 !important;
        color: #333 !important;
    }
    
    .calc-btn.equals {
        background: #d0d0d0 !important;
        color: #333 !important;
    }
    
    .radio-group {
        grid-column: span 2;
        padding: 4px 1px;
        font-size: 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }
    
    .radio-group input[type="radio"] {
        transform: scale(0.6);
        margin: 0;
    }
    
    .radio-group label {
        font-size: 7px;
        margin: 0;
    }
    
    .search-container {
        flex-direction: column;
        gap: 10px;
        max-width: 300px;
    }
}

/* Financial Calculators Page Styles - Moved to separate CSS file */

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #4a7c9a;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.page-header .page-title {
    font-size: 32px;
    color: #2c5282;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.page-header .page-description {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Main Grid Container */
.calculator-grid-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Calculator Categories Grid */
.calculator-categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Category Section */
.calculator-category-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-heading {
    font-size: 18px;
    font-weight: bold;
    color: #2c5282;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

/* Calculator Links */
.calculator-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calculator-link {
    color: #4a7c9a;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.calculator-link:hover {
    color: #2c5282;
    text-decoration: underline;
    padding-left: 5px;
}

/* Sidebar */
.calculator-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Sidebar Search */
.sidebar-search {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.search-input:focus {
    outline: none;
    border-color: #4a7c9a;
    box-shadow: 0 0 0 2px rgba(74, 124, 154, 0.1);
}

.search-button {
    width: 100%;
    padding: 10px;
    background: #4a7c9a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-button:hover {
    background: #2c5282;
}

/* Sidebar Widgets */
.sidebar-widget {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c5282;
    margin: 0 0 15px 0;
    background: #4a7c9a;
    color: white;
    padding: 8px 12px;
    margin: -20px -20px 15px -20px;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-link {
    background: #f8fafc;
    color: #4a7c9a;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.quick-link:hover {
    background: #4a7c9a;
    color: white;
}

.more-link {
    background: #2c5282;
    color: white;
}

.more-link:hover {
    background: #1a365d;
}

/* Category Navigation */
.category-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-link {
    color: #4a7c9a;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #f8fafc;
}

.nav-link.active {
    background: #4a7c9a;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .calculator-categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calculator-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .calculator-category-page .container {
        padding: 0 15px;
    }
    
    .page-header .page-title {
        font-size: 24px;
    }
    
    .calculator-category-section {
        padding: 15px;
    }
    
    .sidebar-search,
    .sidebar-widget {
        padding: 15px;
    }
    
    .widget-title {
        margin: -15px -15px 15px -15px;
    }
}

@media (max-width: 480px) {
    .calculator-category-page {
        padding: 10px 0;
    }
    
    .page-header .page-title {
        font-size: 20px;
    }
    
    .calculator-category-section {
        padding: 12px;
    }
    
    .category-heading {
        font-size: 16px;
    }
    
    .calculator-link {
        font-size: 13px;
    }
}
    
    .search-box,
    .search-btn {
        border-radius: 3px !important;
        border: 1px solid #ccc !important;
    }
    
    .page-title {
        font-size: 22px !important;
        text-align: center;
        margin-bottom: 15px !important;
    }
    
    .right-content {
        text-align: center;
    }
}

/* Fix GeneratePress conflicts */
.generate-columns-container {
    display: block !important;
}

.inside-article {
    padding: 0 !important;
}

.entry-content {
    margin: 0 !important;
}

.entry-header {
    display: none !important;
}

/* Container fixes */
.container,
.grid-container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove GeneratePress spacing */
.separate-containers .inside-article {
    padding: 0 !important;
}

.separate-containers .site-main {
    margin: 0 !important;
}

/* Ensure proper stacking */
.site-header {
    z-index: 999 !important;
    position: relative !important;
}

.site-content {
    z-index: 1 !important;
    position: relative !important;
}

/* Mortgage Calculator Page Styles */

/* Override GeneratePress for mortgage calculator page */
.mortgage-calculator-page {
    background: #fff !important;
}

.mortgage-calculator-page .site-content {
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
}

.mortgage-calculator-page .content-area {
    width: 100% !important;
    float: none !important;
    background: #fff !important;
}

.mortgage-calculator-page .site-main {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
}

.mortgage-calculator-page .inside-article {
    padding: 0 !important;
}

.mortgage-calculator-page .entry-content {
    margin: 0 !important;
}

.mortgage-calculator-page .entry-header {
    display: none !important;
}

/* Hide homepage elements on mortgage calculator page */
.mortgage-calculator-page .calculator-net-layout,
.mortgage-calculator-page .calculator-net-container,
.mortgage-calculator-page .calculator-widget,
.mortgage-calculator-page .right-content {
    display: none !important;
}

/* Generic container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Breadcrumb styles */
.breadcrumb { background: #f7f7f7; border-bottom: 1px solid #e2e2e2; }
.breadcrumb .container { padding: 10px 20px; }
.breadcrumb a { color: #1e4a72; text-decoration: none; }
.breadcrumb .sep { margin: 0 6px; color: #999; }
.breadcrumb .current { color: #333; }

/* Removed non-homepage templates CSS: content-right-sidebar + right-only */

/* Navigation Menu */
.calculator-nav {
    background: #1e4a72 !important;
    padding: 0 !important;
    border-bottom: 1px solid #ddd;
    width: 100%;
    clear: both;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 20px;
}

.nav-item {
    background: #5a7a92 !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    border-right: 1px solid #4a6a82;
    transition: background-color 0.3s;
}

.nav-item:hover {
    background: #4a6a82 !important;
}

.nav-item.active {
    background: #7ba428 !important;
}

/* Breadcrumb */
.breadcrumb-container {
    background: #f8f8f8;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.breadcrumb-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb {
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #1e4a72 !important;
    text-decoration: none !important;
}

.breadcrumb a:hover {
    text-decoration: underline !important;
}

.print-link a {
    color: #1e4a72 !important;
    text-decoration: none !important;
    font-size: 13px;
}

.print-link a:hover {
    text-decoration: underline !important;
}

/* Main Layout */
.mortgage-calculator-page {
    background: #fff !important;
    padding: 0 !important;
}

.mortgage-calculator-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
}

.calculator-container {
    flex: 1;
}

.calculator-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* Page Title */
.page-title {
    font-size: 32px !important;
    color: #1e4a72 !important;
    margin-bottom: 20px !important;
    font-weight: bold !important;
}
/* Extra guard: suppress any WP content injected into the right column */
body.home .right-content h1:not(.page-title),
body.home .right-content h2,
body.home .right-content h3,
body.home .right-content p,
body.home .right-content .wp-block-post-content,
body.home .right-content .entry-content,
body.home .right-content article,
body.home .right-content .post { display: none !important; }

/* Calculator Instructions */
.calculator-instructions {
    background: #4a7c9a !important;
    color: #fff !important;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
}

.instruction-icon {
    font-size: 16px;
}

.instruction-text {
    font-size: 14px;
}

/* Calculator Content */
.calculator-content {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.calculator-form {
    width: 400px;
    flex-shrink: 0;
}

.calculator-results {
    flex: 1;
}

/* Form Styles */
.form-section {
    background: #f8f8f8;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row label {
    width: 120px;
    font-size: 13px;
    color: #333;
    text-align: right;
    flex-shrink: 0;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.help-icon {
    color: #666;
    cursor: help;
    font-size: 12px;
}

.form-input {
    padding: 6px 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    background: #fff !important;
    color: #333 !important;
}

.form-input.small {
    width: 80px;
}

.form-select {
    padding: 6px 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    background: #fff !important;
    color: #333 !important;
}

.form-text {
    font-size: 13px;
    color: #333;
}

/* Checkbox Row */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.checkbox-row input[type="checkbox"] {
    margin: 0;
}

.checkbox-row label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    width: auto;
    text-align: left;
}

/* Taxes Section */
.taxes-section h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

/* More Options */
.more-options {
    text-align: center;
    margin-top: 15px;
}

.more-options a {
    color: #1e4a72 !important;
    text-decoration: none !important;
    font-size: 13px;
}

.more-options a:hover {
    text-decoration: underline !important;
}

/* Button Section */
.button-section {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.calculate-btn {
    background: #7ba428 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calculate-btn:hover {
    background: #6a9320 !important;
}

.play-icon {
    font-size: 12px;
}

.clear-btn {
    background: #ccc !important;
    color: #333 !important;
    border: none !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    border-radius: 4px !important;
    cursor: pointer;
}

.clear-btn:hover {
    background: #bbb !important;
}

/* Monthly Payment Display */
.monthly-payment-display {
    background: #7ba428 !important;
    color: #fff !important;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-label {
    font-size: 16px;
    font-weight: bold;
}

.payment-amount {
    font-size: 24px;
    font-weight: bold;
}

.payment-icon {
    font-size: 20px;
}

/* Results Table */
.results-table {
    margin-bottom: 20px;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.results-table th {
    background: #f0f0f0;
    padding: 8px 12px;
    text-align: left;
    border: 1px solid #ddd;
    font-weight: bold;
}

.results-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: right;
}

.results-table td:first-child {
    text-align: left;
}

.results-table .total-row {
    background: #f0f0f0;
}

/* Pie Chart Container */
.pie-chart-container {
    margin-bottom: 20px;
    text-align: center;
}

.chart-legend {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.principal {
    background: #4472C4;
}

.legend-color.property-tax {
    background: #70AD47;
}

.legend-color.insurance {
    background: #C5504B;
}

.legend-color.other {
    background: #5B9BD5;
}

/* Summary Info */
.summary-info {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.summary-label {
    color: #333;
}

.summary-value {
    font-weight: bold;
    color: #333;
}

/* Mortgage Rates */
.mortgage-rates {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.mortgage-rates h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}

.rates-info {
    font-size: 13px;
}

.rates-info a {
    color: #1e4a72 !important;
    text-decoration: none !important;
}

.rates-info a:hover {
    text-decoration: underline !important;
}

/* Sidebar Styles */
.sidebar-search {
    display: flex;
    margin-bottom: 20px;
    gap: 0;
}

.search-input {
    flex: 1;
    padding: 8px 12px !important;
    border: 1px solid #ccc !important;
    border-right: none !important;
    border-radius: 3px 0 0 3px !important;
    font-size: 14px !important;
    background: #fff !important;
    color: #333 !important;
}

.search-button {
    background: #1e4a72 !important;
    color: #fff !important;
    border: 1px solid #1e4a72 !important;
    padding: 8px 15px !important;
    font-size: 14px !important;
    cursor: pointer;
    border-radius: 0 3px 3px 0 !important;
}

.search-button:hover {
    background: #2a5a82 !important;
}

/* Sidebar Section */
.sidebar-section {
    background: #4a7c9a !important;
    margin-bottom: 20px;
    border-radius: 4px;
}

.sidebar-title {
    background: #4a7c9a !important;
    color: #fff !important;
    padding: 12px 15px !important;
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 4px 4px 0 0;
}

.calculator-links {
    background: #fff;
    padding: 15px;
    border-radius: 0 0 4px 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.calc-link {
    color: #1e4a72 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    padding: 2px 0;
    line-height: 1.4;
}

.calc-link:hover {
    text-decoration: underline !important;
}

.calc-link.active {
    font-weight: bold !important;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tab-link {
    background: #f0f0f0 !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-radius: 3px !important;
    border: 1px solid #ddd;
}

.tab-link:hover {
    background: #e0e0e0 !important;
}

.tab-link.active {
    background: #1e4a72 !important;
    color: #fff !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .mortgage-calculator-layout {
        padding: 15px;
    }
}

@media (max-width: 1024px) {
    .mortgage-calculator-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .calculator-sidebar {
        width: 100%;
        order: -1; /* Move sidebar to top on mobile */
    }
    
    .calculator-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .calculator-form {
        width: 100%;
    }
    
    .nav-container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-item {
        flex: 1;
        text-align: center;
        min-width: 100px;
        padding: 10px 15px !important;
        font-size: 12px !important;
    }
    
    .calculator-links {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .chart-legend {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .mortgage-calculator-layout {
        padding: 10px;
    }
    
    .page-title {
        font-size: 24px !important;
        text-align: center;
    }
    
    .calculator-instructions {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .form-row label {
        width: 100%;
        text-align: left;
        font-weight: bold;
    }
    
    .form-input, .form-select {
        width: 100% !important;
        max-width: 200px;
    }
    
    .results-table {
        overflow-x: auto;
    }
    
    .results-table table {
        min-width: 300px;
        font-size: 12px;
    }
    
    .monthly-payment-display {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .payment-amount {
        font-size: 20px !important;
    }
    
    .summary-row {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .breadcrumb-container .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-item {
        min-width: 80px;
        padding: 8px 10px !important;
        font-size: 11px !important;
    }
    
    .mortgage-calculator-layout {
        padding: 5px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .button-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .calculate-btn, .clear-btn {
        width: 100%;
        justify-content: center;
    }
    
    .sidebar-search {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input, .search-button {
        border-radius: 3px !important;
        border: 1px solid #ccc !important;
    }
    
    .category-tabs {
        justify-content: center;
    }
    
    .tab-link {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }
}

.category-post-box {
  border: 2px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  max-width: 400px;
  margin: 15px auto;
  background: #f9f9f9;
}

.cat-heading-box {
  display: inline-block;
  background-color: #0073aa; /* Blue */
  color: #fff;              /* White text */
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.post-list-box {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

.post-list-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list-box li {
  margin: 6px 0;
  padding: 6px;
  border-bottom: 1px solid #eee;
}

.post-list-box li a {
  text-decoration: none;
  color: #0073aa;
}

.post-list-box li a:hover {
  text-decoration: underline;
}
