
/* =================================
   CARBONITE BLOG PAGE
================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f9ff;
    color: #18345c;
}

/* HERO */

.blog-hero {
    background: linear-gradient(120deg, #e6f3ff, #ffffff);
    padding: 25px 7% 65px;
    border-bottom: 1px solid #dceaff;
}

.blog-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 45px;
}

.blog-logo {
    color: #082f69;
    text-decoration: none;
    font-size: 25px;
    font-weight: 800;
}

.blog-logo span {
    color: #087ee5;
}

.home-link {
    color: #0755a9;
    text-decoration: none;
    font-weight: 700;
}

.hero-content {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.hero-label,
.section-label {
    color: #087ee5;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 2px;
}

.hero-content h1 {
    color: #082f69;
    font-size: 43px;
    margin: 15px 0;
}

.hero-content p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}

/* SEARCH */

.blog-search {
    display: flex;
    align-items: center;
    max-width: 650px;
    margin: 30px auto 20px;
    padding: 7px 20px;
    background: #ffffff;
    border: 1px solid #d2e5fa;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 70, 150, .08);
}

.blog-search span {
    font-size: 28px;
    color: #087ee5;
    margin-right: 12px;
}

.blog-search input {
    width: 100%;
    border: none;
    outline: none;
    padding: 13px 5px;
    font-size: 15px;
    background: transparent;
    color: #123c70;
}

.article-total {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #dceaff;
    color: #526982;
    font-size: 13px;
}

.article-total strong {
    color: #087ee5;
    font-size: 19px;
}

/* MAIN CONTENT */

.blog-main {
    max-width: 1250px;
    margin: 60px auto;
    padding: 0 25px;
}

.blog-heading {
    margin-bottom: 30px;
}

.blog-heading h2 {
    color: #092d65;
    font-size: 32px;
    margin: 12px 0;
}

.blog-heading p {
    color: #718096;
}

/* FILTER BUTTONS */

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.filter-btn {
    background: #ffffff;
    color: #315477;
    border: 1px solid #d7e6f8;
    padding: 11px 19px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #087ee5;
    color: #ffffff;
    border-color: #087ee5;
}

/* ARTICLE GRID */

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

.blog-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    border: 1px solid #dfebf8;
    box-shadow: 0 5px 18px rgba(0, 70, 140, .045);
    transition: .3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: #1685ed;
    box-shadow: 0 12px 28px rgba(0, 80, 160, .10);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-number {
    color: #087ee5;
    font-weight: 800;
    font-size: 13px;
    background: #eaf5ff;
    padding: 7px 12px;
    border-radius: 6px;
}

.article-category {
    font-size: 11px;
    font-weight: 700;
    color: #075bb5;
    background: #edf6ff;
    padding: 7px 11px;
    border-radius: 20px;
}

.card-icon {
    margin: 22px 0 12px;
}

.card-icon span {
    width: 52px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eaf5ff;
    border-radius: 12px;
    font-size: 25px;
}

.blog-card h3 {
    color: #10396f;
    font-size: 18px;
    line-height: 1.5;
    margin: 5px 0 10px;
}

.blog-card p {
    color: #718096;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eaf0f8;
    color: #087ee5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.read-article span {
    font-size: 20px;
    transition: .2s;
}

.read-article:hover span {
    transform: translateX(5px);
}

/* NO RESULTS */

.no-results {
    text-align: center;
    padding: 55px 20px;
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #dfebf8;
}

.no-results[hidden] {
    display: none;
}

.no-results div {
    font-size: 40px;
}

.no-results h3 {
    color: #092d65;
}

.no-results p {
    color: #718096;
}

.no-results button {
    background: #087ee5;
    color: #ffffff;
    padding: 12px 22px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
}

/* BOTTOM CTA */

.blog-bottom {
    text-align: center;
    padding: 65px 20px;
    background: linear-gradient(120deg, #0750a9, #078be8);
    color: #ffffff;
}

.bottom-icon {
    font-size: 40px;
}

.blog-bottom h2 {
    font-size: 29px;
}

.blog-bottom p {
    color: #e2f2ff;
    line-height: 1.8;
}

.bottom-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 13px 25px;
    background: #ffffff;
    color: #0755a9;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
}

/* FOOTER */

.blog-footer {
    background: #062b62;
    text-align: center;
    color: #ffffff;
    padding: 22px;
    font-size: 13px;
}

/* RESPONSIVE */

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

    .hero-content h1 {
        font-size: 35px;
    }
}

@media(max-width: 600px) {
    .blog-hero {
        padding: 20px 5% 45px;
    }

    .blog-nav {
        padding-bottom: 30px;
    }

    .blog-logo {
        font-size: 20px;
    }

    .hero-content h1 {
        font-size: 29px;
    }

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

    .blog-main {
        margin: 40px auto;
        padding: 0 15px;
    }

    .blog-heading h2 {
        font-size: 26px;
    }

    .category-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 9px 13px;
    }
}
