:root {
    --news-blue: #16803C;
    --news-deep: #10552D;
    --news-yellow: #F2C94C;
    --news-green: #16803C;
    --news-soft: #EAF7EF;
    --news-border: #d6e9da;
    --news-text: #263238;
    --news-muted: #5f7065;
    --news-danger: #DC3545;
    --news-danger-dark: #B71C1C;
}

body {
    margin: 0;
    color: var(--news-text);
    background: #f7faf8;
    font-family: Roboto, Arial, sans-serif;
}

.news-hero {
    position: relative;
    overflow: hidden;
    padding: 50px 0 116px;
    color: #fff;
    text-align: center;
    background: linear-gradient(125deg, var(--news-deep), var(--news-blue));
}

.news-hero::after {
    position: absolute;
    top: -70px;
    right: -55px;
    width: 250px;
    height: 250px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
}

.news-label {
    position: relative;
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50px;
    background: rgba(255, 255, 255, .13);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.news-hero h1 {
    position: relative;
    margin: 0;
    color: #fff !important;
    font-size: clamp(2.15rem, 5vw, 3.45rem);
    font-weight: 900;
}

.news-hero p {
    position: relative;
    max-width: 650px;
    margin: 14px auto 0;
    color: rgba(255, 255, 255, .9);
}

.news-panel {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: -70px auto 0;
    padding: 26px;
    border: 1px solid #fff;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(35, 107, 50, .14);
}

.news-admin {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.news-login {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 17px;
    color: var(--news-deep);
    border: 1px solid #c9e0ed;
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(35, 107, 50, .09);
    font-size: .92rem;
    font-weight: 900;
}

.news-login:hover {
    color: #fff;
    background: var(--news-blue);
}

.login-box {
    max-width: 560px;
    margin: 0 auto 28px;
    padding: 26px;
    border: 1px solid #c9e0ed;
    border-radius: 20px;
    background: var(--news-soft);
    box-shadow: 0 12px 28px rgba(35, 107, 50, .1);
}

.news-card {
    display: grid;
    grid-template-areas: "media date" "media content" "media admin";
    grid-template-columns: 30% 70% !important;
    overflow: hidden;
    min-height: 275px !important;
    border: 1px solid var(--news-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(35, 107, 50, .07);
    transition: transform .22s, box-shadow .22s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 17px 30px rgba(35, 107, 50, .14);
}

.news-card img,
.news-image-empty {
    grid-area: media;
    width: 100%;
    height: 100%;
    min-height: 275px !important;
    object-fit: contain;
    object-position: center;
    background: var(--news-soft);
    border-right: 5px solid var(--news-yellow);
}

.news-image-empty {
    display: grid;
    place-items: center;
    background: var(--news-soft);
}

.news-image-empty i {
    color: var(--news-blue);
    opacity: .55;
}

.news-date {
    display: inline-flex;
    grid-area: date;
    align-items: center;
    gap: 6px;
    margin: 20px 28px 0;
    color: var(--news-green);
    font-size: 1rem;
    font-weight: 800;
}

.news-time {
    margin-left: 10px;
    color: var(--news-muted);
    font-weight: 700;
}

.news-card .card-body {
    grid-area: content;
    padding: 14px 36px 24px;
}

.news-card h2 {
    margin-bottom: 10px;
    color: var(--news-deep);
    font-size: 1.6rem;
    font-weight: 900;
}

.news-card p {
    display: -webkit-box;
    overflow: hidden;
    color: var(--news-muted);
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

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

.news-link:hover {
    color: var(--news-green);
}

.news-card-admin {
    display: flex;
    align-self: start;
    align-items: flex-start;
    grid-area: admin;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 28px 22px;
}

.news-card-admin form {
    display: flex;
    margin: 0;
}

.news-card-admin .btn {
    display: inline-flex;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
    line-height: 1;
}

.btn-news {
    color: #fff;
    background: var(--news-green);
    border-color: var(--news-green);
    font-weight: 800;
}

.btn-news:hover {
    color: #fff;
    background: #10552D;
    border-color: #10552D;
}

.news-empty {
    padding: 55px 20px;
    color: var(--news-muted);
    text-align: center;
}

.news-pagination {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--news-border);
}

.news-pagination__summary {
    margin: 0 0 12px;
    color: var(--news-muted);
    font-size: .88rem;
    font-weight: 700;
    text-align: center;
}

.news-pagination .page-link {
    display: grid;
    width: 42px;
    height: 42px;
    margin: 0 3px;
    place-items: center;
    color: var(--news-deep);
    border: 1px solid var(--news-border);
    border-radius: 50% !important;
    background: #fff;
    font-weight: 800;
    box-shadow: 0 5px 12px rgba(35, 107, 50, .07);
}

.news-pagination .page-link:hover,
.news-pagination .page-item.active .page-link {
    color: #fff;
    border-color: var(--news-green);
    background: var(--news-green);
}

.news-pagination .page-item.disabled .page-link {
    color: #aab8c4;
    pointer-events: none;
    background: #f5f8fa;
    box-shadow: none;
}

.news-empty i {
    color: var(--news-blue);
    font-size: 3rem;
}

.news-highlight {
    outline: 4px solid var(--news-yellow);
    outline-offset: 3px;
}

.delete-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(35, 107, 50, .28);
}

.delete-modal__top {
    padding: 27px 28px 18px;
    text-align: center;
    background: linear-gradient(145deg, #F7FCF8, #fff);
}

.delete-modal__icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #DC3545, #B71C1C);
    box-shadow: 0 10px 22px rgba(220, 53, 69, .27);
    font-size: 1.75rem;
}

.delete-modal h2 {
    margin: 0;
    color: var(--news-deep);
    font-size: 1.4rem;
    font-weight: 900;
}

.delete-modal .modal-body {
    padding: 10px 30px 8px;
    color: var(--news-muted);
    text-align: center;
}

.delete-modal .modal-body strong {
    display: block;
    margin-top: 8px;
    color: var(--news-deep);
}

.delete-modal .modal-footer {
    justify-content: center;
    gap: 10px;
    padding: 20px 28px 28px;
    border: 0;
}

.delete-modal .btn {
    min-width: 135px;
    border-radius: 50px;
    font-weight: 800;
}

.delete-confirm {
    color: #fff;
    background: var(--news-danger);
    border-color: var(--news-danger);
}

.delete-confirm:hover {
    color: #fff;
    background: var(--news-danger-dark);
    border-color: var(--news-danger-dark);
}

@media (max-width: 767px) {
    .news-card {
        display: block;
    }

    .news-card img,
    .news-image-empty {
        width: 100%;
        height: 220px;
        min-height: 220px;
        border-right: 0;
        border-bottom: 5px solid var(--news-yellow);
    }

    .news-date {
        margin: 18px 20px 0;
    }

    .news-card .card-body {
        padding: 12px 20px 20px;
    }

    .news-card-admin {
        padding: 0 20px 20px;
    }

    .news-panel {
        padding: 18px;
    }

    .news-admin {
        justify-content: center;
    }

    .delete-modal .modal-footer {
        flex-direction: column;
    }

    .delete-modal .btn {
        width: 100%;
    }
}
