/* WTP UI CSS Stylesheet */

.wtp-hero-slider-container {
    position: relative;
    width: 100%;
    min-height: 520px;
    height: 75vh;
    max-height: 750px;
    overflow: hidden;
    background-color: #000000;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

.wtp-hero-slider-container * {
    box-sizing: border-box;
}

/* Dark Custom Opacity Overlay */
.wtp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.wtp-hero-slider-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Flicker-Free Slide Transitions */
.wtp-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 0;
}

.wtp-hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Hero Content Details */
.wtp-hero-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    color: #ffffff;
    text-align: center;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.wtp-hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wtp-hero-description {
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.wtp-hero-description p {
    margin: 0 0 10px 0;
}

.wtp-hero-description p:last-child {
    margin-bottom: 0;
}

/* White Capsule Button Theme (No box-shadow, custom hover transition) */
.wtp-hero-btn {
    display: inline-block;
    background: #ffffff !important;
    color: #111827 !important;
    border: 2px solid #ffffff !important;
    border-radius: 50px !important;
    padding: 16px 42px !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: none !important;
    margin-top: 10px;
    text-transform: none !important;
}

.wtp-hero-btn:hover {
    background: transparent !important;
    color: #ffffff !important;
}

/* Desktop-only overrides for custom variables */
@media screen and (min-width: 769px) {
    .wtp-hero-title {
        font-size: var(--hero-title-size, 4.5rem) !important;
    }
    .wtp-hero-description {
        font-size: var(--hero-desc-size, 1.4rem) !important;
    }
    .wtp-hero-slide-content {
        padding-left: var(--hero-pad-left, 0px) !important;
        padding-right: var(--hero-pad-right, 0px) !important;
    }
    .wtp-hero-btn {
        font-size: var(--hero-btn-size, 1.3rem) !important;
        padding: var(--hero-btn-padding, 16px 42px) !important;
    }
}

/* Nav Arrows */
.wtp-hero-prev,
.wtp-hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    font-size: 2.2rem;
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: all 0.2s ease;
    outline: none;
}

.wtp-hero-prev:hover,
.wtp-hero-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.wtp-hero-prev {
    left: 20px;
}

.wtp-hero-next {
    right: 20px;
}

/* Dot Indicators */
.wtp-hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
}

.wtp-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.25s ease;
}

.wtp-hero-dot.active {
    background: #ffffff;
}

/* ==========================================================================
   INTERVENTIONS SLIDER CAROUSEL
   ========================================================================== */
.wtp-interventions-slider-container {
    position: relative;
    width: 100%;
    padding: 0 0 10px 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    user-select: none;
}

.wtp-interventions-slider-container * {
    box-sizing: border-box;
}

.wtp-interventions-slider-track-wrapper {
    width: 100%;
    overflow: hidden;
    cursor: grab;
}

.wtp-interventions-slider-track-wrapper:active {
    cursor: grabbing;
}

.wtp-interventions-slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    gap: var(--slider-gap, 20px);
    width: max-content;
}

/* Flat Interventions Card: rounded image, clean meta, no shadows */
.wtp-intervention-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none !important; /* Removed box-shadow */
    transition: border-color 0.25s ease;
    flex-shrink: 0;
}

.wtp-intervention-card:hover {
    border-color: #258BE0;
}

/* Hardcoded uniform image wrappers height across all slides */
.wtp-card-image-wrapper {
    width: 100%;
    height: 240px !important;
    overflow: hidden;
    position: relative;
}

.wtp-card-image {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wtp-intervention-card:hover .wtp-card-image {
    transform: scale(1.03);
}

.wtp-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    flex: 1;
}

.wtp-card-date {
    display: block;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.wtp-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.35em; /* Exactly 3 lines fallback height */
}

.wtp-card-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: #258BE0;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
    margin-top: 10px;
}

.wtp-card-link:hover {
    color: #1d72b8;
    text-decoration: underline;
}

/* Interventions Navigation Controls */
.wtp-interventions-prev,
.wtp-interventions-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: #1e293b;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.wtp-interventions-prev:hover,
.wtp-interventions-next:hover {
    background: #f8fafc;
    color: #258BE0;
    border-color: #258BE0;
}

