/* Zavier theme-owned stylesheet; visual tokens are finalized by css/theme.css. */
/* Source: app/Modules/News/Views/index.php */

.news-list-page {
    --news-blue: #1f5fae;
    --news-blue-dark: #16477f;
    --news-blue-soft: #eaf2fb;
    --news-blue-pale: #f5f9fd;
    --news-border: #d8e3ef;
    --news-text: #172b43;
    --news-muted: #64748b;
    min-height: 100vh;
    padding: 104px 20px 76px;
    color: var(--news-text);
    background: #f4f7fa;
}

.news-list-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.news-list-header,
.news-search-panel,
.news-list-panel,
.news-list-empty {
    border: 1px solid var(--news-border);
    background: #fff;
}

.news-list-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 18px 20px;
    border-radius: 10px;
}

.news-list-back,
.news-list-heading-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.news-list-back {
    width: 42px;
    height: 42px;
    color: var(--news-blue-dark);
    border: 1px solid #c8dbef;
    border-radius: 10px;
    background: var(--news-blue-soft);
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.news-list-back:hover,
.news-list-back:focus-visible {
    color: #fff;
    border-color: var(--news-blue);
    background: var(--news-blue);
}

.news-list-heading-icon {
    width: 46px;
    height: 46px;
    color: var(--news-blue);
    border-radius: 10px;
    background: var(--news-blue-soft);
}

.news-list-header svg {
    width: 21px;
    height: 21px;
}

.news-list-heading {
    min-width: 0;
    flex: 1;
}

.news-list-heading h1,
.news-list-heading p,
.news-list-panel-heading h2,
.news-list-panel-heading p,
.news-list-card h3,
.news-list-card p,
.news-search-empty h3,
.news-search-empty p,
.news-list-empty h2,
.news-list-empty p,
.news-pagination-footer p {
    margin: 0;
}

.news-list-heading h1 {
    color: var(--news-text);
    font-size: clamp(1.3rem, 2.3vw, 1.7rem);
    font-weight: 700;
    line-height: 1.25;
}

.news-list-heading p {
    margin-top: 3px;
    color: var(--news-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.news-search-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding: 15px 18px;
    border-radius: 10px;
}

.news-search-field {
    position: relative;
    display: flex;
    width: min(520px, 100%);
    align-items: center;
}

.news-search-field > svg {
    position: absolute;
    left: 13px;
    z-index: 1;
    width: 18px;
    height: 18px;
    color: #71859b;
    pointer-events: none;
}

.news-search-field input {
    width: 100%;
    min-height: 44px;
    padding: 10px 44px 10px 41px;
    color: #31485f;
    border: 1px solid var(--news-border);
    border-radius: 10px;
    outline: 0;
    background: #fbfdff;
    font: inherit;
    font-size: 0.82rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.news-search-field input::placeholder {
    color: #91a0b0;
}

.news-search-field input:focus {
    border-color: #82aad4;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(31, 95, 174, 0.11);
}

.news-search-field button {
    position: absolute;
    right: 7px;
    display: inline-flex;
    width: 31px;
    height: 31px;
    align-items: center;
    justify-content: center;
    color: #60758b;
    border: 0;
    border-radius: 9px;
    background: transparent;
}

.news-search-field button:hover,
.news-search-field button:focus-visible {
    color: var(--news-blue-dark);
    background: var(--news-blue-soft);
}

.news-search-field button svg {
    width: 16px;
    height: 16px;
}

.news-search-summary {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    color: var(--news-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.news-search-summary svg {
    width: 17px;
    height: 17px;
    color: var(--news-blue);
}

.news-list-panel {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(22, 71, 127, 0.04);
}

.news-list-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 20px;
    border-bottom: 1px solid #e6edf5;
}

.news-list-panel-heading h2 {
    color: var(--news-text);
    font-size: 1rem;
    font-weight: 700;
}

.news-list-panel-heading h2:focus {
    outline: 0;
}

.news-list-panel-heading p {
    margin-top: 3px;
    color: var(--news-muted);
    font-size: 0.74rem;
}

.news-list-panel-heading > span {
    display: inline-flex;
    min-width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    color: var(--news-blue-dark);
    border-radius: 10px;
    background: var(--news-blue-soft);
    font-size: 0.8rem;
    font-weight: 700;
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}

.news-list-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--news-border);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.news-list-card:hover {
    border-color: #b8cee5;
    box-shadow: 0 9px 24px rgba(22, 71, 127, 0.09);
    transform: translateY(-2px);
}

.news-list-card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #eaf0f6;
}

.news-list-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.news-list-card:hover .news-list-card-cover img {
    transform: scale(1.025);
}

.news-list-card-cover > span {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    color: var(--news-blue-dark);
    border: 1px solid rgba(200, 219, 239, 0.9);
    border-radius: 8px;
    background: rgba(245, 249, 253, 0.94);
    font-size: 0.65rem;
    font-weight: 750;
}

.news-list-card-body {
    display: flex;
    min-height: 210px;
    flex: 1;
    flex-direction: column;
    padding: 15px;
}

.news-list-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    color: #74869a;
    font-size: 0.67rem;
}

.news-list-card-meta span {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
}

.news-list-card-meta svg {
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    color: var(--news-blue);
}

.news-list-card h3 {
    display: -webkit-box;
    margin-top: 10px;
    overflow: hidden;
    color: #203a53;
    font-size: 0.94rem;
    font-weight: 720;
    line-height: 1.43;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.news-list-card h3 a {
    color: inherit;
    text-decoration: none;
}

.news-list-card h3 a:hover,
.news-list-card h3 a:focus-visible {
    color: var(--news-blue-dark);
}

.news-list-card p {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: var(--news-muted);
    font-size: 0.76rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.news-list-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 13px;
    color: var(--news-blue);
    font-size: 0.73rem;
    font-weight: 700;
    text-decoration: none;
}

.news-list-card-link:hover,
.news-list-card-link:focus-visible {
    color: var(--news-blue-dark);
}

.news-list-card-link svg {
    width: 15px;
    height: 15px;
    transition: transform 0.18s ease;
}

.news-list-card-link:hover svg {
    transform: translateX(2px);
}

.news-list-card[hidden],
.news-search-empty[hidden],
.news-pagination[hidden],
.news-search-field button[hidden] {
    display: none !important;
}

.news-search-empty {
    display: flex;
    min-height: 330px;
    padding: 38px 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.news-search-empty > span,
.news-list-empty > span {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--news-blue);
    border-radius: 10px;
    background: var(--news-blue-soft);
}

.news-search-empty > span svg,
.news-list-empty > span svg {
    width: 29px;
    height: 29px;
}

.news-search-empty h3,
.news-list-empty h2 {
    color: var(--news-text);
    font-size: 1.04rem;
    font-weight: 700;
}

.news-search-empty p,
.news-list-empty p {
    max-width: 430px;
    margin-top: 7px;
    color: var(--news-muted);
    font-size: 0.81rem;
    line-height: 1.55;
}

.news-search-empty button,
.news-list-empty a {
    display: inline-flex;
    min-height: 41px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 17px;
    padding: 8px 14px;
    color: #fff;
    border: 1px solid var(--news-blue);
    border-radius: 10px;
    background: var(--news-blue);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.news-list-empty a svg {
    width: 16px;
    height: 16px;
}

.news-pagination-footer {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 18px;
    border-top: 1px solid #e6edf5;
    background: #fafcfe;
}

.news-pagination-footer p {
    color: var(--news-muted);
    font-size: 0.73rem;
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.news-pagination button {
    min-width: 34px;
    min-height: 34px;
    padding: 5px 9px;
    color: #53677d;
    border: 1px solid var(--news-border);
    border-radius: 9px;
    background: #fff;
    font-size: 0.7rem;
    font-weight: 650;
}

.news-pagination button:hover:not(:disabled),
.news-pagination button:focus-visible:not(:disabled) {
    color: var(--news-blue-dark);
    border-color: #a8c4e1;
    background: var(--news-blue-pale);
}

.news-pagination button.is-current {
    color: #fff;
    border-color: var(--news-blue);
    background: var(--news-blue);
}

.news-pagination button:disabled {
    cursor: default;
    opacity: 0.45;
}

.news-list-empty {
    display: flex;
    min-height: 370px;
    padding: 40px 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-align: center;
}

@media (max-width: 899.98px) {
    .news-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .news-list-page {
        padding: 76px 12px calc(94px + env(safe-area-inset-bottom));
    }

    .news-list-header {
        gap: 10px;
        margin: 0 0 12px;
        padding: 16px;
        border-radius: 10px;
        border: 1px solid #e8eef4;
    }

    .news-list-heading-icon {
        display: none;
    }

    .news-list-heading p {
        font-size: 0.75rem;
    }

    .news-search-panel {
        display: grid;
        gap: 10px;
        padding: 12px;
        border-radius: 10px;
        border: 1px solid #e8eef4;
        margin: 0 0 12px;
    }

    .news-search-field {
        width: 100%;
    }

    .news-search-summary {
        padding: 0 3px;
    }

    .news-list-panel,
    .news-list-empty {
        border-radius: 10px;
        border: 1px solid #e8eef4;
        box-shadow: none;
    }

    .news-list-panel-heading {
        padding: 14px;
    }

    .news-card-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .news-list-card {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        border-radius: 10px;
    }

    .news-list-card:hover {
        box-shadow: none;
        transform: none;
    }

    .news-list-card-cover {
        height: 100%;
        min-height: 152px;
        aspect-ratio: auto;
    }

    .news-list-card-cover > span {
        top: 8px;
        left: 8px;
        padding: 4px 7px;
        font-size: 0.59rem;
    }

    .news-list-card-body {
        min-height: 152px;
        padding: 12px;
    }

    .news-list-card-meta {
        gap: 5px;
    }

    .news-list-card-meta span:last-child {
        display: none;
    }

    .news-list-card h3 {
        margin-top: 8px;
        font-size: 0.83rem;
    }

    .news-list-card p {
        margin-top: 6px;
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .news-list-card-link {
        padding-top: 8px;
        font-size: 0.68rem;
    }

    .news-pagination-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 12px 14px;
    }

    .news-pagination {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }
}

@media (max-width: 379.98px) {
    .news-list-card {
        grid-template-columns: 98px minmax(0, 1fr);
    }

    .news-list-card-cover,
    .news-list-card-body {
        min-height: 145px;
    }

    .news-list-card p {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-list-page *,
    .news-list-page *::before,
    .news-list-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
