/* Home Page Styles */

/* 3-Row Slider Style */
.video-slider-track.three-rows {
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    grid-auto-columns: 280px;
    gap: 15px;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .video-slider-track.three-rows {
        grid-auto-columns: 220px;
    }
}

@media (max-width: 480px) {
    .video-slider-track.three-rows {
        grid-auto-columns: 180px;
    }
}

.video-slider {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Fallback for Font Awesome */
.slider-nav-button i.fa-fallback {
    font-style: normal;
    font-weight: bold;
    display: inline-block;
    min-width: 1em;
    text-align: center;
}

.video-slider-container {
    position: relative;
    padding: 0;
}

.slider-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.slider-nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-nav-button.prev-button {
    left: 10px;
}

.slider-nav-button.next-button {
    right: 10px;
}

/* News Card Styles */
.news-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 15px;
    box-sizing: border-box;
}

.news-card .news-title {
    font-size: 0.95rem;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: var(--card-title-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: calc(1.3em * 3);
}

.news-card .news-title a {
    color: inherit;
    text-decoration: none;
}

.news-card .news-title a:hover {
    text-decoration: underline;
}

/* Graph Styles */
.links line {
    stroke: #999;
    stroke-opacity: 0.6;
}

.nodes ellipse {
    stroke: none;
    stroke-width: 0;
    cursor: pointer;
    transition: rx 0.1s ease-in-out, ry 0.1s ease-in-out;
}

.links path {
    stroke: #ccc;
    stroke-opacity: 0.4;
    stroke-width: 1px;
}

.node-label {
    font-size: 9px;
    font-family: sans-serif;
    pointer-events: none;
    fill: #fff;
    text-anchor: middle;
    dominant-baseline: middle;
    stroke: #000;
    stroke-width: 0.3px;
    paint-order: stroke;
}

.link-label {
    font-size: 10px;
    font-family: sans-serif;
    fill: #555;
    pointer-events: none;
}

#home-graph-container {
    width: 100%;
    height: 450px;
    border: 1px solid var(--section-border-color);
    margin-top: 30px;
    background-color: var(--card-bg-color);
    position: relative;
}

html body.dark-mode .node-label {
    fill: #ffffff !important;
}

html body.dark-mode .link-label {
    fill: #bbbbbb !important;
}

/* Zoom Buttons */
.zoom-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.zoom-controls button {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.zoom-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.zoom-controls button:active {
    background-color: rgba(0, 0, 0, 1);
}

/* Video Grid styles moved to video-player.css */