/* Inspire Cards Widget Styles */
.inspire-cards-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.inspire-cards-wrapper {
    position: relative;
}

.inspire-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.inspire-card {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.4s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.inspire-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    transition: all 0.4s ease;
}

.inspire-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.inspire-card:hover::after {
    opacity: 1;
}

.inspire-card-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
}

/* Content Alignment Fixes */
.inspire-card-content[style*="align-items: flex-start"] .inspire-card-header,
.inspire-card-content[style*="align-items: flex-start"] .inspire-card-subtitle,
.inspire-card-content[style*="align-items: flex-start"] .inspire-card-description {
    text-align: left;
}

.inspire-card-content[style*="align-items: flex-end"] .inspire-card-header,
.inspire-card-content[style*="align-items: flex-end"] .inspire-card-subtitle,
.inspire-card-content[style*="align-items: flex-end"] .inspire-card-description {
    text-align: right;
}

/* Style 1 Specific */
[data-card-style="style1"] .inspire-card-content {
    justify-content: flex-end;
}

[data-card-style="style1"] .inspire-card:hover .inspire-card-content {
    justify-content: center;
}

/* Style 2 Specific */
[data-card-style="style2"] .inspire-card-header {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

[data-card-style="style2"] .inspire-border-line {
    width: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

[data-card-style="style2"] .inspire-card:hover .inspire-card-header {
    opacity: 1;
    transform: translateY(0);
}

[data-card-style="style2"] .inspire-card:hover .inspire-border-line {
    opacity: 1;
    transform: translateY(0);
}

/* Style 3 Specific - Video Card */
[data-card-style="style3"] .inspire-card-content {
    justify-content: center;
    gap: 8px; /* Reduced spacing between elements */
}

[data-card-style="style3"] .inspire-card-subtitle {
    max-width: 90%; /* Allow more width for longer subtitles */
    margin-bottom: 5px; /* Minimal bottom margin */
    line-height: 1.3; /* Better line height for multi-line text */
}

[data-card-style="style3"] .inspire-border-line {
    opacity: 1; /* Ensure border line is visible */
    width: 60px; /* Set default width */
    height: 3px; /* Set default height */
    background: #ff6b35; /* Set default color */
    margin: 5px 0; /* Reduced margins for tighter spacing */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Typography Styles */
.inspire-card-header {
    margin-bottom: 15px;
    transition: all 0.4s ease;
    width: 100%;
}

.inspire-card-subtitle {
    margin-bottom: 15px;
    max-width: 80%;
    transition: all 0.4s ease;
}

.inspire-border-line {
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.inspire-card-description {
    max-width: 90%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.inspire-card:hover .inspire-card-description {
    opacity: 1;
    transform: translateY(0);
}

/* Play Button for Style 3 */
.inspire-play-icon {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    flex-shrink: 0; /* Prevent shrinking */
    min-width: 60px; /* Ensure minimum width */
    min-height: 60px; /* Ensure minimum height */
}

.inspire-play-icon::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 15px solid;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    margin-left: 3px;
}

/* Hover Instruction */
.inspire-hover-instruction {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.inspire-arrow {
    font-size: 18px;
    animation: inspire-bounce 2s infinite;
    transform: rotate(45deg);
}

@keyframes inspire-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-8px);
    }
    60% {
        transform: rotate(45deg) translateY(-4px);
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    max-height: 800px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: #ff6b35;
    transform: scale(1.2);
}

.lightbox iframe,
.lightbox video {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 400px;
    border-radius: 10px;
}

/* Video container aspect ratio */
.lightbox-content #videoContainer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .inspire-cards-grid:not(.inspire-cards-carousel) {
        grid-template-columns: 1fr;
    }
    
    /* Lightbox mobile adjustments */
    .lightbox-content {
        width: 95vw;
        height: 70vh;
        max-width: none;
        max-height: none;
    }
    
    .lightbox iframe,
    .lightbox video {
        height: 100%;
        min-height: 250px;
    }
    
    /* Reduce gap on mobile for carousel */
    .inspire-cards-carousel .inspire-card {
        margin: 0 10px;
    }
    
    .inspire-cards-carousel.few-items .inspire-card {
        margin: 0 15px;
    }
}

/* Carousel Styles */
.inspire-cards-carousel {
    display: block !important;
}

.inspire-cards-carousel .inspire-card {
    margin: 0 15px;
    height: 500px;
}

.inspire-cards-carousel.slick-slider {
    margin-bottom: 30px;
}

/* Slick Arrow Customization */
.inspire-cards-wrapper .slick-prev,
.inspire-cards-wrapper .slick-next {
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.inspire-cards-wrapper .slick-prev:before,
.inspire-cards-wrapper .slick-next:before {
    font-family: "slick";
    font-size: 20px;
    line-height: 1;
    opacity: 1;
    color: #ffffff;
}

.inspire-cards-wrapper .slick-prev:hover,
.inspire-cards-wrapper .slick-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.inspire-cards-wrapper .slick-prev {
    left: 25px;
}

.inspire-cards-wrapper .slick-next {
    right: 25px;
}

/* Slick Dots Customization */
.inspire-cards-wrapper .slick-dots {
    bottom: -40px;
}

.inspire-cards-wrapper .slick-dots li button:before {
    font-size: 10px;
    color: #ffffff;
    opacity: 0.5;
}

.inspire-cards-wrapper .slick-dots li.slick-active button:before {
    opacity: 1;
    color: #ff6b35;
}

/* Center Mode Styling */
.inspire-cards-carousel.slick-center .inspire-card {
    opacity: 0.7;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.inspire-cards-carousel .slick-center .inspire-card,
.inspire-cards-carousel .slick-current .inspire-card {
    opacity: 1;
    transform: scale(1);
}

/* Clickable Card Styles */
.inspire-card.no-link {
    cursor: default;
}

.inspire-card.has-link {
    cursor: pointer;
}

/* Prevent link styles from affecting card design */
a.inspire-card {
    color: inherit;
    text-decoration: none;
}

/* Center carousel when only 1-2 items */
.inspire-cards-carousel.few-items {
    margin-left: auto;
    margin-right: auto;
}

.inspire-cards-carousel.single-item {
    margin-left: auto;
    margin-right: auto;
}

/* Ensure proper width for single item */
.inspire-cards-carousel.single-item .inspire-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Ensure proper width for two items */
.inspire-cards-carousel.few-items .inspire-card {
    width: 100%;
    max-width: 500px;
    margin: 0 20px;
}

/* Center the slick track */
.inspire-cards-carousel.single-item .slick-track {
    display: flex;
    align-items: center;
    justify-content: center;
}

.inspire-cards-carousel.few-items .slick-track {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Disable center mode side padding for single/few items */
.inspire-cards-carousel.single-item.slick-slider .slick-list,
.inspire-cards-carousel.few-items.slick-slider .slick-list {
    padding: 0 !important;
}

/* Ensure slides take full width when single */
.inspire-cards-carousel.single-item .slick-slide {
    width: 100% !important;
}

/* Container width adjustments */
.inspire-cards-carousel.single-item.slick-initialized {
    max-width: 600px;
}

.inspire-cards-carousel.few-items.slick-initialized {
    max-width: 1000px;
}