/* =======================
   Estilos Exclusivos para index.html
   ======================= */

/* Sección de destacados con background diferenciado (modo claro) */
.destacados-section {
    background: linear-gradient(135deg, #fbfdfb, #f6fbf7);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(31, 68, 47, 0.08);
}

.destacados-section > .container {
    position: relative;
}

/* Línea inferior alineada con el mismo contenedor que los destacados */
.destacados-section > .container::after {
    content: "";
    position: absolute;
    bottom: -1rem;
    left: 0.75rem;
    right: 0.75rem;
    height: 3px;
    background: linear-gradient(to right, #22e58d, rgba(34, 229, 141, 0));
}

/* Modo Oscuro: sobreescribe el fondo de la sección de destacados */
.dark-mode .destacados-section {
    background: linear-gradient(135deg, #111111, #333333);
}

/* Encabezados de sección (modo claro) */
.section-title {
    font-family: var(--bs-font-sans-serif);
    font-weight: 600;
    margin: 0;
    color: #111111;
    font-size: 1.75rem;
}

/* Subtítulo de sección (modo claro) */
.section-subtitle {
    font-family: var(--bs-font-sans-serif);
    font-weight: 400;
    margin: 0;
    color: #111111;
}

/* Encabezados de sección en modo oscuro */
.dark-mode .section-title{
    color: #f0f0f0;
}
.dark-mode .section-subtitle {
    color: #f0f0f0;
}

.category-page {
    margin-top: 0;
    padding-top: 0.75rem;
    margin-bottom: 1.5rem;
}

.category-page-title-row {
    margin-bottom: 1.5rem;
}

.category-page-title {
    margin: 0;
    margin-bottom: 0.35rem;
}

.category-page-title-row .title-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #22e58d, rgba(34, 229, 141, 0));
}

.article-card-title {
    font-size: 1rem;
    line-height: 1.25;
}

.ratio-16x10 {
    --bs-aspect-ratio: 62.5%;
}

.featured-layout {
    align-items: stretch;
}

.featured-layout > .featured-main-column,
.featured-layout > .featured-sidebar-column {
    min-width: 0;
}

.featured-main-column {
    display: flex;
    flex-direction: column;
}

.featured-main-copy-card {
    margin-bottom: 0.35rem;
    padding: 0.72rem 0.85rem 0.68rem;
    border-radius: 0.75rem;
    background: #ffffff;
}

.featured-main-title {
    font-size: 1.50rem;
    line-height: 1.18;
    min-height: 2.32em;
    margin-bottom: 0.35rem;
}

.featured-main-meta {
    flex: 0 0 auto;
}

.featured-main-media {
    overflow: hidden;
    border-radius: 0.55rem;
}

.featured-main-media img {
    transition: transform 0.28s ease;
}

.featured-main-column:hover .featured-main-media img,
.featured-main-column:focus-within .featured-main-media img {
    transform: scale(1.025);
}

.featured-sidebar-column {
    display: flex;
    flex-direction: column;
}

.featured-secondary-card .d-flex {
    min-width: 0;
}

.featured-secondary-card .title-clamp-column {
    -webkit-line-clamp: 3;
}

.featured-secondary-card .news-card-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: center;
    font-size: 0.68rem;
}

.featured-secondary-card .comment-count-link {
    font-size: 0.68rem;
}

.featured-secondary-card .comment-count-link svg {
    width: 0.8rem;
    height: 0.8rem;
}

.library-image-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 350px;
    padding: 0.75rem;
    border: 1px solid #d7dee8;
    border-radius: 0.5rem;
    background: #f8fafc;
    color: #52616f;
}

.library-image-preview span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
}

.library-image-preview img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0.35rem;
    background: #e7edf3;
}

.library-image-preview.is-empty img {
    display: none;
}

.image-tag-filter-list,
.image-tag-list,
.article-tag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.article-tag-suggestions {
    max-height: 8.5rem;
    overflow-y: auto;
    padding: 0.35rem 0;
}

