/* News Pages Styles */
.news-hero {
    background: linear-gradient(135deg, #4CA633 0%, #3d8a2a 100%);
    padding: 100px 0 60px;
    color: white;
}

/* Breadcrumb Section */
.breadcrumb-section {
    background: #fff;
    padding: 20px 0;
    margin-top: 80px;
}

.bd-pns a {
    color: #666;
    text-decoration: none;
}

.bd-pns a:hover {
    color: #4CA633;
}

.bd-pns .nav-active {
    color: #4CA633;
}

/* News Cards */
.news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Clickable News Cards */
a .news-card {
    cursor: pointer;
}

a .news-card .card-title {
    color: #212529;
    transition: color 0.3s ease;
}

a:hover .news-card .card-title {
    color: #4CA633;
}

a .news-card .card-text {
    color: #6c757d;
}

a:hover {
    text-decoration: none;
}

.news-card-img {
    height: 200px;
    object-fit: cover;
}

.featured-news .news-card-img {
    height: 250px;
}

.news-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Category Sidebar */
.category-sidebar {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

.category-link {
    display: block;
    padding: 10px 15px;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.category-link:hover, .category-link.active {
    background: #4CA633;
    color: white;
    text-decoration: none;
}

/* Share Buttons */
.btn-share {
    border: none;
    background: none;
    color: #6c757d;
    font-size: 1.2rem;
    padding: 5px 10px;
    margin: 0 2px;
    transition: color 0.3s ease;
}

.btn-share:hover {
    color: #4CA633;
}

/* Article Detail Styles */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    /*margin: 20px 0;*/
}

.article-content h1, .article-content h2, .article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
}

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

.article-meta {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.share-buttons {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    margin: 0 8px;
    transition: transform 0.3s ease;
}

.btn-share:hover {
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}

.btn-share.facebook {
    background: #3b5998;
}

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

.btn-share.linkedin {
    background: #0077b5;
}

.btn-share.telegram {
    background: #0088cc;
}

.btn-share.copy {
    background: #6c757d;
}

/* Related News Cards */
.related-news-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.related-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-news-img {
    height: 120px;
    object-fit: cover;
}

/* Landing Page Enhancements */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section .hero-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
    pointer-events: none;
}

.social-btn {
    transition: all 0.3s ease;
    border: none !important;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    border-color: var(--bs-primary) !important;
}

.related-card:hover img {
    transform: scale(1.05);
}

.content-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}


.article-content h1, .article-content h2, .article-content h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.2rem;
    color: #4a5568;
}

.article-content ul, .article-content ol {
    /*margin-bottom: 1.5rem;*/
    padding-left: 2rem;
}

.article-content blockquote {
    border-left: 4px solid var(--bs-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    font-style: italic;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem !important;
    }

    .hero-meta {
        font-size: 0.9rem;
    }

    .content-card {
        padding: 1.5rem !important;
    }

    .content-body {
        font-size: 1.1rem !important;
    }

    .social-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem !important;
    }

    .hero-section {
        min-height: 50vh;
    }

    .hero-section img {
        height: 50vh !important;
        min-height: 300px !important;
    }
}

@media (max-width: 576px) {
    .breadcrumb-section {
        padding: 0.5rem 0 !important;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }

    .hero-section .display-4 {
        font-size: 1.75rem !important;
    }

    .related-articles-section h2 {
        font-size: 1.5rem;
    }

    .social-share-section {
        padding: 1.5rem !important;
    }

    .social-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .d-flex.justify-content-center.flex-wrap.gap-3 {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/* Animation for smooth loading */
.hero-section, .content-card, .social-share-section, .related-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Copy link functionality */
.copy-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}
