/* Style for new.php page */

.news-wrapper {
    padding: 120px 0 80px;
    background: #f8fafc;
    min-height: 100vh;
}

.news-breadcrumb {
    margin-bottom: 40px;
    color: #5a6a7a;
    font-size: 0.95rem;
}

.news-breadcrumb a {
    color: #20BEC6;
    text-decoration: none;
    transition: color 0.3s;
}

.news-breadcrumb a:hover {
    color: #2086c6;
}

.news-breadcrumb i {
    margin: 0 10px;
    font-size: 0.8rem;
    color: #8a9aa8;
}

/* Single Article Styles */
.news-article {
    background: white;
    border-radius: 5px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    margin-bottom: 50px;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-category {
    display: inline-block;
    background: #20BEC6;
    color: white;
    padding: 5px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-title {
    font-size: 2.5rem;
    color: #0a1929;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #5a6a7a;
    font-size: 0.95rem;
}

.article-meta i {
    color: #20BEC6;
    margin-left: 5px;
}

/* Gallery Styles */
.article-gallery {
    margin-bottom: 40px;
}

.gallery-main {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0 15px;
    scrollbar-width: thin;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #20BEC6;
    border-radius: 5px;
}

.thumbnail {
    flex: 0 0 120px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.thumbnail.active {
    border-color: #20BEC6;
    opacity: 1;
    box-shadow: 0 0 15px rgba(32, 190, 198, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Image (for single image) */
.article-image {
    margin-bottom: 40px;
    border-radius: 5px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-content {
    line-height: 2;
    color: #2a3a4a;
    font-size: 1.1rem;
}

.article-content h3 {
    font-size: 1.8rem;
    color: #0a1929;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-share span {
    color: #0a1929;
    font-weight: 600;
}

.share-link {
    width: 40px;
    height: 40px;
    background: #f0f4f8;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a6a7a;
    text-decoration: none;
    transition: all 0.3s;
}

.share-link:hover {
    background: #20BEC6;
    color: white;
    transform: translateY(-3px);
}

/* Related News */
.related-news {
    margin-top: 50px;
}

.related-title {
    font-size: 1.8rem;
    color: #0a1929;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(32, 190, 198, 0.1);
}

.related-card a {
    text-decoration: none;
}

.related-image {
    height: 160px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-card h4 {
    padding: 15px 15px 5px;
    color: #0a1929;
    font-size: 1rem;
    line-height: 1.5;
}

.related-date {
    display: block;
    padding: 0 15px 15px;
    color: #8a9aa8;
    font-size: 0.85rem;
}

.back-to-news {
    text-align: center;
    margin-top: 40px;
}

/* Archive Page Styles */
.archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.archive-title {
    font-size: 2.5rem;
    color: #0a1929;
    margin-bottom: 15px;
}

.archive-subtitle {
    color: #5a6a7a;
    font-size: 1.1rem;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.archive-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 3px 15px rgba(0,0,0,0.03);
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(32, 190, 198, 0.1);
}

.archive-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.archive-card:hover .archive-card-image img {
    transform: scale(1.05);
}

.archive-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #20BEC6;
    color: white;
    padding: 4px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.hot-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff3d71;
    color: white;
    padding: 4px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hot-badge.small {
    padding: 2px 10px;
    font-size: 0.7rem;
}

.archive-card-content {
    padding: 20px;
}

.archive-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.archive-card-title a {
    color: #0a1929;
    text-decoration: none;
    transition: color 0.3s;
}

.archive-card-title a:hover {
    color: #20BEC6;
}

.archive-card-excerpt {
    color: #5a6a7a;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #8a9aa8;
    font-size: 0.85rem;
}

.archive-card-meta i {
    color: #20BEC6;
    margin-left: 3px;
}

.archive-read-more {
    margin-right: auto;
    color: #20BEC6;
    text-decoration: none;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .archive-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .gallery-main {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .news-article {
        padding: 25px;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .archive-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-main {
        height: 300px;
    }
    
    .thumbnail {
        flex: 0 0 100px;
        height: 70px;
    }
}

@media (max-width: 576px) {
    .gallery-main {
        height: 220px;
    }
    
    .thumbnail {
        flex: 0 0 80px;
        height: 60px;
    }
    
    .article-share {
        flex-wrap: wrap;
        gap: 10px;
    }
}