
.news-page-wrapper {
    min-height: 100vh;
    padding-bottom: 80px;
    font-family: var(--font-body);
    position: relative;
}



.news-page-header {
    position: relative;
    text-align: center;
    padding: 64px 24px 48px;
    overflow: hidden;
    z-index: 1;
}

.news-page-header::after {
    content: 'NEWS';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(80px, 18vw, 220px);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(249, 27, 51, 0.06);
    letter-spacing: -0.04em;
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
    user-select: none;
}

.news-page-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.news-page-header h2 span {
    color: var(--red);
}

.news-page-header p {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    z-index: 1;
}

#news-search {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    z-index: 2;
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
}

.news-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px 22px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
}

#news-search input[type="text"] {
    flex: 1 1 200px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 400;
    transition: border-color 220ms ease, background 220ms ease;
    outline: none;
    min-width: 0;
}

#news-search input[type="text"]::placeholder {
    color: var(--muted);
}

#news-search input[type="text"]:focus {
    border-color: rgba(249, 27, 51, 0.5);
    background: rgba(249, 27, 51, 0.04);
}

#news-search select {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    transition: border-color 220ms ease;
    outline: none;
    cursor: pointer;
    
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b78' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

#news-search select option {
    background: #111;
    color: #fff;
}

#news-search select:focus {
    border-color: rgba(249, 27, 51, 0.5);
}

#news-search button {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    cursor: pointer;
    transition: background 220ms ease, box-shadow 220ms ease, transform 150ms ease;
    white-space: nowrap;
}

#news-search button:hover {
    background: #e01429;
    box-shadow: 0 0 18px var(--red-glow);
    transform: translateY(-1px);
}

#news-search button:active {
    transform: translateY(0);
}

.search-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--red);
    background: var(--red-dim);
    border: 1px solid rgba(249, 27, 51, 0.2);
    border-radius: 100px;
    padding: 4px 12px;
}

#news-featured {
    max-width: 1200px;
    margin: 0 auto 48px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.news-featured-link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 22px;
    outline: none;
}

.news-featured-box {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border);
    border-radius: 22px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);

    
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 600ms cubic-bezier(0.22, 1, 0.36, 1) 100ms both;
}

.news-featured-link:hover .news-featured-box {
    border-color: rgba(249, 27, 51, 0.28);
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(249, 27, 51, 0.15),
        0 0 50px rgba(249, 27, 51, 0.06);
    transform: translateY(-4px);
}


.news-featured-box.news-blur-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--news-thumb);
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.35) saturate(80%);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.news-featured-box>* {
    position: relative;
    z-index: 2;
}


.news-thumb-holder {
    flex: unset;
    max-width: unset;
    overflow: hidden;
    position: relative;
}

.news-thumb-img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.news-featured-link:hover .news-thumb-img {
    transform: scale(1.04);
}


.news-featured-label {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--red);
    color: #fff;
    padding: 5px 12px;
    border-radius: 100px;
    box-shadow: 0 0 16px var(--red-glow);
}


.news-featured-content {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-tag-create-holder {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.news-tag-pill {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
    background: var(--red-dim);
    border: 1px solid rgba(249, 27, 51, 0.2);
    border-radius: 100px;
    padding: 3px 11px;
    text-decoration: none;
    transition: background 200ms ease, border-color 200ms ease;
}

.news-tag-pill:hover {
    background: rgba(249, 27, 51, 0.2);
    border-color: rgba(249, 27, 51, 0.4);
}

.news-date {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.news-featured-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.news-featured-link:hover .news-featured-content h2 {
    color: #fff;
}

.news-featured-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin: 0 0 24px;
    font-weight: 300;
}


.news-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    text-decoration: none;
}

.news-author-row:hover .news-author-name {
    color: var(--red);
}

.author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(249, 27, 51, 0.5);
    flex-shrink: 0;
    transition: border-color 220ms ease;
}

.news-author-row:hover .author-avatar {
    border-color: var(--red);
}

.news-author-meta small {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.news-author-name {
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
    transition: color 220ms ease;
}


.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
    margin-top: 20px;
    transition: gap 220ms ease;
}

.news-featured-link:hover .news-read-more {
    gap: 10px;
}

.news-section-header {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.news-section-header h3 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
    white-space: nowrap;
}

.news-section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--card-border), transparent);
}

#news-cards {
    display: flex;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
    justify-content: center;
    width: auto;
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    outline: none;
    
    flex: unset !important;
    max-width: unset !important;

    opacity: 0;
    transform: translateY(24px);
    transition: none;
}

.news-card-link.card-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 550ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 280ms ease,
        border-color 280ms ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: auto !important;
}

