/* Blog CSS */
*{
margin: 0;
padding: 0;
box-sizing: border-box;
body {
font-family: 'Roboto', sans-serif;
color: #333;
line-height: 1.6;
.hero {
background: url('https://via.placeholder.com/1920x600') no-repeat center center/cover;
height: 100vh;
position: relative;
color: white;
.hero .overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
position: absolute;
width: 100%;
top: 0;
z-index: 10;
.navbar .logo {
font-size: 1.5rem;
font-family: 'Playfair Display', serif;
.navbar ul {
list-style: none;
display: flex;
gap: 1rem;
}
.navbar ul li a {
color: white;
text-decoration: none;
.hero-content {
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
.hero-content h1 {
font-family: 'Playfair Display', serif;
font-size: 3rem;
margin-bottom: 1rem;
.hero-content p {
font-size: 1.2rem;
margin-bottom: 1.5rem;
}
.btn-primary {
padding: 0.7rem 1.5rem;
background: #ff6f61;
color: white;
text-decoration: none;
border-radius: 5px;
.articles {
padding: 2rem;
.articles h2 {
text-align: center;
font-size: 2.5rem;
margin-bottom: 2rem;
.article-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
.card {
border: 1px solid #ddd;
border-radius: 5px;
overflow: hidden;
.card img {
width: 100%;
.card h3 {
padding: 0.5rem;
.card p {
padding: 0 0.5rem 1rem;
.btn-secondary {
display: inline-block;
margin: 1rem;
padding: 0.5rem 1rem;
background: #0073e6;
color: white;
text-decoration: none;
border-radius: 5px;
}
footer {
text-align: center;
padding: 1rem;
background: #333;
color: white;