/*
 * Kalıcı kural: main zaten global.css'te header kadar padding-top alır.
 * Hero menünün ALTINDAN başlar; kalan viewport'u doldurur.
 * Böylece başlık asla menünün altında kalmaz.
 */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: #0f1a30;
    /* 100vh - topbar(36) - header(80) */
    height: calc(100vh - 116px);
    height: calc(100dvh - 116px);
    height: calc(100vh - var(--topbar-height) - var(--header-height));
    height: calc(100dvh - var(--topbar-height) - var(--header-height));
    min-height: 480px;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide--split {
    display: grid;
    grid-template-columns: minmax(320px, 46%) 1fr;
    width: 100%;
    height: 100%;
}

.hero-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #0f1a30 0%, #1b2a4a 100%);
    z-index: 2;
    height: 100%;
    box-sizing: border-box;
}

.hero-panel-inner {
    width: 100%;
    max-width: 480px;
    margin: 0;
    padding: 28px 40px 40px 48px;
}

.hero-media {
    background-color: #1b2a4a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    position: relative;
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 26, 48, 0.35) 0%, transparent 40%);
    pointer-events: none;
}

/* Force readable colors over global h1/h2 rules */
.hero-slider .hero-kicker {
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c94a4a !important;
}

.hero-slider .hero-title,
.hero-slider h1.hero-title,
.hero-slider h2.hero-title {
    margin: 0 0 8px;
    font-size: clamp(1.9rem, 3.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff !important;
}

.hero-slider .hero-title-sm {
    font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.hero-slider .hero-place {
    margin: 0 0 12px;
    font-size: 0.98rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
}

.hero-slider .hero-lead {
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88) !important;
    max-width: 420px;
}

.hero-date-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 22px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid #8B1A1A;
}

.hero-slider .hero-date-num {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff !important;
    line-height: 1.2;
}

.hero-slider .hero-date-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
}

.hero-slider .hero-date-meta i {
    color: #c94a4a;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-slider .btn-hero-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 14px 28px;
}

.hero-slider .btn-hero-ghost:hover {
    background: #ffffff;
    color: #0f1a30 !important;
    border-color: #ffffff;
}

/* Topics */
.hero-topics {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.hero-topics li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.98rem;
    font-weight: 500;
    color: #ffffff !important;
}

.hero-topics li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-topics span {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #8B1A1A;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 4px;
}

/* Schedule */
.hero-schedule {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.hero-schedule li {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-schedule li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-schedule time {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e08a8a !important;
}

.hero-schedule span {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Controls */
.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 26, 48, 0.75);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-slider-btn:hover {
    background: #8B1A1A;
    border-color: #8B1A1A;
}

.hero-slider-prev { left: 12px; }
.hero-slider-next { right: 12px; }

.hero-slider-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.hero-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.hero-slider-dot.active {
    background: #8B1A1A;
    border-color: #8B1A1A;
}

/* Homepage panels / program */
.panels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.panels-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.panel-card-dark {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--card-radius);
    padding: 28px 24px;
}

.panel-card-dark .panel-topics {
    list-style: none;
    padding: 0;
    margin: 0;
}

.panel-card-dark .panel-topics li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.panel-card-dark .panel-topics li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-light);
}

.panel-card-dark .panel-number {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.1);
}

.panel-card-dark h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.panel-card-dark > p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.program-timeline-home {
    max-width: 900px;
    margin: 0 auto;
}

.program-timeline-home .program-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    padding: 16px 0;
}

.program-timeline-home .program-time {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    text-align: right;
    padding-top: 4px;
}

.program-timeline-home .program-content {
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 18px 22px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.program-timeline-home .program-item-panel .program-content {
    border-left-color: var(--accent);
}

.program-timeline-home .program-content h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.program-timeline-home .program-content p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-muted, #666);
}

.text-center {
    text-align: center;
}

@media (max-width: 1024px) {
    .hero-slider {
        height: auto;
        min-height: 0;
    }

    .hero-slides {
        height: auto;
        min-height: 0;
    }

    .hero-slide {
        display: none;
    }

    .hero-slide.active {
        position: relative;
        display: grid;
        inset: auto;
    }

    .hero-slide--split {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-panel {
        height: auto;
        padding-top: 0;
    }

    .hero-media {
        height: 240px;
        order: -1;
    }

    .hero-panel-inner {
        max-width: none;
        margin: 0;
        padding: 28px 24px 48px;
    }

    .panels-grid,
    .panels-grid-home {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-media {
        height: 200px;
    }

    .hero-slider .hero-date-num {
        font-size: 1.4rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
        width: 100%;
    }

    .hero-schedule li {
        grid-template-columns: 88px 1fr;
    }

    .hero-slider-btn {
        width: 36px;
        height: 36px;
        top: 90px;
    }

    .hero-slider-prev { left: 8px; }
    .hero-slider-next { right: 8px; }

    .program-timeline-home .program-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .program-timeline-home .program-time {
        text-align: left;
    }
}
