/* AutomotiveZones - dedicated styles for the news index only.
   All selectors are scoped to .az-news-index to avoid changing other pages. */

.az-news-index {
    padding-top: 14px;
    padding-bottom: 42px;
    color: #17212b;
}

.az-news-index__breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    color: #75808a;
    font-size: 12px;
}

.az-news-index__breadcrumb a {
    color: #58636d;
    text-decoration: none;
}

.az-news-index__breadcrumb a:hover {
    color: #ed6900;
}

.az-news-index__breadcrumb [aria-current="page"] {
    color: #18212a;
    font-weight: 750;
}

.az-news-index__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 14px;
}

.az-news-index__heading-copy {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.az-news-index__heading-mark {
    display: block;
    flex: 0 0 30px;
    width: 30px;
    height: 34px;
    margin-top: 2px;
    background: linear-gradient(115deg, #f36b08 0 42%, #ff9a43 42% 66%, #e95000 66%);
    transform: skew(-27deg);
}

.az-news-index__heading h1 {
    margin: 0 0 3px;
    color: #101820;
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.az-news-index__heading p {
    margin: 0;
    color: #525d66;
    font-size: 12px;
    line-height: 1.45;
}

.az-news-index__stats {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 58px;
    border: 1px solid #d9dee3;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(20, 29, 38, .04);
}

.az-news-index__stat {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 145px;
    padding: 8px 15px;
}

.az-news-index__stat + .az-news-index__stat {
    border-left: 1px solid #e1e4e7;
}

.az-news-index__stat-icon {
    color: #f36b08;
    font-size: 23px;
    font-weight: 800;
}

.az-news-index__stat small,
.az-news-index__stat strong {
    display: block;
}

.az-news-index__stat small {
    margin-bottom: 1px;
    color: #6a747d;
    font-size: 10px;
}

.az-news-index__stat strong {
    color: #17212b;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
}

.az-news-index__stat:first-child strong {
    font-size: 20px;
}

.az-news-index__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(285px, 330px);
    align-items: start;
    gap: 14px;
}

.az-news-index__main,
.az-news-index__sidebar {
    min-width: 0;
}

.az-news-index__filters {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, .85fr) auto;
    gap: 9px;
    margin: 0 0 12px;
    padding: 8px;
    border: 1px solid #dce1e5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(20, 29, 38, .05);
}

.az-news-index__select {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    height: 38px;
    border: 1px solid #d2d8de;
    border-radius: 7px;
    background: #fff;
}

.az-news-index__select-icon {
    flex: 0 0 auto;
    padding-left: 11px;
    color: #313a43;
    font-size: 15px;
    font-weight: 800;
}

.az-news-index__select select {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 10px 0 8px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #202a33;
    font: inherit;
    font-size: 12px;
}

.az-news-index__filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 112px;
    height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(110deg, #f87909, #e95000);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.az-news-index__filter-button:hover {
    filter: brightness(.96);
}

.az-news-index__list {
    overflow: hidden;
    padding: 0 11px;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(20, 29, 38, .045);
}

.az-news-index__story {
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 94px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e6e9;
}

.az-news-index__story:last-child {
    border-bottom: 0;
}

.az-news-index__story-image {
    display: block;
    width: 100%;
    height: 78px;
    overflow: hidden;
    border-radius: 7px;
    background: #edf0f2;
}

.az-news-index__story-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.az-news-index__story-image:hover img {
    transform: scale(1.035);
}

.az-news-index__story-copy {
    min-width: 0;
}

.az-news-index__category {
    display: inline-block;
    margin: 0 0 2px;
    color: #ed6500;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

.az-news-index__story h2 {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.22;
    letter-spacing: -.012em;
}

.az-news-index__story h2 a {
    color: #151d25;
    text-decoration: none;
}

.az-news-index__story h2 a:hover {
    color: #e65d00;
}

.az-news-index__story-copy > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 4px;
    color: #515b64;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.az-news-index__story-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64707a;
    font-size: 11px;
    line-height: 1.2;
}

.az-news-index__story-date > span:first-child {
    color: #414a52;
    font-size: 13px;
}

.az-news-index__empty {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 35px 15px;
    color: #5d6871;
    text-align: center;
}

.az-news-index__empty strong {
    color: #1b252d;
    font-size: 16px;
}

.az-news-index__pagination {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.az-news-index__pagination nav {
    display: flex;
    justify-content: center;
}

.az-news-index__pagination nav > div:first-child {
    display: none;
}

.az-news-index__pagination nav > div:last-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.az-news-index__pagination a,
.az-news-index__pagination span[aria-current="page"] span,
.az-news-index__pagination span[aria-disabled="true"] span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d8dde2;
    border-radius: 6px;
    background: #fff;
    color: #25303a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.az-news-index__pagination span[aria-current="page"] span {
    border-color: #f36b08;
    background: #f36b08;
    color: #fff;
}

.az-news-index__pagination a:hover {
    border-color: #f36b08;
    color: #e65d00;
}

.az-news-index__sidebar {
    display: grid;
    gap: 12px;
}

.az-news-index__side-panel {
    overflow: hidden;
    border: 1px solid #dce1e5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(20, 29, 38, .05);
}

.az-news-index__side-heading {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 37px;
    padding: 7px 13px;
    border-bottom: 2px solid #f36b08;
    background: linear-gradient(110deg, #f36b08 0 18px, #17202a 18px 100%);
    color: #fff;
}

.az-news-index__side-heading > span {
    color: #ff8525;
    font-size: 18px;
    line-height: 1;
}

.az-news-index__side-heading h2 {
    margin: 0 0 0 2px;
    color: #fff;
    font-size: 16px;
    font-style: italic;
    font-weight: 850;
    line-height: 1.2;
}

.az-news-index__popular-list {
    padding: 5px 10px 7px;
}

.az-news-index__popular-item {
    display: grid;
    grid-template-columns: 27px 78px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 5px 0;
    border-bottom: 1px solid #edf0f2;
    color: inherit;
    text-decoration: none;
}

.az-news-index__popular-item:last-child {
    border-bottom: 0;
}

.az-news-index__popular-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #f36b08;
    color: #fff;
    font-size: 13px;
    font-weight: 850;
}

.az-news-index__popular-item img {
    display: block;
    width: 78px;
    height: 40px;
    border-radius: 5px;
    background: #edf0f2;
    object-fit: cover;
}

.az-news-index__popular-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: #202932;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.az-news-index__popular-item:hover strong {
    color: #e65d00;
}

