/* News Detail Page */
.news-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: #ddd;
}

.news-detail-header {
    margin-bottom: 2rem;
    text-align: center;
}

.news-detail h1 {
    font-size: 3.1rem;
    margin: 1rem 0;
    color: white;
    line-height: 1.3;
	font-family: "Perpetua", "Open Sans", sans-serif;
	text-wrap: balance;
}

.news-subtitle {
    font-size: 1.3rem;
    color: #B1B1B1;
    font-weight: 300;
    margin-bottom: 1.5rem;
	text-wrap: balance;
}

.news-category {
    display: inline-block;
    background: var(--cyanazul);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 1rem;
}

.news-category:active {
    background: var(--rojooscuro);
}

.news-meta {
    color: #B1B1B1;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.news-tag {
    background: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.news-featured-image {
    margin: 2rem 0 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	width: 100%;
    height: auto;
	max-height: 900px;
    display: block;
}

.news-featured-image figcaption {
    padding: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    color: #B1B1B1;
    background: #222;
}

.news-content {
    line-height: 1.7;
    font-size: 1.1rem;
}

.news-content p {
    margin-bottom: .8rem;
    margin-top: .9rem;
}

.news-inline-image {
    margin: 2rem auto 1rem;
    max-width: 700px;
	width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	max-height: 800px;
}

.news-inline-image figcaption {
    padding: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    color: #B1B1B1;
}

.related-articles {
    margin: 3rem 0;
	margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.related-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-article {
    background: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.related-article:hover {
    transform: translateY(-5px);
}

.related-article img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-article h4 {
    padding: 1rem;
    margin: 0;
    font-size: 1rem;
}

.related-article h4 a {
    color: white;
    text-decoration: none;
}

.related-article h4 a:hover {
    color: #8a3ffb;
}

.related-article time {
    display: block;
    padding: 0 1rem 1rem;
    font-size: 0.8rem;
    color: #B1B1B1;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--amarillo);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .news-detail {
        padding: 1rem;
    }
    
    .news-detail h1 {
        font-size: 2.6rem;
    }
    
    .news-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .news-detail h1 {
        font-size: 2.2rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}