/* ===============
   PAGE HEADER (For Archives/Details)
   =============== */
.page-header {
    background-color: var(--card-bg);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-top: 50px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* ===============
   ARCHIVE LIST (list.html)
   =============== */
.archive-list {
    margin: 60px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: 40px;
}

.archive-item {
    background: linear-gradient(145deg, rgba(60, 15, 15, 0.8), rgba(90, 20, 20, 0.8));
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.archive-item:hover {
    transform: translateY(-10px);
    border-color: #ffd700;
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}

.archive-item > a {
    display: block;
    overflow: hidden;
}

.archive-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.archive-item:hover .archive-img {
    transform: scale(1.08); /* slight zoom on hover */
}

.archive-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.archive-date {
    display: inline-block;
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.archive-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ffd700;
    transition: color 0.3s ease;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.archive-item:hover .archive-title {
    color: #ffffff;
}

.archive-desc {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1; /* pushes button to bottom */
}

.btn-read-more {
    display: inline-block;
    align-self: flex-start;
    padding: 10px 25px;
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: #000000 !important;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-read-more:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
    text-decoration: none;
}

/* ===============
   PAGINATION
   =============== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0 60px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: rgba(50, 10, 10, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    font-weight: 600;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: #000;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

/* ===============
   ARTICLE DETAIL (news.html)
   =============== */
.article-container {
    max-width: 900px;
    margin: 60px auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.article-body p {
    margin-bottom: 25px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.article-body iframe,
.article-body video {
    max-width: 100%;
    height: auto;
}

.article-body h2,
.article-body h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin: 40px 0 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-body a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
}

.article-body pre,
.article-body code {
    max-width: 100%;
    overflow-x: auto;
    word-wrap: normal;
}

/* ===============
   SHOW/LANDING PAGE (show.html)
   =============== */
.landing-hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    position: relative;
    border-bottom: 1px solid rgba(0, 240, 208, 0.2);
    box-shadow: inset 0 -20px 50px rgba(0,0,0,0.5);
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 240, 208, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.landing-hero .page-title {
    position: relative;
    z-index: 2;
    margin-top: 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.breadcrumb {
    position: relative;
    z-index: 2;
    display: inline-flex;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-muted);
}

.landing-content {
    max-width: 900px;
    margin: -40px auto 60px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    font-size: 1.15rem;
    color: var(--text-color);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.landing-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.landing-content img:hover {
    transform: scale(1.02);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.related-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 240, 208, 0.15);
}

.related-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 60%;
    background: linear-gradient(to top, rgba(20, 16, 48, 1), transparent);
    z-index: 1;
}

.related-card:hover .related-img-wrapper img {
    transform: scale(1.08);
}

.related-content {
    padding: 0 24px 24px;
    position: relative;
    background: rgba(20, 16, 48, 1);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: -20px;
    z-index: 2;
}

.related-badge {
    align-self: flex-start;
    background: var(--primary-color);
    color: #070714;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--glow-teal);
    margin-bottom: 12px;
}

.related-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    padding-right: 24px;
}

.related-card:hover .related-content h3 {
    color: var(--primary-color);
}

.related-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 20px;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.related-card:hover .related-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 900px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============
   RESPONSIVE
   =============== */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }

    .page-title {
        font-size: 2rem;
    }

    .archive-list {
        margin: 40px 0;
        gap: 25px;
    }

    .pagination {
        gap: 10px;
        flex-wrap: wrap;
    }

    .pagination a,
    .pagination span {
        min-width: 35px;
        height: 35px;
        padding: 0 12px;
        font-size: 0.9rem;
    }

    .article-container {
        padding: 25px 20px;
        margin: 30px auto;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-body {
        font-size: 1.05rem;
    }

    .landing-hero {
        padding: 80px 15px 60px;
    }

    .landing-hero .page-title {
        font-size: 1.8rem;
    }

    .breadcrumb {
        font-size: 12px;
        margin-bottom: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .landing-content {
        margin: -30px 0 40px;
        padding: 24px 15px;
        font-size: 1rem;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
}