/**
 * Integra Half Slider Block Styles
 */

/* Wrapper */
.integrahalfslider-wrapper {
    position: relative;
    width: 100%;
    padding: 60px 0;
}

/* Row Layout */
.integrahalfslider-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    max-width: 1250px;
    margin: auto;
}

/* Columns */
.integrahalfslider-content-col,
.integrahalfslider-slider-col {
    flex: 1;
    width: 100%;
    max-width: 800px;
}

/* Content Styles */
.integrahalfslider-title {
    color: var(--secondary);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2.5rem;
    text-align: center;
}

.integrahalfslider-copy {
    text-align: center;
}

/* Slider Styles */
.integrahalfslider-slider {
    position: relative;
    margin-bottom: 20px;
}

.integrahalfslider-slide {
    position: relative;
}

.integrahalfslider-video-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.integrahalfslider-poster {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.integrahalfslider-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.integrahalfslider-video-wrapper:hover .integrahalfslider-poster img {
    transform: scale(1.05);
}

/* Play Button */
.integrahalfslider-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    z-index: 2;
}

.play-button-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(var(--tertiary-rgb), 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(var(--tertiary-rgb), 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(var(--tertiary-rgb), 0);
    }
}

/* Caption */
.integrahalfslider-caption {
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    color: #666;
}

/* Slider Navigation */
.integrahalfslider-slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.integrahalfslider-slider .slick-arrow:hover {
    background-color: var(--secondary);
}

.integrahalfslider-slider .slick-arrow i {
    font-size: 18px;
}

.integrahalfslider-slider .slick-prev {
    left: -50px;
}

.integrahalfslider-slider .slick-next {
    right: -50px;
}
/*Slick Bullets Design*/
/* Remove default list styles and align in a row */
.slick-dots {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 20px 0 0;
}

/* Space between dots */
.slick-dots li {
  margin: 0 5px;
}

/* Hide number inside button if visible */
.slick-dots li button {
  display: block;
  width: 12px;
  height: 12px;
  padding: 5px;
  cursor: pointer;
  color: transparent;
  border: 0;
  background: transparent;
}

/* Dot styling */
.slick-dots li button:before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc; /* default color */
  transition: background-color 0.3s ease;
}

/* Active dot */
.slick-dots li.slick-active button:before {
  background-color: var(--primary);
}

/* Modal Styles */
.integrahalfslider-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.integrahalfslider-modal.active {
    display: block;
    opacity: 1;
}

.integrahalfslider-modal-content {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 900px;
    top: 50%;
    transform: translateY(-50%);
}

.integrahalfslider-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.integrahalfslider-modal-video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.integrahalfslider-modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .integrahalfslider-slider .slick-prev {
        left: -20px;
    }

    .integrahalfslider-slider .slick-next {
        right: -20px;
    }

    .integrahalfslider-slider-col {
        padding-right: 0px;
    }
}

@media (max-width: 767px) {
    .integrahalfslider-title {
        font-size: 2rem;
    }

    .integrahalfslider-play-button {
        width: 60px;
        height: 60px;
    }

    .play-button-inner {
        font-size: 18px;
    }
}

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

.video-modal-content {
    position: relative;
    background: #fff;
    padding: 1rem;
    max-width: 960px;
    width: 90%;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
}

.video-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.video-modal iframe {
    width: 100%;
    height: 500px;
    max-width: 960px;
}
.video-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.video-modal-content {
    position: relative;
    background: #fff;
    padding: 1rem;
}
.video-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

.video-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    align-content: center;
}

.video-modal-content {
    position: relative;
    background: #fff;
    max-width: 960px;
    width: 90%;
    padding: 1rem;
    margin: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.video-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: -20px;
    color: #fff;
    font-size: 2rem;
    border-radius: 50%;
    padding: 0.25em 0.5em;
    cursor: pointer;
    z-index: 10;
}

/* Global Video Modal */
.video-modal {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* semi-transparent black */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.video-modal.video-modal-active {
    display: flex;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Modal content */
.video-modal-content {
    position: relative;
    max-width: 90%;
    width: 900px; /* or whatever width you prefer */
    max-height: 90%;
    z-index: 10;
    background: #000; /* black background for the video container */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

/* Close button */
.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 11;
}

/* Video iframe */
.video-modal iframe {
    width: 100%;
    height: 100%;
    display: block;
}
