/**
 * Blog Styles
 *
 * Reuses the established .case-card visual language (cards with
 * floating icon, hover-to-brand-blue) seen across Home/About/Service
 * pages, so the blog feels native to the rest of the site rather
 * than a bolted-on addition.
 *
 * @package KwadTech
 */

/* ============================================================
   Post Card (Archive / Index Grid)
   ============================================================ */
.blog-post-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e6ecf3;
    transition: 0.35s ease;
    margin-bottom: 30px;
}

.blog-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.blog-post-card .post-thumb {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.blog-post-card .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.blog-post-card .post-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #06387c;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
}

.blog-post-card .post-body {
    padding: 28px;
}

.blog-post-card .post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #6c7a89;
    margin-bottom: 12px;
}

.blog-post-card .post-meta i {
    margin-right: 5px;
    color: #06387c;
}

.blog-post-card h2,
.blog-post-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-post-card h2 a,
.blog-post-card h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-post-card h2 a:hover,
.blog-post-card h3 a:hover {
    color: #06387c;
}

.blog-post-card .post-excerpt {
    color: #6c7a89;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.blog-post-card .post-readmore {
    font-weight: 600;
    color: #06387c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-post-card .post-readmore .arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.blog-post-card .post-readmore:hover .arrow {
    background: #06387c;
    color: #fff;
}

/* ============================================================
   Single Post
   ============================================================ */
.single-post-header {
    margin-bottom: 30px;
}

.single-post-header .post-category {
    display: inline-block;
    background: #eef3ff;
    color: #06387c;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 16px;
}

.single-post-header h1 {
    font-size: 38px;
    font-weight: 800;
    color: #0a2540;
    line-height: 1.3;
    margin-bottom: 16px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #6c7a89;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.single-post-meta .author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.single-post-thumb {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.single-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post-content {
    font-size: 17px;
    line-height: 1.85;
    color: #374151;
}

.single-post-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0a2540;
    margin: 40px 0 18px;
}

.single-post-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0a2540;
    margin: 30px 0 14px;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content a {
    color: #06387c;
    text-decoration: underline;
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.single-post-content li {
    margin-bottom: 8px;
}

.single-post-content blockquote {
    border-left: 4px solid #06387c;
    background: #f5f8ff;
    padding: 20px 28px;
    margin: 30px 0;
    font-style: italic;
    color: #374151;
}

.single-post-content img {
    max-width: 100%;
    border-radius: 14px;
    margin: 20px 0;
}

/* Post Tags */
.post-tags-wrapper {
    margin: 35px 0;
    padding: 25px 0;
    border-top: 1px solid #e6ecf3;
    border-bottom: 1px solid #e6ecf3;
}

.post-tags-wrapper a {
    display: inline-block;
    background: #eef3ff;
    color: #06387c;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin: 0 6px 6px 0;
    text-decoration: none;
    transition: 0.3s;
}

.post-tags-wrapper a:hover {
    background: #06387c;
    color: #fff;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    background: #f7f9fc;
    border-radius: 18px;
    padding: 28px;
    margin: 35px 0;
    align-items: flex-start;
}

.author-box .author-avatar-lg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box h4 {
    font-size: 17px;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 6px;
}

.author-box p {
    font-size: 14px;
    color: #6c7a89;
    margin: 0;
}

/* Related Posts */
.related-posts-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e6ecf3;
}

.related-posts-section h3 {
    font-size: 26px;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 30px;
}

/* Post Navigation (prev/next) */
.single-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.single-post-nav .nav-link-box {
    flex: 1;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e6ecf3;
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.single-post-nav .nav-link-box:hover {
    border-color: #06387c;
    box-shadow: 0 10px 30px rgba(6, 56, 124, 0.1);
}

.single-post-nav .nav-direction {
    font-size: 12px;
    color: #6c7a89;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.single-post-nav .nav-title {
    font-size: 15px;
    font-weight: 600;
    color: #0a2540;
}

.single-post-nav .next-post {
    text-align: right;
}

/* ============================================================
   Sidebar
   ============================================================ */
.blog-sidebar .sidebar-widget {
    background: #fff;
    border: 1px solid #e6ecf3;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 25px;
}

.blog-sidebar .widget-title {
    font-size: 17px;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #06387c;
    display: inline-block;
}

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

.blog-sidebar ul li {
    margin-bottom: 10px;
}

.blog-sidebar ul li a {
    color: #374151;
    text-decoration: none;
    font-size: 14px;
}

.blog-sidebar ul li a:hover {
    color: #06387c;
}

.blog-sidebar .search-form {
    display: flex;
    gap: 8px;
}

.blog-sidebar .search-form input[type="search"] {
    flex: 1;
    border: 1px solid #e6ecf3;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
}

.blog-sidebar .search-form button {
    background: #06387c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e6ecf3;
    color: #374151;
    text-decoration: none;
    margin: 0 4px;
    font-size: 14px;
}

.pagination-wrapper .page-numbers.current {
    background: #06387c;
    color: #fff;
    border-color: #06387c;
}

.pagination-wrapper .page-numbers:hover:not(.current) {
    background: #eef3ff;
    border-color: #06387c;
}

/* ============================================================
   Comments
   ============================================================ */
.comments-area {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e6ecf3;
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 25px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e6ecf3;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .single-post-header h1 { font-size: 28px; }
    .blog-post-card .post-thumb { height: 200px; }
    .single-post-nav { flex-direction: column; }
    .single-post-nav .next-post { text-align: left; }
}
