/* ==========================================================================
   Channel Cinco — Home / Blog Page Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Parent Theme Overrides for Home Page
   -------------------------------------------------------------------------- */
body.channelcinco .cc-home-hero-section {
    background: #000 !important;
    padding: 0;
    margin: 0;
}

body.channelcinco .cc-home-hero__main-overlay a,
body.channelcinco .cc-home-hero__main-title a {
    color: #fff !important;
}

body.channelcinco .cc-home-hero__cta {
    color: #fff !important;
}

body.channelcinco .cc-home-hero__articles a {
    color: #fff;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

body.channelcinco .cc-home-catblocks {
    background: #000 !important;
    padding: 0;
}

body.channelcinco .cc-home-catblock a {
    color: #ffffffa8;
}

body.channelcinco .cc-home-catblock__view-all {}

@keyframes rotate-border {
    to {
        --angle: 360deg;
    }
}

/* --------------------------------------------------------------------------
   1. Hero Section — Sticky Post + Top Stories Sidebar
   -------------------------------------------------------------------------- */
.cc-home-hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
    padding-bottom: 20px;
}

/* --- Main Hero (sticky post) --- */
.cc-home-hero__main {
    position: relative;
    overflow: hidden;
    background: #000;
    min-height: 420px;
    border: 1px solid;
    border-image: linear-gradient(var(--angle), rgb(255 255 255 / 28%),
            rgb(255 255 255 / 10%)) 1;
    animation: 10s rotate-border linear infinite;
}

.cc-home-hero__main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.cc-home-hero__main:hover .cc-home-hero__main-image {
    transform: scale(1.02);
}

.cc-home-hero__main-overlay {
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    padding: 30px 35px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.08) 100%);
    display: flex;
    align-items: flex-end;
}

.cc-home-hero__main-overlay--inner {
    width: 90%;
}

.cc-home-hero__badge {
    display: inline-block;
    background-color: var(--cc-accent, #c41230);
    color: #fff;
    font-family: var(--cc-font-heading, 'Oswald', sans-serif);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.cc-home-hero__main-title {
    font-family: var(--cc-font-heading, 'Oswald', sans-serif);
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.12;
    color: #fff;
    margin: 0 0 12px;
}

.cc-home-hero__main-title a {
    color: #fff;
    text-decoration: none;
}

.cc-home-hero__main-title a:hover {
    color: #fff;
}

.cc-home-hero__main-excerpt {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
    font-family: var(--cc-font-body, 'Inter', sans-serif);
}

.cc-home-hero__main-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    font-family: var(--cc-font-heading, 'Oswald', sans-serif);
    letter-spacing: 1px;
}

/* --- Top Stories Sidebar --- */
.cc-home-hero__articles {
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    border-left: none;
}

.cc-home-hero__articles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    padding-top: 0;
    border-bottom: 1px solid #1e1e1e;
}

.cc-home-hero__articles-title {
    font-family: var(--cc-font-heading);
    font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    letter-spacing: 1px;
}

.cc-home-hero__articles-title svg {
    display: none;
}

.cc-home-hero__articles-view-all {
    font-family: var(--cc-font-heading, 'Oswald', sans-serif);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cc-accent, #c41230) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cc-home-hero__articles-view-all:hover {
    color: #fff !important;
}

.cc-home-hero__articles-view-all svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.cc-home-hero__articles-list {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cc-home-hero__article-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #1a1a1a;
    text-decoration: none;
    transition: background 0.2s ease;
    align-items: center;
}

.cc-home-hero__article-item:last-child {
    border-bottom: none;
}

.cc-home-hero__article-item:hover {
    background: #151515;
}

.cc-home-hero__article-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

.cc-home-hero__article-content {
    flex: 1;
    min-width: 0;
}

