.latest-news-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 18px;
}

.news-hero {
    background:
        radial-gradient(circle at top left, rgba(212, 146, 253, 0.35), transparent 35%),
        linear-gradient(135deg, rgba(145, 202, 255, 0.35), rgba(195, 160, 253, 0.35));
    border: 1px solid rgba(195, 160, 253, 0.45);
    border-radius: 24px;
    padding: 32px 28px;
    margin: 20px auto 18px auto; /* 👈 THIS fixes the visual balance */
    box-shadow: 0 10px 28px rgba(93, 64, 130, 0.12);

    text-align: center;
    max-width: 700px;
}

.news-hero h1 {
    margin: 4px 0;
    font-size: 2.1rem;
    color: #4d336d;
}

.news-hero p {
    margin: 6px 0 0;
    color: #67537a;
    max-width: 520px;   /* 👈 keeps text from stretching too wide */
    margin-left: auto;
    margin-right: auto;
}

.news-kicker {
    margin: 0 0 4px;
    color: #8f5bd6;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
}

.news-hero h1 {
    margin: 0;
    font-size: 2rem;
    color: #4d336d;
}

.news-hero p {
    margin: 8px 0 0;
    color: #67537a;
}

.news-message {
    padding: 12px 14px;
    border-radius: 16px;
    margin-bottom: 14px;
    font-weight: 700;
}

.news-message.success {
    background: #e9fff2;
    color: #24784a;
    border: 1px solid #b9edca;
}

.news-message.error {
    background: #fff0f0;
    color: #a13c3c;
    border: 1px solid #f0b8b8;
}

.news-admin-panel {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(195, 160, 253, 0.45);
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(70, 45, 100, 0.1);
}

.news-admin-panel h2 {
    margin: 0 0 12px;
    color: #4d336d;
}

.news-form {
    display: grid;
    gap: 12px;
}

.news-form input[type="text"],
.news-form select,
.news-form textarea {
    width: 100%;
    border: 1px solid rgba(195, 160, 253, 0.55);
    border-radius: 14px;
    padding: 11px 12px;
    background: #fff;
    font: inherit;
}

.news-form textarea {
    min-height: 150px;
    resize: vertical;
}

.news-checkbox,
.news-upload {
    background: rgba(145, 202, 255, 0.16);
    border: 1px dashed rgba(145, 202, 255, 0.65);
    padding: 10px 12px;
    border-radius: 14px;
    color: #5d4b75;
}

.news-form button {
    justify-self: start;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #d492fd, #91caff);
    color: white;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(140, 95, 200, 0.25);
}
.featured-news-card {
    margin-top: 0;
}

.featured-news-card,
.news-card,
.empty-news {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(195, 160, 253, 0.38);
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 22px rgba(70, 45, 100, 0.08);
}

.featured-label {
    display: inline-block;
    background: linear-gradient(135deg, #d492fd, #91caff);
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.featured-news-card h2,
.news-card h2 {
    margin: 4px 0;
    color: #4d336d;
}

.featured-news-img,
.news-card-img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 18px;
    margin: 12px 0;
    border: 1px solid rgba(195, 160, 253, 0.3);
}

.news-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.news-author-avatar {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 2px;
    border: 2px solid rgba(212, 146, 253, 0.55);
    background: #f7f1ff;
}

.news-category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    color: #8f5bd6;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.news-meta {
    color: #88789b;
    font-size: 0.85rem;
    margin-top: 2px;
}

.news-body {
    margin-top: 12px;
    color: #4f455d;
    line-height: 1.55;
}

.news-delete-form {
    margin-top: 14px;
}

.news-delete-form button {
    border: none;
    border-radius: 999px;
    padding: 7px 13px;
    background: #ffe9ef;
    color: #a83a55;
    font-weight: 800;
    cursor: pointer;
}

.empty-news {
    text-align: center;
    color: #67537a;
}

.open-news-form-btn {
    display: block;
    margin: 0 auto 14px auto; /* 👈 centers it under hero */
    border: none;
    border-radius: 999px;
    padding: 11px 18px;
    background: linear-gradient(135deg, #d492fd, #91caff);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(140, 95, 200, 0.25);
}

.news-upload select {
    width: 100%;
    margin-top: 8px;
    border: 1px solid rgba(195, 160, 253, 0.55);
    border-radius: 12px;
    padding: 9px 10px;
    background: #fff;
}

/* NEWS POLLS */

.news-poll-box {
    margin-top: 18px;
    padding: 18px;
    background: rgba(248, 244, 255, 0.9);
    border: 1px solid rgba(212,146,253,0.25);
    border-radius: 20px;
}

.news-poll-box h3 {
    margin: 0 0 14px;
    color: #4b2b78;
    font-size: 18px;
}

.news-poll-option {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px 13px;
    margin-bottom: 9px;

    background: white;
    border: 1px solid rgba(212,146,253,0.18);
    border-radius: 14px;

    color: #3d4355;
    font-weight: 600;
    cursor: pointer;
}

.news-poll-option input {
    accent-color: #b982ff;
}

.news-poll-box button {
    margin-top: 8px;
    border: none;
    padding: 11px 18px;
    border-radius: 14px;

    background: linear-gradient(135deg, #d492fd, #91caff);
    color: white;

    font-weight: 700;
    cursor: pointer;
}

.news-poll-result {
    margin-bottom: 12px;
}

.news-poll-result-top {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: #3d4355;
    margin-bottom: 6px;
}

.news-poll-bar {
    height: 10px;
    background: #ece8f7;
    border-radius: 999px;
    overflow: hidden;
}

.news-poll-bar div {
    height: 100%;
    background: linear-gradient(135deg, #d492fd, #91caff);
    border-radius: 999px;
}

.news-poll-result small,
.news-poll-total {
    color: #7b8194;
    font-size: 13px;
}