/* Cyber News Page Styles */

.container {
    padding-top: clamp(24px, 4vw, 48px);
}

.header {
    margin-bottom: clamp(8px, 1vw, 14px);
}

@media (min-width: 1025px) and (max-width: 1366px) {
    .header {
        margin-bottom: clamp(7px, 0.9vw, 12px);
    }
}

.header-btns-center {
    margin-top: clamp(3px, 0.55vw, 5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, 0.5vw, 5px);
}

.header-btns-center .section-header-small,
.header-btns-center .back-btn {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    width: fit-content;
    margin: 0;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-btns-center .section-header-small {
    gap: 10px;
}

@media (max-width: 700px) {
    .header-btns-center {
        gap: 6px;
    }
}

.news-hero {
    text-align: center;
    margin: clamp(6px, 1.6vw, 16px) auto clamp(18px, 3vw, 34px);
    max-width: 960px;
}

.news-hero h1 {
    font-size: clamp(2rem, 3.6vw, 3.4rem);
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #00f0ff, #ff00d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-hero p {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
}

.news-actions {
    margin-top: clamp(12px, 2.2vw, 20px);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.news-search {
    flex: 1 1 240px;
    max-width: 420px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: #fff;
    outline: none;
    backdrop-filter: blur(12px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

.news-refresh {
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-refresh:hover {
    border-color: var(--primary);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.2);
    transform: translateY(-1px);
}

.news-status {
    text-align: center;
    margin: clamp(10px, 2vw, 18px) 0 clamp(16px, 2.6vw, 22px);
    color: rgba(255, 255, 255, 0.7);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(16px, 2vw, 26px);
    margin-bottom: clamp(18px, 3vw, 30px);
}

.news-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 230px;
    transition: all 0.25s ease;
}

.news-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.25);
    transform: translateY(-4px);
}

.news-card h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #fff;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.news-tag {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 240, 255, 0.12);
    color: var(--primary);
    font-size: 0.75rem;
}

.news-snippet {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.news-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.news-link:hover {
    text-decoration: underline;
}

.news-footer {
    text-align: center;
    margin: 18px 0 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.news-footer a {
    color: var(--primary);
    text-decoration: none;
}

.news-footer a:hover {
    text-decoration: underline;
}
