/* news-detail.css - specific styles for the news detail page */

/* Page Spacer */
.page-spacer {
    height: 2rem;
}

/* News Detail Section */
.news-detail-section {
    padding: 3rem 0 2rem;
    background-color: #ffffff;
}

.news-detail-main {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1E3C72;
    margin-bottom: 2rem;
    line-height: 1.3;
    text-align: center;
}

.news-detail-text {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.news-detail-text p {
    margin-bottom: 1.2rem;
}

/* News Gallery Styles */
.news-gallery {
    margin: 2.5rem 0 3.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.gallery-item {
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.gallery-image-container {
    height: 100%;
    width: 100%;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

.lightbox-content img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    z-index: 10000;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #FFC107;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    transition: all 0.2s ease;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.lightbox-prev {
    left: 5%;
}

.lightbox-next {
    right: 5%;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.lightbox-counter {
    color: white;
    font-size: 16px;
    padding: 15px 0;
    font-weight: 500;
}

/* News Detail Navigation */
.news-detail-nav {
    margin-top: 2rem;
    text-align: center;
}

.btn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #1E3C72;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #15294d;
}

/* Recent News Section Styles */
.recent-news-section {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1E3C72;
    margin-bottom: 2.5rem;
    text-align: center;
}

.recent-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.recent-news-item {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.recent-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.recent-news-image {
    height: 180px;
    overflow: hidden;
}

.recent-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-news-item:hover .recent-news-image img {
    transform: scale(1.05);
}

.recent-news-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recent-news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    flex-grow: 1;
}

.recent-news-title a {
    color: #1E3C72;
    text-decoration: none;
    transition: color 0.2s ease;
}

.recent-news-title a:hover {
    color: #FFC107;
}

.read-more-link {
    display: inline-block;
    color: #1E3C72;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
    margin-top: auto;
}

.read-more-link::after {
    content: '';
    position: absolute;
    bottom: 0.4rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFC107;
    transition: width 0.3s ease;
}

.read-more-link:hover {
    color: #FFC107;
}

.read-more-link:hover::after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .recent-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .news-detail-title {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recent-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-detail-title {
        font-size: 1.6rem;
    }
    
    .news-detail-text {
        font-size: 1rem;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .share-button {
        flex: 1 0 40%;
        margin-bottom: 0.5rem;
        justify-content: center;
    }
    
    .recent-news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .news-detail-title {
        font-size: 1.4rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .share-button {
        flex: 1 0 100%;
    }
}




.news-video-container {
    margin: 2rem 0;
}

.responsive-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 2rem;
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
