/* =========================================================
   IMGCONVERT BLOG ARTICLE
   Modern Blog/Post Design
   ========================================================= */
   .ic-format-card {
            width: 317px;
            height: 378px;
            position: relative; /* Important for absolute positioning */
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
        }

        /* Position the wrapper itself, not the inner icon */
        .icon-wrapper {
            position: absolute;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .format-icon {
            width: 80px;
            height: 80px;
            border-radius: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 20px; /* Adjusted to fit text nicely */
            font-weight: 700;
            color: white;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            margin-bottom: 8px; /* Space between icon and label */
        }

        .format-icon:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
        }

        /* Added Gradients Back */
        .ic-format-webp {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .ic-format-png {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

        .ic-format-jpg {
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
        }

        /* Positioning Classes for Wrappers */
        .pos-webp {
           top: 200px;
            left: 30px;
        }

        .pos-png {
            top: 120px;
            left: 50%;
            transform: translateX(-50%);
        }

        .pos-jpg {
            top: 40px;
            right: 30px;
        }

       
  /* =================================================       */

.blog-page {
    background: #f7f9fc;
    padding: 0 20px 70px;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}


/* ---------------------------------------------------------
   Breadcrumb
   --------------------------------------------------------- */

.article-breadcrumb {
    grid-column: 1 / -1;
    padding: 18px 0 8px;
    font-size: 13px;
    color: #697386;
}

.article-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-breadcrumb span {
    margin: 0 6px;
}


/* ---------------------------------------------------------
   Main Article
   --------------------------------------------------------- */

.blog-article {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 14px;
    overflow: hidden;
}


/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.article-hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 30px;
    padding: 36px;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f5f8ff 100%
    );
    border-bottom: 1px solid #e7ebf2;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 20px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-hero h1 {
    font-size: 38px;
    line-height: 1.16;
    margin: 0 0 18px;
    color: #111827;
    letter-spacing: -0.8px;
}

.article-intro {
    font-size: 17px;
    line-height: 1.7;
    color: #5d6878;
    margin: 0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
    font-size: 13px;
    color: #687386;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-hero-image img {
    width: 100%;
    max-width: 430px;
    height: auto;
    border-radius: 14px;
    display: block;
}


/* ---------------------------------------------------------
   Article Content
   --------------------------------------------------------- */

.article-section {
    padding: 30px 36px;
}

.article-section h2 {
    margin: 0 0 17px;
    color: #111827;
    font-size: 27px;
    line-height: 1.3;
}

.article-section h3 {
    margin: 26px 0 10px;
    color: #172033;
    font-size: 20px;
}

.article-section h4 {
    margin: 0 0 10px;
}

.article-section p {
    color: #3f4b5d;
    font-size: 16px;
    line-height: 1.75;
    margin: 0 0 16px;
}

.article-section ul {
    margin: 12px 0 20px;
    padding-left: 22px;
}

.article-section li {
    color: #3f4b5d;
    line-height: 1.75;
    margin-bottom: 5px;
}


/* ---------------------------------------------------------
   Comparison Table
   --------------------------------------------------------- */

.comparison-table-wrapper {
    overflow-x: auto;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
    font-size: 14px;
}

.comparison-table th,
.comparison-table td {
    padding: 13px 14px;
    border-right: 1px solid #dfe5ed;
    border-bottom: 1px solid #dfe5ed;
    text-align: left;
}

.comparison-table th {
    color: #ffffff;
    font-weight: 700;
    text-align: center;
}

.comparison-table th:first-child {
    background: #f3f5f8;
    color: #202938;
    text-align: left;
}

.comparison-table .webp-column {
    background: #42a85f;
}

.comparison-table .png-column {
    background: #2878dc;
}

.comparison-table .jpg-column {
    background: #ef941d;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: #263142;
    background: #fafbfd;
}


/* ---------------------------------------------------------
   Table of Contents
   --------------------------------------------------------- */

.article-toc {
    margin: 0 36px 10px;
    padding: 23px;
    border: 1px solid #dfe6ef;
    border-radius: 12px;
    background: #f9fbff;
}

