/* Blog Page Styles - Matches Service Page Design */

.blog-page {
    font-family: 'Inter', 'Poppins', sans-serif !important;
    color: #333;
}

/* Blog Hero Banner - Same as service hero */
.blog-hero {
    background: url('../images/service-banner.png') center center/cover no-repeat;
    padding: 120px 0 120px;
    color: white;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(16, 55, 92, 0.95) 0%, rgba(16, 55, 92, 0.8) 40%, rgba(16, 55, 92, 0) 100%);
    z-index: 1;
}
.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.blog-hero span {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: capitalize;
    line-height: 1.2;
    display: block;
}
.blog-hero p {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Featured Post Section */
.blog-featured {
    padding: 80px 0;
    background: #fff;
}
.featured-post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(13, 120, 188, 0.12);
}
.featured-post-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}
.featured-post-body {
    padding: 35px 40px;
}
.featured-post-body .post-category {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(13, 120, 188, 0.1);
    color: #0D78BC;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.featured-post-body h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.4;
}
.featured-post-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.featured-post-body h3 a:hover {
    color: #0D78BC;
}
.featured-post-body .post-excerpt {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}
.featured-post-body .post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #888;
}
.featured-post-body .post-meta i {
    color: #0D78BC;
    margin-right: 6px;
}

/* Blog Posts Grid */
.blog-posts-section {
    padding: 80px 0;
    background: #f8f9fa;
}
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(13, 120, 188, 0.12);
}
.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.blog-card-body {
    padding: 25px 28px 30px;
}
.blog-card-body .post-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(13, 120, 188, 0.1);
    color: #0D78BC;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.blog-card-body h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.4;
}
.blog-card-body h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.blog-card-body h4 a:hover {
    color: #0D78BC;
}
.blog-card-body .post-excerpt {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 18px;
}
.blog-card-body .post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #999;
}
.blog-card-body .post-meta i {
    color: #0D78BC;
    margin-right: 5px;
}
.blog-card-body .read-more {
    color: #0D78BC;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.blog-card-body .read-more:hover {
    color: #084c78;
}

/* Newsletter / CTA */
.blog-cta {
    padding: 80px 0;
    background: #f4f9fc;
}

/* ===== Blog Inner / Detail Page ===== */

/* Breadcrumb */
.blog-breadcrumb {
    background: #f8f9fa;
    padding: 18px 0;
    border-bottom: 1px solid #e9ecef;
}
.blog-breadcrumb nav {
    font-size: 0.9rem;
}
.blog-breadcrumb a {
    color: #0D78BC;
    text-decoration: none;
    transition: color 0.3s ease;
}
.blog-breadcrumb a:hover {
    color: #084c78;
}
.blog-breadcrumb .separator {
    color: #adb5bd;
    margin: 0 8px;
}
.blog-breadcrumb .current {
    color: #666;
}

/* Article Section */
.blog-article-section {
    padding: 70px 0 80px;
    background: #fff;
}

/* Article Hero Image */
.article-hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin-bottom: 35px;
}

/* Article Category Badge */
.article-category-badge {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(13, 120, 188, 0.1);
    color: #0D78BC;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Article Title */
.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin-bottom: 20px;
}

/* Article Meta */
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 0.9rem;
    color: #888;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}
.article-meta i {
    color: #0D78BC;
    margin-right: 6px;
}
.article-meta .author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.article-meta .author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0D78BC 0%, #0b4372 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Article Body Content */
.article-body p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.85;
    margin-bottom: 24px;
}
.article-body h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0b4372;
    margin-top: 40px;
    margin-bottom: 18px;
}
.article-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0b4372;
    margin-top: 32px;
    margin-bottom: 15px;
}
.article-body ul,
.article-body ol {
    margin-bottom: 24px;
    padding-left: 1.5rem;
}
.article-body ul li,
.article-body ol li {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.85;
    margin-bottom: 10px;
}
.article-body ul li::marker {
    color: #0D78BC;
}
.article-body ol li::marker {
    color: #0D78BC;
    font-weight: 700;
}
.article-body blockquote {
    border-left: 4px solid #0D78BC;
    background: #f0f7fb;
    padding: 20px 28px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
}
.article-body blockquote p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0b5f95;
    margin-bottom: 0;
    line-height: 1.7;
}
.article-body img {
    width: 100%;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.article-body a {
    color: #0D78BC;
    text-decoration: none;
    transition: color 0.3s ease;
}
.article-body a:hover {
    color: #084c78;
    text-decoration: underline;
}

/* Article Tags */
.article-tags {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}
.article-tags .tag-label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}
.article-tags .tag {
    display: inline-block;
    padding: 5px 14px;
    background: #f0f7fb;
    color: #0D78BC;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}
.article-tags .tag:hover {
    background: #0D78BC;
    color: #fff;
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}
.article-share .share-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}
.article-share a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.article-share a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}
.article-share .share-fb { background: #3b5998; }
.article-share .share-wa { background: #25D366; }
.article-share .share-in { background: #E4405F; }

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 20px;
}
.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 30px 28px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    margin-bottom: 30px;
}
.sidebar-widget h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0b4372;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}
.sidebar-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #0D78BC;
    border-radius: 2px;
}

