/* 
 * Card Styles - Shared card components
 * Usage: articles, news, resources, videos pages
 * Consolidates: Video cards, article cards, horizontal scrolling
 */

/* Video Card Styles - used in 7 pages */
.video-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Thumbnail Styles - used in 6 pages */
.thumbnail-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(255,255,255,1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-player {
    width: 100%;
    height: 200px;
    display: none;
}

/* Horizontal Scroll Container - used in 4 pages */
.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Scroll Buttons */
.scroll-wrapper {
    position: relative;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    color: #333;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.scroll-btn:hover {
    background: rgba(255,255,255,1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-50%) scale(1.05);
}

.scroll-btn-left {
    left: -25px;
}

.scroll-btn-right {
    right: -25px;
}

@media (min-width: 768px) {
    .scroll-btn {
        display: block;
    }
}

/* Article Card Styles */
.article-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-card-wrapper {
    flex: 0 0 450px;
    min-width: 450px;
}
