/**
 * WP Post Carousel - CSS Styly (Aslan Reference Design)
 * @version 1.0.0
 */

/* Základní kontejner carousel */
.wp-post-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: transparent;
}

.wp-post-carousel-container.carousel {
    position: relative;
}

/* Wrapper pro carousel obsah */
.wp-post-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

/* Slider kontejner */
.wp-post-carousel-slider {
    display: flex;
    transition: transform 0.3s ease;
    height: 300px;
}

/* Jednotlivé položky */
.wp-post-carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: start;
    justify-content: start;
    cursor: pointer;
}

/* Post karta */
.wp-post-carousel-post {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 600px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

/* Responsive šířky pro post karty */
@media (max-width: 550px) {
    .wp-post-carousel-post {
        width: 100%;
        max-width: none;
    }
}

@media (min-width: 550px) and (max-width: 750px) {
    .wp-post-carousel-post {
        width: 90%;
    }
}

@media (min-width: 750px) {
    .wp-post-carousel-post {
        width: 85%;
    }
}

@media (max-width: 700px) {
    .wp-post-carousel-post {
        max-width: 87%;
    }
}

@media (min-width: 700px) {
    .wp-post-carousel-post {
        max-width: 75%;
    }
}

/* Overlay navigační kontejner */
.wp-post-carousel-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    pointer-events: none;
    z-index: 3;
}

.wp-post-carousel-nav-overlay .nav-left,
.wp-post-carousel-nav-overlay .nav-right {
    width: 50%;
    height: 100%;
    position: relative;
    pointer-events: all;
}

/* Navigační prvky */
.wp-post-carousel-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 4;
    padding: 0;
}

.wp-post-carousel-prev,
.wp-post-carousel-next {
    background: transparent;
    color: #B3B3B3;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 0;
    cursor: pointer;
    font-size: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    position: absolute;
    z-index: 4;
}

/* Desktop pozicování šipek */
@media (min-width: 900px) {
    .wp-post-carousel-wrapper {
        min-height: 350px;
        height: 400px;
        margin-bottom: 0;
    }
    
    .wp-post-carousel-prev {
        left: 3%;
        top: 200px;
    }
    
    .wp-post-carousel-next {
        right: 3%;
        top: 200px;
    }
}

/* Tablet pozicování */
@media (max-width: 900px) {
    .wp-post-carousel-wrapper {
        min-height: 350px;
        height: 420px;
    }
    
    .wp-post-carousel-prev {
        left: 3%;
        top: 200px;
    }
    
    .wp-post-carousel-next {
        right: 3%;
        top: 200px;
    }
}

/* Mobile pozicování */
@media (max-width: 550px) {
    .wp-post-carousel-wrapper {
        min-height: 350px;
    }
    
    .wp-post-carousel-prev,
    .wp-post-carousel-next {
        font-size: 35px;
        width: 40px;
        height: 40px;
    }
    
    .wp-post-carousel-prev {
        left: 1.5%;
        top: 150px;
    }
    
    .wp-post-carousel-next {
        right: 1.5%;
        top: 150px;
    }
}

.wp-post-carousel-prev:hover,
.wp-post-carousel-next:hover {
    color: #666;
    transform: scale(1.1);
}

.wp-post-carousel-prev:active,
.wp-post-carousel-next:active {
    transform: scale(0.95);
}

/* Pagination/tečky */
.wp-post-carousel-dots {
    position: absolute;
    bottom: -110px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
    top: 188px;
    margin-bottom: -110px;
    color: #B3B3B3;
}

@media (min-width: 650px) {
    .wp-post-carousel-dots {
        font-size: 44px;
        padding-top: 80px;
        top: 320px;
    }
    .wp-post-carousel-container {
            min-height: 450px;
            height: 450px;
    
        } 
         .wp-post-carousel-item{
            padding: 50px 12% 0 12%;
        
    
        }
}

