/* Styles for List, News, and Show pages */

.content-section {
    padding: 60px 0;
    min-height: 60vh;
}

/* Text Wrapping & Overflow Handling */
h1, h2, h3, h4, h5, h6, p, a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Prevent text overflow */
.page-header h1 {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Page Headers */
.page-header {
    padding: 100px 0 60px;
    background: radial-gradient(circle at top center, rgba(31, 40, 51, 0.9), var(--bg-dark));
    text-align: center;
    border-bottom: 1px solid rgba(102, 252, 241, 0.1);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2rem !important;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Article List (list.html) */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-item {
    display: flex;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(69, 162, 158, 0.3);
}

.article-image {
    flex: 0 0 300px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.article-content .date {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.article-content h3 a {
    color: var(--text-light);
}

.article-content h3 a:hover {
    color: var(--primary);
}

.article-content p {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--bg-card);
    color: var(--text-light);
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
    transform: translateY(-2px);
}

/* Article Detail (news.html and show.html) */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary);
    font-weight: 500;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

.article-body p {
    margin-bottom: 25px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.article-body h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--text-light);
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-top: 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Show Content Adjustments */
.main-content {
    text-align: center;
}

.main-content h2 {
    color: var(--accent-light);
    font-size: 2.2rem;
    margin-bottom: 25px;
}

/* News Grid for Show Page */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-info h4 {
    overflow-wrap: break-word;
    word-break: break-word;
}

.news-info p {
    overflow-wrap: break-word;
    word-break: break-word;
}

.news-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(69, 162, 158, 0.3);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-info {
    padding: 25px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary);
    display: block;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.news-info h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-info h4 a {
    color: var(--text-light);
    transition: var(--transition);
}

.news-info h4 a:hover {
    color: var(--primary);
}

.news-info p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Media Queries - Tablets */
@media (max-width: 768px) {
    .content-section {
        padding: 40px 0;
    }

    .page-header {
        padding: 70px 0 50px;
        margin-bottom: 30px;
    }

    .page-header h1,
    .page-title-show {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .page-description-show {
        font-size: 1.1rem;
    }

    .article-item {
        flex-direction: column;
    }

    .article-image {
        flex: none;
        height: 220px;
    }

    .article-content {
        padding: 25px;
    }

    .article-content h3 {
        font-size: 1.5rem;
    }

    .article-content p {
        font-size: 1rem;
    }

    .article-detail,
    .article-detail-show {
        padding: 30px 20px;
    }

    .article-body {
        font-size: 1.05rem;
    }

    .article-body h2,
    .article-title-show {
        font-size: 1.6rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .latest-news-section h3,
    .gallery-title-show {
        font-size: 1.5rem;
    }

    .cta-section,
    .cta-section-show {
        padding: 30px 20px;
    }

    .cta-section h3,
    .cta-title-show {
        font-size: 1.5rem;
    }

    .ad-image-show {
        height: 80px;
    }
}

/* Media Queries - Phones */
@media (max-width: 480px) {
    .content-section {
        padding: 30px 0;
    }

    .page-header {
        padding: 60px 0 40px;
    }

    .page-header h1,
    .page-title-show {
        font-size: 1.8rem;
    }

    .page-description-show {
        font-size: 1rem;
    }

    .article-image {
        height: 180px;
    }

    .article-content {
        padding: 20px;
    }

    .article-content h3 {
        font-size: 1.3rem;
    }

    .article-detail,
    .article-detail-show {
        padding: 25px 15px;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2,
    .article-title-show {
        font-size: 1.4rem;
    }

    .article-body img,
    .article-image-show {
        margin: 20px 0;
    }

    .news-image {
        height: 160px;
    }

    .news-info {
        padding: 20px;
    }

    .news-info h4 {
        font-size: 1.1rem;
    }

    .gallery-section-show {
        margin-top: 40px;
    }

    .cta-section-show {
        margin-top: 40px;
        padding: 25px 15px;
    }

    .cta-title-show {
        font-size: 1.4rem;
    }

    .ad-slot-show {
        margin-top: 30px;
    }

    .ad-image-show {
        height: 70px;
    }

    .pagination {
        gap: 10px;
        flex-wrap: wrap;
    }

    .pagination a,
    .pagination span {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Show Page Specific Styles */
.page-header-show {
    background: linear-gradient(rgba(11, 12, 16, 0.8), rgba(11, 12, 16, 0.95)), url('') no-repeat center/cover;
}

.page-title-show {
    font-size: 3.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.page-description-show {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-main);
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-detail-show {
    text-align: left;
    margin-bottom: 50px;
}

.article-title-show {
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-divider-show {
    border-color: rgba(255,255,255,0.05);
    margin: 30px 0;
}

.article-image-show {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.article-cta-show {
    text-align: center;
    margin-top: 40px;
}

.gallery-section-show {
    margin-top: 60px;
}

.gallery-title-show {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-light);
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
}

.ad-slot-show {
    margin-top: 40px;
    text-align: center;
}

.ad-image-show {
    width: 100%;
    max-width: 728px;
    height: 100px;
    display: inline-block;
    border-radius: 8px;
    object-fit: cover;
}

.cta-section-show {
    margin-top: 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(69, 162, 158, 0.1));
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(245, 166, 35, 0.2);
}

.cta-title-show {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-light);
    overflow-wrap: break-word;
    word-break: break-word;
}

.cta-description-show {
    color: var(--text-main);
    margin-bottom: 25px;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
}
