/* ============================================
   NEWS PAGE STYLES - Unified Template
   ============================================ */


           * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-dark: #1a1a1a;
    --text-gray: #555555;
    --text-light: #6b7280;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-light: #e5e5e5;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-gradient);
    color: #333;
    line-height: 1.6;
}

/* Container */
.news-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--white);
    min-height: 100vh;
    box-sizing: border-box;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--text-light);
    user-select: none;
}

.breadcrumb .current {
    color: var(--text-gray);
    font-weight: 500;
}

/* Article Styles */
.news-article {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 60px;
}

/* Article Header */
.article-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-bottom: 3px solid var(--primary-color);
}

.article-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    line-height: 1.2;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-date::before {
    content: '📅';
    font-size: 1.1rem;
}

/* Featured Image */
.article-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    background: var(--bg-light);
    margin-bottom: 40px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.article-image:hover img {
    transform: scale(1.05);
}

/* Article Content */
.article-content {
    padding: 0 30px 30px 30px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.article-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 35px 0 20px 0;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.article-content h4 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.article-content p {
    margin: 15px 0;
    text-align: justify;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin: 10px 0;
    line-height: 1.8;
}

.article-content li strong {
    color: var(--text-dark);
    font-weight: 600;
}

.article-content em {
    font-style: italic;
    color: var(--text-light);
}

/* News Highlight Box */
.news-highlight {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 25px 30px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.news-highlight p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Gallery */
.article-gallery {
    padding: 0 30px 30px 30px;
}

.article-gallery h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 35px 0 20px 0;
    font-weight: 600;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-light);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Share Section */
.article-share {
    padding: 30px;
    background: rgba(102, 126, 234, 0.05);
    border-top: 2px solid var(--border-light);
    text-align: center;
}

.article-share h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
}

.share-btn span {
    font-size: 1.3rem;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.facebook:hover {
    background: #145dbf;
    transform: translateY(-2px);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.twitter:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
}

.share-btn.copy {
    background: var(--primary-gradient);
}

.share-btn.copy:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Related News Section */
.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid var(--border-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 30px 0;
    text-align: center;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.related-news-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-left-color: var(--secondary-color);
}

.related-news-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.related-news-date {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.related-news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.related-news-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.read-more-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.related-news-card:hover .read-more-link {
    color: var(--secondary-color);
}

/* Back to News Button */
.back-to-news {
    text-align: center;
    margin-top: 30px;
}

.btn-back {
    display: inline-block;
    padding: 14px 30px;
    background: var(--primary-gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-page-container {
        padding: 20px 15px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-icon {
        font-size: 3rem;
    }

    .article-content {
        padding: 0 20px 20px 20px;
        font-size: 1rem;
    }

    .article-content h3 {
        font-size: 1.5rem;
    }

    .article-content h4 {
        font-size: 1.2rem;
    }

    .news-highlight p {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .related-news-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }

    .breadcrumb .current {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }

    .article-icon {
        font-size: 2.5rem;
    }

    .article-header {
        padding: 20px 15px;
    }

    .article-content {
        padding: 0 15px 15px 15px;
    }

    .news-highlight {
        padding: 20px;
    }

    .article-share {
        padding: 20px 15px;
    }
}
