/* Idea 1 — headlines box (replaces Swiper hero on homepage) */
/* v1.7 — Cairo font + progress bar fixed (transform-based) */

.hero-headlines-v1 {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    height: 600px !important;
    max-height: 600px !important;
    width: 100% !important;
    overflow: hidden !important;
    direction: rtl !important;
    text-align: right !important;
}

.hero-headlines-v1 .hh1-main {
    position: relative !important;
    display: block !important;
    flex: 0 0 425px !important;
    height: 425px !important;
    min-height: 425px !important;
    max-height: 425px !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    background: #000 !important;
    text-decoration: none !important;
}

.hero-headlines-v1 .hh1-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    transition: opacity 0.45s ease !important;
    border-radius: 0 !important;
}

.hero-headlines-v1 .hh1-img.is-fading {
    opacity: 0 !important;
}

.hero-headlines-v1 .hh1-overlay {
    position: absolute !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    padding: 60px 22px 18px !important;
    margin: 0 !important;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 100%) !important;
    color: #fff !important;
    z-index: 2 !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 0 !important;
    direction: rtl !important;
    text-align: right !important;
}

.hero-headlines-v1 .hh1-badge,
.hero-headlines-v1 .banner-heading span.hh1-badge {
    display: inline-block !important;
    background: #C2111E !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    padding: 3px 12px !important;
    border-radius: 3px !important;
    position: static !important;
    width: auto !important;
    margin: 0 !important;
}

.hero-headlines-v1 .hh1-title,
.hero-headlines-v1 .banner-heading p.hh1-title {
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1.55 !important;
    margin: 8px 0 4px !important;
    color: #fff !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    position: static !important;
    width: auto !important;
    display: block !important;
}

.hero-headlines-v1 .hh1-desc,
.hero-headlines-v1 .des-hero.hh1-desc {
    font-size: 13.5px !important;
    line-height: 1.7 !important;
    color: #e3e7ec !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
    width: auto !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
}

.hero-headlines-v1 .hh1-tabs {
    flex: 1 1 auto !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 8px !important;
    min-height: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    direction: rtl !important;
    justify-content: stretch !important;
}

.hero-headlines-v1 .hh1-tab {
    position: relative !important;
    display: flex !important;
    gap: 7px !important;
    align-items: flex-start !important;
    background: #fff !important;
    border: 1px solid #e2e7ee !important;
    border-radius: 5px !important;
    padding: 7px !important;
    cursor: pointer !important;
    overflow: hidden !important;
    text-align: right !important;
    font-family: inherit !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    color: #1c2733 !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    direction: rtl !important;
    flex-direction: row !important;
}

.hero-headlines-v1 .hh1-tab img {
    width: 52px !important;
    height: 42px !important;
    object-fit: cover !important;
    border-radius: 3px !important;
    flex: 0 0 auto !important;
    display: block !important;
    margin: 0 !important;
}

.hero-headlines-v1 .hh1-tab span {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    color: #1c2733 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    position: static !important;
    width: auto !important;
    margin: 0 !important;
}

.hero-headlines-v1 .hh1-bar {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    height: 3px !important;
    width: 100% !important;
    background: #C2111E !important;
    border-radius: 0 !important;
    transform: scaleX(0);
    transform-origin: right center;
}

.hero-headlines-v1 .hh1-tab.is-active {
    border-color: #C2111E !important;
    box-shadow: 0 2px 10px rgba(194, 17, 30, 0.18) !important;
}

.hero-headlines-v1 .hh1-tab.is-active span {
    color: #C2111E !important;
}

.hero-headlines-v1 .hh1-tab.is-active .hh1-bar {
    animation: hh1-fill var(--hh1-interval, 5s) linear forwards !important;
}

.hero-headlines-v1.is-paused .hh1-tab.is-active .hh1-bar {
    animation-play-state: paused !important;
}

@keyframes hh1-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