.wtp-interventions-prev {
    left: 10px;
    padding-right: 3px !important;
    padding-left: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.wtp-interventions-next {
    right: 10px;
    padding-left: 3px !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.wtp-interventions-prev:disabled,
.wtp-interventions-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Interventions Dots pagination indicators */
.wtp-interventions-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px auto 0 auto;
    width: fit-content;
    max-width: 90%;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding: 8px 12px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.wtp-interventions-dots::-webkit-scrollbar {
    display: none;
}

.wtp-intervention-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: #cbd5e1; /* Grey dot */
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.wtp-intervention-dot:hover {
    background: #94a3b8;
}

.wtp-intervention-dot.active {
    width: 30px; /* Thicker active line indicator */
    height: 10px; /* Thicker height */
    border-radius: 5px;
    background: #258BE0; /* Accent blue active line indicator */
}


/* ==========================================================================
   PUBLICATIONS SLIDER CAROUSEL (Dark-themed bookshelf layout)
   ========================================================================== */
.wtp-publications-slider-container {
    position: relative;
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    user-select: none;
    background: transparent; /* Removed dark background */
    overflow: hidden;
}

.wtp-publications-slider-container * {
    box-sizing: border-box;
}

.wtp-publications-slider-track-wrapper {
    width: 100%;
    overflow: hidden;
    cursor: grab;
}

.wtp-publications-slider-track-wrapper:active {
    cursor: grabbing;
}

.wtp-publications-slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    gap: var(--slider-gap, 20px);
    width: max-content;
}

/* White Card Cover - Light border, Centered text content, flat, no shadows */
.wtp-publication-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0; /* Added light border for white backgrounds */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none !important; /* Strict shadowless requirement */
    flex-shrink: 0;
    transition: transform 0.3s ease, border-color 0.25s ease;
}

.wtp-publication-card:hover {
    transform: translateY(-2px);
    border-color: #258BE0;
}

/* Same height cover images */
.wtp-publication-cover-wrapper {
    width: 100%;
    height: 360px !important;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.wtp-publication-cover {
    display: block;
    max-width: 90%;
    max-height: 90%;
    height: auto !important;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.4s ease;
}

.wtp-publication-card:hover .wtp-publication-cover {
    transform: scale(1.02);
}

.wtp-publication-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center !important; /* Perfectly centered text */
    justify-content: center;
    align-items: center;
    flex: 1;
}

.wtp-publication-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.45;
    text-transform: capitalize;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.9em; /* Exactly 2 lines height */
    text-align: center;
}

.wtp-publication-subtitle {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em; /* Exactly 2 lines height */
    text-align: center;
}

/* Floating Slate Carets outside the cards (no circular background!) */
.wtp-publications-prev,
.wtp-publications-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    font-size: 2.5rem !important;
    font-weight: bold !important;
    color: rgba(30, 41, 59, 0.6) !important; /* Slate caret for light backgrounds */
    width: auto !important;
    height: auto !important;
    cursor: pointer;
    z-index: 5;
    transition: color 0.2s ease, transform 0.2s ease;
    box-shadow: none !important;
    padding: 0 !important;
    outline: none !important;
}

.wtp-publications-prev:hover,
.wtp-publications-next:hover {
    color: #258BE0 !important;
    transform: translateY(-50%) scale(1.1);
}

.wtp-publications-prev {
    left: 15px;
}

.wtp-publications-next {
    right: 15px;
}

.wtp-publications-prev:disabled,
.wtp-publications-next:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* Slide Dots indicators centered at the bottom - Slate/Grey for light pages */
.wtp-publications-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px auto 0 auto;
    width: fit-content;
    max-width: 90%;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding: 8px 12px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.wtp-publications-dots::-webkit-scrollbar {
    display: none;
}

.wtp-publication-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: #cbd5e1; /* Grey dot */
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.wtp-publication-dot:hover {
    background: #94a3b8;
}