.cc-home-hero__article-title {
    font-family: var(--cc-font-heading, 'Oswald', sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-home-hero__article-badge {
    display: inline-block;
    font-family: var(--cc-font-heading, 'Oswald', sans-serif);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--cc-accent, #c41230);
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.cc-home-hero__article-date {
    font-size: 10px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--cc-font-heading, 'Oswald', sans-serif);
}

/* --------------------------------------------------------------------------
   2. Category Blocks — 3-Column Grid Layout
   -------------------------------------------------------------------------- */
.cc-home-catblocks__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 10px 0 30px;
    gap: 30px;
    column-rule: 1px solid #292929;
}

.cc-home-catblock {
    background: #0a0a0a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- Category Header --- */
.cc-home-catblock__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.cc-home-catblock__title {
    font-family: var(--cc-font-heading);
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    color: #FFF;
    letter-spacing: 1px;
    margin: 0;
}

.cc-home-catblock__view-all {
    font-family: var(--cc-font-heading, 'Oswald', sans-serif);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cc-accent, #c41230) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.cc-home-catblock__view-all:hover {
    color: #fff !important;
}

.cc-home-catblock__view-all svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* --- Category Content Layout --- */
.cc-home-catblock__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* --- Featured Card (first post) --- */
.cc-home-catblock__featured {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    aspect-ratio: 16 / 9;
    background: #111;
}

.cc-home-catblock__featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cc-home-catblock__featured:hover .cc-home-catblock__featured-image {
    transform: scale(1.05);
}

.cc-home-catblock__featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
}

.cc-home-catblock__featured-badge {
    display: inline-block;
    background: var(--text-color, var(--cc-accent, #c41230));
    color: #fff;
    font-family: var(--cc-font-heading);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 5px;
    margin-bottom: 6px;
}

.cc-home-catblock__featured-title {
    font-family: var(--cc-font-heading, 'Oswald', sans-serif);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-home-catblock__featured-excerpt {
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    font-family: var(--cc-font-body, 'Inter', sans-serif);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- List Items (remaining posts) --- */
.cc-home-catblock__list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgb(255 255 255 / 6%);
}

.cc-home-catblock__list-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgb(255 255 255 / 6%);
    text-decoration: none;
    transition: background 0.2s ease;
    align-items: center;
    flex: 1;
}

.cc-home-catblock__list-item:last-child {
    border-bottom: none;
}

.cc-home-catblock__list-item:hover {}

.cc-home-catblock__list-item-content {
    flex: 1;
    min-width: 0;
}

.cc-home-catblock__list-item-title {
    font-family: var(--cc-font-heading, 'Oswald', sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #ddd;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-home-catblock__list-item-date {
    font-size: 9px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--cc-font-heading, 'Oswald', sans-serif);
}

.cc-home-catblock__list-item-thumb {
    width: 70px;
    height: 52px;
    object-fit: cover;
    flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   Category-specific accent colors (reused from catrow)
   -------------------------------------------------------------------------- */
.cc-home-catblock[data-color="red"] {
    --text-color: #b53436;
}

.cc-home-catblock[data-color="maroon"] {
    --text-color: #4f79ba;
}

.cc-home-catblock[data-color="orange"] {
    --text-color: #c46201;
}

.cc-home-catblock[data-color="purple"] {
    --text-color: #b547b5;
}

.cc-home-catblock[data-color="blue"] {
    --text-color: #3d4cb5;
}

.cc-home-catblock[data-color="teal"] {
    --text-color: #5dc1bf;
}

.cc-home-catblock[data-color="green"] {
    --text-color: #44a164;
}

.cc-home-catblock[data-color="indigo"] {
    --text-color: #7748c6;
}

.cc-home-catblock[data-color="slate"] {
    --text-color: #91a4b7;
}

.cc-home-catblock[data-color="crimson"] {
    --text-color: #f18da1;
}


/* --------------------------------------------------------------------------
   3. Responsive
   -------------------------------------------------------------------------- */

/* Tablet landscape */
@media (max-width: 1200px) {
    .cc-home-hero {
        grid-template-columns: 1fr 320px;
    }

    .cc-home-catblocks__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet portrait */
@media (max-width: 992px) {
    .cc-home-hero {
        grid-template-columns: 1fr;
    }

    .cc-home-hero__articles {
        border-left: 1px solid rgb(255 255 255 / 10%);
        max-height: none;
    }

    .cc-home-catblocks__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .cc-home-hero__main {
        min-height: 300px;
    }

    .cc-home-hero__main-title {
        font-size: 24px;
    }

    .cc-home-hero__main-overlay {
        padding: 20px;
    }

    .cc-home-catblocks__grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile portrait */
@media (max-width: 576px) {
    .cc-home-hero__main {
        min-height: 250px;
    }

    .cc-home-hero__main-title {
        font-size: 20px;
    }

    .cc-home-hero__main-overlay {
        padding: 16px;
    }

    .cc-home-hero__article-item {
        padding: 10px 14px;
    }

    .cc-home-hero__article-thumb {
        width: 65px;
        height: 48px;
    }

    .admin-bar .header__side .header__side--inner {
        top: 0 !important;
    }
}