/* ============================================================
   Armour Hub - Video Updates Module Styles
   ============================================================ */

.videos-section {
    background-color: #F9F9F9;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #ECECEC;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 35px rgba(11, 27, 43, 0.12);
    border-color: rgba(212, 175, 55, 0.45);
}

.video-thumb-box {
    position: relative;
    height: 220px;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
}

.video-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.88;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.video-thumb-box:hover img {
    transform: scale(1.06);
    opacity: 0.95;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B1B2B;
    font-size: 1.4rem;
    padding-left: 4px;
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.25);
    transition: all 0.3s ease;
}

.video-thumb-box:hover .play-button-overlay {
    background-color: #D4AF37;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 0 14px rgba(212, 175, 55, 0.35);
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.video-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-date {
    font-size: 0.8rem;
    color: #888888;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0B1B2B;
    margin-bottom: 10px;
    line-height: 1.35;
}

.video-desc {
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.55;
    margin-bottom: 18px;
    flex-grow: 1;
}

.btn-watch-now {
    color: #0B1B2B;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    background: #F4F6F8;
    align-self: flex-start;
    transition: all 0.25s ease;
    border: 1px solid #E2E8F0;
    cursor: pointer;
}

.btn-watch-now:hover {
    background: #0B1B2B;
    color: #D4AF37;
    border-color: #0B1B2B;
}

/* Video Modal Popup */
.video-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-backdrop.open {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 2rem;
    cursor: pointer;
}

.video-iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 992px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}
