/*
Theme Name: Insure Savings Guide
Theme URI: https://insuresavingsguide.com
Author: InsureSavingsGuide
Author URI: https://insuresavingsguide.com
Description: A clean, modern insurance tips and savings guide theme. Helps consumers make smarter insurance decisions with expert advice, comparison tools, and money-saving strategies.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: insure-savings-guide
Tags: one-column, custom-menu, featured-images, theme-options, blog
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary: #0ea5e9;
    --secondary-dark: #0284c7;
    --accent: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --light: #f0f7ff;
    --light-alt: #f8fafc;
    --dark: #0f172a;
    --dark-alt: #1e293b;
    --gradient: linear-gradient(135deg, #1a56db 0%, #0ea5e9 100%);
    --gradient-dark: linear-gradient(135deg, #1e40af 0%, #0284c7 100%);
    --gradient-light: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    --shadow-sm: 0 1px 3px rgba(26, 86, 219, 0.08);
    --shadow-md: 0 10px 40px rgba(26, 86, 219, 0.1);
    --shadow-lg: 0 20px 60px rgba(26, 86, 219, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: #fff;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.4;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 86, 219, 0.4);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    background: var(--gradient-light);
    padding: 80px 0 60px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 86, 219, 0.08);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(26, 86, 219, 0.08);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light);
}

.hero-card-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.hero-card-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--dark);
}

.hero-card-subtitle {
    font-size: 13px;
    color: var(--gray);
}

.hero-savings-list {
    list-style: none;
}

.hero-savings-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--light);
    font-size: 15px;
}

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

.hero-savings-label {
    color: var(--dark);
    font-weight: 500;
}

.hero-savings-amount {
    color: var(--success);
    font-weight: 700;
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.trust-bar {
    padding: 40px 0;
    background: #fff;
    border-bottom: 1px solid var(--light);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 4px;
}

.trust-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.trust-item p {
    font-size: 13px;
    color: var(--gray);
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 14px;
}

.section-header p {
    color: var(--gray);
    font-size: 17px;
    line-height: 1.7;
}

/* ==========================================================================
   INSURANCE TYPES GRID
   ========================================================================== */
.insurance-types {
    padding: 80px 0;
    background: var(--gradient-light);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.type-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26, 86, 219, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.type-card-icon {
    width: 56px;
    height: 56px;
    background: var(--light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
}

.type-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.type-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 18px;
}

.type-card .read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.type-card .read-more:hover {
    gap: 10px;
}

/* ==========================================================================
   TIPS SECTION (WHY USE US / VALUE PROPS)
   ========================================================================== */
.tips-section {
    padding: 80px 0;
    background: var(--gradient);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.tips-section .section-header h2 {
    color: #fff;
}

.tips-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 1;
}

.tip-card {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s, transform 0.2s;
}

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

.tip-card .icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.tip-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.tip-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.65;
}

/* ==========================================================================
   RECENT ARTICLES / BLOG GRID
   ========================================================================== */
.recent-articles {
    padding: 80px 0;
    background: #fff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26, 86, 219, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.article-card-image {
    width: 100%;
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.5);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-body {
    padding: 24px;
}

.article-card-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-light);
    margin-bottom: 10px;
}

.article-card-meta .category {
    color: var(--primary);
    font-weight: 600;
}

.article-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

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

.article-card h3 a:hover {
    color: var(--primary);
}

.article-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 14px;
}

.article-card .read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta {
    padding: 80px 0;
    background: var(--gradient-light);
}

.cta-box {
    background: var(--gradient);
    border-radius: var(--radius-xl);
    padding: 56px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.cta-box h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 14px;
}

.cta-box p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-buttons .btn-white:hover {
    background: var(--light);
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */
.single-post-content {
    padding: 60px 0;
}

.single-post-container {
    max-width: 780px;
    margin: 0 auto;
}

.single-post-content .entry-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 16px;
}

.single-post-content .entry-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--light);
}

.single-post-content .entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--dark-alt);
}

.single-post-content .entry-content p {
    margin-bottom: 20px;
}

.single-post-content .entry-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--dark);
}

.single-post-content .entry-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--dark);
}

.single-post-content .entry-content ul,
.single-post-content .entry-content ol {
    margin: 0 0 20px 24px;
}

.single-post-content .entry-content li {
    margin-bottom: 8px;
}

.single-post-content .entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--dark-alt);
}

.single-post-content .entry-content img {
    border-radius: var(--radius);
    margin: 24px 0;
}

/* ==========================================================================
   PAGE CONTENT (Generic Pages - Privacy, About, Contact, etc.)
   ========================================================================== */
.page-content {
    padding: 60px 0;
}

.page-content h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--dark);
}

.page-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 36px 0 16px;
    color: var(--dark);
}

.page-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--dark);
}

.page-content p {
    margin-bottom: 18px;
    color: var(--dark-alt);
    font-size: 16px;
    line-height: 1.75;
}

.page-content ul,
.page-content ol {
    margin: 0 0 18px 24px;
}

.page-content li {
    margin-bottom: 8px;
    color: var(--dark-alt);
}

.page-content a {
    color: var(--primary);
}

.page-content a:hover {
    color: var(--primary-dark);
}

/* ==========================================================================
   BLOG ARCHIVE
   ========================================================================== */
.blog-archive {
    padding: 60px 0;
}

.blog-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-archive-header h1 {
    font-size: 34px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.blog-archive-header p {
    color: var(--gray);
    font-size: 17px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination a {
    background: var(--light);
    color: var(--dark);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
}

.pagination .current {
    background: var(--primary);
    color: #fff;
}

/* ==========================================================================
   SIDEBAR (Optional)
   ========================================================================== */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.sidebar .widget {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26, 86, 219, 0.06);
}

.sidebar .widget h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light);
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.error-404 {
    text-align: center;
    padding: 100px 0;
}

.error-404 h1 {
    font-size: 120px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-404 h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.error-404 p {
    color: var(--gray);
    font-size: 17px;
    margin-bottom: 28px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .types-grid,
    .articles-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

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

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .types-grid,
    .tips-grid,
    .articles-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 36px 20px;
    }

    .cta-box h2 {
        font-size: 26px;
    }

    .single-post-content .entry-title {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}
