/* Base */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Roboto', sans-serif; color:#222; background:#f4f4f4;}
a { text-decoration:none; color: inherit; }


/* Main Content Grid */
.main-content-grid { display:flex; gap:20px; width:90%; margin-left: 5%;}
.left-content { flex:3; display:flex; flex-direction:column;overflow: hidden; }
.right-sidebar { flex:1; display:flex; flex-direction:column; gap:20px; }


/* Responsive */
@media(max-width:1100px){
    .main-content-grid { flex-direction:column;}
    .hero-info { position:relative; background:rgba(0,0,0,0.6); margin:0; border-radius:0; }
    .hero-section img { height:250px; }
}




/* HERO SECTION */
.intro-wrap{
    width:100%;
    display:grid;
    grid-template-columns: 2fr 1.2fr;
    gap:16px;
    margin:16px 0;
    padding: 10px;
    box-sizing: border-box;
}

/* ================= HERO ================= */
.hero-news{
    position:relative;
    width:100%;
    height:330px;
    overflow:hidden;
    text-decoration:none;
}
.hero-news img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.4s;
}
.hero-news:hover img{
    transform:scale(1.03);
}

/* Hero Label */
.hero-label{
    position:absolute;
    top:12px;
    left:12px;
    background:#e10600;
    color:#fff;
    font-size:12px;
    font-weight:700;
    padding:6px 10px;
    border-radius:6px;
    text-transform:uppercase;
    z-index:2;
}

/* Dark Overlay */
.hero-overlay{
    position:absolute;
    bottom:0;
    width:100%;
    padding:18px 14px;
    background:linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}
.hero-overlay h2{
    font-size:20px;
    font-weight:800;
    line-height:1.35;
    color:#fff;
}

/* ================= LIST ================= */
.intro-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.list-news-card{
    display:flex;
    gap:10px;
    text-decoration:none;
    background:#fff;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
    transition:0.25s;
}
.list-news-card:hover{
    transform:translateY(-2px);
}

