/* ─── News Page ──────────────────────────────────────────────────── */

.news-page {
    position: relative;
    background-image: url('../img/hero.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-page__overlay {
    position: absolute;
    inset: 0;
    background: #0000008a;
    z-index: 0;
}

.news-page__content {
    position: relative;
    z-index: 1;
}

/* ─── Page Title ─────────────────────────────────────────────────── */
.news-page-title {
    text-align: center;
    padding: 28px 0 20px;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
    margin: 0;
}

/* ─── Sidebar ────────────────────────────────────────────────────── */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 90px;
}

.news-widget {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
}

.news-widget__title {
    color: #f0c040;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Search */
.news-search {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.25);
}

.news-search input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    padding: 9px 12px;
    font-size: .83rem;
    outline: none;
}

.news-search input::placeholder { color: rgba(255,255,255,.45); }

.news-search button {
    background: #1a7a1a;
    border: none;
    color: #fff;
    padding: 9px 14px;
    cursor: pointer;
    transition: background .2s;
    font-size: .85rem;
}

.news-search button:hover { background: #145e14; }

/* Filter Lists */
.news-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-filter-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    border-radius: 7px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,.82);
    text-decoration: none;
    font-size: .81rem;
    font-weight: 500;
    transition: background .2s, border-color .2s, color .2s;
}

.news-filter-list li a:hover,
.news-filter-list li a.active {
    background: rgba(26,122,26,0.38);
    border-color: rgba(26,122,26,0.65);
    color: #fff;
}

.news-filter-list li a .filter-count {
    background: #1a7a1a;
    color: #fff;
    border-radius: 20px;
    padding: 1px 9px;
    font-size: .7rem;
    font-weight: 600;
    min-width: 26px;
    text-align: center;
}

.news-filter-list li a.active .filter-count {
    background: #f0a500;
}

/* Clear filter link */
.news-clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,.55);
    font-size: .75rem;
    text-decoration: none;
    margin-top: 8px;
    transition: color .2s;
}

.news-clear-filter:hover { color: #f0a500; }

/* ─── News Card ──────────────────────────────────────────────────── */
.news-card {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.20);
    transition: transform .22s ease, box-shadow .22s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0,0,0,.32);
    color: inherit;
    text-decoration: none;
}

/* Card Image */
.news-card__img {
    position: relative;
    width: 100%;
    height: 185px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .4s ease;
}

.news-card:hover .news-card__img img {
    transform: scale(1.07);
}

/* Date line inside card body */
.news-card__date {
    font-size: .72rem;
    color: #f0c040;
    font-weight: 600;
    margin: 0 0 7px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Card Body */
.news-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card__title {
    font-size: .92rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__excerpt {
    font-size: .78rem;
    color: rgba(255,255,255,.72);
    line-height: 1.55;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card__footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.news-card__read-more {
    font-size: .77rem;
    font-weight: 600;
    color: #f0c040;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap .2s, color .2s;
}

.news-card__read-more:hover {
    color: #fff;
    gap: 8px;
}

/* ─── No Results ─────────────────────────────────────────────────── */
.news-empty {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    color: rgba(255,255,255,.7);
}

.news-empty i { font-size: 2.5rem; opacity: .5; }

/* ─── Pagination ─────────────────────────────────────────────────── */
.news-pagination .page-link {
    border-radius: 6px !important;
    margin: 0 2px;
    border: 1px solid #1a7a1a;
    background: #1a7a1a;
    color: #fff;
    font-size: .8rem;
}

.news-pagination .page-link:hover {
    background: #145e14;
    border-color: #145e14;
    color: #fff;
}

.news-pagination .page-item.active .page-link {
    background: #f0a500;
    border-color: #f0a500;
    color: #fff;
}

.news-pagination .page-item.disabled .page-link {
    background: #555;
    border-color: #555;
    color: #aaa;
    opacity: 1;
}

/* ─── Results info ───────────────────────────────────────────────── */
.news-results-info {
    color: rgba(255,255,255,.6);
    font-size: .78rem;
    margin-bottom: 14px;
}

.news-results-info strong { color: #f0c040; }

/* ─── Single Post Page ───────────────────────────────────────────── */
.sp-page {
    position: relative;
    background-image: url('../img/hero.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.sp-page__overlay {
    position: absolute;
    inset: 0;
    background: #0000008a;
    z-index: 0;
}

.sp-page__content {
    position: relative;
    z-index: 1;
}

.sp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: .83rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .2s, color .2s;
}

.sp-back-btn:hover {
    background: #1a7a1a;
    border-color: #1a7a1a;
    color: #fff;
}

.sp-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.sp-card {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.28);
    display: flex;
    align-items: flex-start;
}

.sp-card__img {
    width: 42%;
    flex-shrink: 0;
    /* background: rgba(255,255,255,0.06); */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    position: sticky;
    top: 90px;
    align-self: flex-start;
    border-right: 1px solid rgba(255,255,255,.12);
    border-radius: 14px 0 0 14px;
}

.sp-card__img img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.sp-card__body {
    flex: 1;
    padding: 32px 36px;
    min-width: 0;
}

.sp-date {
    font-size: .78rem;
    color: #f0c040;
    font-weight: 600;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.sp-divider {
    border-color: rgba(255,255,255,.18);
    margin: 0 0 24px;
}

.sp-body {
    color: rgba(255,255,255,.88);
    font-size: .92rem;
    line-height: 1.8;
}

.sp-body p { margin-bottom: 14px; }
.sp-body img { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.sp-body a { color: #f0c040; }
.sp-body h1,.sp-body h2,.sp-body h3,.sp-body h4 { color: #fff; margin: 20px 0 10px; }

.sp-tags {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.15);
    font-size: .78rem;
    color: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.sp-tags span { color: #f0c040; font-weight: 600; }

@media (max-width: 768px) {
    .sp-card { flex-direction: column; }
    .sp-card__img {
        width: 100%;
        position: static;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.12);
        border-radius: 14px 14px 0 0;
        padding: 16px;
    }
    .sp-card__img img { max-height: 280px; object-fit: cover; }
    .sp-card__body { padding: 20px 18px; }
    .sp-title { font-size: 1.2rem; }
}
