/* Videos page styles matched to https://drshyammohan.com/videos. */
.videos-page {
    --primary-color: #0066cc;
    --white: #fff;
    --gray-bg: #fafafa;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-2xl: 3rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background: var(--white);
}

.videos-page .container {
    padding-right: 12px;
    padding-left: 12px;
}

.videos-page .row {
    --bs-gutter-x: 1.5rem;
}

.videos-page h1,
.videos-page h2 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.videos-page .service-hero-section {
    background: #fffaf3;
    padding: 4rem 0;
}

.videos-page .service-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #0f1010;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.videos-page .service-hero-description {
    font-size: 1.125rem;
    color: #040404;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.videos-page .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.videos-page .breadcrumb-item a {
    color: #0066cc;
    text-decoration: none;
    transition: color 150ms ease-in-out;
}

.videos-page .breadcrumb-item.active {
    color: #e35353;
    font-weight: 500;
}

.videos-page .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #666;
    padding: 0 0.5rem;
}

.videos-page .section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1e293b !important;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: none;
}

.videos-page .educational-videos-section {
    background: var(--gray-bg);
    position: relative;
}

.videos-page .educational-videos-section .video-group-title {
    font-size: 2.5rem;
    letter-spacing: 0;
}

.videos-page .educational-video-card {
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.videos-page .educational-video-card:hover {
    transform: translateY(-8px);
}

.videos-page .video-card-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.videos-page .educational-video-card:hover .video-card-wrapper {
    box-shadow: 0 12px 40px rgba(0, 102, 204, 0.15);
}

.videos-page .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: #000;
}

.videos-page .video-card-wrapper.no-content .video-wrapper {
    border-radius: var(--radius-xl);
}

.videos-page .video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.videos-page .video-card-wrapper.no-content .video-iframe {
    border-radius: var(--radius-xl);
}

.videos-page .instagram-reel-wrapper {
    position: relative !important;
    aspect-ratio: 4 / 5;
    padding-bottom: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: var(--radius-xl) !important;
    background: #000 !important;
}

.videos-page .instagram-reel-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.videos-page .instagram-reel-cover {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #fff;
    cursor: pointer;
}

.videos-page .instagram-reel-cover[hidden] {
    display: none;
}

.videos-page .instagram-reel-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.videos-page .instagram-reel-cover:focus-visible {
    outline: 3px solid var(--primary-color, #0066cc);
    outline-offset: -3px;
}

.videos-page .instagram-reel-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 20px;
}

.videos-page .instagram-reel-cover:hover .instagram-reel-play {
    background: #0066cc;
}

.videos-page .instagram-reel-play .fa-spinner,
.videos-page .instagram-reel-cover[aria-busy="true"] .fa-play {
    display: none;
}

.videos-page .instagram-reel-cover[aria-busy="true"] .fa-spinner {
    display: inline-block;
}

.videos-page .instagram-reel-cover:disabled {
    cursor: progress;
}

@media (min-width: 1200px) {
    .videos-page .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .videos-page .container {
        max-width: 1320px;
    }
}

@media (max-width: 992px) {
    .videos-page .educational-video-card {
        margin-bottom: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .videos-page .service-hero-section {
        padding: 2rem 0;
    }

    .videos-page .educational-videos-section {
        padding: var(--spacing-2xl) 0 !important;
    }

    .videos-page .video-card-wrapper {
        border-radius: var(--radius-lg);
    }

    .videos-page .video-wrapper,
    .videos-page .video-iframe {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .videos-page .educational-videos-section .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
}
