/* 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; }


/* Buttons */
.btn { padding:10px 20px; border-radius:5px; display:inline-block; font-weight:600; transition:0.3s; }
.btn-primary { background:#e63946; color:#fff; }
.btn-primary:hover { background:#d62839; }

/* 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; }





/* 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;
}






/* ALL VIDEOS */
.video-page {
    background: #444;
    padding: 25px 15px;
}

/* Page Title */
.video-page h1 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
    color: white;
}

/* Grid Layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

/* Video Card */
.video-list-card {
    background: #f7f7f7;
    overflow: hidden;
    text-decoration: none;
    color: #000;
    transition: 0.2s ease;
}


/* Thumbnail */
.video-list-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Play Icon */
.video-list-play {
    position: absolute;
    top: 8px;
    left: 10px;
    font-size: 26px;
    color: red;
}

/* Content */
.video-list-content {
    padding: 12px;
}

.video-list-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    height: 50px;
    text-wrap: wrap;
}

/* Mobile */
@media (max-width: 600px) {
    .video-list-title {
        font-size: 14px;
    }
}









/* INFINITE 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; }