.news-card-link:hover .news-card {
    transform: translateY(-6px) scale(1.012);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(249, 27, 51, 0.18),
        0 0 40px rgba(249, 27, 51, 0.06);
    border-color: rgba(249, 27, 51, 0.2);
}

.news-card.news-blur-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--news-thumb);
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.3) saturate(80%);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.news-card>* {
    position: relative;
    z-index: 2;
}


.news-thumb-img-card {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 18px 18px 0 0;
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card-link:hover .news-thumb-img-card {
    transform: scale(1.04);
}


.news-card-thumb-wrap {
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    flex-shrink: 0;
}

.news-card-body {
    padding: 18px 20px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 10px 0 8px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.news-card p {
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin: 0 0 auto;
    font-weight: 300;
}


.news-card-author-holder {
    padding: 12px 20px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--card-border);
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.news-card-author-holder:hover .news-card-author-name {
    color: var(--red);
}

.news-card-author-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(249, 27, 51, 0.4);
    transition: border-color 220ms ease;
    flex-shrink: 0;
}

.news-card-author-holder:hover .news-card-author-img {
    border-color: var(--red);
}

.news-card-author-name {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--muted);
    transition: color 220ms ease;
}

.news-empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.news-empty-state span {
    color: var(--red);
}

.news-article-wrapper {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 20px;
    font-family: var(--font-body);
    animation: fadeUp 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.news-article-hero {
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
}

.news-article-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 22px 22px 0 0;
}

.news-article-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #0a0a0c);
    border-radius: 0 0 22px 22px;
}


.news-article-body {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-top: none;
    border-radius: 0 0 22px 22px;
    padding: 36px 44px 44px;
    position: relative;
}

.news-article-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 44px;
    right: 44px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 27, 51, 0.45), transparent);
}


.news-article-body.news-blur-bg::before {
    
    content: none;
}

.big-news-container.news-blur-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--news-thumb);
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.25) saturate(80%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    border-radius: 22px;
}

.big-news-container {
    background: var(--surface) !important;
    border: 1px solid var(--card-border);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 0 1px rgba(249, 27, 51, 0.1),
        0 8px 48px rgba(0, 0, 0, 0.4);
}

.big-news-container>* {
    position: relative;
    z-index: 2;
}


.article-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}


.news-article-body h1,
.big-news-container h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}


.big-news-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
}

.big-news-thumbnail {
    margin-bottom: 28px;
}

.big-news-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 420px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.author-pp {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(249, 27, 51, 0.5);
    flex-shrink: 0;
}

.article-author-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: opacity 200ms ease;
}

.article-author-link:hover {
    opacity: 0.8;
}

.article-author-info {
    display: flex;
    flex-direction: column;
}

.article-author-info .author-label {
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.article-author-info .author-username {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    transition: color 220ms ease;
}

.article-author-link:hover .author-username {
    color: var(--red);
}

.news-creaate-tag {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-left: auto;
}


.big-news-content {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.72);
    white-space: normal;
    font-weight: 300;
    margin-bottom: 36px;
}


.back-to-news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted) !important;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 9px 20px;
    border: 1px solid var(--card-border);
    border-radius: 100px;
    transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.back-to-news-link:hover {
    color: #fff !important;
    border-color: rgba(249, 27, 51, 0.4);
    background: var(--red-dim);
    text-decoration: none !important;
}

.author {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: auto;
    margin-left: 10px;
}

.author-pp {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--red);
    margin-right: 10px;
}

.author h3 {
    margin-top: 0;
    font-weight: 600;
    color: var(--red);
}

.show-all-button {
    text-decoration: none;
    background-color: var(--red);
    color: #fff;
    padding: 10px;
    border: 1px solid var(--red);
    border-radius: 10px;
    transition: 0.2s;
}

.show-all-button:hover {
    color: var(--red);
    background-color: transparent;
}

@media (max-width: 900px) {
    #news-cards {
        flex-wrap: wrap;
    }

    .news-featured-box {
        grid-template-columns: 1fr !important;
    }

    .news-thumb-holder {
        max-height: 260px;
        overflow: hidden;
    }

    .news-thumb-img {
        min-height: 220px !important;
        height: 220px !important;
    }

    .news-featured-content {
        padding: 24px 28px 32px !important;
    }
}

@media (max-width: 640px) {
    #news-cards {
        grid-template-columns: 1fr !important;
        padding: 0 12px !important;
    }

    .news-article-body {
        padding: 24px 20px 32px !important;
    }

    .news-article-hero img {
        height: 240px !important;
    }

    .big-news-thumbnail img {
        max-height: 240px;
    }

    #news-featured {
        padding: 0 12px !important;
    }

    .news-featured-content h2 {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 460px) {
    .news-search-form {
        padding: 14px 14px !important;
        gap: 8px;
    }

    #news-search input[type="text"] {
        width: 100%;
    }
}