/*
Theme Name: Insurance Pro SEO
Theme URI: https://claimsettlementhub.com/
Author: Claim Settlement Hub
Author URI: https://claimsettlementhub.com/
Description: A high-performance, professional WordPress theme for insurance and legal resource sites.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: insurance-pro
*/

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #f8fafc;
}

p, a, span, h1, h2, h3, h4, h5, h6, li, td, th {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

img, video, iframe, pre, code {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 24px;
    box-sizing: border-box;
}

header {
    background: #091b31;
    color: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid #1e2d42;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header #branding .brand-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

header #branding .brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

header #branding .brand-title .highlight {
    color: #ffffff;
}

header #branding .brand-subtitle {
    font-size: 9px;
    color: #94a3b8;
    text-transform: uppercase;
    display: block;
    margin-top: 3px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

header #branding .shield-icon {
    font-size: 11px;
    margin-right: 2px;
}

.header-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.header-nav li {
    padding: 0 12px;
}

.header-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: color 0.15s ease;
}

.header-nav a:hover {
    color: #ffffff;
}

.nav-arrow {
    font-size: 8px;
    color: #64748b;
    margin-left: 2px;
}

/* Header Submenu Dropdown CSS */
.header-nav .dropdown-item {
    position: relative;
}

.header-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #091b31;
    border: 1px solid #1e2d42;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 240px;
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    z-index: 100;
    flex-direction: column;
    align-items: flex-start;
}

.header-nav .dropdown-item:hover .dropdown-menu {
    display: flex;
}

.header-nav .dropdown-menu li {
    padding: 0;
    width: 100%;
}

.header-nav .dropdown-menu a {
    padding: 10px 20px;
    display: block;
    color: #cbd5e1;
    text-transform: none;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.15s, color 0.15s;
}

.header-nav .dropdown-menu a:hover {
    background: #1c2d42;
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-trigger-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.search-trigger-btn:hover {
    color: #ffffff;
}

.home-btn-cta {
    background: #d9383a;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.home-btn-cta:hover {
    background: #c52d2f;
}

/* Main Content Area */
#main {
    padding: 35px 0;
    display: flex;
    gap: 32px;
}

article#main-col {
    flex: 3 1 0%;
    min-width: 0;
    background: transparent;
    padding: 0;
    border: none;
}

aside#sidebar {
    flex: 1 1 0%;
    min-width: 300px;
    max-width: 340px;
}

/* Advertising Placements & CLS Prevention */
.placement-box {
    background: #f9f9f9;
    border: 1px dashed #ccc;
    text-align: center;
    padding: 10px;
    margin: 20px 0;
    color: #999;
    font-size: 12px;
    min-height: 280px; /* Default box ad height reservation */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.placement-box[data-slot-id="header_slot"],
.placement-box[data-slot-id="footer_slot"] {
    min-height: 110px;
}

.placement-box[data-slot-id="sidebar_slot"] {
    min-height: 620px;
}

.placement-box[data-slot-id="in_article_slot"],
.placement-box[data-slot-id="in_grid_ad_slot"] {
    min-height: 280px;
}

.placement-label {
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    padding: 20px;
    margin-top: 20px;
    color: #ffffff;
    background-color: #003366;
    text-align: center;
}

footer a {
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
    }
    
    .header-nav ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 0 !important;
    }
    
    .header-nav li {
        padding: 4px 8px !important;
    }

    header #branding,
    header nav,
    header nav li,
    article#main-col,
    aside#sidebar {
        float: none;
        text-align: center;
        width: 100% !important;
    }

    header {
        padding-bottom: 20px;
    }

    #main {
        flex-direction: column !important;
    }

    aside#sidebar {
        max-width: 100% !important;
        width: 100% !important;
        flex: none !important;
        min-width: 0 !important;
    }
}

/* Modern Homepage Grid & Card Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 25px;
}

@media(max-width: 1100px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 640px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

.post-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.post-card-image {
    width: 100%;
    height: 180px;
    background: #edf2f7;
    position: relative;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    color: #0d9488;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.post-card-title {
    font-size: 1.15rem;
    font-weight: bold;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.post-card-title a {
    color: #1a0dab;
    text-decoration: none;
}

.post-card-title a:hover {
    color: #0d9488;
    text-decoration: underline;
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.post-card-readmore {
    font-size: 0.85rem;
    font-weight: bold;
    color: #0d9488;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.post-card-readmore:hover {
    text-decoration: underline;
}

/* In-Grid Ad Card styling */
.placement-grid-card {
    grid-column: span 1;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

/* Modern Hero Search Hub */
.hero-search-hub {
    background: linear-gradient(to right, rgba(9, 27, 49, 0.96) 35%, rgba(9, 27, 49, 0.5) 100%), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: right center;
    border-bottom: 1px solid #102136;
    padding: 70px 0;
    text-align: left;
    color: #ffffff;
}

.hero-search-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(217, 56, 58, 0.15);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 24px;
    border: 1px solid rgba(217, 56, 58, 0.3);
}

