/* ================================================
   Crypto Live News — Sidebar (Hot Stories replacement)
   ================================================ */

.ce-cln-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Featured card — full-width image with title overlay */
.ce-cln-sidebar-featured {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.ce-cln-sidebar-featured a {
    display: block;
    text-decoration: none;
    position: relative;
}

.ce-cln-sidebar-featured-img img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.ce-cln-sidebar-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 14px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0) 100%);
    border-radius: 0 0 10px 10px;
}

.ce-cln-sidebar-featured-overlay h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
    font-weight: 700;
}

.ce-cln-sidebar-featured-overlay .ce-cln-sidebar-badge a,
.ce-cln-sidebar-featured-overlay .ce-cln-sidebar-badge span {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #3b4292;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
    text-decoration: none;
}

/* List container — press-release gradient card */
.ce-cln-sidebar-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: linear-gradient(360deg, #e2eaf6 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 28px;
    padding: 20px 25px;
}

/* List items — title left, thumbnail right */
.ce-cln-sidebar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 13px 0;
    position: relative;
}

.ce-cln-sidebar-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ce-cln-item-tag,
.ce-cln-item-tag:hover,
.ce-cln-item-tag:visited {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #3b4292;
    text-decoration: none;
    border-radius: 3px;
    padding: 1px 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.ce-cln-item-time {
    font-size: 11px;
    color: #6c6c6c;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.ce-cln-sidebar-item-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ce-cln-sidebar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 1px;
    width: 100%;
    background-color: #c4c4c4;
}

.ce-cln-sidebar-item:last-child::after {
    display: none;
}

.ce-cln-sidebar-item-body .ce-cln-sidebar-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ce-cln-sidebar-item-text h4 {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}

.ce-cln-sidebar-item-text h4 a {
    color: #181c47;
    text-decoration: none;
}

.ce-cln-sidebar-item-text h4 a:hover {
    color: #3b4292;
}

.ce-cln-sidebar-item-img {
    flex-shrink: 0;
    width: 80px;
    height: 65px;
    border-radius: 15px;
    overflow: hidden;
}

.ce-cln-sidebar-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

/* View all button */
.ce-cln-sidebar-view-all {
    display: inline-block;
    margin-top: 6px;
    padding: 7px 18px;
    border: 1px solid #c8cde8;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #181c47;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.ce-cln-sidebar-view-all:hover {
    background: #181c47;
    color: #fff;
    border-color: #181c47;
}

/* ================================================
   Crypto Live News — Homepage Section
   ================================================ */

.ce-cln-home-section {
    padding: 20px 0 50px;
    background-color: #fff;
}

/* Title row — match other sections (h2 left, View More right) */
.ce-cln-home-section .ce-price-prediction-block-title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 25px;
}

/* Heading — same style as LIVE NEWS / Price Prediction */
.ce-cln-home-section .ce-price-prediction-block-title h2 {
    margin: auto;
    margin-left: 0;
    font-size: 32px;
    color: #3b4292;
    text-transform: uppercase;
    border-left: 3px solid #000;
    padding-left: 7px;
    background: #282c68;
    background: -moz-linear-gradient(90deg, rgba(40, 44, 104, 0.35) 0%, rgba(255, 255, 255, 0) 30%);
    background: -webkit-linear-gradient(90deg, rgba(40, 44, 104, 0.35) 0%, rgba(255, 255, 255, 0) 30%);
    background: linear-gradient(90deg, rgba(40, 44, 104, 0.35) 0%, rgba(255, 255, 255, 0) 30%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#282c68", endColorstr="#ffffff", GradientType=1);
}

.ce-cln-home-section .ce-price-prediction-block-title a {
    color: #282c68;
    font-size: 14px;
    font-weight: bold;
}

/* Outer wrapper — plain flex row, no extra border */
.ce-cln-home-wrapper {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: stretch;
}

/* Each column card */
.ce-cln-home-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(40, 44, 104, 0.15);
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
}

/* Timeline — articles stacked vertically */
.ce-cln-home-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid rgba(40, 44, 104, 0.2);
    margin-bottom: 20px;
}

/* Each article row */
.ce-cln-home-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ce-cln-home-item-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: -26px;
}

.ce-cln-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #3b4292;
    display: block;
}

.ce-cln-time {
    font-size: 13px;
    color: #3b4292;
    font-weight: 500;
}

/* Article card */
.ce-cln-home-card {
    display: block;
    text-decoration: none;
    background: linear-gradient(90deg, rgba(40, 44, 104, 0.06) 0%, rgba(255, 255, 255, 0) 60%);
    border: 1px solid rgba(40, 44, 104, 0.12);
    border-radius: 10px;
    padding: 12px 14px 10px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ce-cln-home-card:hover {
    background: linear-gradient(90deg, rgba(40, 44, 104, 0.12) 0%, rgba(255, 255, 255, 0) 60%);
    box-shadow: 0 2px 10px rgba(40, 44, 104, 0.1);
}

.ce-cln-home-card h4 {
    font-size: 16px;
    margin: 0 0 6px;
    color: #181c47;
    line-height: 1.4;
}

.ce-cln-home-excerpt {
    font-size: 14px;
    margin: 0 0 4px;
    line-height: 1.6;
    color: #555;
}

/* View All button */
.ce-cln-view-all {
    display: block;
    width: fit-content;
    background: rgba(40, 44, 104, 0.08);
    color: #282c68;
    font-weight: 600;
    font-size: 16px;
    padding: 6px 15px;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid rgba(40, 44, 104, 0.2);
    transition: background 0.2s ease, color 0.2s ease;
    margin-top: auto;
}

.ce-cln-view-all:hover {
    background: #282c68;
    color: #fff;
}

/* Dark mode */
body.ce-dark-mode .ce-cln-home-section .ce-price-prediction-block-title h2,
body.ce-dark-mode .ce-cln-home-section .ce-price-prediction-block-title a {
    color: #ffffff;
}

body.ce-dark-mode .ce-cln-home-section .ce-price-prediction-block-title h2 {
    border-left: 3px solid #606c73;
    background: linear-gradient(90deg, rgba(96, 108, 115, 0.35) 0%, rgba(255, 255, 255, 0) 30%);
}

/* Responsive */
@media (max-width: 992px) {
    .ce-cln-home-wrapper {
        flex-wrap: wrap;
        gap: 16px;
    }
    .ce-cln-home-col {
        flex: 1 1 calc(50% - 8px);
    }
    .ce-cln-home-section .ce-price-prediction-block-title h2 {
        font-size: 24px;
        line-height: 27px;
    }
}

@media (max-width: 768px) {
    .ce-cln-home-wrapper {
        flex-direction: column;
        gap: 16px;
    }
    .ce-cln-home-col {
        flex: 1 1 100%;
        padding: 15px;
    }
    .ce-cln-home-section {
        padding: 20px 0 30px;
    }
}