.ev-sales-section {
    scroll-margin-top: 5.5rem;
}

.ev-sales-card {
    overflow: hidden;
    border: 1px solid rgba(15, 159, 98, 0.14);
    border-radius: 0.8rem;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(24, 45, 35, 0.07);
}

.ev-sales-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.75rem;
    border-bottom: 1px solid rgba(15, 159, 98, 0.12);
    background: linear-gradient(135deg, #f7fbf9 0%, #ffffff 68%);
    color: #12241b;
}

.ev-sales-card__header h2 {
    margin: 0 0 0.25rem;
    color: #12241b;
    font-size: 1.45rem;
    font-weight: 800;
}

.ev-sales-card__header p {
    margin: 0;
    color: #5c6f65;
    font-size: 1.05rem;
}

.ev-sales-card__total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.ev-sales-card__total strong {
    font-size: 1.9rem;
    font-weight: 850;
}

.ev-sales-card__total span {
    color: #5c6f65;
    font-size: 0.9rem;
}

.ev-sales-card__nav {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.75rem 0;
}

.ev-sales-card__nav a {
    color: #07864d;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.ev-sales-card__nav a:hover,
.ev-sales-card__nav a:focus-visible {
    text-decoration: underline;
}

.ev-sales-card__body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.ev-sales-card__eyebrow {
    margin: 0 0 1rem;
    color: #667085;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ev-sales-list {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ev-sales-item__link {
    position: relative;
    display: grid;
    grid-template-columns: 154px minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    min-height: 96px;
    color: inherit;
    text-decoration: none;
}

.ev-sales-item__link:hover .ev-sales-item__image,
.ev-sales-item__link:focus-visible .ev-sales-item__image {
    transform: scale(1.025);
}

.ev-sales-item__image {
    width: 154px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 6px;
    background: #e6edf5;
    transition: transform 0.2s ease;
}

.ev-sales-item__rank {
    position: absolute;
    left: 0.65rem;
    top: 0.55rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: rgba(22, 29, 38, 0.88);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
}

.ev-sales-item__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ev-sales-item__copy strong {
    color: #08111f;
    font-size: 1.18rem;
    line-height: 1.2;
}

.ev-sales-item__copy span {
    color: #52627a;
    font-size: 0.98rem;
    line-height: 1.25;
}

.ev-sales-item__copy em {
    color: #667085;
    font-size: 0.92rem;
    line-height: 1.25;
}

.ev-sales-item__stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 4.8rem;
    line-height: 1.2;
}

.ev-sales-item__stats strong {
    color: #06a642;
    font-size: 1.28rem;
    font-weight: 850;
}

.ev-sales-item__stats span {
    color: #344767;
    font-size: 1.05rem;
}

.ev-sales-side-column {
    display: flex;
}

.ev-sales-side-placeholder {
    width: 100%;
    min-height: 100%;
}

