/* .optilarity-layout-content {
    background-color: #f8f9fa;
    padding-bottom: 80px;
} */

/* Custom resource card styles if user wants to use them in UX Builder via Raw HTML or Shortcode */
.akselos-card .card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* Akselos Card Styling */
.akselos-card {
    background: #fff;
    border: 1px solid #eef2f6;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.akselos-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.akselos-card .card-content {
    padding: 25px;
}

.akselos-card .card-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.akselos-card .card-title a {
    color: #006eb5;
    text-decoration: none;
}

.akselos-card .card-author {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.date-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #d4ff00;
    color: #0b345e;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    font-weight: 700;
    z-index: 10;
}

.date-badge .day {
    font-size: 18px;
    display: block;
}

.date-badge .month {
    font-size: 11px;
    text-transform: uppercase;
    display: block;
}

/* Responsive Grid/Carousel Columns */
.jankx-data-layout[data-columns] .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.jankx-data-layout[data-columns] .col-item,
.jankx-data-layout[data-columns] .carousel-cell {
    padding: 0 15px;
    box-sizing: border-box;
}

/* Desktop */
@media (min-width: 992px) {

    .jankx-data-layout[data-columns="1"] .col-item,
    .jankx-data-layout[data-columns="1"] .carousel-cell {
        width: 100%;
    }

    .jankx-data-layout[data-columns="2"] .col-item,
    .jankx-data-layout[data-columns="2"] .carousel-cell {
        width: 50%;
    }

    .jankx-data-layout[data-columns="3"] .col-item,
    .jankx-data-layout[data-columns="3"] .carousel-cell {
        width: 33.333%;
    }

    .jankx-data-layout[data-columns="4"] .col-item,
    .jankx-data-layout[data-columns="4"] .carousel-cell {
        width: 25%;
    }

    .jankx-data-layout[data-columns="5"] .col-item,
    .jankx-data-layout[data-columns="5"] .carousel-cell {
        width: 20%;
    }

    .jankx-data-layout[data-columns="6"] .col-item,
    .jankx-data-layout[data-columns="6"] .carousel-cell {
        width: 16.666%;
    }
}

/* Tablet */
@media (min-width: 550px) and (max-width: 991px) {

    .jankx-data-layout[data-columns-md="1"] .col-item,
    .jankx-data-layout[data-columns-md="1"] .carousel-cell {
        width: 100%;
    }

    .jankx-data-layout[data-columns-md="2"] .col-item,
    .jankx-data-layout[data-columns-md="2"] .carousel-cell {
        width: 50%;
    }

    .jankx-data-layout[data-columns-md="3"] .col-item,
    .jankx-data-layout[data-columns-md="3"] .carousel-cell {
        width: 33.333%;
    }

    .jankx-data-layout[data-columns-md="4"] .col-item,
    .jankx-data-layout[data-columns-md="4"] .carousel-cell {
        width: 25%;
    }
}

/* Mobile */
@media (max-width: 549px) {

    .jankx-data-layout[data-columns-sm="1"] .col-item,
    .jankx-data-layout[data-columns-sm="1"] .carousel-cell {
        width: 100%;
    }

    .jankx-data-layout[data-columns-sm="2"] .col-item,
    .jankx-data-layout[data-columns-sm="2"] .carousel-cell {
        width: 50%;
    }

    .jankx-data-layout[data-columns-sm="3"] .col-item,
    .jankx-data-layout[data-columns-sm="3"] .carousel-cell {
        width: 33.333%;
    }
}

.custom-resource-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.custom-resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Video Overlay Styles */
.card-image-wrapper,
.card-image {
    position: relative;
    overflow: hidden;
}

.video-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(11, 52, 94, 0.82);
    color: #fff !important;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-overlay-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    margin-left: 4px;
    /* Slight offset to visually center the play icon */
}

.card-image-wrapper:hover .video-overlay-icon,
.card-image:hover .video-overlay-icon {
    background: #d4ff00;
    /* Akselos neon yellow */
    color: #0b345e !important;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 25px rgba(212, 255, 0, 0.5);
}

.open-video {
    display: block;
    width: 100%;
    height: 100%;
}

/* Vanilla JS Video Modal */
.akselos-video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 52, 94, 0.3);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.akselos-video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.akselos-video-modal-container {
    width: 90%;
    max-width: 1000px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.akselos-video-modal-overlay.active .akselos-video-modal-container {
    transform: scale(1);
}

.akselos-video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.akselos-video-modal-close:hover {
    color: #d4ff00;
}

.akselos-video-iframe-wrapper {
    position: relative;
    padding-bottom: 55.7%;
    /* 16:9 */
    height: 0;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 5px solid #fff;
    border-radius: 3px;
}

.akselos-video-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Thought Leader Info styles */
.tl-card-vertical {
    max-width: 100%;
    margin-bottom: 20px;
    background: #f1f1f1;
}

.tl-card-vertical .tl-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tl-card-vertical .tl-content {
    padding: 20px;
}

.tl-card-vertical .tl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.tl-card-vertical .tl-name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #006eb5;
}

.tl-card-vertical .tl-linkedin {
    font-size: 24px;
    color: #333;
    line-height: 1;
}

.tl-card-vertical .tl-role-info {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.thought-leader-info-box {
    display: flex;
    align-items: flex-start;
    padding: 40px;
    gap: 30px;
    background: #f1f1f1;
    border-radius: 0;
    font-family: inherit;
    margin-top: 15px;
    margin-bottom: 15px;
}

.leader-image-col img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    min-width: 100px;
    border: 1px solid #ddd;
}

.leader-name {
    margin: 0 0 2px;
    font-size: 20px;
    color: #0b345e;
    font-weight: 700;
    line-height: 1.2;
}

.leader-role-info {
    font-size: 10px;
    color: #333;
    margin-bottom: 20px;
    text-transform: none;
    font-weight: 400;
}

.leader-role-info strong {
    font-weight: 700;
}

.leader-bio-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 20px;
}

.leader-full-bio-btn {
    color: #006eb5;
    font-weight: 800;
    font-size: 13px;
    text-decoration: underline;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .thought-leader-info-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }
}