@media (max-width: 650px) {
    .wp-post-carousel-dots {
        font-size: 30px;
        top: 300px;
    }
    .wp-post-carousel-container {
            min-height: 350px;
            height: 350px;
    
        } 
        .wp-post-carousel-item{
            padding: 50px 12% 0 12%;
        }
}

.wp-post-carousel-dot {
    border-radius: 50%;
    background: #B3B3B3;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.wp-post-carousel-dot.active {
    background: #666;
    opacity: 1;
    transform: scale(1.2);
}

.wp-post-carousel-dot:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Obsah postů */
.wp-post-carousel-title {
    font-family: "Roboto Slab", Sans-serif;
    font-weight: 400;
    color: #B3B3B3;
    margin-bottom: 5px;
}

.wp-post-carousel-author {
       font-family: "Grape Nuts", Sans-serif;
    font-weight: 500;
    color: #5484C3;
    margin-bottom: 20px;

}
.wp-post-carousel-excerpt p{
    font-family: "Roboto Slab", Sans-serif;
    font-weight: 400;
    color: #707070;
}

/* Mobile typography adjustments */
@media (min-width: 650px) {
    .wp-post-carousel-dot {
        width: 12px;
        height: 12px;
    }
    .wp-post-carousel-title {
        font-size: 20px;
        line-height: 1.2;
    }
    
    .wp-post-carousel-author {
        font-size: 30px;
        line-height: 1.1;
    }
    
    .wp-post-carousel-excerpt p {
        padding-top: 20px;
        font-size: 18px;
        line-height: 1.5;
    }
}
@media(max-width: 650px){
        .wp-post-carousel-dot {
            width: 8px;
            height: 8px;
        }
        .wp-post-carousel-title{
            font-size: 16px;
            line-height: 1.1;
            }
        .wp-post-carousel-author{
        font-size: 22px;
        line-height: 1.1;
        }
        .wp-post-carousel-excerpt p{
             padding-top: 15px;
        font-size: 14px;
        line-height: 1.3;
        }
}

/* Grid mode */
.wp-post-carousel-container.grid {
    display: grid;
    gap: 30px;
}

.wp-post-carousel-container.grid .wp-post-carousel-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.wp-post-carousel-container.grid .wp-post-carousel-item {
    flex: none;
    max-width: none;
}

/* Fade in animace */
.wp-post-carousel-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.wp-post-carousel-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Footer margin adjustments from original */
@media (max-width: 1200px) and (min-width: 900px) {
    .wp-post-carousel-container ~ .elementor-location-footer,
    .elementor-location-footer {
        margin-top: 100px;
    }
}

@media (max-width: 900px) and (min-width: 650px) {
    .wp-post-carousel-container ~ .elementor-location-footer,
    .elementor-location-footer {
        margin-top: 70px;
    }
}

@media (max-width: 650px) {
    .wp-post-carousel-container ~ .elementor-location-footer,
    .elementor-location-footer {
        margin-top: 103px;
    }
}

/* Aslan reference specific styles */
.wp-post-carousel-container.aslan-reference-section-left-margin-withdraw .elementor-container {
    margin-left: auto !important;
}

.wp-post-carousel-slideshow-column {
    width: 100%;
    display: flex;
    justify-content: center;
}

.wp-post-carousel-slide-styling {
    width: 100% !important;
    justify-content: center;
}

.wp-post-carousel-slide-styling > .elementor-widget-wrap.elementor-element-populated {
    max-width: 75% !important;
}

@media (max-width: 700px) {
    .wp-post-carousel-slide-styling > .elementor-widget-wrap.elementor-element-populated {
        max-width: 87% !important;
    }
}

.wp-post-carousel-reference-inner-column-height {
    height: 350px;
    cursor: pointer;
}

.wp-post-carousel-cover-section > .elementor-container.elementor-column-gap-default {
    display: flex;
    width: 100vw !important;
    flex-direction: row !important;
    max-width: 100vw !important;
}

/* Overlay columns for navigation */
#wp-post-carousel-left-arrow-cover,
#wp-post-carousel-right-arrow-cover {
    z-index: 4;
    width: 50% !important;
}