/* LIST IMAGE */
.list-image{
    width:95px;
    min-width:95px;
    height:80px;
}
.list-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* LIST CONTENT */
.list-content{
    padding:6px 10px 6px 2px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.list-label{
    font-size:11px;
    font-weight:700;
    color:#e10600;
    margin-bottom:4px;
    text-transform:uppercase;
}

.list-title{
    font-size:14px;
    font-weight:700;
    line-height:1.35;
    color:#111;
}

/* =============== MOBILE =============== */
@media (max-width:768px){
    .intro-wrap{
        grid-template-columns:1fr;
    }
    .hero-news{
        height:260px;
    }
    .hero-overlay h2{
        font-size: 17px;
    }
    .list-image{
        width:85px;
        min-width:85px;
        height:70px;
    }
}











/* CARASOUL SECTION */

.carousel-section {
    margin-top: 15px;
    padding: 10px;
    width: 100%;
}

/* Wrapper keeps buttons + carousel in one row */
.carousel-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

/* Vertical Rectangle Buttons */
.carousel-side-btn {
    width: 25px;
    height: 70px;
    background: black;
    border-radius: 4px;
    color: white;
    border: none;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-side-btn:hover {
    background: #ff3b3b;
}

/* Scroll Area */
.carousel {
    flex: 1;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.carousel-card {
    width: 230px;
    flex-shrink: 0;
    margin-right: 10px;
    scroll-snap-align: start;
}

.carousel-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.carousel-title {
    color: black;
    padding: 10px;
    font-size: 12px;
    font-weight: bold;
}

/* dots */
.carousel-dots {
    text-align: center;
    margin-top: 8px;
}

.carousel-dots .dot {
    height: 3px;
    width: 3px;
    display: inline-block;
    background: #777;
    margin: 0 4px;
}

.carousel-dots .dot.active {
    background: #ff3b3b;
    width: 12px;
    height: 3px;
}

/* ✅ Hide side buttons on mobile */
@media (max-width: 768px) {
    .carousel-side-btn {
        display: none;
    }
}





/* VIDEO SECTION */
.video-section {
    background: #444; 
    padding: 20px 15px;
    color: #fff;
}

/* Title Row */
.video-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.video-section-header h2 {
    font-size: 18px;
    margin: 0;
    font-weight: 500;
}

.video-section-header a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    padding: 5px 10px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
}

/* Horizontal Scroll List */
.video-scroll-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.video-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* Video Card */
.video-card {
    display: inline-block;
    width: 230px;
    margin-right: 15px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: #fff;
}

/* Thumbnail */
.video-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

/* Play Icon Overlay */
.video-card .play-icon {
    position: absolute;
    top: 10%;
    left: 10%;
    transform: translate(-50%, -50%);
    font-size: 25px;
    color: red;
    opacity: 0.85;
}

/* Title under card */
.video-card-title {
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    min-height: 55px;
    text-wrap: wrap;
}

/* ✅ ONLY NEW STYLES FOR BUTTONS */
.video-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-side-btn {
    min-width: 30px;
    width: 30px;
    height: 70px;
    border-radius: 4px;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-side-btn:hover {
    background: red;
}

@media (max-width: 768px) {
    .video-side-btn {
        display: none;
    }
}

/* ✅ FORCE HORIZONTAL FLOW (STACKING FIX) */
.video-scroll-wrapper {
    white-space: nowrap;
    display: block;
}

.video-scroll-wrapper .video-card {
    display: inline-block !important;   /* ← This fixes vertical stacking */
    vertical-align: top;
}






.shorts-section {
    background: #444; 
    padding: 20px 15px;
    color: #fff;
}

/* Title Row */
.shorts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.shorts-header h2 {
    font-size: 18px;
    margin: 0;
    font-weight: 500;
}

.shorts-header a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    padding: 5px 10px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
}

/* Horizontal Scroll List */
.shorts-scroll-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.shorts-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* Shorts Card */
.shorts-card {
    display: inline-block;
    width: 230px;
    margin-right: 15px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: #fff;
}

/* Vertical Thumbnail 9:16 */
.shorts-card img {
    width: 100%;
    height: 410px;
    object-fit: cover;
    border-radius: 10px;
}

/* Play Icon Overlay */
.shorts-card .play-icon {
    position: absolute;
    top: 10%;
    left: 10%;
    transform: translate(-50%, -50%);
    font-size: 25px;
    color: red;
    opacity: 0.85;
}

.shorts-card-title {
    padding: 10px 5px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-wrap: wrap;
    height: 80px;
    overflow: hidden;
    display: -webkit-box;      
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ✅ ONLY NEW BUTTON STYLES */
.shorts-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shorts-side-btn {
    min-width: 30px;
    width: 30px;
    height: 70px;
    border-radius: 4px;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shorts-side-btn:hover {
    background: red;
}

/* ✅ FORCE HORIZONTAL FLOW (STACK FIX) */
.shorts-scroll-wrapper {
    display: block;
    white-space: nowrap;
}

.shorts-scroll-wrapper .shorts-card {
    display: inline-block !important;
    vertical-align: top;
}

/* Hide buttons on mobile */
@media (max-width: 768px) {
    .shorts-side-btn {
        display: none;
    }
}








/* INFINITE SCROLL SECTION */
.infinite-feed-header {
    margin-top: 20px;
    padding: 10px;
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
}

.infinite-feed-header h4 {
    color: #d32f2f; /* News Red Color */
    font-size: 18px;
    text-transform: uppercase;
}

/* Feed Item Container */
.feed-item {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 10px;
    width: 100%;
}

.feed-link {
    display: flex;
    flex-direction: row; /* Row for Image Left + Text Right layout */
    gap: 15px;
    align-items: flex-start;
}

/* Feed Image */
.feed-image {
    flex: 0 0 120px; /* Fixed width for image */
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
}

.feed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Feed Content */
.feed-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feed-content h3 {
    font-size: 16px;
    line-height: 1.3;
    color: #000;
    margin-bottom: 8px;
    font-weight: 600;
    /* Limit text to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-date {
    font-size: 12px;
    color: #777;
}

/* Animation for new items */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.feed-item {
    animation: fadeIn 0.5s ease-out;
}


/* --- Container for Infinite Scroll --- */
#infinite-news-container {
    display: flex;
    flex-wrap: wrap; /* Allows items to sit next to each other */
    width: 100%;
    padding: 0;
    margin: 0;
}

/* --- Base Item Style --- */
.feed-item {
    box-sizing: border-box;
    background: #fff;
    overflow: hidden;
}

/* 1. LIST VIEW (Default - Image Left, Text Right) */
.layout-list {
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    gap: 15px;
}
.layout-list .feed-image {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 5px;
}
.layout-list .feed-content h3 {
    font-size: 16px;
    line-height: 1.3;
}

/* 2. GRID VIEW (2 Columns - Image Top, Text Bottom) */
.layout-grid {
    width: 50%; /* 2 items per row */
    display: flex;
    flex-direction: column;
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0; /* Separator */
}
.layout-grid .feed-image {
    width: 100%;
    height: 100px; /* Smaller height for grid */
    border-radius: 5px;
    margin-bottom: 8px;
}
.layout-grid .feed-content h3 {
    font-size: 14px; /* Smaller font */
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit text lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 3. BIG CARD VIEW (1 Column - Big Image Top) */
.layout-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-bottom: 5px solid #f4f4f4; /* Thick separator */
}
.layout-card .feed-image {
    width: 100%;
    height: 400px; /* Big Image */
    margin-bottom: 10px;
    display: none;
}
.layout-card .feed-content h3 {
    font-size: 18px; /* Big Font */
    font-weight: 700;
    line-height: 1.4;
}







.editors-picks h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: white;
    border-bottom: 2px solid #f00;
    padding-bottom: 5px;
}
.editors-picks .pick-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    text-decoration: none;
    color: #000;
    transition: background 0.2s;
    padding: 5px;
    border-radius: 5px;
    background:#f0f0f0;
}

.editors-picks .pick-img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}
.editors-picks .pick-info h4 {
    font-size: 16px;
    margin: 0 0 5px 0;
}
.editors-picks .pick-info p {
    font-size: 13px;
    color: #555;
    margin: 0;
}


/* Sidebar */
.sidebar-widget {  background-color: black; padding:15px; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,0.1); }
.sidebar-widget h3 { font-size:16px; margin-bottom:10px; }
.sidebar-widget ul { list-style:none; }
.sidebar-widget ul li { margin-bottom:8px; }
.sidebar-widget ul li a { color:#222; font-size:14px; }
.sidebar-widget ul li a:hover { color:#e63946; }

/* Editor Picks */
.editors-picks .pick-item { padding:8px 5px; margin-bottom:8px; background:#f0f0f0; border-radius:5px; font-size:14px; cursor:pointer; transition:0.3s; }