.az-news-index__tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 9px 10px 5px;
}

.az-news-index__tool {
    display: flex;
    min-width: 0;
    min-height: 68px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 4px;
    border: 1px solid #e0e4e8;
    border-radius: 7px;
    background: linear-gradient(#fff, #f4f5f6);
    color: #222c35;
    text-align: center;
    text-decoration: none;
}

.az-news-index__tool > span {
    color: #f36b08;
    font-size: 23px;
    font-weight: 850;
    line-height: 1;
}

.az-news-index__tool strong {
    max-width: 100%;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.az-news-index__tool:hover {
    border-color: #f5a064;
    background: #fff8f2;
}

.az-news-index__all-tools {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 10px;
    color: #e65d00;
    font-size: 12px;
    font-weight: 850;
    text-decoration: underline;
}

.az-news-index__reviews {
    padding: 5px 10px 8px;
}

.az-news-index__review {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 6px 0;
    border-bottom: 1px solid #edf0f2;
    color: #202932;
    text-decoration: none;
}

.az-news-index__review:last-child {
    border-bottom: 0;
}

.az-news-index__review img {
    display: block;
    width: 90px;
    height: 55px;
    border-radius: 5px;
    background: #edf0f2;
    object-fit: cover;
}

.az-news-index__review strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.az-news-index__review:hover strong {
    color: #e65d00;
}

.az-news-index__side-empty {
    margin: 0;
    padding: 15px;
    color: #74808a;
    font-size: 12px;
}

@media (max-width: 1120px) {
    .az-news-index__layout {
        grid-template-columns: minmax(0, 1fr) 285px;
    }

    .az-news-index__story {
        grid-template-columns: 185px minmax(0, 1fr);
    }

    .az-news-index__story h2 {
        font-size: 14px;
    }

    .az-news-index__stat {
        min-width: 125px;
        padding-inline: 10px;
    }
}

@media (max-width: 900px) {
    .az-news-index__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .az-news-index__stats {
        width: 100%;
    }

    .az-news-index__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .az-news-index__sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .az-news-index__sidebar > .az-news-index__side-panel:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .az-news-index {
        padding-top: 10px;
    }

    .az-news-index__heading h1 {
        font-size: 24px;
    }

    .az-news-index__heading p {
        font-size: 11px;
    }

    .az-news-index__stats {
        min-height: 54px;
    }

    .az-news-index__stat {
        min-width: 0;
        flex: 1;
        gap: 7px;
        padding: 7px 9px;
    }

    .az-news-index__stat strong {
        font-size: 11px;
    }

    .az-news-index__stat:first-child strong {
        font-size: 17px;
    }

    .az-news-index__stat--updated {
        flex: 1.45;
    }

    .az-news-index__filters {
        grid-template-columns: 1fr 1fr;
    }

    .az-news-index__filter-button {
        width: 100%;
    }

    .az-news-index__story {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 9px;
        min-height: 82px;
        padding: 8px 0;
    }

    .az-news-index__story-image {
        height: 72px;
    }

    .az-news-index__story h2 {
        display: -webkit-box;
        overflow: hidden;
        font-size: 12.5px;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .az-news-index__story-copy > p {
        display: none;
    }

    .az-news-index__category {
        font-size: 10px;
    }

    .az-news-index__story-date {
        font-size: 10px;
    }

    .az-news-index__sidebar {
        grid-template-columns: 1fr;
    }

    .az-news-index__sidebar > .az-news-index__side-panel:last-child {
        grid-column: auto;
    }
}
