/* Modeli.us News — corporate identity extension */

.news-page {
    padding: 25px;
    padding-bottom: 0;
}

.news-wrapper {
    overflow: hidden;
}

/* ── Header ── */

.news-header {
    position: relative;
    background: #E4E4E4;
    padding: 28px 0 0;
    overflow: hidden;
    color: #2B2E38;
}

.news-header a {
    color: #2B2E38;
}

.news-header a:hover {
    color: #8B8363;
}

.news-header .news-header__cta,
.news-header .news-header__cta:hover {
    color: #fff;
}

.news-header__bg {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
}

.news-header__bg--arrow {
    right: -40px;
    top: -20px;
    width: 280px;
}

.news-header__bg--lines {
    left: -60px;
    bottom: -40px;
    width: 320px;
    opacity: 0.08;
}

.news-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 2;
    padding-bottom: 28px;
}

.news-header__logo img {
    height: 32px;
    width: auto;
}

.news-header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.news-header__nav-link {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.25px;
    transition: color 0.2s ease;
}

.news-header__nav-link:hover,
.news-header__nav-link--active {
    color: #8B8363;
}

.news-header__nav-link--active {
    position: relative;
}

.news-header__nav-link--active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, #B5AB86, #8B8363);
    border-radius: 1px;
}

.news-header__cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: linear-gradient(135deg, #B5AB86 0%, #8B8363 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-header__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 131, 99, 0.35);
    color: #fff;
}

.news-header__menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.news-header__menu-btn span {
    display: block;
    height: 2px;
    background: #2B2E38;
    border-radius: 1px;
    transition: transform 0.2s ease;
}

.news-header__mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 0 24px;
    border-top: 1px solid rgba(43, 46, 56, 0.1);
    margin-top: -4px;
    padding-top: 20px;
}

.news-header__mobile-nav[hidden] {
    display: none;
}

.news-header__mobile-link {
    font-size: 16px;
    padding: 4px 0;
}

.news-header__mobile-link:hover {
    color: #8B8363;
}

/* ── Hero (list) ── */

.news-hero {
    position: relative;
    padding: 64px 0 56px;
    background: #E4E4E4;
}

.news-hero--compact .container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.news-hero__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8B8363;
    margin-bottom: 16px;
}

.news-hero__title {
    font-family: "Ubuntu", sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    color: #2B2E38;
    margin-bottom: 16px;
}

.news-hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #5a5d66;
    max-width: 520px;
}

.news-hero__logo-mark {
    flex-shrink: 0;
    opacity: 0.55;
}

/* ── Grid ── */

.news-list-section {
    padding: 0 0 80px;
    background: #E4E4E4;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(43, 46, 56, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(43, 46, 56, 0.12);
}

.news-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #2B2E38;
}

.news-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #f0ede4 0%, #e8e4d8 100%);
}

.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card__image {
    transform: scale(1.05);
}

.news-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f3ec 0%, #ebe7dc 100%);
}

.news-card__date {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 6px 12px;
    background: rgba(43, 46, 56, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 2px;
}

.news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 24px 28px;
}

.news-card__title {
    font-family: "Ubuntu", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.news-card:hover .news-card__title {
    color: #8B8363;
}

.news-card__excerpt {
    font-size: 15px;
    line-height: 1.65;
    color: #6b6e78;
    flex: 1;
    margin-bottom: 20px;
}

.news-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #8B8363;
}

.news-card__more::after {
    content: '→';
    transition: transform 0.2s ease;
}

.news-card:hover .news-card__more::after {
    transform: translateX(4px);
}

/* ── Pagination ── */

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(43, 46, 56, 0.1);
}

.news-pagination__btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #2B2E38;
    border: 1px solid rgba(43, 46, 56, 0.2);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.news-pagination__btn:hover {
    border-color: #8B8363;
    color: #8B8363;
    background: rgba(181, 171, 134, 0.08);
}

.news-pagination__info {
    font-size: 14px;
    color: #6b6e78;
}

/* ── Empty / 404 ── */

.news-empty,
.news-not-found {
    text-align: center;
    padding: 80px 20px 100px;
}

