
.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {
    content: none !important;
}

/* Add this to your theme's CSS file */
.relevant-videos .card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background-color: #ffffff; /* Update with your website's card background color */
}

.relevant-videos .card:hover {
    transform: translateY(-5px);
}

.relevant-videos .card:hover h5 {
    color: var(--secondary);
}

.relevant-videos .card img {
    /*border-radius: 8px 0 0 8px;*/
}

.relevant-videos .card-body {
    padding: 15px;
}

.relevant-videos .card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333; /* Update with your website's text color */
}

.relevant-videos .card-text {
    font-size: 0.9rem;
    color: #666; /* Update with your website's secondary text color */
}

article.singleBlog .wp-block-image img {
    border-radius: var(--bs-border-radius-xl);
}

.VideoPlayer {
    /*min-height: 300px;*/
}

.relevant-videos > h2 {
    margin-bottom: 29px;
}

.thumbnail {
    object-position: top center;
}

::-moz-selection {
    color: white;
    background: var(--secondary);
}

::selection {
    color: white;
    background: var(--secondary);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    /*border-radius: 10px;*/
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

#loader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f3f3f3; /* Update with your website's background color */
    z-index: 9999;
}

.loader-container {
    text-align: center;
    animation: fadeIn 1.5s ease-in-out infinite;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc; /* Update with your website's secondary color */
    border-top-color: #FE0EC9; /* Update with your website's primary color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loader-container p {
    font-family: Arial, sans-serif;
    color: #FE0EC9; /* Update with your website's text color */
    font-size: 18px;
    margin-top: 15px;
    animation: pulse 2s infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.home .VideoPlayer {
    height: 100%;
}

.OurBlogs .card-body > p {
    font-size: 16px;
    margin: 8px 0;
    font-weight: 600;
}

.VideoPlayBox a.titles {
    /*min-height: 60px;*/
    color: #212529;
}

.external-watch {
    /*min-height: 48px;*/
}

article.singleBlog img.wp-post-image {
    max-height: 395px;
    display: flex;
    object-fit: cover;
    object-position: top;
    width: auto;
    margin: 0 auto;
}

article.singleBlog .wp-block-heading {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

article.singleBlog h3.wp-block-heading,
article.singleBlog h2.wp-block-heading {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 2rem;
}

article.singleBlog p, article.singleBlog .wp-block-list {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.4rem;
}

.wp-block-cover, .wp-block-cover-image {
    margin-bottom: 2rem;
}

.custom-breadcrumb {
    padding: 0.5rem 1rem;
    font-size: 14px; /* Adjust size for readability on mobile */
    word-wrap: break-word; /* Ensure text doesn't overflow */
}

.custom-breadcrumb .breadcrumb {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    justify-content: center; /* Center aligns the breadcrumbs */
    gap: 0.5rem; /* Add spacing between breadcrumb items */
}

.custom-breadcrumb .breadcrumb-item {
    text-transform: capitalize; /* Make text easier to read */
}

.custom-breadcrumb .breadcrumb-item a {
    text-decoration: none; /* Remove underline */
}

.custom-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline; /* Underline on hover for better UX */
}

.custom-breadcrumb .breadcrumb-item.active {
    color: #fff; /* Subtle color for the active item */
}

.custom-breadcrumb {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.4rem;
    word-wrap: break-word;
}

.custom-breadcrumb .breadcrumb {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    justify-content: center; /* Center aligns the breadcrumbs */
    gap: 0.5rem; /* Add spacing between breadcrumb items */
}

.custom-breadcrumb .breadcrumb-item {
    text-transform: capitalize; /* Make text easier to read */
}

.custom-breadcrumb .breadcrumb-item a {
    text-decoration: none; /* Remove underline */
    font-size: inherit; /* Use the parent font size */
}

.custom-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline; /* Underline on hover for better UX */
}

.custom-breadcrumb .breadcrumb-item.active {
    color: #fff;
}

.BlogDetailsSlider .swiper-slide {
    /*height: 550px;*/
}

.PricingSlider {
    /*min-height: 500px;*/
}

.page-link {
    color: #333;
    border: 0;
}

.page-link.current {
    color: #fff;
    background: var(--grad-dark);
    border-radius: 5px;
}

.VideoPlayBox {
    position: relative;
    overflow: hidden;
}