.wtp-publication-dot.active {
    width: 30px; /* Thicker active line indicator */
    height: 10px; /* Thicker height */
    border-radius: 5px;
    background: #258BE0; /* Accent blue active line indicator */
}


/* ==========================================================================
   HIDE ARROWS ON MOBILE BREAKPOINT
   ========================================================================== */

@media screen and (max-width: 768px) {
    /* Apply mobile arrow overrides if wtp-hide-arrows-mobile is active */
    .wtp-hide-arrows-mobile .wtp-hero-prev,
    .wtp-hide-arrows-mobile .wtp-hero-next,
    .wtp-hide-arrows-mobile .wtp-interventions-prev,
    .wtp-hide-arrows-mobile .wtp-interventions-next,
    .wtp-hide-arrows-mobile .wtp-publications-prev,
    .wtp-hide-arrows-mobile .wtp-publications-next,
    .wtp-hide-arrows-mobile .wtp-hero-dots {
        display: none !important;
    }
}


/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

@media screen and (max-width: 768px) {
    /* Hero mobile layouts */
    .wtp-hero-slider-container {
        height: 55vh;
        min-height: 420px;
    }
    
    .wtp-hero-title {
        font-size: 2.6rem;
    }

    .wtp-hero-description {
        font-size: 1.15rem;
    }

    .wtp-hero-btn {
        font-size: 1.1rem !important;
        padding: 14px 32px !important;
    }

    .wtp-hero-prev,
    .wtp-hero-next {
        width: 38px;
        height: 38px;
        font-size: 1.8rem;
    }

    .wtp-hero-prev {
        left: 10px;
    }

    .wtp-hero-next {
        right: 10px;
    }
    
    /* Interventions & Publications mobile layouts */
    .wtp-interventions-slider-container,
    .wtp-publications-slider-container {
        padding: 0 0 30px 0 !important;
        overflow: visible !important;
    }

    .wtp-interventions-dots,
    .wtp-publications-dots {
        max-width: 85% !important;
        margin-top: 15px !important;
        padding: 6px 10px !important;
    }

    .wtp-interventions-prev {
        left: -2px;
    }

    .wtp-interventions-next {
        right: -2px;
    }
    
    .wtp-card-image-wrapper {
        height: 190px !important;
    }

    /* Publications mobile layouts */
    .wtp-publications-slider-container {
        padding: 20px 0;
    }

    .wtp-publications-prev {
        left: -2px;
    }

    .wtp-publications-next {
        right: -2px;
    }

    .wtp-publication-cover-wrapper {
        height: 250px !important;
    }
}

/* ==========================================================================
   VIDEO PLAYLIST SHOWCASE MODULE (Styles 1, 2, 3)
   ========================================================================== */
.wtp-video-playlist-container {
    width: 100%;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none !important; /* Strict shadowless constraint */
    overflow: hidden;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wtp-video-playlist-container * {
    box-sizing: border-box;
}

.wtp-video-playlist-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000000;
}

.wtp-video-main-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.wtp-video-playlist-empty {
    padding: 30px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-weight: 600;
}

/* --- STYLE 1: Side-by-Side Flex Layout --- */
.wtp-playlist-layout-flex {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 500px; /* Align container height on desktop */
}

.wtp-playlist-layout-flex .wtp-video-playlist-player-wrapper {
    flex: 1;
    height: 500px;
    padding-bottom: 0;
}

.wtp-video-playlist-sidebar {
    flex: 0 0 420px; /* Wider sidebar for larger thumbnails and titles */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 500px;
    max-height: 500px;
    border-left: 1px solid #e2e8f0;
    background: #f8fafc;
}

.wtp-video-playlist-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 15px;
    height: 125px; /* Exactly 125px height per item */
    box-sizing: border-box;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.wtp-video-playlist-item:last-child {
    border-bottom: none;
}

.wtp-video-playlist-item:hover {
    background: #f1f5f9;
}

.wtp-video-playlist-item.active {
    background: #eff6ff;
    border-left: 4px solid #258BE0;
    padding-left: 11px; /* Maintain padding balance with border */
}

