/* Articles Pages - Premium Styling */

/* Articles Layout */
.articles-layout,
.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.articles-main,
.article-main {
    min-width: 0; /* Prevent grid overflow */
}

.articles-sidebar,
.article-sidebar {
    padding-left: 0;
}

/* Articles Filters */
.articles-filters {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-filter {
    margin-bottom: 2rem;
}

.articles-search-form {
    max-width: 500px;
}

.search-input-group {
    position: relative;
    display: flex;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px 0 0 12px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: #ffffff;
}

.search-input:focus {
    outline: none;
    border-color: #3EA2BE;
    box-shadow: 0 0 0 3px rgba(62, 162, 190, 0.1);
}

.article-search-btn {
    background: linear-gradient(135deg, #3EA2BE, #2B7A8F);
    border: none;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.article-search-btn:hover {
    background: linear-gradient(135deg, #2B7A8F, #1f5a6b);
    transform: translateX(-1px);
}

.category-filter {
    margin-top: 1.5rem;
}

.filter-label {
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: #ffffff;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: #3EA2BE;
    color: #3EA2BE;
    transform: translateY(-1px);
}

.category-btn.active {
    background: linear-gradient(135deg, #3EA2BE, #2B7A8F);
    border-color: #3EA2BE;
    color: #ffffff;
}

/* Results Info */
.articles-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.articles-results-info p {
    color: #4a5568;
    margin: 0;
    font-weight: 500;
}

.clear-filters {
    color: #3EA2BE;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.clear-filters:hover {
    background: #f7fafc;
    color: #2B7A8F;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffd700, #e6c200);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.article-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-category {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.article-title {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.article-title a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #3EA2BE;
}

.article-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #718096;
    font-size: 0.9rem;
}

.read-more {
    color: #3EA2BE;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.read-more:hover {
    color: #2B7A8F;
    transform: translateX(3px);
}

/* Pagination */
.articles-pagination {
    margin-top: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-link {
    padding: 0.8rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #ffffff;
    min-width: 44px;
    text-align: center;
}

.page-link:hover {
    border-color: #3EA2BE;
    color: #3EA2BE;
    background: #f7fafc;
}

.page-link.current {
    background: linear-gradient(135deg, #3EA2BE, #2B7A8F);
    border-color: #3EA2BE;
    color: #ffffff;
}

.page-link.prev,
.page-link.next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-ellipsis {
    padding: 0.8rem 0.5rem;
    color: #cbd5e0;
}

/* No Articles State */
.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.no-articles-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
}

.no-articles-icon i {
    font-size: 2rem;
    color: #cbd5e0;
}

.no-articles h3 {
    color: #1a365d;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-articles p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Single Article Styles */
.article-header {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.article-header .article-meta {
    margin-bottom: 1.5rem;
}

.article-header .article-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a365d;
    line-height: 1.2;
}

.article-byline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-weight: 500;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #718096;
    font-size: 0.9rem;
}

/* Social Sharing */
.article-sharing {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sharing-label {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9rem;
}

.sharing-buttons {
    display: flex;
    gap: 0.8rem;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease;
    font-size: 1rem;
}

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

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

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

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

.share-email {
    background: #6b7280;
}

/* Featured Image */
.article-featured-image {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Article Content */
.article-content {
    /* background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 2.5rem;
    margin-bottom: 2rem; */
}

.article-excerpt {
    background: #f7fafc;
    border-left: 4px solid #3EA2BE;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
}

.article-excerpt p {
    margin: 0;
    font-style: italic;
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
}

.article-body {
    color: #2d3748;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Article Attachments */
.article-attachments {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 2rem;
}

.attachments-title {
    color: #1a365d;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.attachments-grid {
    display: grid;
    gap: 1rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.attachment-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.attachment-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.attachment-icon i {
    color: #ffffff;
    font-size: 1.2rem;
}

.attachment-info {
    flex: 1;
}

.attachment-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.attachment-title a {
    color: #1a365d;
    text-decoration: none;
}

.attachment-title a:hover {
    color: #3EA2BE;
}

.attachment-description {
    color: #4a5568;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.attachment-meta {
    color: #718096;
    font-size: 0.8rem;
}

.download-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3EA2BE, #2B7A8F);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: 1rem;
}

.download-btn:hover {
    background: linear-gradient(135deg, #2B7A8F, #1f5a6b);
    transform: scale(1.05);
}

/* Article Tags */
.article-tags {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 2rem;
}

.tags-title {
    color: #1a365d;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag-link {
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: #3EA2BE;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: #3EA2BE;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Article Footer */
.article-footer {
    background: #ffffff;
    /* border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 2rem; */
    margin-bottom: 2rem;
}

.back-to-articles {
    color: #3EA2BE;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.back-to-articles:hover {
    color: #2B7A8F;
    transform: translateX(-3px);
}

/* Sidebar Widgets - Articles Specific */
.sidebar-widget {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.widget-title {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    color: #1a365d;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.5rem;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
}

.widget-content {
    padding: 1.5rem;
}

/* Featured/Recent Articles Widgets */
.featured-article-item,
.recent-article-item,
.related-article-item {
    display: flex;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.featured-article-item:last-child,
.recent-article-item:last-child,
.related-article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.featured-article-image,
.related-article-image {
    width: 80px;
    height: 60px;
    margin-right: 1rem;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.featured-article-image img,
.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article-content,
.recent-article-content,
.related-article-content {
    flex: 1;
}

.featured-article-content h4,
.recent-article-item h4,
.related-article-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.featured-article-content h4 a,
.recent-article-item h4 a,
.related-article-content h4 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-article-content h4 a:hover,
.recent-article-item h4 a:hover,
.related-article-content h4 a:hover {
    color: var(--secondary-color);
}

.featured-article-meta,
.recent-article-meta,
.related-article-meta {
    font-size: 0.8rem;
    color: #718096;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 0.5rem;
}

.categories-list li:last-child {
    margin-bottom: 0;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.category-link:hover {
    background: #f7fafc;
    color: #3EA2BE;
    transform: translateX(3px);
}

.category-link.active {
    background: #f7fafc;
    color: #3EA2BE;
}

.article-count {
    background: #e2e8f0;
    color: #718096;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Newsletter Widget */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #3EA2BE;
    box-shadow: 0 0 0 3px rgba(62, 162, 190, 0.1);
}

.newsletter-form .btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #3EA2BE, #2B7A8F);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2B7A8F, #1f5a6b);
    transform: translateY(-1px);
}

/* Quick Links Widget */
.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 0.8rem;
}

.sidebar-links li:last-child {
    margin-bottom: 0;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    color: #4a5568;
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-links a:hover {
    background: #f7fafc;
    color: #3EA2BE;
    transform: translateX(5px);
}

.sidebar-links a i {
    margin-right: 0.8rem;
    color: #cbd5e0;
    transition: color 0.2s ease;
}

.sidebar-links a:hover i {
    color: #3EA2BE;
}

/* Responsive Design */
@media (max-width: 968px) {
    .articles-layout,
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .articles-filters {
        padding: 1.5rem;
    }
    
    .category-buttons {
        justify-content: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-header {
        padding: 2rem;
    }
    
    .article-header .article-title {
        font-size: 2rem;
    }
    
    .article-byline {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .sharing-buttons {
        justify-content: center;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .article-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .articles-layout,
    .article-layout {
        padding: 0.5rem;
    }
    
    .articles-filters {
        padding: 1rem;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-input {
        border-radius: 12px;
        margin-bottom: 0.5rem;
    }
    
    .search-btn {
        border-radius: 12px;
    }
    
    .category-buttons {
        flex-direction: column;
    }
    
    .category-btn {
        text-align: center;
    }
    
    .articles-results-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .article-header {
        padding: 1.5rem;
    }
    
    .article-header .article-title {
        font-size: 1.8rem;
    }
    
    .article-sharing {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .sharing-buttons {
        width: 100%;
        justify-content: space-around;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .attachment-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .download-btn {
        margin: 0;
        width: 100%;
        max-width: 200px;
    }
    
    .widget-title,
    .widget-content {
        padding: 1rem;
    }
}