.dark-mode .ev-sales-card {
    border-color: rgba(69, 243, 155, 0.18);
    background: #111816;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.dark-mode .ev-sales-card__header {
    border-bottom-color: rgba(69, 243, 155, 0.16);
    background: linear-gradient(135deg, #17221d 0%, #111816 70%);
    color: #f0f0f0;
}

.dark-mode .ev-sales-card__header h2 {
    color: #f0f0f0;
}

.dark-mode .ev-sales-card__header p,
.dark-mode .ev-sales-card__total span,
.dark-mode .ev-sales-card__eyebrow,
.dark-mode .ev-sales-item__copy em {
    color: #aab8b1;
}

.dark-mode .ev-sales-card__nav a {
    color: #8ee8b9;
}

.dark-mode .ev-sales-item__image {
    background: #242424;
}

.dark-mode .ev-sales-item__copy strong {
    color: #f0f0f0;
}

.dark-mode .ev-sales-item__copy span {
    color: #c9d2dc;
}

.dark-mode .ev-sales-item__stats strong {
    color: #8ee8b9;
}

.dark-mode .ev-sales-item__stats span {
    color: #aab8b1;
}

/* Efectos hover para indicar interactividad en títulos e imágenes */
.clickable-title,
.clickable-img {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.clickable-title:hover,
.clickable-img:hover {
    transform: scale(1.03);
}

/* =======================
   Línea moderna junto a "Featured"
   ======================= */
.featured-title-row {
    display: flex;
    align-items: center;
}

.featured-title-row .section-title {
    margin: 0;
    margin-right: 1rem; /* espacio a la derecha del texto */
    color: #111111;
}

.featured-title-row .title-line {
    flex-grow: 1;
    height: 3px;
    /* Degradado horizontal (ajusta colores a tu gusto) */
    background: linear-gradient(to right, #22e58d, rgba(34, 229, 141, 0));
}

/* Modo oscuro para la línea superior (si lo deseas en el mismo color) */
.dark-mode .featured-title-row .title-line {
    background: linear-gradient(to right,  #45f39b, #234ced);
}

.featured-main-media .overlay-container {
    top: 0;
    bottom: auto;
    padding: 0.65rem 0.65rem 1.35rem;
    background: linear-gradient(180deg, rgba(4, 9, 8, 0.82) 0%, rgba(4, 9, 8, 0.58) 58%, rgba(4, 9, 8, 0) 100%);
}

.featured-main-media .overlay-text {
    display: block;
    max-width: 100%;
    padding: 0.45rem 0.75rem;
    border-radius: 0.45rem;
    background: rgba(6, 12, 10, 0.58);
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.45;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
}

.featured-main-media .overlay-text p {
    margin-bottom: 0;
}

.featured-main-media .overlay-text > div {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overlay-container,
.overlay-container * {
    pointer-events: none; /* El overlay y sus hijos no capturan clics */
}

.card-body-custom {
    padding: 1rem 1.25rem 0.5rem 1.25rem; /* Top: 1rem, Right/Left: 1.25rem, Bottom: 0.5rem */
}

.last-title-row {
    display: flex;
    align-items: center;
}
.last-title-row .section-title {
    margin: 0;
    margin-right: 1rem; /* espacio a la derecha del texto */
    color: #111111;
}

.last-title-row .title-line {
    flex-grow: 1;
    height: 3px;
    background: linear-gradient(to right, #22e58d, rgba(34, 229, 141, 0));
}

.dark-mode .featured-title-row .section-title,
.dark-mode .last-title-row .section-title {
    color: #f0f0f0;
}

.buying-guide-section {
    margin-top: 1.25rem;
}

.buying-guide-subtitle {
    margin: -0.35rem 0 1rem;
    color: #5c6f65;
    font-size: 0.98rem;
    line-height: 1.45;
}

.buying-guide-list {
    border-top: 1px solid #dbe3de;
}

.buying-guide-item {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #dbe3de;
}

.buying-guide-item__image {
    display: block;
    overflow: hidden;
    border-radius: 0.55rem;
    background: #f5f7f6;
}

.buying-guide-item__image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.buying-guide-item:hover .buying-guide-item__image img,
.buying-guide-item:focus-within .buying-guide-item__image img {
    transform: scale(1.025);
}

.buying-guide-item__content {
    min-width: 0;
}

.buying-guide-item__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    line-height: 1.15;
}

.buying-guide-item__type {
    display: inline-flex;
    align-items: center;
    color: #49675a;
    font-weight: 700;
}

.buying-guide-item__type::before {
    width: 0.35rem;
    height: 0.35rem;
    margin-right: 0.35rem;
    border-radius: 999px;
    background: #6f8f7c;
    content: "";
}

.buying-guide-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    line-height: 1.28;
}

.buying-guide-item h3 a {
    color: #111;
    font-weight: 700;
    text-decoration: none;
}

.buying-guide-item h3 a:hover,
.buying-guide-item h3 a:focus-visible {
    color: #146331;
}

.buying-guide-item__summary-link {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #4f5f56;
    font-size: 0.94rem;
    line-height: 1.45;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.buying-guide-item__summary-link:hover,
.buying-guide-item__summary-link:focus-visible {
    color: #146331;
}

.buying-guide-ad-column {
    display: flex;
    flex-direction: column;
}

.buying-guide-ad-placeholder {
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(20, 99, 49, 0.28);
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #f7fbf9, #ffffff);
    color: #6b7a72;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.buying-guide-ad-column .ad-slot {
    margin: 0;
}

.buying-guide-more {
    display: flex;
    justify-content: flex-start;
    margin-top: 1rem;
}

.dark-mode .buying-guide-list,
.dark-mode .buying-guide-item {
    border-color: #333940;
}

.dark-mode .buying-guide-subtitle {
    color: #aeb8c2;
}

.dark-mode .buying-guide-item__image {
    background: #242424;
}

.dark-mode .buying-guide-item h3 a {
    color: #f0f0f0;
}

.dark-mode .buying-guide-item h3 a:hover,
.dark-mode .buying-guide-item h3 a:focus-visible {
    color: #66d19e;
}

.dark-mode .buying-guide-item__summary-link {
    color: #c9d2dc;
}

.dark-mode .buying-guide-item__summary-link:hover,
.dark-mode .buying-guide-item__summary-link:focus-visible {
    color: #66d19e;
}

.dark-mode .buying-guide-item__type {
    color: #aeb8c2;
}

.dark-mode .buying-guide-item__type::before {
    background: #5f7188;
}

.dark-mode .buying-guide-ad-placeholder {
    border-color: #333940;
    background: #181818;
    color: #aeb8c2;
}

.latest-more-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(15, 159, 98, 0.14);
    border-radius: 0.8rem;
    background: linear-gradient(135deg, #f7fbf9 0%, #ffffff 68%);
    box-shadow: 0 10px 26px rgba(24, 45, 35, 0.07);
}

.latest-more-copy h3 {
    margin: 0 0 0.15rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #12241b;
}

.latest-more-copy p {
    margin: 0;
    font-size: 0.94rem;
    color: #5c6f65;
}

.latest-more-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.latest-more-button,
.category-pagination .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(15, 159, 98, 0.35);
    border-radius: 999px;
    background-color: #f7fbf8;
    color: #0f7f4f;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.latest-more-button {
    min-height: 2.35rem;
    padding: 0.48rem 0.9rem;
}

.latest-more-button:hover,
.latest-more-button:focus,
.category-pagination .btn-secondary:not(.disabled):hover,
.category-pagination .btn-secondary:not(.disabled):focus {
    background-color: #0f9f62;
    border-color: #0f9f62;
    color: #ffffff;
    box-shadow: 0 0.35rem 0.9rem rgba(15, 159, 98, 0.18);
    transform: translateY(-1px);
}

.category-pagination .btn-secondary.disabled {
    pointer-events: none;
    background-color: #eef2ef;
    border-color: #dde5e0;
    color: #8a978f;
    opacity: 1;
}

.category-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.category-pagination-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.65rem;
    min-width: 9.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(23, 64, 46, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #5c6f65;
    box-shadow: 0 0.3rem 0.85rem rgba(24, 45, 35, 0.07);
    white-space: nowrap;
}

.category-pagination-label,
.category-pagination-separator {
    font-weight: 600;
}

.category-pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    min-height: 1.55rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background-color: #e3f6ec;
    color: #0c7549;
    font-size: 0.95rem;
    line-height: 1;
}

.dark-mode .latest-more-panel {
    border-color: rgba(69, 243, 155, 0.18);
    background: linear-gradient(135deg, #17221d 0%, #111816 70%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.dark-mode .latest-more-copy h3 {
    color: #f0f0f0;
}

.dark-mode .latest-more-copy p,
.dark-mode .category-pagination-info {
    color: #aab8b1;
}

.dark-mode .category-pagination-info {
    border-color: rgba(255, 255, 255, 0.12);
    background: #151d1a;
    box-shadow: 0 0.3rem 0.85rem rgba(0, 0, 0, 0.22);
}

.dark-mode .category-pagination-number {
    background-color: rgba(69, 243, 155, 0.16);
    color: #a7f2c9;
}

.dark-mode .latest-more-button,
.dark-mode .category-pagination .btn-secondary {
    background-color: #1b2420;
    border-color: rgba(69, 243, 155, 0.32);
    color: #8ee8b9;
}

.dark-mode .latest-more-button:hover,
.dark-mode .latest-more-button:focus,
.dark-mode .category-pagination .btn-secondary:not(.disabled):hover,
.dark-mode .category-pagination .btn-secondary:not(.disabled):focus {
    background-color: #0f9f62;
    border-color: #0f9f62;
    color: #ffffff;
}

.dark-mode .category-pagination .btn-secondary.disabled {
    background-color: #1d1f1e;
    border-color: #323a36;
    color: #6f7a74;
}

#latest-news-container .row {
    row-gap: 0.25rem;
}

#latest-news-container .card {
    overflow: hidden;
    border: 1px solid rgba(30, 64, 50, 0.08);
    border-radius: 0.85rem;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(24, 45, 35, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#latest-news-container .card:hover,
#latest-news-container .card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(24, 197, 118, 0.26);
    box-shadow: 0 18px 40px rgba(24, 45, 35, 0.12);
}

#latest-news-container .card .ratio {
    background: #edf5f1;
}

#latest-news-container .card-img-top {
    border-radius: 0;
    transition: transform 0.28s ease;
}

#latest-news-container .card:hover .card-img-top {
    transform: scale(1.025);
}