.wtp-video-item-thumb {
    width: 150px;
    height: 94px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
    position: relative;
    border: 1px solid #e2e8f0;
}

.wtp-video-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wtp-video-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.wtp-video-playlist-item.active .wtp-video-item-title {
    color: #258BE0;
}

/* --- STYLE 2: Top Player, Bottom Cards Grid --- */
.wtp-playlist-layout-grid {
    display: flex;
    flex-direction: column;
}

.wtp-video-playlist-grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 25px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.wtp-video-playlist-item.style-2-card {
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    gap: 0;
}

.wtp-video-playlist-item.style-2-card.active {
    border-color: #258BE0;
    background: #eff6ff;
    padding-left: 0;
    border-left-width: 1px;
}

.wtp-video-playlist-item.style-2-card .wtp-video-item-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 0;
}

.wtp-video-playlist-item.style-2-card .wtp-video-item-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wtp-video-playlist-item.style-2-card:hover .wtp-video-item-play-overlay,
.wtp-video-playlist-item.style-2-card.active .wtp-video-item-play-overlay {
    opacity: 1;
}

.wtp-video-playlist-item.style-2-card .wtp-video-item-play-overlay span {
    color: #ffffff;
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.wtp-video-playlist-item.style-2-card .wtp-video-item-title {
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

/* --- STYLE 3: Left Numbered Text List, Right Player --- */
.wtp-playlist-layout-flex-reverse {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 500px; /* Align container height on desktop */
}

.wtp-playlist-layout-flex-reverse .wtp-video-playlist-player-wrapper {
    flex: 1;
    height: 500px;
    padding-bottom: 0;
}

.wtp-video-playlist-sidebar.style-3-text-list {
    flex: 0 0 380px; /* Wider list */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 500px;
    max-height: 500px;
    border-right: 1px solid #e2e8f0;
    border-left: none;
    background: #ffffff;
}

.wtp-video-playlist-item.style-3-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    height: 125px; /* Exactly 125px height per item */
    box-sizing: border-box;
    border-bottom: 1px solid #f1f5f9;
}

.wtp-video-playlist-item.style-3-row.active {
    background: #eff6ff;
    border-left: 4px solid #258BE0;
    padding-left: 16px;
}

.wtp-video-item-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #94a3b8;
    width: 24px;
    text-align: right;
    transition: color 0.2s ease;
}

.wtp-video-playlist-item.style-3-row.active .wtp-video-item-number {
    color: #258BE0;
}

.wtp-video-playlist-item.style-3-row .wtp-video-item-title {
    font-size: 1.2rem;
    color: #334155;
    font-weight: 600;
}

.wtp-video-playlist-item.style-3-row.active .wtp-video-item-title {
    color: #258BE0;
}

/* Custom helper to hide arrows on Desktop & Tablet */
.wtp-hide-arrows-desktop-tablet .wtp-interventions-prev,
.wtp-hide-arrows-desktop-tablet .wtp-interventions-next,
.wtp-hide-arrows-desktop-tablet .wtp-publications-prev,
.wtp-hide-arrows-desktop-tablet .wtp-publications-next {
    display: none !important;
}

/* --- MOBILE RESPONSIVE ADAPTATIONS --- */
@media screen and (max-width: 768px) {
    /* Custom helper to hide arrows on Mobile */
    .wtp-hide-arrows-mobile .wtp-interventions-prev,
    .wtp-hide-arrows-mobile .wtp-interventions-next,
    .wtp-hide-arrows-mobile .wtp-publications-prev,
    .wtp-hide-arrows-mobile .wtp-publications-next {
        display: none !important;
    }

    .wtp-playlist-layout-flex,
    .wtp-playlist-layout-flex-reverse {
        flex-direction: column !important;
        height: auto !important;
    }

    .wtp-playlist-layout-flex .wtp-video-playlist-player-wrapper,
    .wtp-playlist-layout-flex-reverse .wtp-video-playlist-player-wrapper {
        height: auto !important;
        padding-bottom: 56.25% !important; /* Restore aspect ratio */
    }

    .wtp-video-playlist-sidebar,
    .wtp-video-playlist-sidebar.style-3-text-list {
        flex: 1 1 auto !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important; /* Remove height scrollbar constraints */
        overflow-y: visible !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid #e2e8f0 !important;
    }

    .wtp-video-playlist-item,
    .wtp-video-playlist-item.style-3-row {
        height: auto !important; /* Flow naturally on mobile viewport */
        padding: 15px !important;
    }

    .wtp-video-item-thumb {
        width: 120px !important; /* Sized comfortably for mobile displays */
        height: 75px !important;
    }

    .wtp-video-item-title {
        font-size: 1.1rem !important;
    }

    .wtp-video-playlist-grid-items {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 15px;
    }
}

