/* style.css - Main Stylesheet (Optimized Combined Version) */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER STYLES - Clean White Design ===== */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Logo */
.logo h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.logo h1 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.logo h1 a:hover {
    color: #3498db;
}

/* No tagline/subtext - removed */

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #2c3e50;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.menu-toggle:hover {
    color: #3498db;
}

/* Navigation */
nav {
    display: block;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

nav ul li a:hover {
    color: #3498db;
}

/* Active link indicator */
nav ul li a.active {
    color: #3498db;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3498db;
}

/* ===== MAIN CONTENT STYLES ===== */
main {
    min-height: 70vh;
    padding: 40px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== BLOG POST STYLES ===== */
.blog-post {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-header h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.blog-meta {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
}

.blog-content {
    line-height: 1.8;
    color: #34495e;
}

.blog-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: #2c3e50;
}

.blog-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #34495e;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content ul, 
.blog-content ol {
    margin: 20px 0 20px 30px;
}

.blog-content li {
    margin-bottom: 10px;
}

/* ===== POST GRID STYLES (Homepage) ===== */
.featured-posts h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #2c3e50;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.post-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.post-card p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* ===== ARTICLE STYLES ===== */
.post-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.post-content h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.post-meta {
    color: #7f8c8d;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.post-meta span {
    margin-right: 20px;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* ===== SPECIALTY BOXES & CARDS ===== */
.resource-box {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 25px;
    margin: 30px 0;
    border-radius: 5px;
}

.coverage-card {
    background: #e8f4fd;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid #3498db;
}

.tip-box {
    background: #d4edda;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #28a745;
    margin: 30px 0;
}

.provider-card {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #b8daff;
}

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
}

.cta-box h3 {
    color: white;
    margin-bottom: 15px;
}

.cta-box .cta-button {
    background: white;
    color: #2c3e50;
    margin-top: 20px;
}

/* ===== TABLES ===== */
.comparison-table,
.quote-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.comparison-table th,
.quote-table th {
    background: #2c3e50;
    color: white;
    padding: 12px;
    text-align: left;
}

.comparison-table td,
.quote-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.comparison-table tr:nth-child(even),
.quote-table tr:nth-child(even) {
    background: #f8f9fa;
}

.comparison-table tr:hover,
.quote-table tr:hover {
    background: #f1f9ff;
}

/* ===== FORMS ===== */
.quote-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

.quote-form h3 {
    margin-bottom: 15px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    border-color: #3498db;
    outline: none;
}

.submit-btn,
.cta-button {
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
    display: inline-block;
}

.submit-btn:hover,
.cta-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* ===== RELATED POSTS SECTION ===== */
.related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

.related-posts h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #2c3e50;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s, background 0.3s;
}

.related-item:hover {
    background: #e9ecef;
    transform: translateY(-3px);
}

.related-item a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
}

.related-item a:hover {
    color: #3498db;
}

/* ===== FOOTER STYLES ===== */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 5px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    color: #bdc3c7;
}

.social-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 14px;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    /* Header Mobile */
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        margin-top: 15px;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #f5f5f5;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        white-space: normal;
    }

    nav ul li a.active::after {
        display: none;
    }

    nav ul li a.active {
        font-weight: 600;
    }

    /* Hero Mobile */
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero {
        padding: 40px 0;
    }

    /* Blog Post Mobile */
    .blog-post {
        padding: 20px;
    }
    
    .blog-header h1 {
        font-size: 28px;
    }
    
    .blog-content h2 {
        font-size: 24px;
    }
    
    .blog-content h3 {
        font-size: 20px;
    }

    /* Post Grid Mobile */
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-content h1 {
        font-size: 24px;
    }

    /* Tables Mobile */
    .comparison-table,
    .quote-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td,
    .quote-table th,
    .quote-table td {
        padding: 8px;
    }

    /* Forms Mobile */
    .quote-form {
        padding: 20px;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links a {
        margin: 0 10px;
    }
}

/* ===== SMALL MOBILE ADJUSTMENTS ===== */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }
    
    .menu-toggle {
        font-size: 24px;
    }
    
    .blog-header h1 {
        font-size: 24px;
    }
    
    .hero h1 {
        font-size: 22px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .post-card {
        padding: 20px;
    }
    
    .post-card h3 {
        font-size: 18px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    header, footer, .menu-toggle, .cta-box, .quote-form {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .blog-post, .post-content {
        box-shadow: none;
        padding: 0;
    }
}