/* ================================================================
   BLOG PAGE HEADER
   ================================================================ */
.blog-list-page {
    padding-bottom: 4rem;
    padding-top: 4rem;
}
.blog-page-header {
    padding: 36px 0 40px;
    background-color: #f4f4f4;
    margin-bottom: 40px;
}

.blog-page-header .blog-page-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.blog-page-header .blog-breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.blog-page-header .blog-breadcrumb .breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
}

.blog-page-header .blog-breadcrumb .breadcrumb-item a:hover {
    color: #1a1a2e;
}

.blog-page-header .blog-breadcrumb .breadcrumb-item.active {
    color: #1a1a2e;
    font-weight: 500;
}

.blog-page-header .blog-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #adb5bd;
}

/* ================================================================
   BLOG LIST - CARD
   ================================================================ */
.blog-post-list .post-type-1 {
    background: #fff;
    border-radius: 10px;
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07); */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem !important;
    padding-bottom: 0 !important;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #eaeaea;
}

/* ---- image ---- */
.blog-post-list .post-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-post-list .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.blog-post-list .post-type-1:hover .post-image img {
    transform: scale(1.04);
}

/* ---- body ---- */
.blog-post-list .post-container {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-post-list .post-title {
    margin-bottom: 8px;
}

.blog-post-list .post-title h2 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.blog-post-list .post-title h2 a {
    color: #1a1a2e;
    text-decoration: none;
}

.blog-post-list .post-title h2 a:hover {
    color: #4f46e5;
}

/* ---- meta ---- */
.blog-post-list .post-info {
    margin-bottom: 10px;
}

.blog-post-list .post-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-post-list .post-info ul li {
    font-size: 0.8rem;
    color: #6b7280;
}

.blog-post-list .post-info ul li i {
    margin-right: 4px;
    color: #9ca3af;
}

/* ---- excerpt ---- */
.blog-post-list .post-summary {
    flex: 1;
    margin-bottom: 16px;
}

.blog-post-list .post-summary p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- read more ---- */
.blog-post-list .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fa5d78;
    text-decoration: none;
    margin-top: auto;
}

.blog-post-list .read-more:hover {
    color: #3730a3;
}

.blog-post-list .read-more i {
    font-size: 1rem;
}

/* ================================================================
   SIDEBAR WIDGETS
   ================================================================ */
.blog-categories-module,
.post-list-module {
    background: #fff;
    border-radius: 10px;
    padding: 20px 22px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); */
}

.blog-categories-module h2,
.post-list-module h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    padding-bottom: 12px;
    border-bottom: 2px solid #fa5d78;
    margin-bottom: 14px;
}

.blog-categories-module h2 i,
.post-list-module h2 i {
    color: #4f46e5;
    font-size: 0.9rem;
}

.blog-categories-module ul,
.post-list-module ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-categories-module ul li,
.post-list-module ul li {
    border-bottom: 1px solid #f3f4f6;
}

.blog-categories-module ul li:last-child,
.post-list-module ul li:last-child {
    border-bottom: none;
}

.blog-categories-module ul li a,
.post-list-module ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.blog-categories-module ul li a::before,
.post-list-module ul li a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #d1d5db;
    flex-shrink: 0;
    transition: background-color 0.15s;
}

.blog-categories-module ul li a:hover,
.post-list-module ul li a:hover {
    color: #fa5d78;
}

.blog-categories-module ul li a:hover::before,
.post-list-module ul li a:hover::before {
    background-color: #fa5d78;
}

/* ================================================================
   BLOG POST ARTICLE
   ================================================================ */
.blog-post .post-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
}

.blog-post .post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post .post-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin-bottom: 12px;
}

.blog-post .post-title h1 a {
    color: inherit;
    text-decoration: none;
}

.blog-post .post-info {
    margin-bottom: 24px;
}

.blog-post .post-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #6b7280;
}

.blog-post .post-info ul li i {
    margin-right: 5px;
    color: #9ca3af;
}

.blog-post .post-info ul li a {
    color: #fa5d78;
    text-decoration: none;
}

.blog-post .post-info ul li a:hover {
    text-decoration: underline;
}

/* ---- content typography ---- */
.blog-post .post-content {
    font-size: 14px;
    line-height: 1.8;
    color: #374151;
}

.blog-post .post-content p {
    margin-bottom: 1.25rem;
}

.blog-post .post-content h2,
.blog-post .post-content h3,
.blog-post .post-content h4 {
    color: #1a1a2e;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.blog-post .post-content a {
    color: #4f46e5;
}

.blog-post .post-content blockquote {
    border-left: 4px solid #4f46e5;
    padding: 12px 20px;
    margin: 1.5rem 0;
    background: #f8f7ff;
    border-radius: 0 8px 8px 0;
    color: #374151;
    font-style: italic;
}

/* ================================================================
   BLOG POST - TAGS
   ================================================================ */
.blog-post .tag {
    margin-top: 28px;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-post .tag a {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 20px;
    color: #374151;
    text-decoration: none;
    font-size: 0.825rem;
    transition: background 0.15s, color 0.15s;
}

.blog-post .tag a:hover {
    background: #4f46e5;
    color: #fff;
}

.blog-post .tag span {
    display: none;
}

/* ================================================================
   BLOG POST - COMMENT FORM
   ================================================================ */
.leave-a-comment {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.leave-a-comment h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.leave-a-comment .form-group {
    margin-bottom: 16px;
}

.leave-a-comment label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.leave-a-comment .form-control {
    border-radius: 8px;
    border-color: #e5e7eb;
    font-size: 0.9rem;
    padding: 10px 14px;
    color: #1a1a2e;
}

.leave-a-comment .form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.leave-a-comment textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.leave-a-comment .form-text {
    font-size: 0.8rem;
    color: #9ca3af;
}

.leave-a-comment .btn-primary {
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    background-color: #4f46e5;
    border-color: #4f46e5;
    transition: background-color 0.2s, border-color 0.2s;
}

.leave-a-comment .btn-primary:hover {
    background-color: #3730a3;
    border-color: #3730a3;
}

.leave-a-comment .btn-primary:disabled {
    background-color: #a5b4fc;
    border-color: #a5b4fc;
}

/* ================================================================
   BLOG POST - COMMENT LIST
   ================================================================ */
.post-comments {
    margin-top: 32px;
    margin-bottom: 32px;
}

.total-comment {
    display: none;
}

.comment-container {
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.comment-container.sub-comment {
    margin-left: 48px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.comment-author span a {
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 0.9rem;
}

.comment-info span {
    font-size: 0.78rem;
    color: #9ca3af;
}

.comment .comment p {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
    margin: 6px 0 0;
}

.reply-button {
    font-size: 0.8rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    margin-top: 30px;
    display: inline-block;
}

.reply-button:hover {
    color: #3730a3;
}

/* ================================================================
   BLOG SIDEBAR - STICKY + FAB
   ================================================================ */
.blog-sidebar {
    position: sticky;
    top: 24px;
}

.blog-sidebar-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1030;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #1a1a2e;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.blog-sidebar-fab:hover {
    background-color: #4f46e5;
    transform: scale(1.08);
}

/* ================================================================
   COMMENT SUCCESS MESSAGE
   ================================================================ */
.comment-success-message {
    padding: 32px 24px;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    text-align: center;
    margin-top: 2rem;
}

.comment-success-message p {
    margin: 0;
    color: #166534;
    font-size: 1rem;
    font-weight: 500;
}
