﻿/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    padding: 60px 0;
    margin-bottom: 50px;
}

    .page-header h1 {
        font-size: 36px;
        font-weight: bold;
    }

/* Sidebar */
.blog-sidebar .sidebar-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.sidebar-box h4 {
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.sidebar-box ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

    .sidebar-box ul li a {
        color: #444;
        transition: .3s;
    }

        .sidebar-box ul li a:hover {
            color: #1e3c72;
        }

/* Blog Cards */

.blog-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,.08);
    transition: transform .3s;
}

    .blog-card:hover {
        transform: translateY(-5px);
    }

    .blog-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

.blog-card-body {
    padding: 20px;
}

    .blog-card-body h3 {
        font-size: 18px;
        margin: 10px 0;
    }

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #777;
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.category-card {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 25px;
    transition: .3s;
}

    .category-card:hover {
        background: #1e3c72;
        color: #fff;
    }

.category-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

    .pagination a {
        display: inline-block;
        padding: 8px 14px;
        margin: 0 5px;
        border-radius: 8px;
        background: #eee;
    }

        .pagination a.active,
        .pagination a:hover {
            background: #1e3c72;
            color: #fff;
        }
/* Comment Form */
.comment-form {
    margin-top: 60px;
    background: #f9fafb;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.comment-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e3c72;
}

/* Inputs */
.form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: .25s;
    background: #fff;
}

    .form-input:focus {
        outline: none;
        border-color: #1e3c72;
        box-shadow: 0 0 0 3px rgba(30,60,114,.12);
    }

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    padding: 14px 36px;
    border-radius: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: .3s;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(30,60,114,.25);
    }
.btn-share-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .btn-share-icon:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

/* Comment List */
.comment-list {
    margin-top: 60px;
}

.comment-list-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1e3c72;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Single Comment */
.comment-item {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
    margin-bottom: 20px;
}

/* Avatar */
.comment-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Comment Content */
.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 700;
    color: #1e3c72;
}

.comment-date {
    font-size: 13px;
    color: #999;
}

.comment-text {
    color: #555;
    line-height: 1.9;
    font-size: 14px;
}
