.random-articles-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
margin: 2rem 0;
}
.grid-article {
position: relative;
border-radius: 8px;
overflow: hidden;
transition: transform 0.3s ease;
background-color: #fff;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.grid-article:hover {
transform: translateY(-5px);
}
.article-image {
aspect-ratio: 16/9;
overflow: hidden;
}
.article-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.article-image:hover img {
transform: scale(1.05);
}
.article-title {
margin: 0.75rem;
font-size: 1.1rem;
line-height: 1.4;
color: #8B0000; font-weight: bold;
}
.article-title a {
color: inherit;
text-decoration: none;
display: block;
} .random-articles-grid-wrapper {
padding: 2rem 0;
} .adsense-box {
margin: 2.5rem 0;
text-align: center;
}
.adsense-top {
margin-top: 1.5rem;
}
.adsense-middle {
margin: 3rem 0;
} @media (max-width: 1024px) {
.random-articles-grid {
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
}
}
@media (max-width: 768px) {
.random-articles-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
}