2025-12-12 13:15:44 +05:30

222 lines
3.7 KiB
CSS

.blogPage {
padding-top: 5rem;
}
.hero {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 6rem 0 4rem;
text-align: center;
color: white;
}
.heroContent {
max-width: 800px;
margin: 0 auto;
}
.heroTitle {
font-size: clamp(2.5rem, 5vw, 4rem);
margin-bottom: 1.5rem;
color: white;
}
.heroSubtitle {
font-size: 1.25rem;
color: rgba(255, 255, 255, 0.95);
}
.categoriesSection {
padding: 2rem 0;
background: var(--background-secondary);
}
.categories {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
.categoryBtn {
padding: 0.75rem 1.5rem;
background: var(--background);
border: 2px solid transparent;
border-radius: var(--radius-lg);
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
color: var(--foreground-secondary);
}
.categoryBtn:hover,
.categoryBtn.active {
background: var(--gradient-primary);
color: white;
transform: translateY(-2px);
}
.blogGrid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
}
@media (min-width: 768px) {
.blogGrid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 1024px) {
.blogGrid {
grid-template-columns: repeat(3, 1fr);
}
}
.blogCard {
background: var(--background);
border-radius: var(--radius-xl);
overflow: hidden;
box-shadow: var(--shadow-md);
transition: all 0.3s ease;
display: flex;
flex-direction: column;
}
.blogCard:hover {
transform: translateY(-10px);
box-shadow: var(--shadow-xl);
}
.cardImage {
height: 200px;
background: var(--gradient-primary);
display: flex;
align-items: center;
justify-content: center;
}
.imageIcon {
font-size: 5rem;
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
.cardContent {
padding: 2rem;
flex: 1;
display: flex;
flex-direction: column;
}
.cardMeta {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
font-size: 0.85rem;
}
.category {
padding: 0.25rem 0.75rem;
background: var(--gradient-primary);
color: white;
border-radius: var(--radius-md);
font-weight: 600;
}
.date {
color: var(--foreground-secondary);
}
.cardTitle {
font-size: 1.5rem;
margin-bottom: 1rem;
font-family: var(--font-display);
}
.cardTitle a {
color: var(--foreground);
text-decoration: none;
transition: color 0.3s ease;
}
.cardTitle a:hover {
color: var(--primary);
}
.cardExcerpt {
color: var(--foreground-secondary);
line-height: 1.6;
margin-bottom: 1.5rem;
flex: 1;
}
.cardFooter {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 1rem;
border-top: 1px solid var(--background-secondary);
}
.readTime {
color: var(--foreground-secondary);
font-size: 0.9rem;
}
.readMore {
color: var(--primary);
font-weight: 600;
text-decoration: none;
transition: all 0.3s ease;
}
.readMore:hover {
gap: 0.5rem;
}
.newsletter {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 5rem 0;
text-align: center;
color: white;
margin-top: 4rem;
}
.newsletterContent {
max-width: 600px;
margin: 0 auto;
}
.newsletterTitle {
font-size: 2.5rem;
margin-bottom: 1rem;
color: white;
}
.newsletterSubtitle {
font-size: 1.25rem;
margin-bottom: 2rem;
color: rgba(255, 255, 255, 0.95);
}
.newsletterForm {
display: flex;
gap: 1rem;
max-width: 500px;
margin: 0 auto;
flex-wrap: wrap;
}
.newsletterInput {
flex: 1;
min-width: 250px;
padding: 1rem 1.5rem;
border: none;
border-radius: var(--radius-lg);
font-size: 1rem;
outline: none;
}
.newsletterForm .btn {
white-space: nowrap;
}