.video-description {
    width: 100%;
    color: #000;
    padding: 10px;
    transition: bottom 0.3s ease-in-out;
    font-weight: 600;
}

.PopSliderPrice {
    /*height: 100%;*/
}

.PopSliderPrice h2 small {
    font-size: 2.5rem;
}

.PopSliderPrice ul li img {
    margin: 0;
}

.cardSlide > a > img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    display: flex;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.video-description.show {
    bottom: 0;
    padding-bottom: 4rem;
}

.cardSlide > .read-more {
    z-index: 999;
}

.navbar .custom-logo-link {
    margin-left: 1rem;
}

.single .view-all-link {
    position: absolute;
    right: 0;
    bottom: -20px;
}

.SearchForm {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    position: relative;
    align-items: center;
}

.search-input-group {
    width: 100%;
}

.single .search-input-group {
    max-width: 864px;
}

.mobile-search-toggle {
    display: none;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn .search-icon {
    /*display: none;*/
}

.search-btn .btn-text {
    display: inline;
}

.btn-hover.color-1 {
    background-image: linear-gradient(to right, var(--primary), var(--secondary), var(--secondary), var(--primary));
}

.search-form-container {
    margin-top: 1rem;
}

.list-group .watched-wrap {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    top: auto;
}

#experience_training .VideoPlayBox {
    height: 470px;
}

.slider::after, .slider::before {
    /*height: 30px;*/
}

@keyframes suaveSlideIn {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Existing /our-training styles */
.video-gallery {
    display: flex;
    flex-wrap: wrap;
    /*gap: 20px;*/
}

.video-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    /*aspect-ratio: 16 / 9;*/
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-template-page-our-training .video-thumbnail {
    min-height: 400px;
}

.thumbnail-img {
    /*display: none; */
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.9) 70%, rgba(254, 14, 201, 0.3) 100%);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    opacity: 0;
    border-top: 2px solid #FE0EC9;
}

.video-card:hover .video-info {
    transform: translateY(0);
    opacity: 1;
}

.video-info h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.video-info p {
    font-size: 0.9rem;
    margin: 0;
    color: #fff;
    line-height: 1.4;
}

.play-pause-icon {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    z-index: 10;
    border: 2px solid #FE0EC9;
    border-radius: 50%;
}

.play-pause-icon:hover {
    opacity: 0.8;
    border-color: #fff;
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-right-color: #FE0EC9;
    animation: l15 1s infinite linear;
    z-index: 5;
}

.loader::before,
.loader::after {
    content: "";
    grid-area: 1/1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
    animation: l15 2s infinite;
}

.loader::after {
    margin: 8px;
    animation-duration: 3s;
}

@keyframes l15 {
    100% {
        transform: rotate(1turn)
    }
}

/* New styles for serviceSliderSec */
.cardSlide .video-description {
    display: none; /* Hidden by default */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.9) 70%, rgba(254, 14, 201, 0.3) 100%); /* Matches /our-training */
    padding: 20px;
    color: #fff;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    border-top: 2px solid #FE0EC9; /* Elegant accent */
}

.cardSlide .video-description.show {
    display: block; /* Show on toggle */
    opacity: 1;
    transform: translateY(0);
    z-index: 999;
}

