/* ============================================ 
 * INTRO SLIDER - With Video Support
 * ============================================ */

/* Main Slider Container */
#introSlider { 
    margin: 0 auto 25px auto;
    width: 960px; 
    position: relative; 
    clear: both;
}

/* Container for slides */
.container { 
    width: 958px; 
    height: 539px; 
    border: #ccc 1px solid;
    border-top: 0;
    overflow: hidden; 
    position: relative;
}

/* Slides wrapper */
.slides { 
    position: absolute; 
    top: 0; 
    left: 0;
    width: 960px;
}

/* Individual slide */
.slides div { 
    width: 960px; 
    display: none;
    position: absolute; 
    top: 0; 
    left: 0;
}

/* Images in slides */
.slides img {
    border: none;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slide headings */
.slides h1 {
    color: #fff;
    text-align: left;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-size: 2.5em;
    position: absolute;
    top: 45px;
    left: 50px;
    margin: 0;
    z-index: 10;
}

/* Slide text content */
.slides p {
    width: 400px;
    color: #fff;
    text-align: left;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-size: 1.3em;
    line-height: 1.6;
    position: absolute;
    top: 110px;
    left: 50px;
    margin: 0;
    z-index: 10;
}

/* For slides with white backgrounds */
.slides p.onWhite, 
.slides h1.onWhite {
    color: #333;
    text-shadow: none;
}

/* Slider shadow at bottom */
#sliderShadow {
    width: 960px;
    height: 26px;
    position: relative;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* ============================================ 
 * SLIDER CONTROLS - Flexbox
 * ============================================ */

#sliderControls {
    min-width: 90px;
    height: 12px;
    background-color: rgba(255,255,255,0.7);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    -webkit-box-shadow: 0 2px 5px #bbb;
    -moz-box-shadow: 0 2px 5px #bbb;
    box-shadow: 0 2px 5px #bbb;
    padding: 5px;
    position: absolute;
    top: 550px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

/* Pagination dots container */
ul.pagination { 
    list-style-type: none; 
    padding: 0; 
    margin: 0;
    display: flex;
    gap: 8px;
}

ul.pagination li { 
    display: inline-block;
}

/* Pagination dot styling */
ul.pagination a {
    display: block;
    width: 12px;
    height: 12px;
    padding: 0;
    overflow: hidden;
    text-indent: -9999px;
    background-color: #ccc;
    border-radius: 50%;
    transition: all 0.3s ease;
}

ul.pagination a:hover {
    background-color: #999;
    transform: scale(1.1);
}

/* Active pagination dot */
ul.pagination li.active a {
    background-color: #b90068;
    transform: scale(1.2);
}

/* Previous / Next arrows */
a.previous, 
a.next { 
    display: block;
    width: 15px;
    height: 15px;
    text-indent: -9999px;
    overflow: hidden;
}

a.previous:hover,
a.next:hover {
    opacity: 0.7;
}

/* ============================================ 
 * VIDEO SLIDE STYLES
 * ============================================ */

/* Video slide - show pointer cursor */
.slides .video-slide {
    cursor: pointer;
}

/* Play button overlay - centered on the thumbnail */
/* Override .slides div defaults */
.slides .video-play-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    z-index: 15;
    width: 68px !important;
    height: 48px !important;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block !important;
}

.slides .video-slide:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* YouTube play button background */
.video-play-btn .play-bg {
    fill: #DB4437;
    transition: fill 0.3s ease;
}

.slides .video-slide:hover .play-bg {
    fill: #FF0000;
}

/* Video iframe wrapper - fills the slide */
/* Override .slides div defaults which set display:none and fixed width */
.slides .video-iframe-wrap {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 960px !important;
    height: 540px !important;
    z-index: 20;
    background: #000;
    display: block !important;
}

/* Close button for video */
.slides .video-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 25;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.6);
    width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    text-indent: 0;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.slides .video-close-btn:hover {
    background: rgba(185, 0, 104, 0.9);
}