


/* ===================== GLOBAL FONT ===================== */
html, body,
input, button, textarea, select,
a, p, span, li, label, div,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Google Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Heading style */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0.5rem 0 !important;
}



/* ================================
   Layout / Wrapper
================================ */
.rbt-overlay-page-wrapper,
.rbt-blog-details-area,
.post-content-detail,
.tagcloud,
.rbt-section-gapBottom,
.postContentBreadCrumb-Width-100,
.breadcrumb-style-max-width,
.alignwide {
    width: 100% !important;
    max-width: 100% !important;
}

.rbt-overlay-page-wrapper,
.rbt-article-content-wrapper {
    box-shadow: none !important;
}

.rbt-blog-details-area {
    padding-top: 60px !important;
}

.rbt-article-content-wrapper {
    padding: 0 !important;
}

.alignwide {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* ================================
   Post Thumbnail
================================ */
.post-thumbnail img {
    max-height: 636px !important;
    border-radius: 10px !important;
    position: relative !important;
    z-index: 11 !important;
    object-fit: cover !important;
}


/* ================================
   Post Info
================================ */
.post-info {
    background: #3431C6 !important;
    border-radius: 10px !important;
    padding: 45px 20px 15px 20px !important;
    margin-top: -30px !important;
    position: relative !important;
    z-index: 10 !important;
}

    .post-info .d-flex {
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
    }

.post-date-time {
    color: white !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1 !important;
}

    .post-date-time i {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

.post-tag {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}

.tag-name {
    background: var(--color-primary, #5D5AD1) !important;
    color: white !important;
    padding: 10px 16px !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

.post-status-view {
    padding-top: 30px;
    color: #070A0E;
    gap: 16px;
    font-size: 16px;
}


/* ================================
   Comment
================================ */
.single-comment {
    display: flex !important;
    gap: 12px !important;
}

.comment-img {
    width: 64px !important;
    height: 64px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    border-radius: 50% !important;
    border: 2px solid #E0E0E0 !important;
}

    .comment-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        aspect-ratio: 1 !important;
        border-radius: 50% !important;
        border: none !important;
        padding: 0 !important;
    }

.comment-inner {
    flex: 1 !important;
}

.comment-header,
.comment-meta,
.reply-edit,
.reply-edit a,
.reply-edit span,
.btnViewMorePostCommentChildren i {
    display: flex !important;
    align-items: center !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #070A0E !important;
}

.comment-header {
    gap: 8px !important;
    margin-bottom: 8px !important;
}

.comment-meta {
    gap: 20px !important;
    margin-top: 10px !important;
}

.commenter a {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #222 !important;
    text-decoration: none !important;
}

.comment-time,
.time-spent,
.children-count {
    color: #4A4C4F !important;
    font-size: 16px !important;
}

.comment-text p {
    font-size: 16px !important;
    color: #070A0E !important;
}

.reply-edit {
    gap: 0 !important;
}

    .reply-edit a,
    .reply-edit span {
        color: #070A0E !important;
        cursor: pointer !important;
        font-size: 14px !important;
        text-decoration: none !important;
        gap: 4px !important;
        font-weight: 500 !important;
    }

        .reply-edit a:hover {
            text-decoration: underline !important;
        }

.btnViewMorePostCommentChildren {
    color: #070A0E !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.rbt-total-comment-post {
    border-bottom: 1px dashed #E0E0E0 !important;
}


/* ================================
   Comment Login Button
================================ */
.comment-login-area {
    padding: 20px 0 !important;
    text-align: left !important;
}

.btn-login-comment {
    border: 2px solid #3431C6 !important;
    color: #3431C6 !important;
    background-color: transparent !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-align: center !important;
    display: inline-block !important;
    transition: none !important;
    text-decoration: none !important;
}

    .btn-login-comment:hover {
        background-color: transparent !important;
        color: #3431C6 !important;
        border-color: #3431C6 !important;
        text-decoration: none !important;
    }

    .btn-login-comment:focus {
        outline: none !important;
        box-shadow: none !important;
    }


/* ================================
   Like Button
================================ */
#btnLikeThisPost {
    background: none !important;
    border: none !important;
    color: black !important;
    font-size: 14px !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
}

    #btnLikeThisPost i {
        transition: all 0.3s ease !important;
    }

    #btnLikeThisPost:hover i {
        opacity: 0.8;
    }

    #btnLikeThisPost.unliked i {
        background-image: url('/icon/heart_icon.svg');
    }

    #btnLikeThisPost.liked i {
        background-image: url('/icon/heart_icon_filled.svg');
    }


/* ================================
   Filter Select
================================ */
.filter-select {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
}

    .filter-select .select-label {
        margin: 0;
        white-space: nowrap;
    }

.select-label,
.rbt-label-style {
    text-transform: none !important;
    font-size: 16px !important;
    font-weight: normal !important;
    color: #4A4C4F !important;
}

