/* ════════════════════════════════════════
   DHH Home Headline - CSS
   Carousel foto PKM full-screen dengan overlay gradient
════════════════════════════════════════ */

.dhh-home-headline-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    /* Note: min-height akan ditentukan oleh inline style di HTML */
}

/* Empty state - wrapper kosong ketika tidak ada PKM/foto */
.dhh-home-headline-wrapper.dhh-home-headline-empty {
    background: transparent;
    min-height: 0;
}

/* ────────────────────────────────────────
   Carousel slides
──────────────────────────────────────────── */

.dhh-headline-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.dhh-headline-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.dhh-headline-slide.active {
    opacity: 1;
}

.dhh-headline-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ────────────────────────────────────────
   Overlay dengan gradient + content
──────────────────────────────────────────── */

.dhh-headline-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 40px;
    z-index: 10;
}

@media (max-width: 768px) {
    .dhh-headline-overlay {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .dhh-headline-overlay {
        padding: 24px 16px;
    }
}

/* ────────────────────────────────────────
   Content section
──────────────────────────────────────────── */

.dhh-headline-content {
    max-width: 700px;
    width: 100%;
    color: white;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge - label PKM */
.dhh-headline-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #4CAF50;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* Title */
.dhh-headline-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .dhh-headline-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .dhh-headline-title {
        font-size: 28px;
    }
}

/* Meta information (dosen, tahun) */
.dhh-headline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .dhh-headline-meta {
        gap: 12px;
        font-size: 13px;
    }
}

.dhh-headline-meta-item {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.dhh-headline-meta-item strong {
    font-weight: 700;
}

/* Description / excerpt */
.dhh-headline-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
    .dhh-headline-description {
        font-size: 14px;
    }
}

/* ────────────────────────────────────────
   Navigation controls
──────────────────────────────────────────── */

.dhh-headline-controls {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .dhh-headline-controls {
        bottom: 32px;
        left: 24px;
        right: 24px;
    }
}

@media (max-width: 480px) {
    .dhh-headline-controls {
        bottom: 24px;
        left: 16px;
        right: 16px;
        gap: 12px;
    }
}

/* Navigation buttons (prev/next) */
.dhh-headline-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.dhh-headline-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.dhh-headline-btn:active {
    transform: scale(0.95);
}

@media (max-width: 480px) {
    .dhh-headline-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* ────────────────────────────────────────
   Dots indicator
──────────────────────────────────────────── */

.dhh-headline-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex: 1;
    margin: 0 24px;
}

@media (max-width: 480px) {
    .dhh-headline-dots {
        margin: 0 12px;
        gap: 6px;
    }
}

.dhh-headline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    padding: 0;
}

.dhh-headline-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dhh-headline-dot.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: white;
    width: 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .dhh-headline-dot {
        width: 8px;
        height: 8px;
    }

    .dhh-headline-dot.active {
        width: 20px;
    }
}

/* ────────────────────────────────────────
   Accessibility & Print
──────────────────────────────────────────── */

@media print {
    .dhh-home-headline-wrapper {
        display: none;
    }
}

/* Focus visible untuk keyboard navigation */
.dhh-headline-btn:focus-visible,
.dhh-headline-dot:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .dhh-headline-slide,
    .dhh-headline-content,
    .dhh-headline-btn,
    .dhh-headline-dot {
        transition: none;
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .dhh-headline-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.5) 30%,
            rgba(0, 0, 0, 0.7) 70%,
            rgba(0, 0, 0, 0.95) 100%
        );
    }

    .dhh-headline-btn,
    .dhh-headline-dot {
        border-color: white;
    }
}

/* End of file */
