/**
 * GEREJE V2 — Page News / Our News
 * Editorial layout : featured story, pill filters, premium card grid
 */

.page-news {
    --gj-font-serif: 'Trajan Pro', serif;
}

.page-news h1,
.page-news h2,
.page-news h3,
.page-news .gj-news-head__title,
.page-news .gj-news-featured__title,
.page-news .gj-news-article__title {
    font-family: var(--gj-font-serif);
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* ─── Hero ─── */
.page-news .gj-page-hero {
    min-height: 56vh;
    padding: clamp(130px, 14vw, 160px) 0 clamp(80px, 9vw, 100px);
}

.page-news .gj-page-hero__bg {
    background-position: center 35%;
}

.page-news .gj-page-hero__overlay {
    background: linear-gradient(
        180deg,
        rgba(15, 15, 18, 0.45) 0%,
        rgba(92, 0, 22, 0.62) 55%,
        rgba(25, 25, 25, 0.82) 100%
    );
}

.page-news .gj-page-hero__inner {
    max-width: 780px;
}

.page-news .gj-page-hero h1 {
    font-family: 'Trajan Pro', serif;
    font-size: clamp(1.85rem, 4.5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.16em;
    line-height: 1.2;
    margin: 0 0 20px;
    text-wrap: balance;
}

.page-news .gj-page-hero__lead {
    font-family: 'Trajan Pro', serif;
    font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
    line-height: 1.75;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.86);
    max-width: 560px;
    margin-inline: auto;
}

.page-news .gj-hero-scroll {
    width: 44px;
    height: 44px;
    border-color: rgba(255, 255, 255, 0.28);
    transition: border-color 0.35s ease, background 0.35s ease;
}

.page-news .gj-hero-scroll:hover,
.page-news .gj-hero-scroll:focus-visible {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(134, 0, 33, 0.4);
}

/* ─── Section tag (.sub) ─── */
.page-news .sub {
    font-family: 'Trajan Pro', serif;
    font-size: 11px;
    margin-bottom: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--gj-brand);
}

.page-news .sub::before,
.page-news .sub::after {
    position: relative;
    top: -4px;
    width: 28px;
    height: 1px;
    display: inline-block;
    content: '';
}

.page-news .sub::before {
    margin-right: 12px;
    background: linear-gradient(90deg, transparent, rgba(134, 0, 33, 0.35));
}

.page-news .sub::after {
    margin-left: 12px;
    background: linear-gradient(90deg, rgba(134, 0, 33, 0.35), transparent);
}

/* ─── News section shell ─── */
.page-news .gj-news-section {
    position: relative;
    padding: clamp(3.5rem, 7vw, 5.5rem) clamp(20px, 4vw, 48px) clamp(4.5rem, 8vw, 6.5rem);
    background: linear-gradient(180deg, #fff 0%, #faf9f7 8%, #f4f2ef 100%);
    overflow: hidden;
}

.page-news .gj-news-section__line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(140px, 24vw);
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gj-brand), transparent);
    opacity: 0.55;
}

.page-news .gj-container--news {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
}

/* ─── Header ─── */
.page-news .gj-news-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.page-news .gj-news-head__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 16px;
    text-wrap: balance;
}

.page-news .gj-news-head__intro {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.75;
    color: #6b6560;
}

.page-news .gj-news-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
}

.page-news .gj-news-segment {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gj-border);
    border-radius: 999px;
    box-shadow: 0 2px 16px rgba(25, 25, 25, 0.04);
}

.page-news .gj-news-filter {
    appearance: none;
    border: none;
    background: transparent;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gj-muted);
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.page-news .gj-news-filter:hover {
    color: var(--gj-ink);
}

.page-news .gj-news-filter.is-active {
    background: var(--gj-brand);
    color: #fff;
}

.page-news .gj-news-count {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid rgba(134, 0, 33, 0.18);
    background: rgba(134, 0, 33, 0.04);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gj-brand);
}

/* ─── Featured article ─── */
.page-news .gj-news-featured {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.page-news .gj-news-featured.is-hidden {
    display: none;
}

.page-news .gj-news-featured__link {
    display: grid;
    grid-template-columns: 1fr;
    text-decoration: none !important;
    color: inherit;
    background: var(--gj-ink);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(25, 25, 25, 0.14);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

@media (min-width: 768px) {
    .page-news .gj-news-featured__link {
        grid-template-columns: 1.15fr 1fr;
        min-height: 340px;
    }
}

.page-news .gj-news-featured__link:hover,
.page-news .gj-news-featured__link:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(25, 25, 25, 0.2);
}

.page-news .gj-news-featured__media {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    background: #111;
}

.page-news .gj-news-featured__media img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
    filter: grayscale(12%) brightness(0.92);
}

.page-news .gj-news-featured__link:hover .gj-news-featured__media img {
    transform: scale(1.04);
    filter: grayscale(0%) brightness(1);
}

.page-news .gj-news-featured__label {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    background: var(--gj-brand);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 2px;
}

.page-news .gj-news-featured__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 44px);
    color: #fff;
}

.page-news .gj-news-featured__badge {
    display: inline-block;
    width: fit-content;
    margin-bottom: 12px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.page-news .gj-news-featured__date {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.page-news .gj-news-featured__title {
    margin: 0 0 24px;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-wrap: balance;
    color: #fff;
    transition: color 0.3s ease;
}

.page-news .gj-news-featured__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease, gap 0.3s ease;
}

.page-news .gj-news-featured__link:hover .gj-news-featured__cta {
    color: #fff;
    gap: 12px;
}

/* ─── Article grid ─── */
.page-news .gj-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 2.5vw, 28px);
}

@media (min-width: 640px) {
    .page-news .gj-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .page-news .gj-news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.page-news .gj-news-article {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(25, 25, 25, 0.07);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.page-news .gj-news-article:hover,
.page-news .gj-news-article:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(134, 0, 33, 0.15);
    box-shadow: 0 18px 44px rgba(25, 25, 25, 0.1);
}

.page-news .gj-news-article.is-hidden {
    display: none;
}

.page-news .gj-news-article__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gj-ink);
}

.page-news .gj-news-article__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
    filter: grayscale(15%) brightness(0.95);
}

.page-news .gj-news-article__media--fallback img {
    filter: grayscale(40%) brightness(0.75);
    object-position: center 35%;
}

.page-news .gj-news-article:hover .gj-news-article__media img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

.page-news .gj-news-article:hover .gj-news-article__media--fallback img {
    filter: grayscale(20%) brightness(0.9);
}

.page-news .gj-news-article__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    background: var(--gj-brand);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    max-width: calc(100% - 28px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-news .gj-news-article__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 26px;
}

.page-news .gj-news-article__date {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gj-brand);
}

.page-news .gj-news-article__title {
    margin: 0 0 18px;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.4;
    letter-spacing: 0.03em;
    text-wrap: balance;
    transition: color 0.3s ease;
}

.page-news .gj-news-article:hover .gj-news-article__title {
    color: var(--gj-brand);
}

.page-news .gj-news-article__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b0afae;
    transition: color 0.3s ease, gap 0.3s ease;
}

.page-news .gj-news-article:hover .gj-news-article__cta {
    color: var(--gj-brand);
    gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
    .page-news .gj-news-featured__link,
    .page-news .gj-news-featured__media img,
    .page-news .gj-news-article,
    .page-news .gj-news-article__media img,
    .page-news .gj-news-filter {
        transition: none;
    }
}