.filter-select .rbt-modern-select {
    position: relative;
    display: inline-block;
    min-width: 120px;
}

    .filter-select .rbt-modern-select select,
    .filter-select select#selectOrderType {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border: none;
        background: transparent;
        background-image: none;
        background-repeat: no-repeat;
        padding: 6px 56px 6px 6px;
        font-weight: 700;
        font-size: 15px;
        color: #222;
        cursor: pointer;
        box-sizing: border-box;
        display: inline-block;
        position: relative;
        z-index: 1;
    }

        .filter-select .rbt-modern-select select::-ms-expand,
        .filter-select select#selectOrderType::-ms-expand {
            display: none;
        }

    .filter-select .rbt-modern-select::after {
        content: '⇅';
        position: absolute;
        font-weight: 600;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        color: black;
        font-size: 14px;
        pointer-events: none;
        z-index: 2;
    }

    .filter-select .rbt-modern-select select:focus {
        outline: none;
        box-shadow: none;
    }

.rbt-modern-select .bootstrap-select button.btn-light {
    box-shadow: none !important;
}

.rbt-modern-select .dropdown-toggle::after {
    display: none !important;
}

.rbt-modern-select .dropdown-item {
    border-radius: 5px !important;
}
.inner {
    border-radius: 5px !important;
}

.rbt-modern-select .bootstrap-select .dropdown-toggle .filter-option-inner-inner {
    color: black !important;
}

.rbt-modern-select .dropdown-menu {
    padding: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}
/* ================================
   Pagination
================================ */


/* ================================
   Related Post Container
================================ */
.related-post-container {
    background: #F5F5FD;
    border-radius: 0;
    padding: 56px 0 40px;
    display: block;
    margin-top: 60px;
    margin-bottom: 40px;
}

.related-post-inner {
    max-width: 1320px;
}

.related-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

    .related-post-header .title {
        color: #11105E !important;
        font-size: 42px !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        margin: 0 !important;
    }

    .related-post-header .btn-explore {
        background: #3431C6;
        border: 1px solid #3431C6;
        color: #fff;
        padding: 13px 24px;
        border-radius: 5px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        white-space: nowrap;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }

        .related-post-header .btn-explore:hover {
            background: #2523A5;
            border-color: #2523A5;
            color: #fff;
        }

.related-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.related-post-item {
    min-width: 0;
}

.related-post-card .rbt-btn-link:hover {
    color: #5D5AD1;
}


/* ================================
   Blog / Post Card
================================ */
.related-post-grid .rbt-blog-grid.rbt-card {
    background: #fff !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}



.related-post-grid .rbt-blog-grid .rbt-card-img {
    width: 100%;
    height: 416px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

    .related-post-grid .rbt-blog-grid .rbt-card-img a {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .related-post-grid .rbt-blog-grid .rbt-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.related-post-grid .rbt-card.variation-02 .rbt-card-img a img {
    border-radius: 8px 8px 0 0 !important;
    max-height:100%;
}

.related-post-grid .rbt-blog-grid .rbt-card-body,
.related-post-grid .rbt-card.variation-02 .rbt-card-body {
    padding: 0 0;
}

.related-post-grid .rbt-blog-grid .rbt-card-body {
    display: flex;
    margin: 5px;
    padding: 16px 18px 18px;
    flex-direction: column;
    flex-grow: 1;
}

.related-post-grid .rbt-blog-grid .rbt-card-title {
    padding: 12px 0 10px;
    font-weight: 700 !important;
    line-height: 1.28 !important;
    margin: 0 !important;
}

    .related-post-grid .rbt-blog-grid .rbt-card-title a {
        color: #161616;
        text-decoration: none;
        font-size: 22px !important;
        font-weight: 700 !important;
        line-height: 1.28 !important;
        display: block;
    }

        .related-post-grid .rbt-blog-grid .rbt-card-title a:hover {
            color: #3431C6 !important;
        }

.related-post-grid .rbt-blog-grid .blog-meta {
    margin: 0 !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

    .related-post-grid .rbt-blog-grid .blog-meta li {
        display: flex;
        align-items: center;
        gap: 4px !important;
        margin: 0 !important;
        color: #1B1B1F;
        font-size: 13px;
        line-height: 1.35;
    }

    .related-post-grid .rbt-blog-grid .blog-meta i {
        color: #3431C6;
        font-size: 13px;
    }

.related-post-grid .rbt-blog-grid .post-description-line-clamp-4 {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #1B1B1FCC;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.related-post-grid .rbt-blog-grid .rbt-card-bottom {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px;
}


/* ================================
   Buttons
================================ */
.btn-detail {
    background-color: #3431C6 !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    padding: 10px 20px !important;
    border: none;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

    .btn-detail:hover {
        background-color: #2725a0 !important;
        transform: translateY(-2px);
    }


/* ================================
   Common
================================ */
.icon-color {
    color: #3431C6 !important;
}


/* ================================
   Responsive
================================ */
@media (max-width: 991px) {
    .related-post-container {
        padding: 40px 0 32px;
    }

    .related-post-header .title {
        font-size: 34px !important;
    }

    .related-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-post-grid .rbt-blog-grid .rbt-card-img {
        height: 320px;
    }
}

@media (max-width: 767px) {
    .filter-select {
        justify-content: flex-start;
        margin-top: 8px;
    }

    .post-comment-pagination-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .post-comment-pagination-row nav {
        margin-left: 0;
        width: 100%;
    }

    .related-post-container {
        padding: 32px 0 28px;
    }

    .related-post-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }

    .related-post-header .title {
        font-size: 28px !important;
    }

    .related-post-grid {
        grid-template-columns: 1fr;
    }

    .related-post-grid .rbt-blog-grid .rbt-card-img {
        height: 260px;
    }
}