/* ==========================================================================
   FOCUS / PROGRAMMATIC TRACKS DISPLAY MODULE (Styles 1, 2, 3, 4)
   ========================================================================== */
.wtp-tracks-container {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wtp-tracks-container * {
    box-sizing: border-box;
}

.wtp-tracks-empty {
    padding: 30px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-weight: 600;
}

/* Base Card structure */
.wtp-track-card {
    position: relative;
    display: block;
    text-decoration: none !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    color: #ffffff;
}

.wtp-track-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.wtp-track-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--track-color, #258be0);
    opacity: var(--track-opacity, 0.5);
    transition: opacity 0.4s ease;
    z-index: 2;
}

.wtp-track-title {
    margin: 0;
    color: #ffffff;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.wtp-track-subtitle {
    margin: 8px 0 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}


/* --- STYLE 1: Full-Height Flex Columns (Screenshot style) --- */
.wtp-tracks-layout-style-1 {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 480px;
    background: #000000;
}

.wtp-tracks-layout-style-1 .wtp-track-card {
    flex: 1;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.wtp-tracks-layout-style-1 .wtp-track-card:last-child {
    border-right: none;
}

.wtp-tracks-layout-style-1 .wtp-track-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    z-index: 3;
}

.wtp-tracks-layout-style-1 .wtp-track-title {
    font-size: 2.2rem;
    max-width: 90%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover effect Style 1 */
.wtp-tracks-layout-style-1 .wtp-track-card:hover .wtp-track-bg {
    transform: scale(1.06);
}

.wtp-tracks-layout-style-1 .wtp-track-card:hover .wtp-track-overlay {
    opacity: calc(var(--track-opacity, 0.5) + 0.15);
}

.wtp-tracks-layout-style-1 .wtp-track-card:hover .wtp-track-title {
    transform: scale(1.03);
}


/* --- STYLE 2: Glassmorphism Grid Cards --- */
.wtp-tracks-layout-style-2 {
    display: grid;
    grid-template-columns: repeat(var(--track-cols, 3), 1fr);
    gap: 30px;
}

/* Column classes mapping */
.wtp-tracks-cols-1.wtp-tracks-layout-style-2 { grid-template-columns: 1fr; }
.wtp-tracks-cols-2.wtp-tracks-layout-style-2 { grid-template-columns: repeat(2, 1fr); }
.wtp-tracks-cols-3.wtp-tracks-layout-style-2 { grid-template-columns: repeat(3, 1fr); }
.wtp-tracks-cols-4.wtp-tracks-layout-style-2 { grid-template-columns: repeat(4, 1fr); }

.wtp-tracks-layout-style-2 .wtp-track-card {
    height: 380px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.wtp-tracks-layout-style-2 .wtp-track-glass-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    z-index: 3;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s ease;
}

.wtp-tracks-layout-style-2 .wtp-track-title {
    font-size: 1.7rem;
}

.wtp-tracks-layout-style-2 .wtp-track-subtitle {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 1.05rem;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.wtp-tracks-layout-style-2 .wtp-track-readmore {
    display: inline-block;
    margin-top: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Hover effect Style 2 */
.wtp-tracks-layout-style-2 .wtp-track-card:hover .wtp-track-bg {
    transform: scale(1.08);
}

.wtp-tracks-layout-style-2 .wtp-track-card:hover .wtp-track-overlay {
    opacity: calc(var(--track-opacity, 0.5) - 0.1);
}

.wtp-tracks-layout-style-2 .wtp-track-card:hover .wtp-track-glass-panel {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
}

.wtp-tracks-layout-style-2 .wtp-track-card:hover .wtp-track-subtitle {
    max-height: 80px;
    opacity: 1;
    margin-top: 10px;
}

.wtp-tracks-layout-style-2 .wtp-track-card:hover .wtp-track-readmore {
    opacity: 1;
    transform: translateX(4px);
}


/* --- STYLE 3: Minimal Accent Card --- */
.wtp-tracks-layout-style-3 {
    display: grid;
    grid-template-columns: repeat(var(--track-cols, 3), 1fr);
    gap: 30px;
}

/* Column classes mapping */
.wtp-tracks-cols-1.wtp-tracks-layout-style-3 { grid-template-columns: 1fr; }
.wtp-tracks-cols-2.wtp-tracks-layout-style-3 { grid-template-columns: repeat(2, 1fr); }
.wtp-tracks-cols-3.wtp-tracks-layout-style-3 { grid-template-columns: repeat(3, 1fr); }
.wtp-tracks-cols-4.wtp-tracks-layout-style-3 { grid-template-columns: repeat(4, 1fr); }

.wtp-tracks-layout-style-3 .wtp-track-card {
    height: auto;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    box-shadow: none !important;
}

.wtp-tracks-layout-style-3 .wtp-track-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.wtp-tracks-layout-style-3 .wtp-track-content-block {
    padding: 25px;
    position: relative;
}

.wtp-tracks-layout-style-3 .wtp-track-title {
    color: #1e293b;
    font-size: 1.35rem;
    text-shadow: none;
}

.wtp-tracks-layout-style-3 .wtp-track-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 10px;
}

.wtp-tracks-layout-style-3 .wtp-track-accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--track-color, #258be0);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover effect Style 3 */
.wtp-tracks-layout-style-3 .wtp-track-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
}

.wtp-tracks-layout-style-3 .wtp-track-card:hover .wtp-track-bg {
    transform: scale(1.05);
}

.wtp-tracks-layout-style-3 .wtp-track-card:hover .wtp-track-accent-line {
    width: 100%;
}


/* --- STYLE 4: Alternating Split Cards --- */
.wtp-tracks-layout-style-4 {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.wtp-tracks-layout-style-4 .wtp-track-card {
    height: auto;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
}

.wtp-track-split-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 280px;
}

.wtp-track-split-img-col {
    flex: 1.1;
    position: relative;
    overflow: hidden;
}

.wtp-track-split-text-col {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding: 40px;
}

.wtp-track-split-bg-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--track-color, #258be0);
    opacity: 0.04;
    z-index: 1;
}

