Files
doormile_react/public/css/sections/section-blogs.css
2026-05-28 16:17:56 +05:30

189 lines
5.1 KiB
CSS

/* ── Blog page hero ── */
.blog-hero {
background: linear-gradient(160deg, #0c0c14 0%, #18050a 100%);
padding: 120px 0 60px;
text-align: center;
position: relative;
overflow: hidden;
margin-top: 0 !important;
}
.blog-hero::before {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(192,18,39,0.14) 0%, transparent 100%);
pointer-events: none;
}
.blog-hero-inner {
position: relative;
z-index: 1;
max-width: 720px;
margin: 0 auto;
padding: 0 32px;
}
.blog-hero-eyebrow {
display: inline-flex;
align-items: center;
gap: 10px;
font-family: 'Manrope', sans-serif;
font-size: 11px;
font-weight: 700;
letter-spacing: 3.5px;
text-transform: uppercase;
color: rgba(255,255,255,0.35);
margin-bottom: 20px;
}
.blog-hero-eyebrow::before,
.blog-hero-eyebrow::after {
content: '';
display: block;
width: 28px;
height: 1px;
background: rgba(255,255,255,0.2);
}
.blog-hero h1 {
font-family: 'Manrope', sans-serif;
font-size: clamp(28px, 4.5vw, 52px);
font-weight: 900;
color: #ffffff !important;
line-height: 1.05;
letter-spacing: -1.5px;
text-transform: uppercase;
margin: 0 0 14px;
}
.blog-hero h1 span { color: #c01227; }
.blog-hero p {
font-family: 'Manrope', sans-serif;
font-size: 15px;
color: rgba(255,255,255,0.48);
line-height: 1.7;
margin: 0;
}
/* ── Blog grid section ── */
.blog-section {
background: #f8fafc;
padding: 80px 0 100px;
}
.blog-container {
max-width: 1280px;
margin: 0 auto;
padding: 0 40px;
}
/* ── Blog grid ── */
.dm-blog-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 32px;
}
/* ── Blog card ── */
.dm-blog-card {
background: #fff;
border-radius: 20px;
overflow: hidden;
border: 1px solid rgba(0,0,0,0.07);
box-shadow: 0 4px 24px rgba(0,0,0,0.05);
transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
flex-direction: column;
}
.dm-blog-card:hover {
transform: translateY(-12px) scale(1.02);
box-shadow: 0 20px 50px rgba(0,0,0,0.15), 0 0 20px rgba(192, 18, 39, 0.1);
}
.dm-blog-card-image {
width: 100%;
aspect-ratio: 4/3;
overflow: hidden;
background: #eee;
}
.dm-blog-card-image img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.dm-blog-card:hover .dm-blog-card-image img {
transform: scale(1.04);
}
.dm-blog-card-body {
padding: 20px 22px 24px;
flex: 1;
display: flex;
flex-direction: column;
}
.dm-blog-meta {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
flex-wrap: wrap;
}
.dm-blog-category {
font-family: 'Manrope', sans-serif;
font-size: 9px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1.8px;
color: #c01227;
background: rgba(192,18,39,0.07);
border: 1px solid rgba(192,18,39,0.15);
border-radius: 100px;
padding: 3px 9px;
text-decoration: none;
white-space: nowrap;
}
.dm-blog-date {
font-family: 'Manrope', sans-serif;
font-size: 10px;
font-weight: 600;
color: #94a3b8;
letter-spacing: 0.3px;
}
.dm-blog-card h3 {
font-family: 'Manrope', sans-serif;
font-size: 15px;
font-weight: 800;
color: #111827;
line-height: 1.4;
letter-spacing: -0.2px;
margin: 0 0 8px;
}
.dm-blog-card p {
font-family: 'Manrope', sans-serif;
font-size: 12.5px;
color: #64748b;
line-height: 1.65;
margin: 0 0 18px;
flex: 1;
}
.dm-blog-read-more {
display: inline-flex;
align-items: center;
gap: 5px;
font-family: 'Manrope', sans-serif;
font-size: 12px;
font-weight: 700;
color: #c01227;
text-decoration: none;
letter-spacing: 0.2px;
margin-top: auto;
transition: gap 0.2s ease;
}
.dm-blog-read-more:hover { gap: 9px; }
.dm-blog-read-more svg { flex-shrink: 0; }
/* ── Responsive ── */
@media (max-width: 1024px) {
.dm-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
.dm-blog-grid { grid-template-columns: 1fr; }
.blog-hero { padding: 110px 0 60px; }
.blog-container { padding: 0 20px; }
.blog-section { padding: 60px 0 80px; }
}