/* Modern Blog Design */

.nav_tab_area--hero {
    background: linear-gradient(135deg, #1a3a6b 0%, #2a5298 50%, #38558F 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 0 35px;
}

.nav_tab_area--hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.nav_tab_area--hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 50%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(100, 149, 237, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.nav_tab_area--hero .container {
    position: relative;
    z-index: 1;
}

.nav_tab_area--hero .bread_head {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.blog-hero-subtitle {
    margin: 0;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 400;
}

.nav_tab_area--hero .nav_tab {
    margin-top: 8px;
}

.nav_tab_area--hero .nav_tab li a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.nav_tab_area--hero .nav_tab li a:hover {
    color: #fff;
}

.nav_tab_area--hero .nav_tab li:last-child {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.blog-page-area {
    background: linear-gradient(180deg, #eef4fc 0%, #f5f8fd 40%, #fafcff 100%);
    padding: 40px 0 50px;
    position: relative;
    overflow: hidden;
}

.blog-page-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, rgba(56, 85, 143, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.blog-page-area::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 85, 143, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-post-layout {
    position: relative;
    z-index: 1;
}

.blog-post-layout > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.blog-page-area .container {
    max-width: 1400px;
    width: 100%;
}

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

.blog-sidebar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(56, 85, 143, 0.1);
    border: 1px solid rgba(56, 85, 143, 0.06);
    padding: 14px 14px;
    position: sticky;
    top: 20px;
}

.blog-sidebar-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #38558F;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef4fc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-toc-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.blog-toc-table tr {
    border-bottom: 1px solid #eef4fc;
}

.blog-toc-table tr:last-child {
    border-bottom: none;
}

.blog-toc-table td {
    padding: 10px 6px;
    vertical-align: top;
}

.blog-toc-table td:first-child {
    width: 28px;
    color: #38558F;
    font-weight: 700;
    font-size: 13px;
}

.blog-toc-table td:last-child {
    width: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.blog-toc-table a {
    color: #4a5568;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    transition: color 0.2s ease;
}

.blog-toc-table a:hover {
    color: #38558F;
    text-decoration: none;
}

.blog-social-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-social-list li {
    border-bottom: 1px solid #eef4fc;
}

.blog-social-list li:last-child {
    border-bottom: none;
}

.blog-social-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
    color: #4a5568;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-social-list a:hover {
    color: #38558F;
    text-decoration: none;
}

.blog-social-list a .blog-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.blog-social-list a .blog-social-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.blog-social-list .social-fb .blog-social-icon { background: #3b5998; }
.blog-social-list .social-tw .blog-social-icon { background: #1da1f2; }
.blog-social-list .social-gp .blog-social-icon { background: #dd4b39; }
.blog-social-list .social-li .blog-social-icon { background: #0077b5; }
.blog-social-list .social-in .blog-social-icon { background: #e4405f; }

.blog-social-list a:hover .blog-social-icon {
    opacity: 0.9;
    transform: scale(1.05);
}

.blog-sidebar--right .blog-social-list a {
    justify-content: center;
    gap: 0;
    padding: 8px 4px;
}

.blog-sidebar--right .blog-sidebar-card {
    padding: 10px 8px;
}

.blog-post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(56, 85, 143, 0.1);
    padding: 48px 55px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(56, 85, 143, 0.06);
}

@media (min-width: 1200px) {
    .blog-post-layout > .col-lg-3:first-child {
        width: 24%;
    }

    .blog-post-layout > .col-lg-3:last-child {
        width: 6%;
    }

    .blog-post-layout > .col-lg-6 {
        width: 70%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .blog-post-layout > .col-md-4.col-lg-3:first-child {
        width: 25%;
    }

    .blog-post-layout > .col-md-4.col-lg-3:last-child {
        width: 7%;
    }

    .blog-post-layout > .col-md-8.col-lg-6 {
        width: 68%;
    }
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eef4fc;
    flex-wrap: wrap;
}

.blog-post-meta-item {
    color: #6b7c93;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-meta-item i {
    color: #38558F;
    margin-right: 6px;
}

.blog-post-content.posts {
    border: none;
    padding: 0;
}

.blog-post-content.posts p {
    color: #4a5568;
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 22px;
}

.blog-post-content.posts .bg-primary1 {
    background: linear-gradient(135deg, #e8f0fe 0%, #dbeafe 100%);
    border-left: 4px solid #38558F;
    border-radius: 0 8px 8px 0;
    color: #1a3a6b;
    font-weight: 600;
    padding: 14px 18px;
    margin: 22px 0;
}

.blog-post-content.posts hr {
    border: none;
    border-top: 2px solid #eef4fc;
    margin: 30px 0;
}

.blog-post-content.posts .download {
    margin: 22px 0;
    border-top: none;
    padding-top: 0;
}

.blog-post-content.posts .download ul {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.blog-post-content.posts .download ul li {
    display: block;
    margin: 0;
    padding: 0;
    float: none;
}

.blog-post-content.posts .download ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    border-radius: 4px;
}

.blog-post-content.posts .download ul li a i {
    display: none;
}

/* Blog Listing Page */

.blog-latest-section {
    margin-bottom: 44px;
    padding-bottom: 40px;
    border-bottom: 1px solid #dce6f4;
    position: relative;
    z-index: 1;
}

.blog-latest-section__head {
    margin-bottom: 24px;
}

.blog-latest-section__title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #1a3a6b;
    letter-spacing: -0.02em;
}

.blog-latest-section__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #5b6f8c;
}

.blog-latest-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.blog-latest-card {
    min-width: 0;
}

.blog-latest-card__link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    height: 100%;
    padding: 18px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(56, 85, 143, 0.1);
    box-shadow: 0 2px 10px rgba(56, 85, 143, 0.07);
    color: #1e2d3d;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.blog-latest-card__link:hover,
.blog-latest-card__link:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(56, 85, 143, 0.12);
    border-color: rgba(56, 85, 143, 0.18);
    text-decoration: none;
    color: #1e2d3d;
}

.blog-latest-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

.blog-list-area {
    padding: 48px 0 64px;
}

.blog-list-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.blog-list-intro__text h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a3a6b;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.blog-list-intro__text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #5b6f8c;
    max-width: 520px;
}

.blog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.blog-filter-chip {
    appearance: none;
    border: 1px solid #d4e0f2;
    background: #fff;
    color: #4a5f7a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.blog-filter-chip:hover {
    border-color: #b8cce8;
    color: #38558F;
}

.blog-filter-chip.is-active {
    background: linear-gradient(135deg, #4a6ba8 0%, #38558F 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(56, 85, 143, 0.28);
}

.blog-search-wrap {
    width: 100%;
    max-width: 420px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.blog-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 2px 14px rgba(56, 85, 143, 0.1);
    border: 1px solid #dce6f4;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-search-box:focus-within {
    border-color: #b8cce8;
    box-shadow: 0 4px 18px rgba(56, 85, 143, 0.14);
}

.blog-search-box__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #4a6ba8 0%, #38558F 100%);
    box-shadow: 0 3px 10px rgba(56, 85, 143, 0.25);
}

.blog-search-box__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.blog-search-box__input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #3d4f63;
    font-size: 15px;
    font-weight: 500;
    box-shadow: none;
}

.blog-search-box__input::placeholder {
    color: #8fa3bf;
    font-weight: 400;
}

.blog-search-box__input:focus {
    outline: none;
}

.blog-search-box__arrow {
    flex-shrink: 0;
    color: #9bb8dc;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
}

.blog-search-result,
.blog-search-empty {
    margin: 10px 0 0;
    text-align: left;
    font-size: 13px;
    color: #5b6f8c;
}

.blog-search-empty {
    margin-top: 28px;
    font-size: 15px;
    font-weight: 500;
}

.blog-grid-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.blog-grid-card {
    display: flex;
    min-width: 0;
}

.blog-grid-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    background: #fff;
    border-radius: 14px;
    padding: 22px 22px 20px;
    box-shadow: 0 2px 12px rgba(56, 85, 143, 0.08);
    border: 1px solid rgba(56, 85, 143, 0.08);
    color: #2f3f52;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-grid-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a6ba8 0%, #38558F 100%);
    opacity: 0.85;
    transition: height 0.25s ease, opacity 0.25s ease;
}

.blog-grid-card__link:hover,
.blog-grid-card__link:focus {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(56, 85, 143, 0.14);
    border-color: rgba(56, 85, 143, 0.16);
    text-decoration: none;
    color: #2f3f52;
}

.blog-grid-card__link:hover .blog-grid-card__accent,
.blog-grid-card__link:focus .blog-grid-card__accent {
    height: 5px;
    opacity: 1;
}

.blog-grid-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.blog-grid-card__category {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.blog-grid-card__category--outlook { background: #e8f0fe; color: #2d4a8a; }
.blog-grid-card__category--gmail { background: #fdecea; color: #c0392b; }
.blog-grid-card__category--yahoo { background: #f3e8fd; color: #6b21a8; }
.blog-grid-card__category--hotmail { background: #e6f7fb; color: #0e7490; }
.blog-grid-card__category--thunderbird { background: #e8f8ef; color: #15803d; }
.blog-grid-card__category--hosting { background: #fff4e6; color: #c05621; }

.blog-grid-card__icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38558F;
    background: #f0f5fc;
    border: 1px solid #dce6f4;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.blog-grid-card__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.blog-grid-card__link:hover .blog-grid-card__icon,
.blog-grid-card__link:focus .blog-grid-card__icon {
    background: linear-gradient(145deg, #4a6ba8 0%, #38558F 100%);
    color: #fff;
    border-color: transparent;
    transform: scale(1.05);
}

.blog-grid-card__title {
    flex: 1;
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    text-align: left;
    color: #1e2d3d;
}

.blog-grid-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: #38558F;
    transition: gap 0.25s ease, color 0.25s ease;
}

.blog-grid-card__link:hover .blog-grid-card__cta,
.blog-grid-card__link:focus .blog-grid-card__cta {
    color: #1a3a6b;
    gap: 10px;
}

@media (max-width: 991px) {
    .blog-latest-grid {
        grid-template-columns: 1fr;
    }

    .blog-list-intro {
        flex-direction: column;
        gap: 20px;
    }

    .blog-search-wrap {
        max-width: 100%;
    }

    .blog-grid-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .nav_tab_area--hero .bread_head {
        font-size: 26px;
    }

    .blog-hero-subtitle {
        font-size: 14px;
    }

    .blog-latest-section {
        margin-bottom: 32px;
        padding-bottom: 28px;
    }

    .blog-latest-section__title {
        font-size: 22px;
    }

    .blog-latest-card__link {
        padding: 16px 18px;
    }

    .blog-latest-card__title {
        font-size: 14px;
    }

    .blog-list-intro__text h2 {
        font-size: 22px;
    }

    .blog-post-card {
        padding: 28px 22px;
        border-radius: 8px;
    }

    .blog-sidebar-card {
        position: static;
    }

    .blog-page-area {
        padding: 24px 0 36px;
    }

    .blog-list-intro {
        margin-bottom: 22px;
    }

    .blog-filter-bar {
        gap: 8px;
        margin-bottom: 22px;
    }

    .blog-filter-chip {
        font-size: 12px;
        padding: 8px 14px;
    }

    .blog-search-wrap {
        margin-bottom: 0;
    }

    .blog-search-box {
        padding: 10px 12px;
        gap: 10px;
    }

    .blog-search-box__icon {
        width: 36px;
        height: 36px;
    }

    .blog-search-box__icon svg {
        width: 16px;
        height: 16px;
    }

    .blog-search-box__input {
        height: 34px;
        font-size: 14px;
    }

    .blog-grid-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .blog-grid-card__link {
        padding: 18px 18px 16px;
    }

    .blog-grid-card__header {
        margin-bottom: 14px;
    }

    .blog-grid-card__icon {
        width: 34px;
        height: 34px;
    }

    .blog-grid-card__icon svg {
        width: 16px;
        height: 16px;
    }

    .blog-grid-card__title {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .blog-grid-card__cta {
        font-size: 12px;
    }
}

/* Footer colors - match header/banner */
.footer_area {
    background: #fff;
}

.footer_area .footer_social {
    background: linear-gradient(135deg, #1a3a6b 0%, #2a5298 50%, #38558F 100%);
    color: #fff;
}

.footer_area .footer_bottom {
    background: #f3f1f1;
    color: grey;
}

.footer_area .footer-copyright {
    background-color: rgba(0, 0, 0, 0.2);
}

.footer_area .footer-copyright,
.footer_area .footer-copyright a {
    color: #525252;
}

.footer_area .scrolltop {
    background: #38558F;
}

.footer_area .home-newsletter .single .btn._bg_blue,
.footer_area .home-newsletter .single .btn.btn-theme {
    background: #38558F;
}
