/* ================= BLOG PAGE STYLES ================= */

/* Blog Hero Section */
.blog-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 6% 40px;
}
.blog-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: #fff;
    margin: 22px 0 16px;
    line-height: 1.15;
}
.blog-hero h1 span { color: #ff2b2b; }
.blog-hero p {
    color: #a8a8a8;
    font-size: 17px;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

/* Blog Grid Layout */
.blog-grid {
    max-width: 1400px;
    margin: 40px auto 80px;
    padding: 0 4%;
    display: grid;
    /* 170px minmax allows up to 6 cards per row on large screens */
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
}

/* Blog Card Styling */
.blog-card {
    background: rgba(255,255,255,.045);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    overflow: hidden;
    transition: .35s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-6px);
    border-color: #ff2b2b;
    box-shadow: 0 12px 30px rgba(255,43,43,.18);
}

/* Card Image/Icon Area */
.blog-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg,#1a0505,#0a0a0a);
    display: grid;
    place-items: center;
    font-size: 32px;
    color: #ff2b2b;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Card Content */
.blog-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Category Tag */
.blog-tag {
    display: inline-block;
    background: rgba(255,43,43,.15);
    color: #ff5c56;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
    align-self: flex-start;
}

/* Card Title */
.blog-card h2 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.35;
}

/* Card Excerpt */
.blog-card p {
    color: #a8a8a8;
    font-size: 11px;
    line-height: 1.5;
    flex: 1;
}

/* Meta Data (Date, Read Time) */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 10px;
    color: #888;
}
.blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.blog-read {
    color: #ff5c56;
    font-weight: 600;
    margin-left: auto;
}

/* Blog footer layout is scoped to this page. */
@media (max-width:768px){
    .blog-page .footer-top{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;text-align:left;padding-bottom:30px;}
    .blog-page .footer-brand, .blog-page .footer-top > .footer-socials{grid-column:1 / -1;text-align:center;justify-content:center;}
    .blog-page .footer-brand .footer-logo{display:flex;justify-content:center;align-items:center;}
    .blog-page .footer-col h4{font-size:14px;margin-bottom:12px;}
    .blog-page .footer-col > a:not(.footer-logo), .blog-page .footer-col p{font-size:12.5px;margin-bottom:8px;}
    .blog-page .footer-col:not(.footer-brand) p{display:flex;gap:8px;justify-content:flex-start;}
}