/* Sidebar Recent Posts */
.sidebar-post-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-post-item:first-child {
    padding-top: 0;
}
.sidebar-post-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.sidebar-post-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 6px;
}
.sidebar-post-content h6 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.sidebar-post-content h6 a:hover {
    color: #0D78BC;
}
.sidebar-post-content .post-date {
    font-size: 0.8rem;
    color: #999;
}
.sidebar-post-content .post-date i {
    color: #0D78BC;
    margin-right: 4px;
}

/* Sidebar Categories */
.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-category-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-category-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-category-list li:first-child {
    padding-top: 0;
}
.sidebar-category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.sidebar-category-list li a:hover {
    color: #0D78BC;
}
.sidebar-category-list li a .cat-count {
    background: #f0f7fb;
    color: #0D78BC;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Sidebar Search */
.sidebar-search-form {
    display: flex;
    gap: 8px;
}
.sidebar-search-form input {
    flex: 1;
    border: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}
.sidebar-search-form input:focus {
    border-color: #0D78BC;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(13, 120, 188, 0.1);
}
.sidebar-search-form button {
    background: linear-gradient(135deg, #0D78BC 0%, #0b4372 100%);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.sidebar-search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(13, 120, 188, 0.3);
}

/* Related Posts Section */
.related-posts-section {
    padding: 70px 0 80px;
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 0 60px;
        text-align: center;
    }
    .blog-hero::before {
        background: linear-gradient(to bottom, rgba(16, 55, 92, 0.95) 0%, rgba(16, 55, 92, 0.85) 100%);
    }
    .blog-hero span {
        font-size: 2.2rem;
    }
    .blog-hero p br {
        display: none;
    }
    .blog-hero-content {
        max-width: 100%;
    }
    .featured-post-img {
        height: 250px;
    }
    .featured-post-body {
        padding: 25px 20px;
    }
    .featured-post-body h3 {
        font-size: 1.4rem;
    }
    .blog-posts-section { padding: 50px 0; }
    .blog-featured { padding: 50px 0; }
    .article-hero-img { height: 220px; }
    .article-title { font-size: 1.5rem; }
    .blog-article-section { padding: 40px 0 50px; }
    .related-posts-section { padding: 40px 0 50px; }
    .blog-sidebar { position: static; margin-top: 40px; }
    .article-meta { gap: 14px; }
}

@media (min-width: 769px) and (max-width: 991px) {
    .blog-hero span {
        font-size: 2.8rem;
    }
    .blog-hero-content {
        max-width: 100%;
    }
    .featured-post-img {
        height: 300px;
    }
    .featured-post-body {
        padding: 30px 25px;
    }
    .featured-post-body h3 {
        font-size: 1.6rem;
    }
    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }
    .article-hero-img {
        height: 320px;
    }
    .article-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 374px) {
    .blog-hero span {
        font-size: 1.8rem;
    }
    .blog-hero p {
        font-size: 0.9rem;
    }
    .article-title {
        font-size: 1.3rem;
    }
    .article-hero-img {
        height: 180px;
    }
    .featured-post-img {
        height: 200px;
    }
    .featured-post-body h3 {
        font-size: 1.2rem;
    }
    .blog-card-body {
        padding: 20px 18px 25px;
    }
    .blog-card-body h4 {
        font-size: 1.1rem;
    }
    .sidebar-widget {
        padding: 20px 18px;
    }
    .article-body p {
        font-size: 0.95rem;
    }
    .article-body h2 {
        font-size: 1.3rem;
    }
    .article-body h3 {
        font-size: 1.15rem;
    }
    .article-meta {
        font-size: 0.8rem;
        gap: 10px;
    }
    .article-meta .author-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .blog-breadcrumb nav {
        font-size: 0.8rem;
    }
    .blog-breadcrumb .separator {
        margin: 0 5px;
    }
}
