/* ==========================================================================
   Top Category Tab Navigation Bar
   ========================================================================== */

.hitn-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #f0f0f1;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 20px;
}

/* Tab Buttons */
.hitn-tab-btn {
    display: inline-block;
    background: #ffffff;
    color: #2c3338;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 4px;
    border: 1px solid #dcdcde;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
}

.hitn-tab-btn:hover {
    background: #007cba;
    color: #ffffff;
    border-color: #007cba;
}

/* Active Tab Styling */
.hitn-tab-btn.active {
    background: #007cba;
    color: #ffffff;
    border-color: #007cba;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Base Layout & Multi-Column Styles
   ========================================================================== */

.hitn-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Date Range Filter Form */
.hitn-filter-form {
    background: #fff;
    padding: 15px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 25px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.hitn-filter-form label {
    align-self: center;
}

.hitn-date-field span {
    font-size: 12px;
    color: #555;
    display: block;
    margin-bottom: 3px;
}

.hitn-date-field input[type="date"] {
    padding: 4px 8px;
}

/* Arrow Navigation Buttons */
.hitn-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    color: #2271b1;
    transition: all 0.15s ease;
}

.hitn-arrow-btn:hover {
    background: #2271b1;
    color: #ffffff;
    border-color: #2271b1;
}

.hitn-form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hitn-reset-btn {
    text-decoration: none;
    line-height: 28px;
}

.hitn-back-link {
    margin-bottom: 20px;
}

/* Newspaper Multi-Column Layout (3 Columns Desktop -> 1 Column Mobile) */
.hitn-newspaper-columns {
    column-count: 3;
    column-gap: 25px;
}

/* Individual Category Section Column */
.hitn-category-column {
    background: #f8f9fa;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 25px;
    break-inside: avoid;
    page-break-inside: avoid;
    box-sizing: border-box;
}

.hitn-column-title {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
    font-size: 16px;
    color: #1d2327;
}

.hitn-column-title a {
    text-decoration: none;
    color: #1d2327;
}

.hitn-column-title a:hover {
    color: #007cba;
}

.hitn-count {
    font-size: 12px;
    font-weight: normal;
    color: #646970;
}

/* Article Cards Container inside Columns */
.hitn-article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Article Card */
.hitn-article-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.hitn-article-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.hitn-article-title a {
    text-decoration: none;
    color: #2271b1;
}

.hitn-article-title a:hover {
    text-decoration: underline;
}

.hitn-article-source {
    font-size: 11px;
    margin-bottom: 4px;
}

.hitn-article-source a {
    color: #50575e;
    text-decoration: underline;
}

.hitn-article-date {
    font-size: 10px;
    color: #8c8f94;
}

.hitn-no-articles {
    column-span: all;
    font-size: 14px;
    color: #646970;
    font-style: italic;
}

/* E-News Pool Table styling */
.hitn-enews-pool-wrapper {
    overflow-x: auto;
}

.hitn-enews-table {
    width: 100%;
    border-collapse: collapse;
}

.hitn-enews-table th {
    border-bottom: 2px solid #ccc;
    text-align: left;
    padding: 8px;
}

.hitn-enews-table td {
    border-bottom: 1px solid #eee;
    padding: 8px;
}

/* ==========================================================================
   Mobile Responsiveness (768px and below)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* Hide top category tabs completely on mobile */
    .hitn-category-tabs {
        display: none !important;
    }

    /* Single column layout for articles on mobile */
    .hitn-newspaper-columns {
        column-count: 1;
    }

    .hitn-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .hitn-arrow-btn {
        text-align: center;
    }
}