/* =========================================================
   RATTAN EXPORT VIETNAM — NEWS V2
   Public News listing, single post and Viet Coffee Source style sidebar.
   Scoped to News classes to avoid leaking into other site sections.
========================================================= */

.vcs-editorial-sidebar {
    --vcs-editorial-green: #173f35;
    --vcs-editorial-green-dark: #102f28;
    --vcs-editorial-green-soft: #edf4f1;
    --vcs-editorial-gold: #c49a5a;
    --vcs-editorial-text: #26332f;
    --vcs-editorial-muted: #697770;
    --vcs-editorial-border: #dce6e1;
    --vcs-editorial-white: #ffffff;
}

.vcs-editorial-sidebar > section + section {
    margin-top: 24px;
}

.vcs-editorial-sidebar a,
.vcs-editorial-sidebar a:hover,
.vcs-editorial-sidebar a:focus,
.vcs-editorial-sidebar a:active {
    text-decoration: none !important;
}

/* Search */
.vcs-editorial-sidebar .vcs-editorial-search .input-group {
    overflow: hidden;
    background: var(--vcs-editorial-white);
    border: 1px solid var(--vcs-editorial-border);
    border-radius: 7px;
    box-shadow: 0 6px 18px rgba(35, 55, 48, 0.05);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.vcs-editorial-sidebar .vcs-editorial-search .input-group:focus-within {
    border-color: var(--vcs-editorial-green);
    box-shadow: 0 8px 22px rgba(23, 63, 53, 0.11);
}

.vcs-editorial-sidebar .vcs-editorial-search .form-control {
    min-height: 46px;
    padding: 11px 14px;
    color: var(--vcs-editorial-text);
    background: var(--vcs-editorial-white);
    border: 0;
    border-radius: 0;
    font-size: 13px;
    box-shadow: none !important;
}

.vcs-editorial-sidebar .vcs-editorial-search .form-control::placeholder {
    color: #8a9691;
}

.vcs-editorial-sidebar .vcs-editorial-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-height: 46px;
    padding: 0;
    color: var(--vcs-editorial-white) !important;
    background: var(--vcs-editorial-green) !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    transition: background-color .2s ease;
}

.vcs-editorial-sidebar .vcs-editorial-search-button:hover,
.vcs-editorial-sidebar .vcs-editorial-search-button:focus {
    color: var(--vcs-editorial-white) !important;
    background: var(--vcs-editorial-green-dark) !important;
}

/* Shared white cards */
.vcs-editorial-sidebar .vcs-editorial-card {
    padding: 22px 20px;
    background: var(--vcs-editorial-white);
    border: 1px solid var(--vcs-editorial-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(35, 55, 48, 0.055);
}

.vcs-editorial-sidebar .vcs-editorial-card > h5 {
    margin: 0 0 15px;
    color: var(--vcs-editorial-green-dark);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

/* Categories */
.vcs-editorial-sidebar .vcs-editorial-categories {
    padding-bottom: 10px;
}

.vcs-editorial-sidebar .vcs-editorial-categories .nav-list {
    border-top: 1px solid var(--vcs-editorial-border);
}

.vcs-editorial-sidebar .vcs-editorial-categories ul.nav-list li > a::before,
.vcs-editorial-sidebar .vcs-editorial-categories .nav-list .nav-link::before {
    content: none !important;
    display: none !important;
}

.vcs-editorial-sidebar .vcs-editorial-categories .nav-item {
    border-bottom: 1px solid var(--vcs-editorial-border);
}

.vcs-editorial-sidebar .vcs-editorial-categories .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px;
    color: var(--vcs-editorial-text);
    background: transparent;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    transition: color .2s ease, background-color .2s ease, padding-left .2s ease;
}

.vcs-editorial-sidebar .vcs-editorial-categories .nav-link:hover,
.vcs-editorial-sidebar .vcs-editorial-categories .nav-link:focus {
    padding-left: 14px;
    color: var(--vcs-editorial-green);
    background: var(--vcs-editorial-green-soft);
}

.vcs-editorial-sidebar .vcs-editorial-categories .nav-link.active {
    padding-left: 14px;
    color: var(--vcs-editorial-white);
    background: var(--vcs-editorial-green);
    font-weight: 600;
}

.vcs-editorial-sidebar .vcs-category-name {
    min-width: 0;
}

.vcs-editorial-sidebar .vcs-category-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 22px;
    padding: 0 7px;
    color: var(--vcs-editorial-green);
    background: var(--vcs-editorial-green-soft);
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
}

.vcs-editorial-sidebar .nav-link.active .vcs-category-count {
    color: var(--vcs-editorial-green-dark);
    background: var(--vcs-editorial-white);
}

/* Latest / Recent */
.vcs-editorial-sidebar .vcs-editorial-posts-card {
    padding: 0;
    overflow: hidden;
}