.hero-badge-icon {
    color: #d9383a;
    margin-right: 6px;
    font-size: 12px;
}

.hero-search-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: -0.75px;
    line-height: 1.15;
    max-width: 800px;
}

.hero-search-content h1 .highlight-red {
    color: #d9383a;
}

.hero-search-content p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin: 0 0 35px 0;
    line-height: 1.6;
    max-width: 600px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 8px;
    padding: 4px 4px 4px 18px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    max-width: 540px;
    margin-bottom: 24px;
}

.search-icon {
    font-size: 18px;
    color: #64748b;
    margin-right: 12px;
}

.search-field {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    color: #0f172a;
    background: transparent;
    padding: 10px 0;
}

.search-field::placeholder {
    color: #94a3b8;
}

.search-submit {
    background: #d9383a;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.search-submit:hover {
    background: #c52d2f;
}

.popular-topics {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.topics-label {
    font-weight: 600;
    margin-right: 4px;
    color: #cbd5e1;
}

.popular-topics a {
    color: #e2e8f0;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    font-weight: 500;
}

.popular-topics a:hover {
    background: #d9383a;
    color: #ffffff;
}

/* Trust Metrics Bar */
.trust-metrics-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
}

.metrics-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.metric-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #e2e8f0;
}

.metric-icon {
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
}

.metric-text {
    display: flex;
    flex-direction: column;
}

.metric-text strong {
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
}

.metric-text span {
    font-size: 11px;
    color: #64748b;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #091b31;
    margin: 0;
    letter-spacing: -0.3px;
}

.view-all-link {
    font-size: 13px;
    font-weight: 700;
    color: #091b31;
    text-decoration: none;
    transition: color 0.15s ease;
}

.view-all-link:hover {
    color: #d9383a;
}

.arrow-right {
    font-size: 14px;
}

/* Card Badge Styling */
.post-card-category {
    background: rgba(217, 56, 58, 0.08);
    color: #d9383a;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.post-card-title a {
    color: #091b31;
    font-weight: 800;
    transition: color 0.15s ease;
}

.post-card-title a:hover {
    color: #d9383a;
    text-decoration: none;
}

.post-card-readmore {
    color: #d9383a;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.15s ease;
}

.post-card-readmore:hover {
    color: #091b31;
    text-decoration: none;
}

/* Sidebar Styling Overhaul */
aside#sidebar .widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
}

aside#sidebar .widget h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #091b31;
    margin: 0 0 16px 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title-icon {
    font-size: 16px;
}

aside#sidebar .widget p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 16px;
}

.mockup-category-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.mockup-category-list li {
    border-bottom: 1px solid #f1f5f9;
}

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

.mockup-category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.mockup-category-list li a:hover {
    color: #d9383a;
}

.cat-icon {
    font-size: 14px;
    margin-right: 6px;
}

.cat-count {
    color: #94a3b8;
    font-size: 12px;
    margin-right: 8px;
}

.chevron {
    font-size: 9px;
    color: #cbd5e1;
}

.view-all-cats {
    font-size: 12px;
    font-weight: 700;
    color: #091b31;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.view-all-cats:hover {
    color: #d9383a;
}

/* Subscribe Widget styling */
.subscribe-widget {
    background: #091b31 !important;
    border-color: #091b31 !important;
    color: #ffffff;
}

.subscribe-widget h3 {
    color: #ffffff !important;
    border-bottom: 1px solid #1a2d44 !important;
}

.subscribe-widget p {
    color: #94a3b8 !important;
}

.sidebar-subscribe-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.sidebar-subscribe-form input {
    flex-grow: 1;
    border: 1px solid #1a2d44;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
}

.sidebar-subscribe-form input::placeholder {
    color: #475569;
}

.sidebar-subscribe-form button {
    background: #d9383a;
    color: #ffffff;
    border: none;
    padding: 0 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.sidebar-subscribe-form button:hover {
    background: #c52d2f;
}

.subscribe-disclaimer {
    font-size: 11px !important;
    color: #475569 !important;
    margin: 0 !important;
}

/* Responsive adjustment for metric grid */
@media (max-width: 992px) {
    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .metric-item::after {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 16px;
    }
    .header-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .header-nav li {
        padding: 4px 6px;
    }
    .calculator-grid,
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 576px) {
    .metrics-container {
        grid-template-columns: 1fr;
    }
    .hero-search-content h1 {
        font-size: 2.1rem;
    }
    .sidebar-subscribe-form {
        flex-direction: column;
    }
    .sidebar-subscribe-form button {
        padding: 10px 0;
    }
}

