/* ==========================================
   DCPL SOLAR - PROJECT VIDEO CAROUSEL
   Professional / Lightweight / Responsive
========================================== */

.project-videos-section,
.project-videos-section * {
    box-sizing: border-box;
}

.project-videos-section {
    width: 100%;
    padding: 55px 20px;
    background: #f8fafc;
    overflow: hidden;
}

.project-videos-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* SECTION HEADING */

.project-videos-heading {
    text-align: center;
    margin-bottom: 30px;
}

.project-videos-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.project-videos-heading h2 {
    margin: 0 0 9px;
    color: #1e293b;
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 700;
    line-height: 1.25;
}

.project-videos-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* CAROUSEL */

.project-videos-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.project-videos-viewport {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.project-videos-track {
    display: flex;
    gap: 14px;
    width: 100%;
    transition: transform 450ms ease;
    will-change: transform;
}

/* VIDEO CARD - 4 PER SCREEN */

.project-video-card {
    flex: 0 0 calc((100% - 42px) / 4);
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

/* VIDEO THUMBNAIL */

.project-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e2e8f0;
}

.project-video-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-video-frame iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* PLAY BUTTON */

.project-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 1px solid #ffffff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    font-size: 16px;
    cursor: pointer;
}

.project-video-play:hover {
    background: #ffffff;
}

/* CLOSE VIDEO BUTTON */

.project-video-close {
    position: absolute;
    z-index: 5;
    top: 7px;
    right: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
}

/* VIDEO TITLE */

.project-video-info {
    padding: 10px 11px;
}

.project-video-title {
    margin: 0;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

/* NAVIGATION ARROWS */

.project-videos-arrow {
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #dbe2ea;
    border-radius: 50%;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    cursor: pointer;
}

.project-videos-arrow:hover:not(:disabled) {
    background: #edf2f7;
}

.project-videos-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* DOTS AND COUNTER */

.project-videos-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 20px;
}

.project-videos-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.project-videos-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: #cbd5e1;
    cursor: pointer;
}

.project-videos-dot.active {
    width: 21px;
    background: #64748b;
}

.project-videos-counter {
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

/* TABLET - 2 VIDEOS */

@media (max-width: 900px) {

    .project-video-card {
        flex-basis: calc((100% - 14px) / 2);
    }

}

/* MOBILE - 1 VIDEO */

@media (max-width: 520px) {

    .project-videos-section {
        padding: 40px 12px;
    }

    .project-videos-heading {
        margin-bottom: 23px;
    }

    .project-videos-carousel {
        gap: 7px;
    }

    .project-video-card {
        flex-basis: 100%;
    }

    .project-videos-arrow {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .project-videos-track {
        transition: none;
    }

}

/* ==========================================
   DCPL SOLAR - YOUTUBE VIDEO ACCENTS
========================================== */

/* Section background */
.project-videos-section {
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
}

/* YouTube eyebrow label */
.project-videos-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    background: #fff1f1;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.project-videos-eyebrow::before {
    content: "▶";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #dc2626;
    color: #ffffff;
    font-size: 9px;
}

/* Heading accent */
.project-videos-heading h2 {
    color: #1e293b;
}

.project-videos-heading h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 12px auto 0;
    background: #dc2626;
    border-radius: 5px;
}

/* Video card */
.project-video-card {
    border-color: #e2e8f0;
    transition: border-color 0.25s ease,
                box-shadow 0.25s ease,
                transform 0.25s ease;
}

.project-video-card:hover {
    border-color: #fca5a5;
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}

/* Thumbnail play button */
.project-video-play {
    width: 46px;
    height: 46px;
    background: #dc2626;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.project-video-play:hover {
    background: #b91c1c;
    color: #ffffff;
}

/* Video title */
.project-video-title {
    color: #334155;
}

/* Carousel arrows */
.project-videos-arrow:hover:not(:disabled) {
    border-color: #dc2626;
    background: #fff1f1;
    color: #dc2626;
}

/* Active navigation dot */
.project-videos-dot.active {
    background: #dc2626;
}

/* Counter */
.project-videos-counter {
    color: #64748b;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .project-video-card {
        transition: none;
    }

    .project-video-card:hover {
        transform: none;
    }
}


/* EXTRA COMPACT VIDEO CARDS + CLEAR SPACING */

.project-videos-container {
    max-width: 960px;
}

.project-videos-section {
    padding: 25px 15px;
}

.project-videos-carousel {
    gap: 10px;
}

.project-videos-track {
    gap: 18px;
}

.project-video-card {
    flex: 0 0 calc((100% - 54px) / 4);
    border-radius: 7px;
}

.project-video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.project-video-info {
    padding: 6px 8px;
}

.project-video-title {
    font-size: 10px;
    line-height: 1.4;
}

.project-videos-heading {
    margin-bottom: 17px;
}

.project-videos-navigation {
    margin-top: 12px;
}

/* TABLET */
@media (max-width: 900px) {
    .project-videos-track {
        gap: 14px;
    }

    .project-video-card {
        flex-basis: calc((100% - 14px) / 2);
    }
}

/* MOBILE */
@media (max-width: 520px) {
    .project-videos-container {
        max-width: 340px;
    }

    .project-videos-track {
        gap: 12px;
    }

    .project-video-card {
        flex-basis: 100%;
    }

    .project-videos-section {
        padding: 22px 10px;
    }
}

/* LARGE VIDEO CARDS - 3 PER SCREEN */

.project-videos-container {
    max-width: 1250px;
}

.project-videos-section {
    padding: 45px 18px;
}

.project-videos-track {
    gap: 18px;
}

.project-video-card {
    flex: 0 0 calc((100% - 36px) / 3);
}

.project-video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.project-video-info {
    padding: 10px 12px;
}

.project-video-title {
    font-size: 13px;
}

/* TABLET - 2 VIDEOS */
@media (max-width: 900px) {
    .project-video-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}

/* MOBILE - 1 VIDEO */
@media (max-width: 520px) {
    .project-video-card {
        flex-basis: 100%;
    }
}

