/* ==========================================================
   Website news – extra styles (featured, cards, detail page)
   Colours are neutral so they work with every front theme;
   primary buttons reuse the theme's .glbscl-link-btn.
   ========================================================== */

/* ---------- cards ---------- */
.news-card { display: flex; flex-direction: column; height: calc(100% - 30px); background: #fff; }
.news-card .img { position: relative; }
.news-card .img img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .4s ease; }
.news-card:hover .img img { transform: scale(1.04); }
.news-card .content { display: flex; flex-direction: column; flex: 1; }
.news-card .content .meta { margin-bottom: 12px; }
.news-card .content .meta .info { margin-right: 12px; }
.news-card .content .text { color: #555; font-size: 15px; line-height: 22px; margin-bottom: 15px; flex: 1; }
.news-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-card-footer .news-icons { color: #888; font-size: 13px; }
.news-card-footer .news-icons i,
.news-card-footer .news-icons span { margin-right: 8px; }

.news-badge {
    position: absolute; top: 12px; left: 12px; z-index: 3;
    background: rgba(0, 0, 0, .72); color: #fff !important;
    font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
    padding: 4px 10px; border-radius: 3px;
}
.news-badge:hover { background: rgba(0, 0, 0, .9); text-decoration: none; }
.news-badge-featured { left: auto; right: 12px; background: #f0ad4e; color: #222 !important; }

.news-badge-inline {
    display: inline-block; background: rgba(0, 0, 0, .72); color: #fff !important;
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px;
    padding: 4px 10px; border-radius: 3px; margin: 0 6px 8px 0;
}
a.news-badge-inline:hover { text-decoration: none; background: rgba(0, 0, 0, .9); }
.news-badge-inline.news-badge-featured { background: #f0ad4e; color: #222 !important; }

/* ---------- featured block ---------- */
.news-featured { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 40px; }
.news-featured-home { grid-template-columns: 1fr; }
.news-featured-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.news-featured-main,
.news-featured-small { position: relative; display: block; overflow: hidden; border-radius: 4px; min-height: 200px; }
.news-featured-main { min-height: 400px; }
.news-featured-home .news-featured-main { min-height: 360px; }
.news-featured-main img,
.news-featured-small img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-featured-main:hover img,
.news-featured-small:hover img { transform: scale(1.04); }
.news-featured-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px; color: #fff; text-align: left;
    background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, 0) 100%);
}
.news-featured-overlay .news-badge-inline { align-self: flex-start; }
.news-featured-title { display: block; font-size: 28px; line-height: 1.25; font-weight: 700; color: #fff; }
.news-featured-small .news-featured-title { font-size: 17px; }
.news-featured-summary { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .9); max-width: 720px; }
.news-featured-date { display: block; margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.news-featured a:hover, .news-featured a:focus { text-decoration: none; }

/* ---------- filters / search / pagination ---------- */
.news-filter-tabs { list-style: none; padding: 0; margin: 0 0 25px; display: flex; flex-wrap: wrap; gap: 8px; }
.news-filter-tabs a {
    display: inline-block; padding: 6px 16px; border: 1px solid #ddd; border-radius: 20px;
    color: #333; font-size: 14px; transition: all .2s ease;
}
.news-filter-tabs a:hover { border-color: #333; text-decoration: none; }
.news-filter-tabs a.active { background: #222; border-color: #222; color: #fff; }
.news-result-info { margin-bottom: 20px; color: #555; }

.news-search { display: flex; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; background: #fff; }
.news-search input { flex: 1; border: 0; padding: 10px 14px; font-size: 15px; outline: none; min-width: 0; }
.news-search button { border: 0; background: #222; color: #fff; padding: 0 16px; cursor: pointer; }

.news-pagination { list-style: none; padding: 0; margin: 10px 0 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.news-pagination a, .news-pagination span {
    display: inline-block; min-width: 40px; padding: 8px 12px; text-align: center;
    border: 1px solid #ddd; border-radius: 3px; color: #333;
}
.news-pagination a:hover { border-color: #333; text-decoration: none; }
.news-pagination a.active { background: #222; border-color: #222; color: #fff; }

/* ---------- sidebar ---------- */
.news-sidebar .sidebar-widget { margin-bottom: 30px; }
.news-category-list { list-style: none; padding: 0; margin: 0; }
.news-category-list li { border-bottom: 1px solid #eee; }
.news-category-list a { display: flex; justify-content: space-between; padding: 10px 2px; color: #333; }
.news-category-list a:hover { text-decoration: none; padding-left: 6px; transition: padding .2s ease; }
.news-category-list .count { background: #f1f1f1; border-radius: 10px; padding: 0 9px; font-size: 13px; color: #555; }

/* ---------- detail page ---------- */
.news-article .news-article-title { font-size: 32px; line-height: 1.25; font-weight: 700; margin: 6px 0 14px; }
.news-article .meta { margin-bottom: 18px; }
.news-article .meta .info { margin-right: 16px; }
.news-lead { font-size: 19px; line-height: 1.6; color: #444; border-left: 4px solid #ccc; padding: 2px 0 2px 16px; margin: 0 0 24px; }
.news-figure { margin: 0 0 24px; }
.news-figure img { width: 100%; height: auto; display: block; }
.news-figure figcaption { font-size: 13px; color: #777; font-style: italic; padding: 8px 2px 0; }
.news-body { font-size: 17px; line-height: 1.75; color: #333; }
.news-body img { max-width: 100%; height: auto; }
.news-body p { margin-bottom: 1em; }
.news-block { margin: 32px 0 0; }
.news-block-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid #eee; }
.news-video { position: relative; padding-top: 56.25%; background: #000; border-radius: 4px; overflow: hidden; }
.news-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.news-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.news-gallery a { display: block; overflow: hidden; border-radius: 3px; aspect-ratio: 4 / 3; }
.news-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-gallery a:hover img { transform: scale(1.07); }
.news-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.news-btn-outline {
    display: inline-block; padding: 10px 20px; border: 2px solid #333; border-radius: 3px;
    color: #333 !important; font-weight: 600;
}
.news-btn-outline:hover { background: #333; color: #fff !important; text-decoration: none; }
.news-tags { margin: 28px 0 0; color: #777; }
.news-tags a {
    display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; background: #f1f1f1;
    border-radius: 3px; color: #444; font-size: 14px;
}
.news-tags a:hover { background: #222; color: #fff; text-decoration: none; }
.news-share { display: flex !important; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.news-share .name { margin: 0; }
.news-share .social { margin: 0; }
.news-prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0 0; padding: 20px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.news-prev-next a { display: block; color: #333; }
.news-prev-next a:hover { text-decoration: none; opacity: .8; }
.news-prev-next small { display: block; color: #888; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.news-prev-next span { font-weight: 600; }
.news-related { margin: 40px 0 20px; }
.news-related .news-card .img img { height: 150px; }
.news-related .news-card .content .title,
.news-related .news-card .content .title a { font-size: 16px; line-height: 20px; }
.news-related .news-card .content .text,
.news-related .news-card-footer .news-icons { display: none; }

/* ---------- home page: latest news (top of page) ---------- */
.home-news-area { padding: 50px 0 40px; background: #fff; text-align: left; }
.home-news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.home-news-head h2 { margin: 0; font-size: 28px; font-weight: 700; }
.home-news-head a { color: #198754; font-weight: 600; white-space: nowrap; }
.home-news-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }
.home-news-grid.home-news-single { grid-template-columns: 1fr; }
.home-news-grid .news-featured-main { min-height: 380px; }
.home-news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.home-news-list a { display: flex; gap: 12px; padding: 8px; border-radius: 4px; color: #222; transition: background .2s ease; }
.home-news-list a:hover { background: #f5f7f6; text-decoration: none; }
.home-news-list .hn-thumb { flex: 0 0 110px; height: 78px; overflow: hidden; border-radius: 4px; }
.home-news-list .hn-thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-news-list .hn-info { display: flex; flex-direction: column; min-width: 0; }
.home-news-list .hn-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #198754; }
.home-news-list .hn-title { font-size: 15px; color: #222; font-weight: 600; line-height: 1.3; margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-news-list .hn-date { font-size: 12px; color: #888; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .news-featured { grid-template-columns: 1fr; }
    .home-news-grid { grid-template-columns: 1fr; }
    .home-news-grid .news-featured-main { min-height: 300px; }
    .news-featured-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .home-news-head { flex-wrap: wrap; align-items: center; }
    .home-news-head h2 { font-size: 22px; }
    .news-featured-main, .news-featured-home .news-featured-main { min-height: 280px; }
    .news-featured-side { grid-template-columns: 1fr; }
    .news-featured-title { font-size: 21px; }
    .news-featured-summary { display: none; }
    .news-article .news-article-title { font-size: 24px; }
    .news-lead { font-size: 17px; }
    .news-prev-next { grid-template-columns: 1fr; }
    .news-prev-next .text-right { text-align: left !important; }
}
