llhd/wwwroot/webnew/css/Berita/Berita.css

81 lines
1.1 KiB
CSS

body {
background: #f5f7fa;
}
.container {
/* width: 90%;*/
margin: auto;
}
.hero {
background: linear-gradient(135deg, #3b82f6, #2563eb);
color: white;
padding: 50px;
border-radius: 16px;
text-align: center;
margin: 30px 0;
}
.filter {
display: flex;
gap: 20px;
margin-bottom: 30px;
}
.filter input {
padding: 12px;
border-radius: 10px;
border: 1px solid #ddd;
flex: 1;
}
.berita-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 25px;
}
.card {
background: white;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
transition: 0.3s;
}
.card:hover {
transform: translateY(-5px);
}
.card img {
width: 100%;
height: 250px;
object-fit: cover;
}
.card-body {
padding: 15px;
}
.date {
font-size: 12px;
color: gray;
}
.card h3 {
font-size: 16px;
margin: 10px 0;
}
.card p {
font-size: 14px;
color: #555;
}
.card a {
color: #2563eb;
font-weight: bold;
text-decoration: none;
}