/**
 * Ana sayfa manşet slider — index.php
 */
:root {
    --hero-overlay: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.35) 50%,
        transparent 100%
    );
    --hero-section-bg: linear-gradient(165deg, #0f172a 0%, #1e3a5f 42%, #0c4a6e 100%);
}

.hero-section {
    position: relative;
    min-height: 560px;
    background: var(--hero-section-bg);
    overflow: hidden;
    padding: 7.5rem 0 3.5rem;
    color: #f8fafc;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle at 20% 30%,
        rgba(56, 189, 248, 0.12) 0%,
        transparent 45%
    ),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero-slider {
    position: relative;
    height: min(52vh, 520px);
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 60px -12px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slide {
    display: none;
    position: relative;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.85s ease;
}

.hero-slide.active {
    display: block;
    opacity: 1;
    animation: heroFade 0.85s ease;
}

@keyframes heroFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1.02);
    transition: transform 8s ease;
}

.hero-slide.active img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--hero-overlay);
    padding: 2.25rem 2rem 1.75rem;
    color: #f8fafc;
}

.hero-title {
    font-size: clamp(1.25rem, 2.8vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    line-height: 1.25;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    opacity: 0.92;
    max-width: 52ch;
}

.hero-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 0.75rem;
    pointer-events: none;
    z-index: 2;
}

.hero-prev,
.hero-next {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.hero-prev:hover,
.hero-next:hover {
    background: #38bdf8;
    color: #0f172a;
    border-color: #7dd3fc;
    transform: scale(1.06);
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.35);
}

.hero-dots {
    position: absolute;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}

.hero-dot.active {
    width: 28px;
    background: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 6.5rem 0 2.5rem;
    }

    .hero-slider {
        height: min(42vh, 380px);
        min-height: 300px;
        border-radius: 18px;
    }

    .hero-overlay {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 575.98px) {
    .hero-slider {
        border-radius: 14px;
    }
}
