.news-list-view { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; grid-auto-rows: auto; margin-bottom: 1rem; /* Ensure space below the news list */ .news-list-item { grid-column: span 6; max-width: 100%; } @media (min-width: $breakpoint-lg) { .news-list-item { grid-column: span 2; &:first-of-type { grid-column: 1 / span 4; grid-row: span 2; } &:nth-of-type(2) { grid-column: 5 / span 2; grid-row: 1; } &:nth-of-type(3) { grid-column: 5 / span 2; grid-row: 2; } } } .f3-widget-paginator { display: flex; justify-content: center; align-items: center; list-style: none; margin: 2rem 0; padding: 0; grid-column: span 6; li { margin: 0 0.5rem; &.dots span { background: none; color: $primary-color; } &.current a { background: lighten($primary-color, 20%); color: $secondary-color; } a { display: inline-block; width: 2.5rem; height: 2.5rem; line-height: 2.5rem; text-align: center; border-radius: 50%; background: $primary-color; color: $secondary-color; font-weight: bold; text-decoration: none; transition: background 0.3s ease-in-out; &:hover { background: lighten($primary-color, 10%); } } } } } .news-list-item { .readmore { font-weight: 700; } img { width: 100%; height: auto; } a { position: relative; display: flex; flex-direction: column; border-radius: 1rem; border-bottom-right-radius: 0; overflow: hidden; .news-item-content { position: absolute; bottom: 0; left: 0; width: 100%; background: var(--bs-primary); color: #fff; border-top-right-radius: 1rem; padding: 1rem; } h3 { font-family: 'Inter', sans-serif; font-size: 1.25rem; font-weight: 500; margin: 0; } } } .news-list-item-big { a .news-item-content { @media (min-width: $breakpoint-md) { padding: 2.875rem; } } } .header { display: flex; align-items: center; justify-content: space-between; } /* Show header button only on desktop */ .header-btn { display: none; @media (min-width: $breakpoint-lg) { display: inline-block; } } /* Show mobile button only below desktop breakpoint, inline-block and margin-top */ .mobile-btn { display: inline-block; @media (min-width: $breakpoint-lg) { display: none; } }