/**
 * Homepage Specific Styles
 *
 * @package TBC_News
 */
/* ===================================
   HERO LAYOUT (Hero + Side Stories)
   =================================== */

.hero-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

/* HERO SIDE */
.hero-main {
    width: 100%;
}

/* SIDE STORIES */
.hero-side-stories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* SIDE STORY ITEM */
/* .side-story-item {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 16px;
} */
.side-story-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 16px;
}

.side-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--tbc-primary);
    text-transform: uppercase;
}

.side-title {
    margin: 6px 0;
    font-size: 16px;
    font-weight: 700;
}

.side-title a {
    text-decoration: none;
    color: var(--tbc-text);
}

.side-title a:hover {
    color: var(--tbc-primary);
}

.side-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin: 6px 0 10px;
}

.side-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-meta .dot {
    width: 4px;
    height: 4px;
    background: #aaa;
    border-radius: 50%;
}
.side-story-thumb {
    flex: 0 0 120px;
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 6px;
}

.side-story-thumb a,
.side-story-thumb img {
    width: 100%;
    height: 100%;
    display: block;
}

.side-story-thumb img {
    object-fit: cover;
}
.side-story-item > :not(.side-story-thumb) {
    flex: 1;
}




/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    margin-bottom: 32px;
}

.hero-article {
    position: relative;
    background: var(--tbc-text);
    overflow: hidden;
    min-height: 500px;
}

.hero-article-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-article-content {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
    max-width: 800px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5));
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-article .category-badge {
    font-size: 12px;
    padding: 6px 14px;
    background-color: var(--tbc-primary);
}

.hero-article-title {
    margin: 16px 0;
}

.hero-article-title a {
    color: #ffffff;
    text-decoration: none;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 900;
    display: block;
    transition: opacity 0.3s ease;
}

.hero-article-title a:hover {
    opacity: 0.8;
}

.hero-article-excerpt {
    color: #e0e0e0;
    font-size: 18px;
    line-height: 1.6;
    margin: 16px 0 20px;
}

.hero-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #cccccc;
}

.hero-article-meta .author {
    color: #ffffff;
    font-weight: 600;
}

.hero-article-meta .separator {
    width: 4px;
    height: 4px;
    background-color: #cccccc;
    border-radius: 50%;
}

/* ===================================
   FEATURED GRID
   =================================== */

.featured-section {
    background: #fff;
    padding: 24px;
    margin-bottom: 40px;
}
.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-top: 3px solid var(--tbc-text);
}
.featured-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;  
  
}

.featured-grid img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover; 
}
.featured-grid-wrapper .article-card-content{
 padding: 20px;
}

/* ===================================
   TOP STORIES BAR
   =================================== */

.top-stories-bar {
    background: #ffffff;
    border-top: 3px solid var(--tbc-text);
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 20px;
    margin-bottom: 40px;
}

/* Layout: label | slider */
.top-stories-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 24px;
    overflow: hidden; 
}

.top-stories-label {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--tbc-text);
}

/* Slider viewport */
.top-stories-slider {
    overflow: hidden;
    min-width: 0; 
}

/* Sliding track */
.top-stories-list {
    display: grid;
    grid-auto-flow: column;
    column-gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;

    width: max-content;
    transition: transform 0.6s ease;
    will-change: transform;
}

/* Individual item */
.top-story-item {
    white-space: nowrap;
}

.top-stories-list a {
    color: var(--tbc-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.top-stories-list a:hover {
    opacity: 0.6;
}


/* ===================================
   CATEGORY SECTIONS
   =================================== */

.category-section {
      background: #fff;
    padding: 24px;
    margin-bottom: 40px;
}

.category-section .section-header {
        display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom-color: 3px solid var(--tbc-text);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .hero-article {
        min-height: 400px;
    }
     .hero-layout {
        grid-template-columns: 1.5fr 1fr;
    }
    .hero-article-content {
        min-height: 400px;
        padding: 40px 30px;
    }
    
    .hero-article-title a {
        font-size: 36px;
    }
    
    .hero-article-excerpt {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .featured-grid-wrapper {
        grid-template-columns: 2, 1fr;
    }
    
    .featured-primary {
        grid-column: 1 / 2;
    }
    
    .featured-secondary {
        grid-column: 1 / 2;
        grid-template-rows: auto;
        grid-template-columns: 1fr;
    }
     .hero-layout {
        grid-template-columns: 1fr;
    }
.side-story-thumb {
    flex: 0 0 200px;
    width: 100%;
    height: 200px;

}
    .hero-side-stories {
        margin-top: 24px;
    }
    .hero-article {
        min-height: 350px;
    }
    
    .hero-article-content {
        min-height: 350px;
        padding: 30px 20px;
    }
    
    .hero-article-title a {
        font-size: 28px;
    }
    
    .hero-article-excerpt {
        font-size: 15px;
    }
    
    .category-section {
        padding: 24px 16px;
    }
}
@media (max-width: 620px) {
    .featured-grid-wrapper {
        grid-template-columns:  1fr;
    }
}
@media (max-width: 480px) {
    .hero-article {
        min-height: 300px;
    }
    
    .hero-article-content {
        min-height: 300px;
        padding: 24px 16px;
    }
    
    .hero-article-title a {
        font-size: 24px;
    }
    
    .hero-article-excerpt {
        font-size: 14px;
        margin: 12px 0 16px;
    }
    
    .top-stories-bar {
        padding: 12px 0;
    }
    
    .category-section {
        padding: 20px 12px;
        margin-bottom: 24px;
    }
}


@media (max-width: 320px) {
.hero-article-meta {
    font-size: 10px;
  gap: 8px;
   }
}
/* ===================================
   HOMEPAGE AD SECTION
   =================================== */

.homepage-ad-section {
    margin: 48px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .homepage-ad-section {
        margin: 32px 0;
    }
}





