/*
Theme Name: Lenin
Theme URI: marxist.com
Author: RCI Development Team
Author URI: marxist.com
Description: The official theme for The International (RCI).
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 
Version: 1.1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: ollie
Text Domain: lenin
Tags: Blog, Portfolio, Entertainment, Grid Layout, One Column, Two Columns, Three Columns, Four Columns, Block Editor Patterns, Block Editor Styles, Custom Logo, custom-menu, Editor Style, Featured Images, Site Editor, Full Width Template, rtl-language-support, Style Variations, Template Editing, Theme Options, translation-ready, Wide Blocks
*/













/* =========================================
   RCI Latest News Slider (International Edition)
   ========================================= */

:root {
    --rkp-bar-bg: #fff;
    --rkp-bar-border: #e5e5e5;
    --rkp-bar-text: var(--wp--preset--color--main, #000);
    --rkp-bar-accent: var(--wp--preset--color--primary, #ea1917);

    /* FORCE FONT: We specify 'Lenin' directly before the variable to ensure it */
    --rkp-bar-font: "Lenin", var(--wp--preset--font-family--primary), sans-serif;

    --rkp-bar-height: 5.5rem;
}

.rkp-news-bar {
    background-color: var(--rkp-bar-bg);
    border-top: 1px solid var(--rkp-bar-border);
    border-bottom: 1px solid var(--rkp-bar-border);
    font-family: var(--rkp-bar-font);
    width: 100%;
    margin: 2rem 0;
    position: relative;
    max-width: 100vw;
}

/* --- GRID LAYOUT --- */
.rkp-news-bar__layout {
    display: grid;
    grid-template-areas: "branding" "content";
    grid-template-columns: 100%;
}

@media (min-width: 60rem) {
    .rkp-news-bar__layout {
        grid-template-areas: "branding content nav";
        grid-template-columns: auto 1fr auto;
        height: var(--rkp-bar-height);
        align-items: center;
    }
}

/* --- 1. BRANDING --- */
.rkp-news-bar__branding {
    grid-area: branding;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--rkp-bar-border);
}

@media (min-width: 60rem) {
    .rkp-news-bar__branding {
        border-bottom: none;
        border-right: 1px solid var(--rkp-bar-border);
        padding: 0 1.5rem;
        height: 100%;
    }
}

.rkp-news-bar__branding-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--rkp-bar-text);
    gap: 0.5rem;
}

.rkp-news-bar__title {
    font-family: var(--rkp-bar-font);
    font-weight: 700;
    font-style: normal;
    /* Ensures against condensed */
    font-stretch: normal;
    /* Ensures against condensed */
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--rkp-bar-accent);
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

.rkp-icon-arrow {
    margin-top: 2px;
}

/* --- 2. TRACK --- */
.rkp-news-bar__content {
    grid-area: content;
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* White Fade Gradient on sides */
.rkp-news-bar__content:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #fff 0%, transparent 15px, transparent calc(100% - 15px), #fff 100%);
    z-index: 2;
}

.rkp-news-bar__track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-behavior: auto;
    scrollbar-width: none;
    align-items: center;
    cursor: grab;
}

.rkp-news-bar__track.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.rkp-news-bar__track::-webkit-scrollbar {
    display: none;
}

/* --- CARDS & INSET DIVIDERS --- */
.rkp-news-card {
    flex: 0 0 auto;
    width: 340px;
    padding: 0 1.25rem;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* THE INSET DIVIDER MAGIC */
/* This creates the DR effect with a line that doesn't touch top/bottom */
.rkp-news-card::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    /* Starts 20% down */
    bottom: 20%;
    /* Stops 20% from bottom */
    width: 1px;
    background-color: var(--rkp-bar-border);
}

.rkp-news-card:last-child::after {
    display: none;
}

.rkp-news-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.85rem;
    -webkit-user-drag: none;
}

/* Thumbnail */
.rkp-news-card__media {
    flex: 0 0 60px;
    height: 60px;
    background: #f0f0f0;
    overflow: hidden;
    border-radius: 2px;
}

.rkp-news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rkp-news-card__placeholder {
    width: 100%;
    height: 100%;
    background-color: #eaeaea;
}

/* Text Area */
.rkp-news-card__text-wrapper {
    flex: 1;
    min-width: 0;
}

.rkp-news-card__meta {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Time becomes red if it is today */
.rkp-time-today {
    color: var(--rkp-bar-accent);
    font-weight: 700;
}

.rkp-separator {
    color: #ccc;
    font-size: 0.6rem;
}

.rkp-news-card__category {
    font-weight: 700;
    text-transform: uppercase;
}

.rkp-news-card__title {
    font-family: var(--rkp-bar-font);
    font-weight: 700;
    /* Lenin Bold */
    font-style: normal;
    font-stretch: normal;
    font-size: 0.95rem;
    line-height: 1.25;
    margin: 0;
    color: var(--rkp-bar-text);

    /* Truncate text after 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rkp-news-card__link:hover .rkp-news-card__title {
    text-decoration: underline;
}

/* --- 3. NAVIGATION --- */
.rkp-news-bar__nav {
    grid-area: nav;
    display: none;
    padding: 0 1rem;
    height: 100%;
    align-items: center;
    gap: 0.5rem;
    border-left: 1px solid var(--rkp-bar-border);
}

@media (min-width: 60rem) {
    .rkp-news-bar__nav {
        display: flex;
    }
}

.rkp-nav-btn {
    background: transparent;
    border: 1px solid #ccc;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
    color: #000;
    transition: all 0.2s ease;
}

.rkp-nav-btn:hover {
    background-color: #f0f0f0;
    border-color: #000;
}