#latest-news-container .card-body-custom {
    display: flex;
    flex-direction: column;
    padding: 1.05rem 1.1rem 1rem;
}

#latest-news-container .article-card-title {
    margin-bottom: 0.85rem;
    color: #111111;
    font-size: 1.03rem;
    line-height: 1.32;
    letter-spacing: 0;
}

#latest-news-container .news-card-meta {
    margin-top: auto;
    padding-top: 0.72rem;
    border-top: 1px solid rgba(30, 64, 50, 0.08);
}

.dark-mode #latest-news-container .article-card-title,
.dark-mode .featured-main-title,
.dark-mode .featured-secondary-card .article-card-title {
    color: #f0f0f0;
}

.dark-mode .featured-main-copy-card {
    background: #181818;
}

.dark-mode #latest-news-container .card {
    border-color: rgba(255, 255, 255, 0.08);
    background: #181818;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.dark-mode #latest-news-container .card:hover,
.dark-mode #latest-news-container .card:focus-within {
    border-color: rgba(85, 227, 159, 0.32);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.dark-mode #latest-news-container .card .ratio {
    background: #242424;
}

.dark-mode #latest-news-container .card-body,
.dark-mode #latest-news-container .card-body-custom {
    background: #181818;
    color: #f0f0f0;
}

