/* List, Show, News — simple inner-page layout */

/* Hero Banner */
.hero-banner {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    z-index: -1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: var(--bg-card);
    min-height: 500px;
}

.hero-background img[loading="eager"] {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 8, 16, 0.85) 0%, rgba(8, 8, 16, 0.7) 50%, rgba(8, 8, 16, 0.5) 100%);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 60px 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--gold-light);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 32px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.page-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

/* Featured Image */
.featured-image-container {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border-strong);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px;
    transition: transform 0.3s ease;
}

.featured-image:hover {
    transform: scale(1.02);
}

.page-wrap.wide {
    max-width: 960px;
}

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--gold-light);
    margin-bottom: 12px;
    line-height: 1.2;
}

.page-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.page-intro img,
.page-thumb {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 16px 24px 0;
    max-width: 960px;
    margin: 0 auto;
}

.breadcrumb a {
    color: var(--gold);
}

.breadcrumb span {
    margin: 0 6px;
    opacity: 0.5;
}

/* Simple list */
.simple-list {
    list-style: none;
    border-top: 1px solid var(--border);
}

.simple-list li {
    border-bottom: 1px solid var(--border);
}

.simple-list a {
    display: block;
    padding: 20px 0;
    color: inherit;
}

.simple-list a:hover h2 {
    color: var(--gold);
}

.list-date {
    display: block;
    font-size: 0.78rem;
    color: var(--neon);
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.simple-list h2 {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0;
    transition: color 0.2s;
}

.simple-list p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Card list with thumb — compact */
.compact-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.compact-item {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.compact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.compact-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    flex-shrink: 0;
}

.compact-item-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.compact-item-body .list-date {
    margin-bottom: 8px;
}

.compact-item-body h2 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.compact-item-body h2 a {
    color: var(--text-light);
}

.compact-item-body h2 a:hover {
    color: var(--gold);
}

.compact-item-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-top: auto;
}

/* Pagination */
.pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pagination a {
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
}

.pagination a:hover {
    border-color: var(--gold);
}

/* Article / show content */
.article-page img,
.show-page img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    border: 1px solid var(--border);
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.article-meta span + span::before {
    content: ' · ';
}

.article-lead {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.article-body,
.show-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.article-body p,
.show-body p {
    margin-bottom: 16px;
}

.article-body img,
.show-body img {
    max-width: 100%;
    height: auto;
}

.page-actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ad-block {
    margin: 32px 0;
    text-align: center;
}

.ad-block img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}

/* Related Content Section */
.related-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.related-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    font-family: var(--font-display);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-item {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.related-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.related-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bg-card);
    min-height: 220px;
}

.related-item:hover .related-image img {
    transform: scale(1.08);
}

.related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 16, 0.3) 100%);
    opacity: 0;
    transition: var(--transition);
}

.related-item:hover .related-overlay {
    opacity: 1;
}

.related-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.related-item-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    font-family: var(--font-body);
    line-height: 1.4;
    transition: color 0.2s;
}

.related-item:hover .related-item-title {
    color: var(--gold);
}

.related-item-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: 12px;
    flex: 1;
}

.related-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-item:hover .related-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Simple footer override for inner pages */
.main-footer.compact {
    padding: 40px 0 0;
    margin-top: 0;
}

.main-footer.compact .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .compact-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-banner {
        min-height: 400px;
    }

    .hero-content {
        padding: 40px 0;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .page-wrap {
        padding: 24px 16px 48px;
    }

    .compact-list {
        grid-template-columns: 1fr;
    }

    .compact-item img {
        height: 200px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-image {
        height: 200px;
    }

    .featured-image-container {
        margin-bottom: 24px;
    }

    .featured-image {
        min-height: 250px;
    }

    .main-footer.compact .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
