/* =================================== */
/* MEDIA PAGE STYLES                   */
/* =================================== */

/* Tags & Dates (Shared) */
.media-tag {
    display: inline-block;
    color: #C5A059; /* Gold */
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.article-date {
    display: block;
    color: #888;
    font-size: 13px;
    margin-top: 10px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: #fff;
    border: 1px solid #eee;
    border-top: 3px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-top-color: #C5A059; /* Gold accent on hover */
}

.article-content {
    padding: 30px;
}

.article-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.read-link {
    display: inline-block;
    margin-top: 15px;
    color: #0A2342;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s ease;
}

.read-link:hover {
    color: #C5A059;
}

/* Videos Grid - Set to 3 columns for a gallery look */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-card {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    overflow: hidden; /* Ensures the video respects the card boundaries */
}

.video-card:hover {
    transform: translateY(-5px);
}

/* The video container forces the perfect 16:9 YouTube ratio */
.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #0A2342;
}

/* Make the iframe fill the container perfectly */
.video-thumb iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* We can hide the old play button and watermark since we have real videos now */
.play-btn, .watermark-icon {
    display: none;
}



/* Media Page Mobile Responsive */
@media (max-width: 768px) {
    .articles-grid, .videos-grid {
        grid-template-columns: 1fr;
    }
}