/**
 * Kolaras Hulchal - Homepage Hero Story Slider CSS
 *
 * @package Kolaras_Hulchal
 * @version 1.0.0
 */

/* 1. Top Hero Section Flex Layout */
.kh-top-hero-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.25rem;
    margin-bottom: 2rem;
}

.kh-hero-column {
    flex: 0 0 65%;
    max-width: 65%;
    width: 65%;
}

.kh-trending-column {
    flex: 0 0 35%;
    max-width: 35%;
    width: 35%;
}

/* 2. Hero Slider Main Wrapper */
.kh-hero-wrapper {
    position: relative;
    width: 100%;
}

.kh-hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--kh-radius, 6px);
    background-color: var(--kh-navy-dark, #0B132B);
    box-shadow: var(--kh-shadow-lg);
}

.kh-hero-track {
    position: relative;
    width: 100%;
}

/* 3. Hero Slides */
.kh-hero-slide {
    display: none;
    position: relative;
    width: 100%;
}

.kh-hero-slide.is-active {
    display: block;
}

.kh-hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--kh-navy-main, #1C2541);
    overflow: hidden;
}

.kh-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.kh-hero-slide:hover .kh-hero-img {
    transform: scale(1.03);
}

.kh-hero-placeholder-img {
    width: 100%;
    height: 100%;
    background-color: var(--kh-navy-main, #1C2541);
}

/* Dark Gradient Overlay for High Contrast Text */
.kh-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(11, 19, 43, 0.95) 100%);
    pointer-events: none;
}

/* 4. Slide Content Overlay */
.kh-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: var(--kh-text-inverse, #FFFFFF);
    z-index: 10;
}

.kh-hero-badge-wrap {
    margin-bottom: 0.5rem;
}

.kh-hero-badge {
    background-color: var(--kh-red-primary, #D90429);
    color: var(--kh-text-inverse, #FFFFFF);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    display: inline-block;
}


.kh-hero-title {
    font-family: var(--kh-font-heading, 'Tiro Devanagari Hindi', serif);
    font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: var(--kh-text-inverse, #FFFFFF);
}

.kh-hero-title a {
    color: var(--kh-text-inverse, #FFFFFF);
    text-decoration: none;
    transition: color 0.2s ease;
}

.kh-hero-title a:hover {
    color: #F87171;
}

.kh-hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.625rem;
}

.kh-hero-excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kh-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--kh-red-primary, #D90429);
    color: var(--kh-text-inverse, #FFFFFF);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--kh-radius, 6px);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.kh-hero-cta:hover {
    background-color: var(--kh-red-hover, #EF233C);
    transform: translateY(-1px);
}

/* 5. Navigation Controls (Arrows, Dots, Play/Pause) */
.kh-slider-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--kh-text-inverse, #FFFFFF);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.125rem;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

.kh-hero-slider-container:hover .kh-slider-arrow {
    opacity: 1;
}

.kh-slider-arrow:hover {
    background-color: var(--kh-red-primary, #D90429);
}

.kh-prev {
    left: 1rem;
}

.kh-next {
    right: 1rem;
}

.kh-hero-controls {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kh-slider-dots {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.kh-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.kh-slider-dot.is-active {
    background-color: var(--kh-red-primary, #D90429);
    transform: scale(1.2);
}

.kh-slider-playpause {
    background: rgba(0, 0, 0, 0.5);
    color: #FFF;
    border: none;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    line-height: 1;
}

/* 6. Responsive Breakpoints */
@media (max-width: 991px) {
    .kh-top-hero-row {
        flex-direction: column;
    }

    .kh-hero-column,
    .kh-trending-column {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}
