/**
 * Layout 5 (Cover Style) CSS
 * GridNews Pro
 */

.gn-hero-layout-5 {
    position: relative;
    max-height: 620px;
    display: block;
    color: #fff;
    overflow: hidden;
    background-color: #000;
    margin-top: 30px;
}

.gn-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    clip-path: inset(0 0 0 0);
}

.gn-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*filter: brightness(0.65);*/
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.gn-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.9) 100%);*/
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.75));
    z-index: 2;
}

.gn-hero-container {
    position: relative;
    z-index: 3;
    padding: 10px 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 570px;
}

.gn-hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.gn-hero-content {
    max-width: 900px;
    margin-bottom: 20px;
}

/* Breadcrumbs in Hero */
.gn-hero-layout-5 .breadcrumbs,
.gn-hero-layout-5 .gridnews-breadcrumbs span,
.gn-hero-layout-5 .gridnews-breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.gn-hero-layout-5 .breadcrumbs,
.gn-hero-layout-5 .breadcrumbs a {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.5);
}

.gn-hero-layout-5 .gridnews-breadcrumbs a:hover {
    color: #fff;
}

.gn-hero-layout-5 .gridnews-breadcrumbs .divider,
.gn-hero-layout-5 .gridnews-breadcrumbs i {
    margin: 0 10px;
    font-size: 10px;
    opacity: 0.5;
}

/* Header Elements */
.gn-trending-badge {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    gap: 10px;
}

.gn-trending-badge .trending-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ff4d4d;
    border-radius: 50%;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.4);
}

.gn-hero-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.gn-hero-term {
    padding: 6px 15px;
    color: #fff !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gn-hero-term:hover {
    transform: translateY(-2px);
    color: #fff;
}

.gn-hero-title {
    font-size: clamp(28px, 6vw, 60px);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
}

.gn-hero-excerpt {
    font-size: clamp(16px, 4vw, 22px);
    line-height: 1.4;
    color: #fff;
    margin-bottom: 30px;
    max-width: 800px;
    font-weight: 400;
    opacity: 0.95;
}

/* Meta Section */
.gn-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: fit-content;
    margin-top: 35px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.gn-meta-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 25px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.gn-author-avatar {
    display: flex;
}

.gn-author-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.gn-author-name {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 0;
}

.gn-author-socials {
    display: flex;
    gap: 10px;
    font-size: 14px;
}

.gn-author-socials a {
    color: rgba(255, 255, 255, 0.6);
}

.gn-author-socials a:hover {
    color: #fff;
}

.gn-meta-details {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 500;
    padding-left: 5px;
}

.gn-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.gn-meta-item i {
    color: rgba(255, 255, 255, 0.6);
    /* Muted meta icons */
}

.gn-meta-item.gn-meta-views i {
    color: #ff4d4d;
    /* Red flame for views */
}

.gn-meta-item.gn-meta-updated {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

/* Scroll Down Arrow */
.gn-scroll-down {
    color: #fff !important;
    font-size: 32px;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 4;
    margin-bottom: 30px;
    margin-left: 40px;
}

@media (max-width: 767px) {
    .gn-scroll-down {
        margin-inline: auto;
    }
}

.gn-scroll-down:hover {
    color: var(--gridnews-primary) !important;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Layout Adjustments */
.has-cover-hero {
    margin-top: 40px;
}

/* Dark Mode Overrides */
[data-theme="dark"] .gn-hero-meta {
    background: rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .gn-hero-layout-5 {
        min-height: auto;
        height: auto;
    }

    .gn-hero-container {
        min-height: 500px;
        padding: 10px;
    }

    .gn-hero-meta {
        gap: 20px;
        padding: 15px 20px;
    }

    .gn-meta-details {
        flex-wrap: wrap;
        gap: 15px 10px;
    }
}

@media (max-width: 767px) {
    .gn-hero-layout-5 {
        margin-top: 15px;
    }

    .gn-hero-container {
        min-height: auto;
    }

    .gn-hero-meta {
        width: 100%;
        display: block;
        border-radius: 20px;
        padding: 20px;
    }

    .gn-meta-author {
        margin-bottom: 15px;
        padding-bottom: 15px;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .gn-meta-details {
        padding-left: 0;
        gap: 12px;
        justify-content: flex-start;
    }

    .gn-hero-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}