/* News Category Styles */

/* News Category Page Layout */
.news-category-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* News Page Header */
.news-page-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.news-header-content {
    position: relative;
    z-index: 1;
}

.news-category-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-category-description {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* News Content Wrapper */
.news-content-wrapper {
    padding: 60px 0;
}

/* News Category Section */
.news-category-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e5e7eb;
}

.news-category-section:last-child {
    border-bottom: none;
    margin-bottom: 2rem;
}

.news-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3c72;
    margin: 0;
}

.category-icon {
    color: #2a5298;
    flex-shrink: 0;
}

.category-count {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    margin-left: 0.5rem;
}

.news-section-description {
    color: #6b7280;
    font-size: 1rem;
    margin: 0.5rem 0 0;
    line-height: 1.6;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2a5298;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.view-all-link:hover {
    background: #2a5298;
    color: #ffffff;
    border-color: #2a5298;
    transform: translateX(4px);
}

.view-all-link svg {
    transition: transform 0.3s ease;
}

.view-all-link:hover svg {
    transform: translateX(2px);
}

/* News Grid Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* News Card Styles */
.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-thumbnail {
    transform: scale(1.08);
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 50%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
}

.news-category-badge {
    background: rgba(30, 60, 114, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-content {
    padding: 30px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.news-icon {
    color: #3498db;
    flex-shrink: 0;
}

.news-card-title {
    margin: 0 0 16px 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #3498db;
}

.news-card-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.news-read-more:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.news-arrow-icon {
    transition: transform 0.3s ease;
}

.news-read-more:hover .news-arrow-icon {
    transform: translateX(4px);
}

/* Empty State */
.news-no-posts {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-no-posts h3,
.news-no-posts h4 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.news-no-posts p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* News Pagination */
.news-pagination {
    text-align: center;
    padding: 40px 0;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    margin: 0 6px;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 48px;
    height: 48px;
}

.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.news-pagination .page-numbers svg {
    width: 16px;
    height: 16px;
}

.news-pagination .page-numbers.prev,
.news-pagination .page-numbers.next {
    padding: 12px 24px;
    gap: 8px;
}

/* Single News Page Styles */
.single-news-page {
    background-color: #f8f9fa;
}

.single-news-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.single-news-header {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.news-breadcrumb {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-breadcrumb a:hover {
    color: #2980b9;
}

.news-breadcrumb .separator {
    color: #dee2e6;
    font-weight: 300;
}

.single-news-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 30px;
}

.single-news-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.single-news-meta .news-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.single-news-meta .news-icon {
    color: #3498db;
    flex-shrink: 0;
}

.news-category-tag {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.single-news-featured-image {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.single-news-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 16px 24px;
    background: #f8f9fa;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.single-news-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.news-content-wrapper {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-category-title {
        font-size: 2.5rem;
    }
    
    .news-category-description {
        font-size: 1.1rem;
    }
    
    .news-page-header {
        padding: 60px 0 40px;
    }
    
    .news-content-wrapper {
        padding: 40px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-card-content {
        padding: 24px;
    }
    
    .news-card-meta {
        gap: 16px;
    }
    
    .news-meta-item {
        font-size: 0.85rem;
    }
    
    .news-card-title a {
        font-size: 1.25rem;
    }
    
    .single-news-title {
        font-size: 2rem;
    }
    
    .single-news-header,
    .single-news-content {
        padding: 24px;
    }
    
    .single-news-meta {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .news-section-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .news-section-title {
        font-size: 1.5rem;
    }
    
    .view-all-link {
        margin-top: 1rem;
    }
    
    .news-category-section {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .news-category-title {
        font-size: 2rem;
    }
    
    .news-card-content {
        padding: 20px;
    }
    
    .news-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .news-read-more {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .single-news-header,
    .single-news-content {
        padding: 20px;
    }
    
    .news-section-title {
        font-size: 1.3rem;
    }
    
    .category-count {
        font-size: 0.9rem;
    }
}
    margin-bottom: 40px;
}

/* News Card Styles */
.news-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: linear-gradient(45deg, #f0f2f5, #e9ecef);
}

.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-thumbnail {
    transform: scale(1.08);
}

.news-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.news-category-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.news-card-content {
    padding: 32px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.news-icon {
    color: #3498db;
    flex-shrink: 0;
}

.news-card-title {
    margin-bottom: 16px;
}

.news-card-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
}

.news-card-title a:hover {
    color: #3498db;
}

.news-card-excerpt {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 1rem;
}

.news-card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid #3498db;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.news-read-more:hover {
    background-color: #3498db;
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.news-arrow-icon {
    transition: transform 0.3s ease;
}

.news-read-more:hover .news-arrow-icon {
    transform: translateX(4px);
}

/* No Posts Message */
.news-no-posts {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.news-no-posts h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 16px;
    font-weight: 600;
}

.news-no-posts p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* News Pagination */
.news-pagination {
    text-align: center;
    padding: 40px 0;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    margin: 0 6px;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 48px;
    height: 48px;
}

.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.news-pagination .page-numbers svg {
    width: 16px;
    height: 16px;
}

.news-pagination .page-numbers.prev,
.news-pagination .page-numbers.next {
    padding: 12px 24px;
    gap: 8px;
}

/* Single News Page Styles */
.single-news-page {
    background-color: #f8f9fa;
}

.single-news-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.single-news-header {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.news-breadcrumb {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-breadcrumb a:hover {
    color: #2980b9;
}

.news-breadcrumb .separator {
    color: #dee2e6;
    font-weight: 300;
}

.single-news-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 30px;
}

.single-news-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.single-news-meta .news-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.single-news-meta .news-icon {
    color: #3498db;
    flex-shrink: 0;
}

.news-category-tag {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.single-news-featured-image {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.single-news-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 16px 24px;
    background: #f8f9fa;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.single-news-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.news-content-wrapper {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-category-title {
        font-size: 2.5rem;
    }
    
    .news-category-description {
        font-size: 1.1rem;
    }
    
    .news-page-header {
        padding: 60px 0 40px;
    }
    
    .news-content-wrapper {
        padding: 40px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-card-content {
        padding: 24px;
    }
    
    .news-card-meta {
        gap: 16px;
    }
    
    .news-meta-item {
        font-size: 0.85rem;
    }
    
    .news-card-title a {
        font-size: 1.25rem;
    }
    
    .single-news-title {
        font-size: 2rem;
    }
    
    .single-news-header,
    .single-news-content {
        padding: 24px;
    }
    
    .single-news-meta {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .news-category-title {
        font-size: 2rem;
    }
    
    .news-card-content {
        padding: 20px;
    }
    
    .news-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .news-read-more {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .single-news-header,
    .single-news-content {
        padding: 20px;
    }
}