/* ==========================================================================
   Hero News Slider Styles
   ========================================================================== */

/* -------------------------------------------------------------------------
   Main Container
   ------------------------------------------------------------------------- */
.hero-news-slider {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    background: #0a0a0a;
    border-radius: 0;
}

.hero-news-swiper {
    width: 100%;
    height: 380px;
    position: relative;
}

/* -------------------------------------------------------------------------
   Slide
   ------------------------------------------------------------------------- */
.hero-slide {
    position: relative;
    overflow: hidden;
}

/* Background image */
.hero-slide__image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease-out;
}

.swiper-slide-active .hero-slide__image img {
    transform: scale(1.05);
}

/* Gradient overlay */
.hero-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.15) 70%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

/* -------------------------------------------------------------------------
   Content Layer
   ------------------------------------------------------------------------- */
.hero-slide__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 720px;
    animation: heroFadeInUp 0.7s ease-out;
}

.hero-slide__floating-top {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

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

.swiper-slide-active .hero-slide__content {
    animation: heroFadeInUp 0.7s ease-out;
}

/* Category badge */
.hero-slide__category {
    display: inline-block;
    width: fit-content;
    padding: 0.3rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--akm-primary, #007bff);
    border-radius: 0;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    font-family: var(--bs-font-sans-serif);
}

.hero-slide__category:hover {
    background: #0056b3;
    color: #fff;
    transform: translateY(-1px);
}

.hero-slide__timestamp {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    padding: 0.3rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f6f1e8;
    background: rgba(106, 78, 53, 0.78);
    border: 1px solid rgba(255, 248, 235, 0.14);
    border-radius: 0;
    font-family: var(--bs-font-sans-serif);
}

.hero-slide__timestamp i {
    font-size: 0.72rem;
    line-height: 1;
}

/* Title */
.hero-slide__title {
    font-family: var(--bs-font-serif, 'Literata', Georgia, serif);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-slide__title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-slide__title a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.hero-slide__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.95rem;
}

.hero-slide__body--publication {
    gap: 0.9rem;
    max-width: 860px;
}

.hero-slide__publication-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem 1rem;
}

.hero-slide__body--publication .hero-slide__meta {
    display: inline-flex;
    width: fit-content;
    margin: 0;
}

.hero-slide__publication-head .hero-slide__title {
    margin: 0;
}

/* Meta row */
.hero-slide__meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-family: var(--bs-font-sans-serif);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Author */
.hero-slide__author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-slide__author-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.hero-slide__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
}

.hero-slide__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide__avatar-initials {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--bs-font-sans-serif);
}

.hero-slide__author-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.hero-slide__author--news .hero-slide__avatar {
    width: 34px;
    height: 34px;
    border-width: 2px;
}

.hero-slide__author--news .hero-slide__author-name {
    font-size: 0.98rem;
    font-weight: 700;
}

.hero-slide__author--publication {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 0;
    min-height: 0;
    padding: 0.3rem 0.7rem 0.3rem 0.36rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    justify-self: start;
    flex: 0 0 auto;
    position: relative;
    overflow: visible;
}

.hero-slide__author--publication::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.28rem;
    bottom: 0.28rem;
    width: 1px;
    background: rgba(255, 255, 255, 0.72);
}

.hero-slide__author--publication .hero-slide__author-copy {
    gap: 0;
    justify-content: center;
    min-height: 0;
    min-width: 0;
    padding-left: 4.2rem;
}

.hero-slide__author--publication .hero-slide__avatar {
    width: 56px;
    height: 56px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.42);
    flex: 0 0 56px;
    position: absolute;
    left: 0.48rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.hero-slide__author--publication .hero-slide__author-name {
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 2.05;
    color: #fff;
    white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Navigation Arrows
   ------------------------------------------------------------------------- */
.hero-slider__controls {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.hero-news-swiper-button-prev,
.hero-news-swiper-button-next {
    position: static;
    width: 30px;
    height: 30px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    font-size: 0.8rem;
    color: #111;
}

.hero-news-swiper-button-prev:hover,
.hero-news-swiper-button-next:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}

/* -------------------------------------------------------------------------
   Pagination Dots
   ------------------------------------------------------------------------- */
.hero-news-swiper-pagination {
    display: none !important;
}

/* -------------------------------------------------------------------------
   Responsive — Tablet
   ------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .hero-news-swiper {
        height: 420px;
    }

    .hero-slide__content {
        padding: 2rem;
    }

    .hero-slide__title {
        font-size: 1.5rem;
    }

    .hero-slide__body--publication {
        gap: 0.85rem;
        max-width: 680px;
    }

    .hero-slide__publication-head {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 0.85rem;
    }
}

/* -------------------------------------------------------------------------
   Responsive — Mobile
   ------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .hero-news-slider {
        margin-bottom: 1.25rem;
        border-radius: 0;
    }

    .hero-slide__floating-top {
        top: 0.75rem;
        right: 0.75rem;
        gap: 0.5rem;
    }

    .hero-news-swiper {
        height: 380px;
    }

    .hero-slide__content {
        padding: 1.5rem;
        gap: 0.5rem;
    }

    .hero-slide__title {
        font-size: 1.25rem;
        line-height: 1.25;
    }

    .hero-slide__body {
        gap: 0.75rem;
    }

    .hero-slide__category {
        font-size: 0.65rem;
        padding: 0.25rem 0.7rem;
    }

    .hero-slide__meta {
        flex-wrap: wrap;
        gap: 0.75rem;
        font-size: 0.75rem;
    }

    .hero-slide__avatar {
        width: 26px;
        height: 26px;
    }

    .hero-news-swiper-button-prev,
    .hero-news-swiper-button-next {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        opacity: 1;
    }

    .hero-news-swiper-pagination {
        bottom: 0.8rem;
        right: 1rem;
    }
}

/* -------------------------------------------------------------------------
   Responsive — Small Mobile
   ------------------------------------------------------------------------- */
@media (max-width: 575px) {
    .hero-news-swiper {
        height: 320px;
    }

    .hero-slide__content {
        padding: 1.25rem;
    }

    .hero-slide__title {
        font-size: 1.1rem;
    }

    .hero-slide__overlay {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.55) 45%,
            rgba(0, 0, 0, 0.1) 100%
        );
    }
}

/* -------------------------------------------------------------------------
   RTL Support (for Kurdish Sorani / Arabic)
   ------------------------------------------------------------------------- */
[dir="rtl"] .hero-slide__content {
    left: auto;
    right: 0;
}

[dir="rtl"] .hero-news-swiper-pagination {
    right: auto;
    left: 1.5rem;
}

/* -------------------------------------------------------------------------
   Print
   ------------------------------------------------------------------------- */
@media print {
    .hero-news-slider {
        display: none;
    }
}