.wtp-track-split-content {
    position: relative;
    z-index: 2;
}

.wtp-tracks-layout-style-4 .wtp-track-title {
    color: #1e293b;
    font-size: 1.85rem;
    text-shadow: none;
}

.wtp-tracks-layout-style-4 .wtp-track-subtitle {
    color: #475569;
    font-size: 1rem;
    margin-top: 15px;
}

.wtp-track-readmore-btn {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--track-color, #258be0);
    transition: transform 0.2s ease;
}

/* Alternating Reverse */
.wtp-split-reverse {
    flex-direction: row-reverse;
}

/* Hover effect Style 4 */
.wtp-tracks-layout-style-4 .wtp-track-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.wtp-tracks-layout-style-4 .wtp-track-card:hover .wtp-track-bg {
    transform: scale(1.04);
}

.wtp-tracks-layout-style-4 .wtp-track-card:hover .wtp-track-readmore-btn {
    transform: translateX(5px);
}


/* ==========================================================================
   TRACKS MOBILE RESPONSIVE LAYOUTS
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* Style 1 Mobile */
    .wtp-tracks-layout-style-1 {
        flex-direction: column;
        height: auto;
    }

    .wtp-tracks-layout-style-1 .wtp-track-card {
        height: 260px;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .wtp-tracks-layout-style-1 .wtp-track-card:last-child {
        border-bottom: none;
    }

    .wtp-tracks-layout-style-1 .wtp-track-title {
        font-size: 1.85rem;
    }

    /* Style 2 and 3 Mobile */
    .wtp-tracks-layout-style-2,
    .wtp-tracks-layout-style-3 {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .wtp-tracks-layout-style-2 .wtp-track-card {
        height: 320px;
    }

    /* Style 4 Mobile */
    .wtp-track-split-row {
        flex-direction: column !important;
    }

    .wtp-track-split-img-col {
        height: 200px;
        width: 100%;
    }

    .wtp-track-split-text-col {
        padding: 30px 20px;
    }

    .wtp-tracks-layout-style-4 .wtp-track-title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   PAGE HERO COMPONENT
   ========================================================================== */
.wtp-page-hero-container {
    position: relative;
    width: 100%;
    min-height: 450px;
    height: 60vh;
    max-height: 600px;
    overflow: hidden;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.wtp-page-hero-container * {
    box-sizing: border-box;
}

/* --- Background Layer --- */
.wtp-page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* --- Map Background Layer --- */
.wtp-page-hero-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    transition: pointer-events 0s;
}

.wtp-page-hero-map.wtp-map-active {
    pointer-events: auto;
}

.wtp-page-hero-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(0.2) brightness(0.85);
}

/* --- Overlay Cover Layer --- */
.wtp-page-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: var(--page-hero-overlay-color, #0f172a);
    opacity: var(--page-hero-overlay-opacity, 0.5);
    pointer-events: none;
}

/* --- Content Wrapper --- */
.wtp-page-hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    min-height: inherit;
    height: 100%;
}

