blogsite_latest.css
blogsite_latest.css
*{
margin: 0;
padding: 0;
box-sizing: border-box;
body {
color: #333;
background-color: #f9f9f9;
line-height: 1.6;
.container {
width: 90%;
margin: 0 auto;
max-width: 1200px;
/* Header */
.header {
background-color: #222;
color: #fff;
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 1000;
.logo {
font-size: 2rem;
font-weight: bold;
.navbar {
display: flex;
gap: 1.5rem;
justify-content: flex-end;
.navbar a {
color: #fff;
text-decoration: none;
font-size: 1rem;
.navbar a:hover {
text-decoration: underline;
}
/* Hero Section */
.hero {
height: 80vh;
position: relative;
color: #fff;
.hero .overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
.hero h2 {
font-size: 3rem;
margin-bottom: 1rem;
.hero p {
font-size: 1.2rem;
margin-bottom: 2rem;
.cta-button {
display: inline-block;
background: #ff7e5f;
color: #fff;
text-decoration: none;
font-size: 1rem;
border-radius: 25px;
.cta-button:hover {
background: #feb47b;
/* Articles Section */
.articles-section {
padding: 4rem 0;
background-color: #fff;
.section-title {
text-align: center;
font-size: 2rem;
margin-bottom: 2rem;
.articles-grid {
display: grid;
gap: 2rem;
.article-card {
background: #f9f9f9;
border-radius: 8px;
overflow: hidden;
.article-card img {
width: 100%;
}
.article-card h3 {
font-size: 1.5rem;
margin: 1rem;
.article-card p {
font-size: 1rem;
color: #666;
.read-more {
display: block;
text-align: center;
margin: 1rem;
background: #ff7e5f;
color: #fff;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
}
.read-more:hover {
background: #feb47b;
/* About Section */
.about-section {
padding: 4rem 0;
background-color: #f0f0f0;
text-align: center;
.about-section p {
max-width: 800px;
margin: 0 auto;
font-size: 1.2rem;
color: #555;
/* Footer */
.footer {
text-align: center;
padding: 2rem 0;
background-color: #222;
color: #fff;