:root {
    --primary: #ff4d4d;
    --secondary: #333;
    --light: #f8f8f8;
    --dark: #222;
    --gray: #777;
    --light-gray: #eaeaea;
    --critical: #d32f2f;
}

/* Set font family globally */
body,
.blog-container,
.alert-bar,
.blog-hero,
.blog-main-content,
.blog-sidebar,
.warning-list,
.related-posts,
.related-posts-iframe {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Blog Container */
.blog-container {
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--secondary);
}

/* Hero Section */
.blog-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 40px;
}
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    padding: 40px 5%;
    color: white;
}
.blog-hero h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
}
.blog-hero h1 span {
    display: block;
    font-size: 1.8rem;
    color: #ff9999;
}
.publish-date {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

/* Main Layout */
.blog-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}
.blog-main-content {
    flex: 0 0 75%;
}
.blog-sidebar {
    flex: 0 0 25%;
}

/* Content Styling */
.blog-intro {
    margin-bottom: 40px;
}
.intro-summary {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark);
    margin-bottom: 20px;
}
.warning-list {
    padding-left: 0;
    margin: 20px 0;
}
.warning-list li {
    list-style: none;
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}
.warning-list i {
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 3px;
}

/* Blog Content Styles */
.blog-content h2 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
}
.blog-content h3 {
    color: var(--dark);
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
}
.blog-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}
.blog-content ul,
.blog-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}
.blog-content li {
    margin-bottom: 8px;
}

/* Table Styles */
.tool-table {
    width: 100%;
    margin: 20px 0 30px;
    border-collapse: collapse;
}
.tool-table th,
.tool-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}
.tool-table th {
    font-weight: 600;
    color: var(--dark);
}
.tool-table td {
    font-weight: 400;
    color: var(--gray);
}

/* Image Styles */
.blog-image {
    margin: 25px 0;
    text-align: left;
}
.blog-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}
.image-caption {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 8px;
    font-style: italic;
}

/* CTA Box */
.cta-box {
    background: var(--light);
    padding: 25px;
    margin: 40px 0;
    border-left: 4px solid var(--primary);
}
.cta-box h3 {
    margin-top: 0;
    color: var(--dark);
}

/* Sidebar */
.related-posts {
    border: none;
    padding: 0;
    margin-bottom: 30px;
    width: 100%;
}
.related-posts h4 {
    margin-top: 0;
    color: var(--dark);
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 10px;
    font-size: 1rem;
}
.related-posts-iframe {
    width: 100%;
    min-height: 600px;
    border: none !important;
    background: transparent;
}

/* Sidebar CTA Styles */
.sidebar-cta {
    background: #f8f8f8;
    padding: 20px;
    margin-top: 30px;
    border-radius: 4px;
    border-top: 3px solid var(--primary);
}
.sidebar-cta h4 {
    color: var(--dark);
    margin-top: 0;
    font-size: 1.2rem;
}
.cta-benefits {
    padding-left: 0;
    margin: 15px 0;
}
.cta-benefits li {
    list-style: none;
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}
.cta-benefits i {
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 4px;
}
.cta-button {
    display: block;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    margin: 20px 0;
    transition: background 0.3s;
}
.cta-button:hover {
    background: #e04545;
}
.cta-contact {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
}
.cta-contact p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-layout {
        flex-direction: column;
    }
    .blog-main-content,
    .blog-sidebar {
        flex: 0 0 100%;
    }
    .blog-sidebar {
        order: 2;
        margin-top: 40px;
    }
    .blog-hero h1 {
        font-size: 2rem;
    }
    .blog-hero h1 span {
        font-size: 1.5rem;
    }
    .sidebar-cta {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        height: 300px;
    }
    .blog-hero h1 {
        font-size: 1.8rem;
    }
    .blog-hero h1 span {
        font-size: 1.3rem;
    }
    .tool-table {
        display: block;
        overflow-x: auto;
    }
    .blog-image {
        margin: 20px -15px;
    }
    .blog-image img {
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.6rem;
    }
    .publish-date {
        font-size: 0.8rem;
    }
}