.vcs-editorial-sidebar .vcs-editorial-tabs .nav-tabs {
    display: flex;
    margin: 0;
    padding: 0 18px;
    background: #f6f8f7;
    border: 0;
    border-bottom: 1px solid var(--vcs-editorial-border);
}

.vcs-editorial-sidebar .vcs-editorial-tabs .nav-item {
    flex: 1 1 50%;
    margin: 0;
}

.vcs-editorial-sidebar .vcs-editorial-tabs .nav-link {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 8px 12px;
    color: var(--vcs-editorial-muted);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
}

.vcs-editorial-sidebar .vcs-editorial-tabs .nav-link::before {
    content: none !important;
    display: none !important;
}

.vcs-editorial-sidebar .vcs-editorial-tabs .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--vcs-editorial-green);
    transform: translateX(-50%);
    transition: width .2s ease;
}

.vcs-editorial-sidebar .vcs-editorial-tabs .nav-link:hover,
.vcs-editorial-sidebar .vcs-editorial-tabs .nav-link:focus,
.vcs-editorial-sidebar .vcs-editorial-tabs .nav-link.active {
    color: var(--vcs-editorial-green);
    background: transparent;
}

.vcs-editorial-sidebar .vcs-editorial-tabs .nav-link.active::after {
    width: 100%;
}

.vcs-editorial-sidebar .vcs-editorial-tabs .tab-content {
    padding: 7px 20px 5px;
    background: var(--vcs-editorial-white);
    border: 0;
}

.vcs-editorial-sidebar .vcs-editorial-post-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.vcs-editorial-sidebar .vcs-editorial-post-list li {
    padding: 14px 0;
    border-top: 1px solid #edf1ef;
}

.vcs-editorial-sidebar .vcs-editorial-post-list li:first-child {
    border-top: 0;
}

.vcs-editorial-sidebar .vcs-editorial-post-title {
    display: block;
    color: var(--vcs-editorial-text) !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    transition: color .2s ease;
}

.vcs-editorial-sidebar .vcs-editorial-post-title:hover,
.vcs-editorial-sidebar .vcs-editorial-post-title:focus {
    color: var(--vcs-editorial-green) !important;
}

.vcs-editorial-sidebar .vcs-editorial-post-date {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: var(--vcs-editorial-muted);
    font-size: 10px;
    line-height: 1.4;
}

.vcs-editorial-sidebar .vcs-editorial-post-date i {
    color: var(--vcs-editorial-gold);
    font-size: 9px;
}

.vcs-editorial-sidebar .vcs-editorial-empty {
    margin: 0;
    padding: 15px 0;
    color: var(--vcs-editorial-muted);
    font-size: 12px;
}

/* CTA */
.vcs-editorial-sidebar .vcs-editorial-cta-card {
    position: relative;
    overflow: hidden;
    padding: 28px 24px 24px;
    color: var(--vcs-editorial-white);
    background:
        radial-gradient(circle at 100% 0, rgba(255,255,255,.13), transparent 34%),
        linear-gradient(145deg, var(--vcs-editorial-green), var(--vcs-editorial-green-dark));
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(16,47,40,.16);
}

.vcs-editorial-sidebar .vcs-editorial-cta-card::before {
    content: "";
    position: absolute;
    right: -32px;
    bottom: -42px;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 50%;
}

.vcs-editorial-sidebar .vcs-editorial-cta-card::after {
    content: "";
    position: absolute;
    right: 17px;
    bottom: -54px;
    width: 96px;
    height: 96px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.vcs-editorial-sidebar .vcs-editorial-eyebrow {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 10px;
    color: #e4c493;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.vcs-editorial-sidebar .vcs-editorial-cta-card h5 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: var(--vcs-editorial-white);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.32;
}

.vcs-editorial-sidebar .vcs-editorial-cta-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 20px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    line-height: 1.7;
}

