/* ==========================================================================
   Kidan Hero Widget Styles - Exact Match
   ========================================================================== */

.kidan-hero-widget {
    width: 100%;
    overflow: hidden;
}

.kidan-hero-container {
    display: grid;
    grid-template-columns: 58% 42%;
    min-height: 100vh;
}

/* ==========================================================================
   LEFT SECTION
   ========================================================================== */
.kidan-hero-left {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #6D1EFF 0%, #4D0FBF 100%);
    overflow: hidden;
}

/* Decorative Background Elements */
.kidan-hero-left::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.kidan-hero-left::after {
    content: '';
    position: absolute;
    bottom: 30%;
    right: 0;
    width: 40%;
    height: 60%;
    background-image:
        linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.03) 55%, transparent 55%),
        linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.02) 55%, transparent 55%);
    background-size: 100px 100px;
    opacity: 0.3;
    pointer-events: none;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 40% 0);
}

.kidan-hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 80px 60px 80px;
    flex: 1;
}

.kidan-hero-title {
    font-size: 62px;
    font-weight: 700;
    line-height: 1.1;
    color: #FFFFFF;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
    max-width: 95%;
}

.kidan-hero-description {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 48px;
    max-width: 92%;
    font-weight: 400;
}

/* Buttons */
.kidan-hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.kidan-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 32px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.kidan-btn-primary {
    background: #FFFFFF;
    color: #000000;
    font-weight: 400;
}

.kidan-btn-primary:hover {
    background: #F5F5F5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.kidan-btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.kidan-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Bottom Section Container */
.kidan-hero-bottom {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Stats Section */
.kidan-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 40px 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.kidan-stat-item {
    text-align: left;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.kidan-stat-item:last-child {
    border-right: none;
}

.kidan-stat-item:first-child {
    padding-left: 0;
}

.kidan-stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.kidan-stat-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    line-height: 1.4;
}

/* Unified Pillars */
.kidan-hero-pillars {
    padding: 32px 80px;
}

.kidan-pillars-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 20px;
    font-weight: 500;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kidan-pillars-link:hover {
    transform: translateX(6px);
}

.kidan-pillars-link svg {
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
}

.kidan-pillars-link:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   RIGHT SECTION - SLIDER
   ========================================================================== */
.kidan-hero-right {
    position: relative;
    background: #0C1130;
    overflow: hidden;
}

.kidan-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.kidan-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.kidan-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.kidan-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.kidan-slide-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.kidan-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(12, 17, 48, 0.3) 0%, rgba(12, 17, 48, 0.85) 100%);
}

.kidan-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 80px 70px;
}

.kidan-slide-text {
    max-width: 100%;
}

.kidan-slide-title {
    font-size: 40px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.kidan-slide-description {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    max-width: 85%;
}

/* Play Button and Bottom Controls Container */
.kidan-slide-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Play Button */
.kidan-play-button {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
    position: relative;
}

.kidan-play-button::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.4) 0%, rgba(59, 130, 246, 0.4) 100%);
    animation: kidan-pulse 2.5s ease-in-out infinite;
    z-index: -1;
}

@keyframes kidan-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.kidan-play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.5);
}

.kidan-play-button.paused::before {
    animation: none;
}

.kidan-play-button svg {
    width: 28px;
    height: 28px;
}

/* Slider Indicators */
.kidan-slider-indicators {
    display: flex;
    gap: 10px;
    align-items: center;
}

.kidan-indicator {
    width: 60px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.kidan-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%);
    transition: width 0.3s ease;
}

.kidan-indicator.active {
    background: rgba(96, 165, 250, 0.35);
}

.kidan-indicator.active::before {
    animation: kidan-progress var(--autoplay-speed, 2s) linear forwards;
}

@keyframes kidan-progress {
    to {
        width: 100%;
    }
}

.kidan-indicator:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media screen and (max-width: 1400px) {
    .kidan-hero-title {
        font-size: 52px;
    }

    .kidan-hero-content,
    .kidan-hero-stats,
    .kidan-hero-pillars {
        padding-left: 60px;
        padding-right: 60px;
    }

    .kidan-slide-content {
        padding: 60px 50px;
    }
}

@media screen and (max-width: 1200px) {
    .kidan-hero-container {
        grid-template-columns: 55% 45%;
    }

    .kidan-hero-title {
        font-size: 46px;
    }

    .kidan-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 0;
    }

    .kidan-stat-item {
        padding: 15px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .kidan-stat-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    .kidan-stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .kidan-stat-number {
        font-size: 40px;
    }
}

@media screen and (max-width: 992px) {
    .kidan-hero-container {
        grid-template-columns: 1fr;
    }

    .kidan-hero-left {
        min-height: 100vh;
    }

    .kidan-hero-right {
        min-height: 85vh;
    }

    .kidan-hero-title {
        font-size: 42px;
    }

    .kidan-hero-description {
        max-width: 100%;
    }

    .kidan-stat-item:first-child {
        padding-left: 20px;
    }
}

@media screen and (max-width: 768px) {
    .kidan-hero-content {
        padding: 60px 40px 50px 40px;
    }

    .kidan-hero-stats,
    .kidan-hero-pillars {
        padding-left: 40px;
        padding-right: 40px;
    }

    .kidan-slide-content {
        padding: 60px 40px;
    }

    .kidan-hero-title {
        font-size: 36px;
    }

    .kidan-hero-description {
        font-size: 16px;
    }

    .kidan-hero-buttons {
        flex-direction: column;
    }

    .kidan-hero-btn {
        width: 100%;
        justify-content: center;
    }

    .kidan-hero-stats {
        padding: 30px 40px;
    }

    .kidan-stat-number {
        font-size: 32px;
    }

    .kidan-stat-label {
        font-size: 13px;
    }

    .kidan-slide-title {
        font-size: 32px;
    }

    .kidan-slide-description {
        font-size: 15px;
        max-width: 100%;
    }

    .kidan-play-button {
        width: 80px;
        height: 80px;
    }

    .kidan-indicator {
        width: 50px;
        height: 36px;
    }
}

@media screen and (max-width: 576px) {
    .kidan-hero-content {
        padding: 40px 24px 40px 24px;
    }

    .kidan-hero-stats,
    .kidan-hero-pillars {
        padding-left: 24px;
        padding-right: 24px;
    }

    .kidan-slide-content {
        padding: 40px 24px;
    }

    .kidan-hero-title {
        font-size: 28px;
    }

    .kidan-hero-description {
        font-size: 14px;
    }

    .kidan-stat-number {
        font-size: 28px;
    }

    .kidan-pillars-link {
        font-size: 17px;
    }

    .kidan-slide-title {
        font-size: 26px;
    }

    .kidan-play-button {
        width: 70px;
        height: 70px;
    }

    .kidan-play-button svg {
        width: 24px;
        height: 24px;
    }

    .kidan-indicator {
        width: 40px;
        height: 32px;
    }
}
