/*==============================================================================
  Moodle Module Intro — Video Intro Widget Styles
  Centered video player with title, skip button, and progress dots.
  ============================================================================*/

/* -------- Container -------- */
.oew-moodle-module-intro {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px 40px;
    text-align: center;
}

/* -------- Back Link -------- */
.oew-moodle-module-intro-back {
    display: inline-block;
    color: var(--oew-primary, #003556);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    text-align: left;
}

.oew-moodle-module-intro-back:hover {
    text-decoration: underline;
    color: #002a45;
}

/* -------- Wrapper -------- */
.oew-moodle-module-intro-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* On the intro page, the PDF wrapper reuses the detail widget's
   .oew-moodle-module-detail-pdf-wrapper class. That class has
   max-width: 960px which creates white margins on the sides of the
   video player. Override it here to make the wrapper (and the video
   inside it) full-width, so the teal border extends to the content
   edges with no white margins. */
.oew-moodle-module-intro .oew-moodle-module-detail-pdf-wrapper {
    max-width: 100%;
}

/* -------- Video Player -------- */
.oew-moodle-module-intro-video {
    width: 100%;
    /* No max-width: the video extends full-width so there are no white
       margins on the sides. The teal border wraps the video at the
       edges of the content area. */
    border: 1px solid var(--oew-secondary, #009790);
    border-radius: 0;
    overflow: hidden;
    background: #000;
    margin-bottom: 28px;
}

.oew-moodle-module-intro-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    outline: none;
}

/* -------- Title -------- */
.oew-moodle-module-intro-title {
    font-family: verdana;
    font-size: 28px;
    font-weight: 600;
    color: var(--oew-text, #333333);
    margin: 0 0 20px;
    line-height: 1.3;
    max-width: 100%;
}

/* -------- Skip Button -------- */
a.oew-moodle-module-intro-skip,
a.oew-moodle-module-intro-skip:link,
a.oew-moodle-module-intro-skip:visited,
a.oew-moodle-module-intro-skip:hover,
a.oew-moodle-module-intro-skip:active,
a.oew-moodle-module-intro-skip:focus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--oew-secondary, #009790);
    color: var(--oew-background, #FFFFFF);
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: 24px;
    margin-bottom: 32px;
}

a.oew-moodle-module-intro-skip:hover {
    background: #007d77;
    transform: translateY(-1px);
    color: var(--oew-background, #FFFFFF);
}

a.oew-moodle-module-intro-skip:visited {
    color: #ffffff;
}

/* -------- Progress Dots -------- */
.oew-moodle-module-intro-dots {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #999999;
}

.oew-moodle-module-intro-dot {
    font-weight: 500;
}

.oew-moodle-module-intro-dot--active {
    color: var(--oew-secondary, #009790);
    font-weight: 600;
}

.oew-moodle-module-intro-dot-sep {
    color: #cccccc;
    font-size: 11px;
}

/* -------- Responsive -------- */

/* Tablet */
@media (max-width: 1024px) {
    .oew-moodle-module-intro-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .oew-moodle-module-intro {
        padding: 16px 16px 32px;
    }

    .oew-moodle-module-intro-title {
        font-size: 22px;
    }

    .oew-moodle-module-intro-skip {
        padding: 10px 22px;
        font-size: 14px;
    }
}
