/* News Details Page Styles - Farmostr */

/* Featured Image */
.article-featured-image {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-featured-image:hover .featured-img {
    transform: scale(1.05);
}

/* Article Header */
.article-header {
    margin-bottom: 2rem;
}

.article-title {
    color: #000000CC;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 2px solid #F3F5FA;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #30734C;
    font-weight: 600;
    font-size: 0.95rem;
}

.article-date i {
    font-size: 1.1rem;
}

/* Article Content */
.article-content {
    color: #344863;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 2rem 0;
}

.article-content p {
    margin-bottom: 1.25rem;
    color: #344863;
}

.article-content h2 {
    color: #000000CC;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.article-content h3 {
    color: #344863;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 1.75rem 0 0.75rem 0;
}

.article-content strong {
    color: #30734C;
    font-weight: 700;
}

.article-content code {
    background-color: #F3F5FA;
    color: #30734C;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.article-content blockquote {
    border-left: 4px solid #30734C;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #7D879C;
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1rem 1.5rem;
    color: #344863;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Sidebar */
.news-sidebar-card {
    background: #fff;
    border: 2px solid #F3F5FA;
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    position: sticky;
    top: 170px;
}

.news-sidebar-card:hover {
    border-color: #30734C;
    box-shadow: 0 8px 24px rgba(48, 115, 76, 0.12);
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sidebar-card-header i {
    color: #30734C;
    font-size: 1.5rem;
}

.sidebar-card-header h5 {
    color: #344863;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.sidebar-card-text {
    color: #7D879C;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-input {
    border: 2px solid #E0E9FF;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: #A8B1C1;
}

.newsletter-input:focus {
    border-color: #30734C;
    background-color: #fff;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(48, 115, 76, 0.15);
}

.newsletter-btn {
    background-color: #30734C;
    border-color: #30734C;
    color: #fff;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #245c3b;
    border-color: #245c3b;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(48, 115, 76, 0.25);
}

.newsletter-btn:focus {
    background-color: #245c3b;
    border-color: #245c3b;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(48, 115, 76, 0.25);
}

/* Mobile Newsletter */
.mobile-newsletter-section {
    display: none;
}

/* Related News Section */
.related-news-section {
    border-top: 2px solid #F3F5FA;
    padding-top: 2rem;
}

.related-news-title {
    color: #000000CC;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

/* Related News Card */
.related-news-card {
    background: #fff;
    border: 2px solid #F3F5FA;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.related-news-card:hover {
    border-color: #30734C;
    box-shadow: 0 12px 32px rgba(48, 115, 76, 0.15);
    transform: translateY(-4px);
}

.related-news-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
}

.related-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-news-card:hover .related-news-image {
    transform: scale(1.08);
}

.related-news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-news-title-link {
    text-decoration: none;
}

.related-news-title {
    color: #344863;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-title-link:hover .related-news-title {
    color: #30734C;
}

.related-news-description {
    color: #7D879C;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #F3F5FA;
    margin-top: auto;
}

.related-news-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #30734C;
    font-size: 0.85rem;
    font-weight: 600;
}

.related-news-date i {
    font-size: 0.95rem;
}

.related-news-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(48, 115, 76, 0.1) 0%, rgba(48, 115, 76, 0.08) 100%);
    border-radius: 50%;
    color: #30734C;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.related-news-link:hover {
    background: #30734C;
    color: #fff;
    transform: translateX(2px);
}

/* Text HTML Styling */
.text-div-html p {
    color: #344863;
}

code {
    color: #30734C;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .article-title {
        font-size: 1.75rem;
    }

    .article-featured-image {
        height: 300px;
    }

    .news-sidebar-card {
        position: static;
        margin-bottom: 2rem;
    }

    .mobile-newsletter-section {
        display: block;
    }
}

@media (max-width: 768px) {
    .article-featured-image {
        height: 250px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .related-news-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .related-news-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .article-featured-image {
        height: 200px;
    }

    .article-title {
        font-size: 1.25rem;
    }

    .article-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .sidebar-card-header {
        gap: 0.5rem;
    }

    .sidebar-card-header i {
        font-size: 1.25rem;
    }

    .sidebar-card-header h5 {
        font-size: 1rem;
    }

    .related-news-title {
        font-size: 0.95rem;
    }

    .related-news-image-wrapper {
        height: 160px;
    }
}