.cardSlide .video-description p {
    font-size: 0.9rem;
    margin: 0;
    color: #fff; /* Bright white */
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.page-template-page-thank-you .pageBanner {
    display: none;
}

.VideoPlayer {
    height: 340px;
}

.page-template-page-our-training .VideoPlayer,
.single-online-vod .VideoPlayer {
    height: auto;
}

/* Enhanced Video.js Player Styling */
.video-js {
    /* Brand colors */
    --primary-color: var(--grad-dark, #0056b3);
    --secondary-color: var(--grad-light, #0088cc);
    --accent-color: #ff9800;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Professional iframe styling for api.video */
.professional-video-iframe {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #000;
}

.professional-video-iframe iframe {
    border: none;
    border-radius: 8px;
    width: 100%;
    height: 100%;
}

/* Ensure responsive behavior for all device sizes */
.single-online-vod .VideoPlayer .ratio {
    border-radius: 8px;
    overflow: hidden;
}

/* Mobile responsive adjustments for iframe */
@media (max-width: 767.98px) {
    .professional-video-iframe {
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .professional-video-iframe iframe {
        border-radius: 4px;
    }
}

/* Big play button styling */
.video-js .vjs-big-play-button {
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.video-js:hover .vjs-big-play-button {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

/* Control bar styling */
.video-js .vjs-control-bar {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
    height: 4em;
    padding: 0 1em;
}

/* Larger control buttons */
.video-js .vjs-button {
    width: 3em;
    height: 3em;
}

.video-js .vjs-button > .vjs-icon-placeholder:before {
    font-size: 1.8em;
    line-height: 1.67;
}

/* Progress bar styling */
.video-js .vjs-progress-control {
    position: absolute;
    top: -0.8em; /* Adjusted to better center the progress bar */
    right: 0;
    left: 0;
    width: 100%;
    height: 1em;
    display: flex;
    align-items: center; /* Center the progress bar vertically */
}

.video-js .vjs-progress-holder {
    height: 0.6em;
    background-color: rgba(255, 255, 255, 0.2);
}

.video-js .vjs-play-progress {
    background-color: var(--accent-color);
}

.video-js .vjs-load-progress {
    background-color: rgba(255, 255, 255, 0.3);
}

.video-js .vjs-slider-handle {
    background-color: white;
    border: 2px solid var(--accent-color);
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    top: -0.3em;
}

/* Volume panel styling */
.video-js .vjs-volume-panel {
    margin-right: 0.5em;
}

.video-js .vjs-volume-control {
    width: 6em;
}

.video-js .vjs-volume-bar {
    background-color: rgba(255, 255, 255, 0.3);
    height: 0.6em;
}

.video-js .vjs-volume-level {
    background-color: var(--accent-color);
    height: 0.6em;
}

/* Hide download button */
.vjs-control-bar .vjs-download-button,
.vjs-control-bar .vjs-download-button-trigger,
.vjs-menu-button-popup .vjs-menu .vjs-menu-content li[title*="Download"],
.vjs-menu-button-popup .vjs-menu .vjs-menu-content li[aria-label*="Download"] {
    display: none !important;
}

/* Additional script to hide download option */
.video-js .vjs-context-menu-ui .vjs-menu-content li:nth-child(3) {
    display: none !important;
}

/* Seeking state styling */
.video-js.vjs-seeking .vjs-tech {
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
}

.video-js.vjs-seeking .vjs-loading-spinner {
    display: block;
    opacity: 1;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-color);
    width: 60px;
    height: 60px;
}

/* Mobile-specific styling */
@media (max-width: 767.98px) {
    /* Larger play button for mobile */
    .video-js .vjs-big-play-button,
    .video-js .vjs-big-play-button-mobile {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 35px;
        background-color: var(--primary-color);
        border: none;
        border-radius: 50%;
        top: 50%;
        left: 50%;
        margin-top: -35px;
        margin-left: -35px;
        transition: all 0.3s ease;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .video-js:hover .vjs-big-play-button-mobile {
        background-color: var(--accent-color);
        transform: scale(1.1);
    }
    
    /* Adjust control bar for mobile */
    .video-js .vjs-control-bar {
        height: 4.5em; /* Increased height for better touch interaction */
        padding: 0 1em 0.5em; /* Added bottom padding for better spacing */
    }
    
    .video-js .vjs-button {
        width: 2.5em;
        height: 2.5em;
    }
    
    .video-js .vjs-button > .vjs-icon-placeholder:before {
        font-size: 1.6em;
        line-height: 1.56;
    }
    
    /* Progress control for mobile */
    .video-js .vjs-progress-control {
        height: 2em;
        padding-top: 0.7em; /* Increased padding to center the progress bar with the taller control bar */
        display: flex;
        align-items: center; /* Ensure vertical centering */
    }
    
    .video-js .vjs-progress-control .vjs-progress-holder {
        height: 0.5em;
    }
    
    .video-js .vjs-progress-control .vjs-play-progress,
    .video-js .vjs-progress-control .vjs-load-progress {
        height: 0.5em;
    }
    
    .video-js .vjs-slider-handle {
        transform: scale(1.5);
    }
    
    /* Visual feedback during seeking on mobile */
    .video-js.vjs-seeking:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.2);
        z-index: 1;
        pointer-events: none;
    }
    
    .video-js.vjs-seeking:after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 50px;
        height: 50px;
        margin: -25px 0 0 -25px;
        border: 3px solid rgba(255, 255, 255, 0.2);
        border-top-color: var(--accent-color);
        border-radius: 50%;
        z-index: 2;
        animation: vjs-spinner-spin 1s infinite linear;
        pointer-events: none;
    }
    
    @keyframes vjs-spinner-spin {
        100% { transform: rotate(360deg); }
    }
}

@media (min-width: 768px) {
    .SearchForm > button {
        padding: 0;
        font-size: 1rem;
        min-width: 140px;
        min-height: 56px;
        max-height: 100%;
    }
}

@media (min-width: 1200px) {

    .bg-crunch {
        padding-top: 23rem !important;
    }

    article.singleBlog h3.wp-block-heading,
    article.singleBlog h2.wp-block-heading {
        font-size: 2.5rem;
        margin-top: 2.5rem;
        margin-bottom: 1.5rem;
        line-height: 3rem;
    }

    .custom-breadcrumb {
        font-size: 1.5rem;
        line-height: 1.9rem;
    }

    article.singleBlog p, article.singleBlog .wp-block-list {
        font-size: 1.4rem;
        line-height: 1.9rem;
    }
}

@media (max-width: 1399.8px) {
    .custom-logo {
        max-width: 170px;
        height: auto;
    }
}

@media (max-width: 767.98px) {
    .video-card {
        margin-bottom: 20px;
    }

    .video-info {
        transform: translateY(0);
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.8) 70%, rgba(254, 14, 201, 0.2) 100%);
        padding: 15px;
    }

    .cardSlide .video-description {
        display: block; /* Always visible on mobile */
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.8) 70%, rgba(254, 14, 201, 0.2) 100%);
        padding: 15px;
    }

    .cardSlide .video-description.show {
        display: block; /* Consistent with desktop */
    }

    .cardSlide .read-more {
        display: none; /* Hide read-more on mobile since description is always visible */
    }

    .accorTitle {
        font-size: 14px;
    }

    .swiper-slide.bg-1 {
        background-position: top right -170px;
    }

    .SearchForm {
        justify-content: flex-end;
    }

    .search-input-group {
        /*display: none;*/
        /*position: absolute;*/
        /*top: 100%;*/
        /*left: 0;*/
        /*width: 100%;*/
        z-index: 10;
        background: var(--white);
        /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
        padding: 0;
    }

    .search-form-container.active .search-input-group {
        display: block;
        animation: suaveSlideIn 0.5s ease-in-out forwards;
    }

    .mobile-search-toggle svg {
        width: 1.1rem;
        height: 1.1rem;
    }

    .mobile-search-toggle {
        display: flex;
        cursor: pointer;
        padding: 0;
        position: absolute;
        z-index: 999;
        left: 25px;
    }

    .search-btn {
        display: none;
        padding: 10px;
    }

    .search-form-container.active .search-btn {
        display: flex;
    }

    .search-btn .btn-text {
        display: none;
    }

    .search-btn .search-icon {
        display: flex;
    }

    .search-form-container.active .mobile-search-toggle {
        display: none;
    }

    .custom-breadcrumb {
        font-size: 14px;
    }

    .video-description {
        position: static;
        display: none;
    }

    .VideoPlayBox.show-description .video-description {
        position: absolute;
        display: block;
        bottom: 0;
    }
}

@media (max-width: 576px) {
    .custom-breadcrumb {
        font-size: 12px;
    }
}

/* JavaScript-based sticky navbar styles */
html body #site-header {
    background-color: #fff;
    transition: all 0.3s ease;
    z-index: 1030;
    width: 100%;
}

/* Enhanced sticky state styling */
html body #site-header.is-sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/* Header placeholder for smooth transitions */
.header-placeholder {
    width: 100%;
    background: transparent;
}

/* Ensure the header container doesn't interfere */
html body #site-header .row {
    margin: 0;
}

html body #site-header .col-xl-auto,
html body #site-header .col-12 {
    padding: 0;
}

/* Ensure navbar content doesn't break sticky behavior */
html body #site-header .navbar {
    margin-bottom: 0;
    border: none;
}

/* Scroll to top button styles */
body .scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--grad-dark);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 767px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}

/* Additional fixes for smooth operation */
/* Ensure body and html don't interfere with positioning */
html, body {
    overflow-x: hidden;
}

/* Fix for potential parent container issues */
html body #site-header * {
    box-sizing: border-box;
}

/* Smooth transitions for all states */
html body #site-header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