.news-empty__icon,
.news-not-found__title {
    color: #8B8363;
    margin-bottom: 24px;
}

.news-not-found__title {
    font-family: "Ubuntu", sans-serif;
    font-size: 72px;
    font-weight: 400;
    line-height: 1;
}

.news-empty__title {
    font-family: "Ubuntu", sans-serif;
    font-size: 28px;
    margin-bottom: 12px;
    color: #2B2E38;
}

.news-empty__text,
.news-not-found__text {
    font-size: 17px;
    color: #6b6e78;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Buttons ── */

.news-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #B5AB86 0%, #8B8363 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(139, 131, 99, 0.35);
    color: #fff;
}

.news-btn--outline {
    background: transparent;
    color: #2B2E38;
    border: 1px solid rgba(43, 46, 56, 0.25);
    box-shadow: none;
}

.news-btn--outline:hover {
    border-color: #8B8363;
    color: #8B8363;
    background: rgba(181, 171, 134, 0.08);
    box-shadow: none;
}

/* ── Article detail ── */

.news-article__hero {
    position: relative;
    height: clamp(240px, 40vw, 420px);
    overflow: hidden;
    background: linear-gradient(135deg, #2B2E38 0%, #3d414d 100%);
}

.news-article__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-article__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(43, 46, 56, 0.7) 0%, transparent 60%);
}

.news-article .container {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 80px;
}

.news-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #8B8363;
    margin-bottom: 32px;
}

.news-breadcrumb a {
    color: #6b6e78;
    transition: color 0.2s ease;
}

.news-breadcrumb a:hover {
    color: #8B8363;
}

.news-breadcrumb span[aria-current] {
    color: #2B2E38;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-article__header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(43, 46, 56, 0.1);
}

.news-article__date {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8B8363;
    margin-bottom: 16px;
}

.news-article__title {
    font-family: "Ubuntu", sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    color: #2B2E38;
}

.news-article__content {
    font-size: 17px;
    line-height: 1.75;
    color: #3d4049;
}

.news-article__content p {
    margin-bottom: 1.25em;
}

.news-article__content h2,
.news-article__content h3,
.news-article__content h4 {
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    color: #2B2E38;
    margin: 1.75em 0 0.75em;
    line-height: 1.3;
}

.news-article__content h2 { font-size: 28px; }
.news-article__content h3 { font-size: 22px; }
.news-article__content h4 { font-size: 18px; }

.news-article__content ul,
.news-article__content ol {
    margin: 0 0 1.25em;
    padding-left: 1.5em;
}

.news-article__content li {
    margin-bottom: 0.5em;
}

.news-article__content a {
    color: #8B8363;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-article__content a:hover {
    color: #6d6649;
}

.news-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5em 0;
}

.news-article__content blockquote {
    margin: 1.5em 0;
    padding: 20px 24px;
    border-left: 3px solid #B5AB86;
    background: rgba(181, 171, 134, 0.1);
    font-style: italic;
    color: #5a5d66;
}

.news-article__footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(43, 46, 56, 0.1);
}

/* ── Footer (uses main site .footer styles) ── */

.news-wrapper .footer {
    color: #7A7A7A;
    background: transparent;
}

.news-wrapper .footer a {
    color: #7A7A7A;
}

.news-wrapper .footer a:hover {
    color: #B5AB86;
}

.news-wrapper .footer .footer-nav__link {
    color: #7A7A7A;
}

.news-wrapper .footer .footer-nav__link:hover {
    color: #B5AB86;
}

.news-wrapper .footer .credits__text {
    color: #7A7A7A;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .news-page {
        padding: 12px;
        padding-bottom: 0;
    }

    .news-header__nav,
    .news-header__cta {
        display: none;
    }

    .news-header__menu-btn {
        display: flex;
    }

    .news-hero {
        padding: 40px 0 32px;
    }

    .news-hero--compact .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-hero__logo-mark {
        display: none;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card__body {
        padding: 20px;
    }

    .news-breadcrumb span[aria-current] {
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .news-pagination {
        flex-direction: column;
        gap: 16px;
    }

    .news-pagination__btn {
        width: 100%;
        text-align: center;
    }
}
