﻿/* =========================================================
   NITRA News Widget – Frontend Styles
   ========================================================= */

/* Links */
.nitra-news-widget a {
    text-decoration: none;
    color: #087f5b;
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}
.nitra-news-widget a:hover {
    color: #d00000;
}

/* ── Filter ─────────────────────────────────────────── */
.nitra-filter-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.nitra-filter-dropdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 220px;
    width: 100%;
}

.nitra-filter-dropdown label {
    font-size: 14px;
    font-weight: 600;
}

.nitra-filter-dropdown select {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s;
}

.nitra-filter-dropdown select:focus {
    outline: none;
    border-color: #009879;
    box-shadow: 0 0 0 3px rgba(0, 152, 121, 0.15);
}

/* ── Table ───────────────────────────────────────────── */
.nitra-table-wrapper {
    overflow-x: auto;
}

.nitra-section-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

/* Title row */
.nitra-section-table thead tr:first-child th {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #009879, #007a63);
    color: #fff;
    font-size: 20px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Column-header row */
.nitra-section-table thead tr.nitra-col-headers th {
    text-align: center;
    padding: 12px 16px;
    background: #00816a;
    color: #e8f8f4;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Body cells */
.nitra-section-table td {
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 15px;
}

.nitra-section-table tbody tr:last-child td {
    border-bottom: none;
}

.nitra-section-table td:first-child {
    width: 50%;
    font-weight: 500;
    color: #444;
}

.nitra-section-table td:nth-child(2) {
    text-align: center;
    width: 15%;
}

.nitra-section-table td:last-child {
    text-align: center;
    width: 35%;
}

/* Row hover */
.nitra-section-table tbody tr {
    transition: background-color 0.2s ease-in-out;
}
.nitra-section-table tbody tr:hover {
    background: #f1f8f6;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
    .nitra-filter-container {
        justify-content: center;
    }

    .nitra-section-table thead tr:first-child th {
        font-size: 16px;
    }

    .nitra-section-table td {
        font-size: 14px;
    }
}
