body {
    font-family: Rbno2, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.logo {
    width: 100px;
    height: auto;
    align-self: left;
    cursor: pointer;
}

.social-header {
    display: flex;
    justify-content: flex-end;
    background-color: #282827;
    padding: 10px 30px;
    height: 14px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: #282827; /* Or your preferred color */
    color: rgb(255, 255, 255);
}

/* These ensure the center stays centered */
.header-left, .header-right {
    flex: 1;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

.header-right-middle {
    display: flex;
    justify-content: flex-end;
    margin-left: 80%;

}

.header-center {
    flex: 0 0 auto;
    text-align: center;
}

/* The Larger Live Badge */
.header-live-badge-large {
    display: inline-flex;
    align-items: center;
    background: #ff0000;
    color: #fff;
    font-size: 1rem; /* Bigger text */
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 50px; /* Pill shape */
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

/* Bigger Pulsing Dot */
.pulse-dot-large {
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    animation: pulse-large 1.5s infinite;
}

@keyframes pulse-large {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0px rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0px rgba(255, 255, 255, 0);
    }
}

/* Mobile Fix: Stack or hide if too cramped */
@media (max-width: 600px) {
    .header-live-badge-large {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    .logo { font-size: 1rem; }
}

.nav-links {
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}

footer {
    text-align: center;
    padding: 10px;
    color: #fff;
    background-color: #282827;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.row {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on mobile */
    gap: 20px;
    padding: 20px;
    padding-top: 0px;
    padding-left: 0px;
}

.hero {
    width: 100%;
    min-height: 80vh; /* Adjust based on your nav height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000; /* Black background for video letterboxing */
    overflow: hidden;
}

.carousel-split {
    position: relative;
    height: 80vh;
    background: #000; /* Deep black base */
}

/* Add a dark overlay ONLY for the images, not the text */
.carousel-split::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* This darkens the images */
    z-index: 5; /* Sit between images and text */
    pointer-events: none;
}

.carousel-grid {
    display: grid !important;
    /* This FORCES 3 columns even if the browser is confused */
    grid-template-columns: 1fr 1fr 1fr !important; 
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.carousel-grid img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* This prevents the 'zoom' look by clipping the edges */
    display: block;
}

/* Ensure the hero container is actually 100% width */
.carousel-split {
    position: relative;
    width: 100%;
    height: 80vh;
    background: #000;
    overflow: hidden;
}

.hero-content {
    position: absolute; /* Changed from relative to absolute center */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10; /* Highest priority */
    text-align: center;
    color: #ffffff !important; /* Force pure white */
    width: 80%;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    opacity: 1 !important; /* Ensure no accidental transparency */
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Responsive Video Container */
.live-embed-container {
    position: relative;
    width: 100%;
    height: 80vh;
}

.live-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; 
    outline: none; 
    box-shadow: none;
}

/* Red "Live" badge over the video */
.live-overlay-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ff0000;
    color: white;
    padding: 5px 12px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Styling for the standard hero text */
.hero-content {
    text-align: center;
    color: white;
    padding: 40px;
}

/* Sidebar takes up 20% */
.sidebar {
    flex: 0 0 20%; 
    min-width: 250px; /* Prevents it from getting too skinny */
    background-color: #f9f9f9; /* Very light gray */
    border-right: 1px solid #ececec;
    padding: 20px;
    box-shadow: inset -5px 0 10px -5px rgba(0,0,0,0.05);

}

@media (max-width: 768px) {
    .sidebar {
        max-width: 94%;
    }
}

/* Main content takes up the remaining 80% */
.main-content {
    padding-top: 20px;
    flex: 1; 
}

/* Each card is now a flex container */
.yt-video-card {
    display: flex;
    align-items: flex-start; /* Aligns items to the top */
    gap: 12px;              /* Space between thumb and text */
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.yt-video-card:hover {
    background-color: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: background-color 0.2s ease;
}

/* Fix the size of the thumbnail so it stays small in the sidebar */
.yt-thumbnail-wrapper {
    flex: 0 0 100px; /* Thumbnail stays 100px wide */
}

.yt-thumbnail-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* The text container stacks Title over Date */
.yt-video-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.yt-video-title {
    margin: 0 0 4px 0;   /* Small gap above the date */
    font-size: 0.85rem;  /* Smaller font for sidebar fit */
    line-height: 1.3;
    font-weight: 600;
}

.yt-video-title a {
    text-decoration: none;
    color: #222;
    /* This next part prevents titles from being 10 lines long */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.yt-video-date {
    font-size: 0.75rem;
    color: #888;
}

/* Mobile Responsive: Stack them when screen is small */
@media (max-width: 768px) {
    .main-content, .sidebar {
        flex: 0 0 100%;
    }
}

.column.main-content {
    text-align: center;
}

.header-live-badge {
    display: inline-flex;
    align-items: center;
    background: #ff0000;
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

/* The pulsing dot effect */
.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    margin-right: 5px;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(0.9);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .carousel-grid {
        /* Force the grid into a single column */
        grid-template-columns: 1fr !important;
    }

    /* Hide the second and third images to keep it clean */
    .carousel-grid img:nth-child(2),
    .carousel-grid img:nth-child(3) {
        display: none !important;
    }

    /* Adjust the text size so it doesn't swallow the whole screen on mobile */
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}