/**
 * News & Projects Sections Styles
 */

/* ==================== Category Filter Buttons ==================== */
.category-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #6b7280;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.category-filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(200, 160, 85, 0.2);
}

.category-filter-btn.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 20px rgba(200, 160, 85, 0.35);
}

.category-filter-btn .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.category-filter-btn.active .count {
    background: rgba(255, 255, 255, 0.25);
}

/* ==================== News Cards ==================== */
.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary);
}

.news-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.news-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.news-content {
    padding: 24px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.news-title {
    margin-bottom: 12px;
}

.news-title a {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
}

.news-title a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.4s ease;
}

.news-card:hover .news-title a {
    color: var(--color-primary);
}

.news-card:hover .news-title a::after {
    width: 100%;
}

.news-excerpt {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-read-more:hover {
    gap: 12px;
    color: var(--color-accent);
}

.news-read-more svg {
    transition: transform 0.3s ease;
}

.news-read-more:hover svg {
    transform: translateX(4px);
}

/* ==================== Project Cards ==================== */
.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    border-color: var(--color-accent);
}

.project-image {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.project-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
}

.project-card:hover .project-image img {
    transform: scale(1.15);
    filter: brightness(1);
}

.project-status-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1f2937;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.project-status-badge.status-completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.project-status-badge.status-in-progress,
.project-status-badge.status-ongoing {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.project-status-badge.status-upcoming {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.project-content {
    padding: 28px;
}

.project-title {
    margin-bottom: 16px;
}

.project-title a {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
    transition: color 0.3s ease;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.project-card:hover .project-title a {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-excerpt {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    margin: 20px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(56, 191, 192, 0.3);
}

.project-read-more:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(56, 191, 192, 0.5);
    gap: 14px;
    color: white;
}

.project-read-more svg {
    transition: transform 0.3s ease;
}

.project-read-more:hover svg {
    transform: translateX(4px);
}

/* ==================== Pagination ==================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination-wrapper ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper li {
    margin: 0;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #6b7280;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-wrapper a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(200, 160, 85, 0.2);
}

.pagination-wrapper .current {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 16px rgba(200, 160, 85, 0.3);
}

/* ==================== Dark Mode ==================== */
body[data-theme="dark"] .category-filter-btn {
    background: #1f2937;
    border-color: #374151;
    color: #9ca3af;
}

body[data-theme="dark"] .category-filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

body[data-theme="dark"] .category-filter-btn.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
}

body[data-theme="dark"] .news-card,
body[data-theme="dark"] .project-card {
    background: #1f2937;
    border-color: #374151;
}

body[data-theme="dark"] .news-card:hover,
body[data-theme="dark"] .project-card:hover {
    border-color: var(--color-primary);
}

body[data-theme="dark"] .news-title a,
body[data-theme="dark"] .project-title a {
    color: #f9fafb;
}

body[data-theme="dark"] .news-excerpt,
body[data-theme="dark"] .project-excerpt {
    color: #d1d5db;
}

body[data-theme="dark"] .pagination-wrapper a,
body[data-theme="dark"] .pagination-wrapper span {
    background: #1f2937;
    border-color: #374151;
    color: #9ca3af;
}

body[data-theme="dark"] .pagination-wrapper a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ==================== Responsive ==================== */
@media (max-width: 767px) {

    .news-image,
    .project-image {
        height: 200px;
    }

    .news-title a,
    .project-title a {
        font-size: 1.25rem;
    }

    .category-filter-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}