.dark-mode #latest-news-container .news-card-meta {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: #c9d2dc !important;
}

#category-articles-container .card {
    overflow: hidden;
}

#category-articles-container .card-body-custom {
    display: flex;
    flex-direction: column;
}

#category-articles-container .card-title {
    margin-bottom: 0.85rem;
}

#category-articles-container .news-card-meta {
    margin-top: auto;
    padding-top: 0.72rem;
    border-top: 1px solid rgba(30, 64, 50, 0.08);
}

.dark-mode #category-articles-container .card {
    border-color: rgba(255, 255, 255, 0.08);
    background: #181818;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.dark-mode #category-articles-container .card .ratio {
    background: #242424;
}

.dark-mode #category-articles-container .card-body,
.dark-mode #category-articles-container .card-body-custom {
    background: #181818;
    color: #f0f0f0;
}

.dark-mode #category-articles-container .clickable-title {
    color: #f0f0f0;
}

.dark-mode #category-articles-container .news-card-meta {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: #c9d2dc !important;
}

@media (min-width: 992px) {
    .featured-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
        column-gap: 3rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .featured-layout > .featured-main-column,
    .featured-layout > .featured-sidebar-column {
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .featured-layout > .featured-main-column {
        grid-column: 1;
        grid-row: 1;
    }

    .featured-layout > .featured-sidebar-column {
        grid-column: 2;
        grid-row: 1;
    }

    .featured-layout > :not(.featured-main-column):not(.featured-sidebar-column) {
        grid-column: 1 / -1;
    }

    .featured-main-column {
        margin-bottom: 0 !important;
    }

    .featured-sidebar-column {
        margin-bottom: 0 !important;
    }

    .featured-sidebar-column .featured-title-row {
        flex: 0 0 auto;
        margin-bottom: 0 !important;
    }

    .featured-sidebar-column > .row {
        flex: 0 0 auto;
        padding-top: 0 !important;
    }

    .featured-sidebar-column > .row:not(:first-of-type) {
        margin-top: auto;
    }

    .featured-sidebar-column > .row:first-of-type {
        margin-top: 1.1rem;
    }

    .featured-main-media {
        margin-bottom: 0 !important;
        --bs-aspect-ratio: 62.5%;
    }

    .featured-main-media > .overlay-container {
        bottom: auto;
        height: auto;
    }
}

@media (max-width: 991.98px) {
    .featured-main-title {
        font-size: 1.45rem;
        min-height: 0;
    }

    .latest-more-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .latest-more-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .buying-guide-ad-placeholder {
        min-height: 14rem;
    }
}

@media (max-width: 575.98px) {
    .latest-more-button,
    .category-pagination .btn-secondary {
        width: 100%;
    }

    .category-pagination {
        display: grid;
        gap: 0.65rem;
    }

    .category-pagination-info {
        width: 100%;
        min-width: 0;
    }

    .category-pagination .btn-secondary {
        margin: 0 !important;
    }

    .buying-guide-item {
        grid-template-columns: 104px 1fr;
        gap: 0.85rem;
    }

    .ev-sales-card__header,
    .ev-sales-card__body,
    .ev-sales-card__nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ev-sales-card__header {
        align-items: flex-start;
    }

    .ev-sales-card__total strong {
        font-size: 1.45rem;
    }

    .ev-sales-card__total span {
        font-size: 0.78rem;
    }

    .ev-sales-item__link {
        grid-template-columns: 112px minmax(0, 1fr) auto;
        gap: 0.8rem;
        min-height: 76px;
    }

    .ev-sales-item__image {
        width: 112px;
    }

    .ev-sales-item__rank {
        width: 1.9rem;
        height: 1.9rem;
        font-size: 0.95rem;
    }

    .ev-sales-item__copy strong {
        font-size: 1rem;
    }

    .ev-sales-item__copy span,
    .ev-sales-item__stats span {
        font-size: 0.92rem;
    }

    .ev-sales-item__copy em {
        display: none;
    }

    .ev-sales-item__stats {
        min-width: 3.8rem;
    }

    .ev-sales-item__stats strong {
        font-size: 1.05rem;
    }

    .featured-main-media .overlay-container {
        max-height: 42%;
        padding: 0.45rem 0.45rem 1rem;
        overflow: hidden;
    }

    .featured-main-media .overlay-text {
        max-height: 3.1rem;
        padding: 0.35rem 0.55rem;
        border-radius: 0.38rem;
        font-size: 0.82rem;
        line-height: 1.28;
    }

    .featured-main-media .overlay-text > div {
        -webkit-line-clamp: 2;
    }

    .featured-main-media .overlay-text img,
    .featured-main-media .overlay-text figure,
    .featured-main-media .overlay-text iframe,
    .featured-main-media .overlay-text ul,
    .featured-main-media .overlay-text ol,
    .featured-main-media .overlay-text blockquote {
        display: none !important;
    }
}


