:root {
    --primary: #E31E24;   /* Red from logo */
    --secondary: #1F3C88; /* Blue from logo */
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --dark: #0A1D37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Section */
.video-gallery-section {
    padding: 90px 0;
    background: linear-gradient(180deg, var(--light-bg), #ffffff);
}

.container {
    width: 90%;
    max-width: 1250px;
    margin: auto;
}

/* Title */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--primary);
    letter-spacing: 1px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.section-title h1 {
    font-size: 38px;
    color: var(--dark);
    margin: 10px 0;
}

.section-title p {
    color: #555;
    max-width: 600px;
    margin: auto;
}

/* Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 35px;
}

/* Card */
.video-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.4s ease;
}

.video-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.video-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

/* Overlay */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

/* Play Button */
.play-btn {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transition: 0.4s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.15);
}

.video-card h3 {
    padding: 18px;
    text-align: center;
    font-size: 18px;
    color: var(--dark);
    background: #fff;
}

/* Modal */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.video-modal.active {
    display: flex;
}

.modal-box {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.modal-box video,
.modal-box iframe {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    display: none;
}

/* Close */
.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
}

/* Mobile */
@media(max-width: 600px) {
    .modal-box video,
    .modal-box iframe {
        height: 250px;
    }
}