.article-toc h2 {
    font-size: 20px;
    margin: 0 0 16px;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 18px;
}

.toc-grid a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}

.toc-grid a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   Feature Section
   --------------------------------------------------------- */

.content-feature {
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: center;
    gap: 28px;
    margin: 15px 0 20px;
}

.feature-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e3e8ef;
}

.feature-content p {
    margin-bottom: 12px;
}


/* ---------------------------------------------------------
   Check List
   --------------------------------------------------------- */

.check-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.check-list li {
    position: relative;
    padding-left: 27px;
}

.check-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #31a354;
}


/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.article-cta {
    margin: 5px 36px 10px;
    padding: 18px 20px;
    border: 1px solid #d7e3f7;
    border-radius: 12px;
    background: #f5f9ff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #e4efff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-content {
    flex: 1;
}

.cta-content strong {
    color: #172033;
    display: block;
    margin-bottom: 3px;
}

.cta-content p {
    margin: 0;
    color: #687386;
    font-size: 13px;
}

.cta-button {
    background: #2563eb;
    color: #ffffff;
    padding: 11px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.cta-button:hover {
    background: #1d4ed8;
}


/* ---------------------------------------------------------
   Winner Box
   --------------------------------------------------------- */

.winner-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    margin: 15px 0 22px;
    border-radius: 9px;
    border-left: 4px solid #42a85f;
    background: #f3fbf5;
}

.winner-box strong {
    color: #25833e;
}

.winner-box span {
    color: #566273;
    font-size: 14px;
}

.winner-box.neutral {
    border-left-color: #2563eb;
    background: #f4f8ff;
}

.winner-box.neutral strong {
    color: #2563eb;
}


/* ---------------------------------------------------------
   Use Cases
   --------------------------------------------------------- */

.use-case-grid,
.comparison-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.use-case-card,
.comparison-card {
    padding: 20px;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #ffffff;
}

.use-case-card h4,
.comparison-card h3 {
    margin-top: 0;
    color: #1e293b;
}


/* ---------------------------------------------------------
   Format Recommendation
   --------------------------------------------------------- */

.format-recommendation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.format-recommendation div {
    padding: 15px;
    border: 1px solid #e1e7ef;
    border-radius: 9px;
    background: #fafcff;
}

.format-recommendation strong {
    display: block;
    margin-bottom: 4px;
    color: #263142;
}

.format-recommendation span {
    color: #2563eb;
    font-weight: 600;
}


/* ---------------------------------------------------------
   Browser List
   --------------------------------------------------------- */

.browser-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.browser-list span {
    padding: 9px 14px;
    background: #f1f5f9;
    border: 1px solid #e0e6ee;
    border-radius: 7px;
    color: #344054;
    font-size: 14px;
}


/* ---------------------------------------------------------
   Best Practices
   --------------------------------------------------------- */

.best-practices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.best-practices div {
    padding: 18px;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    background: #fbfcfe;
}

.best-practices i {
    color: #2563eb;
    margin-right: 7px;
}

.best-practices strong {
    color: #1e293b;
}

.best-practices p {
    font-size: 14px;
    margin: 8px 0 0;
}


/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */

.faq-list {
    border: 1px solid #e0e6ee;
    border-radius: 10px;
    overflow: hidden;
}

.faq-list details {
    border-bottom: 1px solid #e0e6ee;
    background: #ffffff;
}

.faq-list details:last-child {
    border-bottom: 0;
}

.faq-list summary {
    cursor: pointer;
    padding: 17px 18px;
    font-weight: 600;
    color: #263142;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    float: right;
    font-size: 20px;
    color: #2563eb;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    padding: 0 18px 17px;
    margin: 0;
}


/* ---------------------------------------------------------
   Final Verdict
   --------------------------------------------------------- */

.final-verdict {
    background: #f8faff;
    border-top: 1px solid #e5eaf2;
}

.verdict-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.verdict-card {
    padding: 18px;
    border: 1px solid #dce4ef;
    border-radius: 10px;
    background: #ffffff;
}