.vcs-editorial-sidebar .vcs-editorial-cta-button {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 10px 15px;
    color: var(--vcs-editorial-green-dark) !important;
    background: var(--vcs-editorial-white) !important;
    border: 1px solid var(--vcs-editorial-white) !important;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    box-shadow: none !important;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.vcs-editorial-sidebar .vcs-editorial-cta-button:hover,
.vcs-editorial-sidebar .vcs-editorial-cta-button:focus {
    color: var(--vcs-editorial-white) !important;
    background: transparent !important;
    transform: translateY(-2px);
}

.vcs-editorial-sidebar .vcs-editorial-cta-button i {
    margin-left: 12px;
    font-size: 11px;
}

/* =========================================================
   NEWS LISTING
========================================================= */

.rev-vcs-current-view .blog-posts .post.post-medium .post-image {
    margin-bottom: 0;
}

.rev-vcs-current-view .blog-posts .post.post-medium .post-image img {
    display: block;
    width: 100%;
    border: 0 !important;
    background: #f2f5f3;
    transition: transform .28s ease, opacity .28s ease;
}

.rev-vcs-current-view .blog-posts .post.post-medium .post-image a {
    display: block;
    overflow: hidden;
    background: #eef3f0;
}

.rev-vcs-current-view .blog-posts .post.post-medium .post-image a:hover img {
    transform: scale(1.018);
    opacity: .96;
}

.rev-vcs-current-view .blog-posts .post.post-medium .post-content h2 {
    letter-spacing: -.02em;
}

.rev-vcs-current-view .blog-posts .post.post-medium .post-content h2 a {
    color: #173f35;
    text-decoration: none;
}

.rev-vcs-current-view .blog-posts .post.post-medium .post-content h2 a:hover,
.rev-vcs-current-view .blog-posts .post.post-medium .post-content h2 a:focus {
    color: #b18247;
}

.rev-vcs-current-view .blog-posts .post.post-medium .post-content > p {
    color: #596761;
    font-size: 13px;
    line-height: 1.75;
}

.rev-vcs-current-view .blog-posts .post-meta {
    color: #7b8782;
    font-size: 11px;
}

.rev-vcs-current-view .blog-posts .post-meta a {
    color: #52615b;
    text-decoration: none;
}

.rev-vcs-current-view .blog-posts .post-meta a:hover {
    color: #173f35;
}

.rev-vcs-current-view .pagination .page-link {
    color: #173f35;
}

.rev-vcs-current-view .pagination .page-item.active .page-link {
    color: #fff;
    background: #173f35;
    border-color: #173f35;
}

/* =========================================================
   SINGLE NEWS ARTICLE
========================================================= */

.rev-vcs-current-view .single-post .blog-single-post > .post-image img {
    border: 0 !important;
    background: #f2f5f3;
}

.rev-vcs-current-view .single-post .post-content {
    color: #33413c;
}

.rev-vcs-current-view .single-post .blog-article-content {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.9;
}

.rev-vcs-current-view .single-post .blog-article-content p {
    margin-bottom: 1.35rem;
}

.rev-vcs-current-view .single-post .blog-article-content h2 {
    margin: 2.15rem 0 1rem;
    color: #173f35;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.rev-vcs-current-view .single-post .blog-article-content h3 {
    margin: 1.75rem 0 .85rem;
    color: #244e43;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.rev-vcs-current-view .single-post .blog-article-content ul,
.rev-vcs-current-view .single-post .blog-article-content ol {
    margin: 0 0 1.4rem;
    padding-left: 1.35rem;
}

.rev-vcs-current-view .single-post .blog-article-content li {
    margin-bottom: .55rem;
}

.rev-vcs-current-view .single-post .blog-article-content strong {
    color: #1b342d;
}

.rev-vcs-current-view .single-post .blog-article-content a {
    color: #1d6957;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.rev-vcs-current-view .single-post .blog-article-content a:hover {
    color: #b18247;
}

.rev-vcs-current-view .single-post .blog-article-content table {
    width: 100%;
    margin: 1.4rem 0 1.7rem;
    border-collapse: collapse;
    font-size: 13px;
}

.rev-vcs-current-view .single-post .blog-article-content th,
.rev-vcs-current-view .single-post .blog-article-content td {
    padding: 11px 12px;
    border: 1px solid #dce6e1;
    vertical-align: top;
}

.rev-vcs-current-view .single-post .blog-article-content th {
    color: #173f35;
    background: #edf4f1;
    font-weight: 700;
}

.rev-vcs-current-view .single-post .post-share {
    padding-top: 24px;
    border-top: 1px solid #e7ece9;
}

.rev-vcs-current-view .single-post .post-share .btn {
    min-width: 40px;
    color: #173f35;
    border-color: #dce6e1;
}

.rev-vcs-current-view .single-post .post-share .btn:hover {
    color: #fff;
    background: #173f35;
    border-color: #173f35;
}

/* Related news */
.rev-vcs-current-view .single-post .post-block article.post img {
    background: #f2f5f3;
}

.rev-vcs-current-view .single-post .post-block article.post h5 a {
    color: #173f35;
    text-decoration: none;
}

.rev-vcs-current-view .single-post .post-block article.post h5 a:hover {
    color: #b18247;
}

@media (max-width: 991px) {
    .vcs-editorial-sidebar {
        margin-top: 36px;
    }
}

@media (max-width: 767px) {
    .rev-vcs-current-view .single-post .blog-article-content {
        font-size: 14px;
        line-height: 1.8;
    }

    .rev-vcs-current-view .single-post .blog-article-content h2 {
        font-size: 21px;
    }

    .rev-vcs-current-view .single-post .blog-article-content h3 {
        font-size: 18px;
    }
}
