/* =========================
   VIDEOS GRID & CARDS
   ========================= */

.videos-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.videos-wrap h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    line-height: 1.3;
}

/* Grid layout for all videos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Video Card */
.videos-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card, #fff);
    border: 1px solid var(--line, #ddd);
    border-radius: var(--radius, 8px);
    overflow: hidden;
    box-shadow: var(--shadow, 0 4px 10px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.videos-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

/* Thumbnail */
.videos-img-link {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.videos-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.videos-img-link:hover .videos-img {
    transform: scale(1.05);
}

.videos-img-placeholder {
    width: 100%;
    height: 200px;
    display: grid;
    place-items: center;
    background-color: #f4f4f4;
    font-size: 3rem;
    color: #ccc;
}

/* Card Body */
.videos-body {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.videos-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    line-height: 1.35;
}

.videos-title a {
    color: var(--ink-strong, #111);
    text-decoration: none;
}

.videos-title a:hover {
    color: var(--accent, #007bff);
}

/* Meta & Description */
.videos-meta {
    font-size: 0.875rem;
    color: var(--ink-muted, #666);
    margin-bottom: 0.75rem;
}

.videos-excerpt {
    margin-bottom: 1rem;
    color: var(--ink-muted, #555);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button */
.btn.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--accent, #007bff);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius, 6px);
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn.primary:hover {
    background-color: var(--accent-hover, #0056b3);
    transform: translateY(-1px);
}

/* =========================
   SINGLE VIDEO PAGE
   ========================= */

.video-wrap {
    max-width: 850px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.videos-player {
    aspect-ratio: 16/9;
    margin: 2rem 0;
    width: 100%;
}

.videos-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.videos-content {
    line-height: 1.75;
    margin-bottom: 2rem;
}

.videos-content h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent, #007bff);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* =========================
   EMPTY STATE
   ========================= */

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: #666;
    font-size: 1.2rem;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}
/* Parent wrapper */
.section-wrapper {
    display: flex;
    /* Flexbox layout */
    flex-direction: column;
    /* Stack children vertically */
    align-items: center;
    /* Horizontally center all children */
    justify-content: center;
    /* Vertically center optional */
    text-align: center;
    /* Fallback for inline text */
    max-width: 800px;
    /* Limits width */
    margin: 2rem auto;
    /* Center wrapper horizontally */
    padding: 0 1rem;
    /* Mobile padding */
}

/* H2 styling */
.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Centered HR */
.section-divider {
    width: 40%;
    /* Line width */
    height: 4px;
    /* Thickness */
    background-color: #000;
    border: none;
    margin: 1rem 0;
    /* Vertical spacing */
}

/* Paragraph styling */
.section-intro {
    line-height: 1.6;
    font-size: 1rem;
    color: #444;
    margin-top: 1rem;
    max-width: 600px;
    /* Limits line length for readability */
}

/* MOBILE RESPONSIVE */
@media(max-width:768px) {
    .section-divider {
        width: 60%;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-intro {
        font-size: 0.95rem;
    }
}

@media(max-width:480px) {
    .section-divider {
        width: 80%;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-intro {
        font-size: 0.9rem;
    }
}