.verdict-card strong {
    display: block;
    color: #2563eb;
    font-size: 18px;
    margin-bottom: 7px;
}

.verdict-card span {
    font-size: 13px;
    line-height: 1.5;
    color: #596579;
}


/* ---------------------------------------------------------
   Related Articles
   --------------------------------------------------------- */

.related-articles {
    padding: 30px 36px 38px;
    border-top: 1px solid #e5eaf2;
}

.related-articles h2 {
    font-size: 23px;
    margin-top: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid #e0e6ee;
    border-radius: 10px;
    text-decoration: none;
    background: #ffffff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(30, 50, 80, .08);
}

.related-icon {
    width: 55px;
    height: 55px;
    border-radius: 9px;
    background: #eef4ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.related-card h3 {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #1e293b;
}

.related-card span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
}


/* ---------------------------------------------------------
   Sidebar
   --------------------------------------------------------- */

.blog-sidebar {
    align-self: start;
    position: sticky;
    top: 20px;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid #e0e6ee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-card h3 {
    margin: 0 0 17px;
    color: #182234;
    font-size: 18px;
}

.sidebar-card > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f4;
    text-decoration: none;
    color: #334155;
}

.sidebar-card > a:last-child {
    border-bottom: 0;
}

.sidebar-card > a:hover {
    color: #2563eb;
}

.sidebar-card > a > i {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: #eef4ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-card > a span {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #687386;
}

.sidebar-card > a strong {
    color: #1e293b;
    font-size: 13px;
    margin-bottom: 2px;
}


/* Sidebar articles */

.sidebar-article {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.sidebar-thumb {
    width: 55px;
    height: 45px;
    border-radius: 7px;
    background: #eef4ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-article span {
    color: #344054 !important;
    font-size: 13px !important;
    line-height: 1.4;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .blog-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .article-hero {
        grid-template-columns: 1fr;
    }

    .article-hero-image {
        order: -1;
    }

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

}


@media (max-width: 650px) {

    .blog-page {
        padding: 0 12px 40px;
    }

    .article-hero {
        padding: 24px 20px;
    }

    .article-section {
        padding: 25px 20px;
    }

    .article-toc {
        margin: 0 20px 10px;
    }

    .toc-grid {
        grid-template-columns: 1fr;
    }

    .article-cta {
        margin: 5px 20px 10px;
        flex-wrap: wrap;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .content-feature,
    .use-case-grid,
    .comparison-cards,
    .format-recommendation,
    .best-practices,
    .verdict-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-hero h1 {
        font-size: 28px;
    }

    .article-intro {
        font-size: 15px;
    }

    .article-meta {
        gap: 10px;
    }

    .related-articles {
        padding: 25px 20px;
    }

}

/* Additional css */

```css
/* =========================================================
   Image Compression Article - Additional Components
   Works with the existing blog2.css
   ========================================================= */

.compression-tip-card {
    background: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
    border-color: #dbe5f5;
}

.compression-tip-card p {
    margin: 0 0 16px;
    color: #596579;
    font-size: 14px;
    line-height: 1.65;
}

.compression-tip-card .cta-button {
    display: inline-flex;
    width: 100%;
    justify-content: center;
}


/* Slightly stronger visual treatment for compression
   recommendation boxes */
.blog-article .best-practices div {
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.blog-article .best-practices div:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgb(30 50 80 / .07);
    border-color: #d4deed;
}


/* Better spacing when a table follows a heading */
.article-section h3 + .comparison-table-wrapper {
    margin-top: 14px;
}


/* Make winner boxes work nicely for longer explanations */
.winner-box {
    flex-wrap: wrap;
}

.winner-box strong {
    flex-shrink: 0;
}


/* Mobile refinements */
@media (max-width: 650px) {

    .compression-tip-card {
        margin-bottom: 15px;
    }

    .blog-article .best-practices div {
        transform: none;
    }

    .blog-article .best-practices div:hover {
        transform: none;
    }

    .winner-box {
        align-items: flex-start;
    }

}
```
