/* News Detail Page Styles */
.news-detail {
    padding: 50px 0 80px;
    background-color: white;
}

.news-breadcrumb {
    margin-bottom: 30px;
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.news-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    align-items: start;
}

.news-main-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: var(--light);
}

.news-main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.news-main-image img:hover {
    transform: scale(1.02);
}

.news-info {
    padding: 20px 0;
}

.news-date {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.news-title {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 18px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

/* Gallery Section */
.news-gallery {
    margin: 60px 0;
}

.gallery-title {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.gallery-slider {
    position: relative;
    overflow: hidden;
}

.gallery-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
    scrollbar-width: thin;
}

.gallery-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.gallery-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.08);
    z-index: 10;
}

.gallery-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Full Text Section */
.news-full-text {
    margin: 50px 0;
}

.news-full-text h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 20px;
}

.news-full-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
}

.news-full-text ul, .news-full-text ol {
    margin: 20px 0;
    padding-left: 30px;
}

.news-full-text li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.lightbox-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    margin: 0 20px;
    transition: background 0.3s;
}

.lightbox-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Responsive for News Detail */
@media (max-width: 768px) {
    .news-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-title {
        font-size: 28px;
    }

    .news-main-image img {
        height: 300px;
    }

    .gallery-item {
        width: 250px;
    }

    .lightbox-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin: 0 10px;
    }

    .news-meta {
        gap: 15px;
    }

    .meta-item:first-child {
        display: none;
    }
}