/* ============================================
   VIDEO GRID & CARD STYLES - PROFESSIONAL LAYOUT
   ============================================ */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    margin-top: 40px;
}

.video-card {
    background-color: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(155, 89, 182, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.3);
    border-color: rgba(0, 102, 204, 0.4);
}

/* ============================================
   VIDEO CONTAINER - RESPONSIVE SIZING
   ============================================ */

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    width: 60%; /* Reduced default width */
    margin: 0 auto; /* Center the video */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Ensure video takes full width on smaller screens */
@media (max-width: 992px) {
    .video-container {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .video-container {
        width: 100%;
    }
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   VIDEO INFO - TITLE & DESCRIPTION
   ============================================ */

.video-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-info h3 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.video-info p {
    font-size: 0.8rem;
    color: #bbb;
    line-height: 1.5;
    flex-grow: 1;
}

/* ============================================
   CONTENT BLOCKS - BEFORE/AFTER VIDEO
   ============================================ */

.video-content-block {
    padding: 25px;
    background-color: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 25px;
}

.video-content-block:last-child {
    margin-bottom: 0;
}

.video-content-block h1 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.video-content-block h2 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.video-content-block h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.video-content-block h4 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.video-content-block h5 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.video-content-block h6 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.video-content-block p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 12px;
}

.video-content-block p:last-child {
    margin-bottom: 0;
}

.video-content-block ul,
.video-content-block ol {
    margin-left: 20px;
    margin-bottom: 15px;
    color: #ccc;
}

.video-content-block li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.video-content-block strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.video-content-block em {
    color: #ddd;
    font-style: italic;
}

/* ============================================
   TABLET RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .video-info {
        padding: 20px;
    }

    .video-info h3 {
        font-size: 1.2rem;
    }

    .video-info p {
        font-size: 0.9rem;
    }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .video-info {
        padding: 18px;
    }

    .video-info h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .video-info p {
        font-size: 0.85rem;
    }

    .video-content-block {
        padding: 18px;
        margin-bottom: 18px;
    }

    .video-content-block h1 {
        font-size: 1.6rem;
    }

    .video-content-block h2 {
        font-size: 1.4rem;
    }

    .video-content-block h3 {
        font-size: 1.2rem;
    }

    .video-content-block p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .video-card {
        border-radius: 10px;
    }

    .video-info {
        padding: 15px;
    }

    .video-info h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .video-info p {
        font-size: 0.8rem;
    }

    .video-content-block {
        padding: 15px;
        margin-bottom: 15px;
        border-left-width: 3px;
    }

    .video-content-block h1 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .video-content-block h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .video-content-block h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .video-content-block p {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
}

/* ============================================
   AD SPACE PLACEHOLDER
   ============================================ */

.ad-space {
    background-color: rgba(155, 89, 182, 0.1);
    border: 2px dashed rgba(0, 102, 204, 0.3);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.ad-space p {
    font-size: 0.9rem;
    margin: 0;
}