/* --- Text Elements --- */
.wtp-page-hero-title {
    font-size: var(--page-hero-title-size, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.wtp-page-hero-sub {
    display: block;
    font-size: var(--page-hero-subtitle-size, 1.45rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
    letter-spacing: 0.03em;
    text-transform: none; /* Subtitle is not uppercase across all styles */
}

.wtp-page-hero-sub-para {
    font-size: var(--page-hero-subtitle-size, 1.45rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
    margin: 0;
}

.wtp-page-hero-below-box {
    max-width: 800px;
    width: 100%;
}

/* ==========================================================================
   ALIGNMENT POSITION CLASSES
   ========================================================================== */

/* Default: left / middle */
.wtp-page-hero-align-left .wtp-page-hero-content-wrapper {
    justify-content: flex-start;
    text-align: left;
}

.wtp-page-hero-align-center .wtp-page-hero-content-wrapper {
    justify-content: center;
    text-align: center;
}

.wtp-page-hero-align-right .wtp-page-hero-content-wrapper {
    justify-content: flex-end;
    text-align: right;
}

.wtp-page-hero-align-bottom-left .wtp-page-hero-content-wrapper {
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    padding-bottom: 48px;
}

.wtp-page-hero-align-bottom-center .wtp-page-hero-content-wrapper {
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding-bottom: 48px;
}

/* Restrict max-width for center/right to prevent title from spanning too wide */
.wtp-page-hero-align-center .wtp-page-hero-glass-box,
.wtp-page-hero-align-center .wtp-page-hero-raw-box,
.wtp-page-hero-align-center .wtp-page-hero-accent-box {
    max-width: 700px;
    margin: 0 auto;
}

.wtp-page-hero-align-right .wtp-page-hero-glass-box,
.wtp-page-hero-align-right .wtp-page-hero-raw-box,
.wtp-page-hero-align-right .wtp-page-hero-accent-box {
    max-width: 600px;
    margin-left: auto;
}

.wtp-page-hero-align-left .wtp-page-hero-glass-box,
.wtp-page-hero-align-left .wtp-page-hero-raw-box,
.wtp-page-hero-align-left .wtp-page-hero-accent-box {
    max-width: 650px;
}

/* ==========================================================================
   STYLE 1: GLASSMORPHISM CONTENT BOX
   ========================================================================== */
.wtp-page-hero-glass-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 36px 44px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   STYLE 2: RAW BOLD MINIMAL OVERLAY
   ========================================================================== */
.wtp-page-hero-raw-box {
    /* No box container — raw text directly on the overlay background */
}

/* ==========================================================================
   STYLE 3: LEFT ACCENT COLORED VERTICAL BAR
   ========================================================================== */
.wtp-page-hero-accent-box {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.wtp-page-hero-accent-bar {
    width: 5px;
    min-height: 60px;
    background: linear-gradient(180deg, #258BE0 0%, #1E6FBA 100%);
    border-radius: 3px;
    flex-shrink: 0;
    align-self: stretch;
}

.wtp-page-hero-accent-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================================================
   STYLE 4: TWO-COLUMN SPLIT LAYOUT
   ========================================================================== */
.wtp-page-hero-split-box {
    display: flex;
    align-items: center;
    gap: 48px;
    width: 100%;
}

.wtp-page-hero-split-left {
    flex: 1.2;
}

.wtp-page-hero-split-right {
    flex: 0.8;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 40px;
}

/* ==========================================================================
   PAGE HERO – RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet */
@media screen and (max-width: 1024px) {
    .wtp-page-hero-container {
        min-height: 380px;
        height: 50vh;
        max-height: 500px;
    }

    .wtp-page-hero-content-wrapper {
        padding: 32px 36px;
    }

    .wtp-page-hero-title {
        font-size: clamp(2rem, 5vw, var(--page-hero-title-size, 3.5rem));
    }

    .wtp-page-hero-split-box {
        gap: 30px;
    }

    .wtp-page-hero-split-right {
        padding-left: 28px;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .wtp-page-hero-container {
        min-height: 340px !important;
        height: 45vh !important;
        max-height: 450px !important;
    }

    .wtp-page-hero-content-wrapper {
        padding: 28px 24px;
        align-items: center;
        justify-content: center !important;
        text-align: center !important;
    }

    .wtp-page-hero-title {
        font-size: clamp(2.2rem, 8vw, 3.2rem) !important;
    }

    .wtp-page-hero-sub {
        font-size: clamp(1.15rem, 4vw, 1.35rem) !important;
    }

    .wtp-page-hero-sub-para {
        font-size: clamp(1.15rem, 4vw, 1.35rem) !important;
    }

    /* Glassmorphism shrinks */
    .wtp-page-hero-glass-box {
        padding: 24px 20px;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* All alignment & max-width overrides collapse to center on mobile */
    .wtp-page-hero-align-left .wtp-page-hero-glass-box,
    .wtp-page-hero-align-left .wtp-page-hero-raw-box,
    .wtp-page-hero-align-left .wtp-page-hero-accent-box,
    .wtp-page-hero-align-right .wtp-page-hero-glass-box,
    .wtp-page-hero-align-right .wtp-page-hero-raw-box,
    .wtp-page-hero-align-right .wtp-page-hero-accent-box {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Accent bar stacks vertically */
    .wtp-page-hero-accent-box {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .wtp-page-hero-accent-bar {
        width: 48px;
        min-height: 4px;
        height: 4px;
    }

    .wtp-page-hero-accent-content {
        align-items: center;
        text-align: center;
    }

    /* Split layout stacks */
    .wtp-page-hero-split-box {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .wtp-page-hero-split-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 16px;
    }

    /* Bottom positions adjust */
    .wtp-page-hero-align-bottom-left .wtp-page-hero-content-wrapper,
    .wtp-page-hero-align-bottom-center .wtp-page-hero-content-wrapper {
        padding-bottom: 24px;
    }
}

/* Small phones */
@media screen and (max-width: 480px) {
    .wtp-page-hero-container {
        min-height: 300px !important;
        height: 40vh !important;
        max-height: 400px !important;
    }

    .wtp-page-hero-content-wrapper {
        padding: 20px 16px;
    }

    .wtp-page-hero-title {
        font-size: clamp(1.35rem, 7vw, 1.9rem);
    }

    .wtp-page-hero-glass-box {
        padding: 18px 16px;
        border-radius: 12px;
    }
}
