
.news-main {
    background-color: var(--dark-color);
}

.news-hero {
    position: relative;
    height: 400px;
    margin-top: 80px;
    overflow: hidden;
}

.hero-image-container,
.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.64);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: min(820px, 90%);
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

.news-kicker,
.news-section-head span,
.newsletter-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-kicker::before,
.news-section-head span::before,
.newsletter-kicker::before {
    content: "";
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 99px;
}

.hero-content h1 {
    margin: 10px 0;
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    color: #dedede;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.news-filter {
    padding: 34px 0;
    background-color: #202020;
    border-bottom: 1px solid rgba(255, 40, 0, 0.18);
}

.news-filter .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.news-filter h2 {
    color: white;
    font-size: 1.35rem;
    white-space: nowrap;
}

.filter-options {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn,
.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    background-color: #171717;
    color: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    font-weight: 700;
}

.filter-btn i,
.filter-toggle i {
    color: var(--primary-color);
}

.filter-btn:hover,
.filter-btn.active,
.filter-toggle:hover,
.filter-toggle.open {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn:hover i,
.filter-btn.active i,
.filter-toggle:hover i,
.filter-toggle.open i {
    color: white;
}

.filter-toggle.open i {
    transform: rotate(180deg);
}

.extra-filters {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.extra-filters[hidden] {
    display: none;
}

.news-grid {
    padding: 70px 0;
}

.news-section-head {
    max-width: 720px;
    margin-bottom: 34px;
}

.news-section-head h2 {
    margin-top: 12px;
    color: white;
    font-size: clamp(2rem, 4vw, 2.7rem);
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.filter-empty {
    margin-bottom: 48px;
    padding: 42px;
    text-align: center;
    background-color: var(--medium-dark-color);
    border: 1px solid rgba(255, 40, 0, 0.22);
    border-radius: var(--border-radius);
}

.filter-empty[hidden] {
    display: none;
}

.filter-empty i {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.filter-empty h3 {
    color: white;
    margin-bottom: 8px;
}

.filter-empty p {
    color: #bdbdbd;
}

.news-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--medium-dark-color);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-item:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 40, 0, 0.5);
    box-shadow: var(--box-shadow-heavy);
}

.news-item.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #111;
}

.news-item.featured .news-image {
    height: 100%;
    min-height: 360px;
}

.news-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7));
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.news-image-contain {
    object-fit: contain !important;
    padding: 34px;
    background-color: #111;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
    opacity: 0.9;
}

.news-item:hover .news-image-contain {
    transform: scale(1.03);
    opacity: 1;
}

.news-category {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    padding: 7px 13px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.news-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
    color: #aaa;
    font-size: 0.84rem;
}

.news-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.news-title {
    color: var(--light-color);
    margin-bottom: 12px;
    font-size: 1.35rem;
    line-height: 1.35;
    transition: color 0.25s ease;
}

.news-item.featured .news-title {
    font-size: 2rem;
}

.news-item:hover .news-title {
    color: var(--primary-color);
}

.news-excerpt {
    color: #bdbdbd;
    margin-bottom: 22px;
}

.news-content .btn-secondary {
    width: fit-content;
    margin-top: auto;
    border: 1px solid var(--primary-color);
    background-color: transparent;
}

.news-content .btn-secondary:hover {
    background-color: var(--primary-color);
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-btn {
    min-width: 44px;
    min-height: 42px;
    padding: 0 16px;
    background-color: var(--medium-dark-color);
    color: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.newsletter {
    padding: 76px 0;
    background:
        linear-gradient(90deg, rgba(255, 40, 0, 0.1), transparent 42%),
        #202020;
}

.newsletter-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    margin: 12px 0;
    color: white;
    font-size: clamp(2rem, 4vw, 2.7rem);
}

.newsletter-content p {
    color: #bdbdbd;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    gap: 14px;
}

.newsletter-form input {
    flex: 1;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background-color: var(--dark-color);
    color: var(--light-color);
    border-radius: 999px;
    font: inherit;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 40, 0, 0.15);
}

.newsletter-form button {
    min-height: 50px;
}

.news-site-popup {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 10000;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: min(420px, calc(100vw - 32px));
    padding: 16px;
    background-color: #181818;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.news-site-popup.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.news-site-popup.success {
    border-left-color: #28a745;
}

.news-site-popup.error {
    border-left-color: #ff4d4d;
}

.news-popup-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background-color: rgba(255, 40, 0, 0.12);
    border-radius: 50%;
}

.news-site-popup.success .news-popup-icon {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.14);
}

.news-site-popup.error .news-popup-icon {
    color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.14);
}

.news-popup-text strong,
.news-popup-text span {
    display: block;
}

.news-popup-text strong {
    color: white;
    margin-bottom: 3px;
}

.news-popup-text span {
    color: var(--grey-color);
    line-height: 1.4;
}

.news-popup-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-color);
    background-color: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.news-popup-close:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 992px) {
    .news-filter .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-options {
        justify-content: flex-start;
    }

    .extra-filters {
        justify-content: flex-start;
    }

    .news-item.featured {
        grid-template-columns: 1fr;
    }

    .news-item.featured .news-image {
        height: 280px;
        min-height: 0;
    }

    .news-item.featured .news-title {
        font-size: 1.55rem;
    }
}

@media (max-width: 768px) {
    .news-hero {
        height: 300px;
        margin-top: 130px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .news-hero {
        height: 250px;
        margin-top: 135px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .filter-toggle {
        width: 100%;
        justify-content: center;
    }

    .news-container {
        grid-template-columns: 1fr;
    }

    .news-content .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
