/**
 * CretaTimes Hero Slider Styles
 * Modern, impressive slider with thumbnail navigation
 */

/* CSS Variables */
:root {
    --cths-primary: #0066cc;
    --cths-accent: #c8102e;
    --cths-dark: #1a1a2e;
    --cths-light: #ffffff;
    --cths-overlay: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.2) 100%);
    --cths-transition: cubic-bezier(0.4, 0, 0.2, 1);
    --cths-font-title: Georgia, 'Times New Roman', serif;
    --cths-font-body: 'CFAstyStd Book', 'CFAstyStd Medium', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Main Wrapper */
.cths-hero-slider-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 40px;
    background: var(--cths-dark);
    font-family: var(--cths-font-body);
}

/* Main Slider */
.cths-main-slider {
    width: 100%;
    height: 75vh;
    min-height: 550px;
    max-height: 750px;
}

.cths-main-slider .swiper-slide {
    position: relative;
    overflow: hidden;
}

/* Slide Background */
.cths-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 10s ease-out;
}

.swiper-slide-active .cths-slide-bg {
    transform: scale(1.08);
}

/* Overlay */
.cths-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cths-overlay);
    z-index: 1;
}

/* Content Container */
.cths-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.cths-content-inner {
    max-width: 750px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--cths-transition);
}

.swiper-slide-active .cths-content-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Category Badge */
.cths-category {
    display: inline-block;
    padding: 10px 24px;
    background: #FFF1E5;
    color: #990F3D;
    font-family: var(--cths-font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 3px;
    margin-bottom: 25px;
}

.cths-category:hover {
    color: #990F3D;
}

/* Title - Georgia font */
.cths-title {
    font-family: var(--cths-font-title);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    font-style: normal;
    line-height: 1.15;
    margin: 0 0 25px 0;
    color: var(--cths-light);
    letter-spacing: -0.5px;
}

.cths-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cths-title a:hover {
    color: var(--cths-accent);
}

/* Excerpt */
.cths-excerpt {
    font-family: var(--cths-font-body);
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 30px 0;
    max-width: 600px;
}

/* Meta Info */
.cths-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    font-family: var(--cths-font-body);
}

.cths-date {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.cths-date svg {
    opacity: 0.8;
}

.cths-read-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid var(--cths-light);
    color: var(--cths-light);
    font-family: var(--cths-font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s var(--cths-transition);
}

.cths-read-more:hover {
    background: var(--cths-light);
    color: var(--cths-dark);
}

.cths-read-more svg {
    transition: transform 0.3s ease;
}

.cths-read-more:hover svg {
    transform: translateX(5px);
}

/* Navigation Arrows */
.cths-nav-prev,
.cths-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--cths-transition);
    color: var(--cths-light);
}

.cths-nav-prev {
    left: 30px;
}

.cths-nav-next {
    right: 30px;
}

.cths-nav-prev:hover,
.cths-nav-next:hover {
    background: var(--cths-accent);
    border-color: var(--cths-accent);
    transform: translateY(-50%) scale(1.05);
}

/* ===== THUMBNAIL NAVIGATION - HORIZONTAL STRIP ===== */
.cths-thumbs-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 60%, transparent 100%);
    padding: 40px 0 20px;
}

.cths-thumbs-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
}

.cths-thumbs-slider {
    width: auto;
    max-width: 100%;
}

.cths-thumbs-slider .swiper-wrapper {
    justify-content: center;
}

/* Horizontal Strip Layout */
.cths-thumb-slide {
    width: 240px !important;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.7;
}

.cths-thumb-slide:hover {
    opacity: 1;
}

.cths-thumb-slide.swiper-slide-thumb-active {
    opacity: 1;
}

/* Thumbnail Image Container - Square/Compact */
.cths-thumb-image {
    width: 80px;
    min-width: 80px;
    height: 55px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.cths-thumb-slide.swiper-slide-thumb-active .cths-thumb-image {
    box-shadow: 0 0 0 2px var(--cths-accent);
}

/* Slide Number Indicator */
.cths-thumb-slide::before {
    content: attr(data-slide-index);
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: var(--cths-font-body);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.cths-thumb-slide.swiper-slide-thumb-active::before {
    background: var(--cths-accent);
    opacity: 1;
    left: 16px;
}

/* Thumbnail Title - Georgia Font */
.cths-thumb-title {
    font-family: var(--cths-font-title);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    transition: color 0.3s ease;
}

.cths-thumb-slide:hover .cths-thumb-title {
    color: #fff;
}

.cths-thumb-slide.swiper-slide-thumb-active .cths-thumb-title {
    color: #fff;
}

/* Progress Bar - Bottom of card */
.cths-thumb-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cths-thumb-slide.swiper-slide-thumb-active .cths-thumb-progress {
    opacity: 1;
}

.cths-thumb-slide.swiper-slide-thumb-active .cths-thumb-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--cths-accent);
    animation: cths-progress 5s linear forwards;
}

@keyframes cths-progress {
    from { width: 0; }
    to { width: 100%; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .cths-main-slider {
        height: 65vh;
        min-height: 500px;
    }

    .cths-thumb-slide {
        width: 260px !important;
        padding: 10px;
        gap: 12px;
    }

    .cths-thumb-image {
        width: 85px;
        min-width: 85px;
        height: 60px;
    }

    .cths-thumb-title {
        font-size: 13px;
    }

    .cths-thumbs-container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .cths-main-slider {
        height: 55vh;
        min-height: 450px;
    }

    .cths-nav-prev,
    .cths-nav-next {
        width: 50px;
        height: 50px;
    }

    .cths-nav-prev {
        left: 15px;
    }

    .cths-nav-next {
        right: 15px;
    }

    .cths-thumb-slide {
        width: 240px !important;
        padding: 8px;
        gap: 10px;
    }

    .cths-thumb-image {
        width: 75px;
        min-width: 75px;
        height: 55px;
    }

    .cths-thumb-title {
        font-size: 12px;
    }

    .cths-thumbs-container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .cths-main-slider {
        height: 50vh;
        min-height: 400px;
    }

    .cths-slide-content {
        padding: 0 20px;
    }

    .cths-content-inner {
        max-width: 100%;
    }

    .cths-excerpt {
        display: none;
    }

    .cths-nav-prev,
    .cths-nav-next {
        display: none;
    }

    .cths-thumbs-wrapper {
        padding: 25px 0 15px;
    }

    .cths-thumb-slide {
        width: 200px !important;
        padding: 8px;
        gap: 10px;
        border-radius: 8px;
    }

    .cths-thumb-image {
        width: 65px;
        min-width: 65px;
        height: 50px;
        border-radius: 4px;
    }

    .cths-thumb-title {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .cths-read-more {
        padding: 12px 24px;
        font-size: 12px;
    }

    .cths-category {
        padding: 8px 18px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .cths-main-slider {
        height: 45vh;
        min-height: 350px;
    }

    .cths-title {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .cths-category {
        margin-bottom: 15px;
    }

    .cths-meta {
        gap: 15px;
    }

    .cths-thumb-slide {
        width: 170px !important;
        padding: 6px;
        gap: 8px;
    }

    .cths-thumb-image {
        width: 55px;
        min-width: 55px;
        height: 42px;
    }

    .cths-thumb-title {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }

    .cths-thumbs-container {
        padding: 0 12px;
    }
}
