﻿.news-card {
    border: 1px solid #0070f3;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.card-excerpt {
    font-size: 13px;
}

/* DataTables Controls Styling */
.dataTables_wrapper {
    padding: 0;
}

.dataTables_filter {
    float: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

    .dataTables_filter label {
        font-weight: 600;
        color: white;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
        padding: 1rem 0.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    }

    .dataTables_filter input {
        margin-left: 0.75rem;
        padding: 0.75rem 1.25rem;
        border: 2px solid white;
        border-radius: 8px;
        font-size: 0.875rem;
        width: 350px;
        background: white;
        color: #1f2937;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

        .dataTables_filter input:focus {
            outline: none;
            border-color: white;
            transform: translateY(-1px);
        }

        .dataTables_filter input::placeholder {
            color: #9ca3af;
        }

.dataTables_length {
    margin-bottom: 1rem;
    display: none;
}

    .dataTables_length label {
        font-weight: 500;
        color: #1e40af;
    }

    .dataTables_length select {
        padding: 0.5rem;
        border: 2px solid #dbeafe;
        border-radius: 6px;
        margin: 0 0.5rem;
        color: #1e40af;
    }

        .dataTables_length select:focus {
            outline: none;
            border-color: #3b82f6;
        }

.dataTables_info {
    padding-top: 1.5rem;
    color: #727272;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 500;
}

.dataTables_paginate {
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

    .dataTables_paginate .paginate_button {
        padding: 0.5rem 0.875rem;
        margin: 0 0.25rem;
        border: 1px solid #dbeafe;
        border-radius: 6px;
        background: white;
        color: #1e40af;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .dataTables_paginate .paginate_button:hover {
            background: #dbeafe;
            border-color: #3b82f6;
            color: #1e40af;
        }

        .dataTables_paginate .paginate_button.current {
            background: #1e40af;
            color: white;
            border-color: #3b82f6;
        }

        .dataTables_paginate .paginate_button.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

/* Hide the default table */
#newsTable {
    display: none;
}

/* Filter Tags Styling */
.news-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.filter-btn {
    border-radius: 9999px;
    border: 2px solid #e6e6e6;
    background: white;
    color: #1e40af;
    font-weight: 600;
    font-size: 0.975rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

    .filter-btn:hover {
        background: #1e40af;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
    }

    .filter-btn.active {
        background: #1e40af;
        color: white;
        border-color: white;
    }

/* Card Grid Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Styling */
.news-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e5e7eb;
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

    .news-card:hover {
        box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
        border-color: #1e40af;
    }

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .card-icon svg {
        width: 100%;
        height: 100%;
    }

.card-date {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-excerpt {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.card-badge-wrapper {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.card-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    color: #1e40af;
    border: 1.5px solid #1e40af;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .read-more:hover {
        background: #1e40af;
        color: white;
    }

    .read-more svg {
        width: 16px;
        height: 16px;
    }

.no-results {
    text-align: center;
    padding: 3rem;
    color: #4a4a4a;
    font-size: 1.125rem;
    grid-column: 1 / -1;
}
