/* --- THEME VARIABLES --- */
:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --primary-blue: #3b82f6;
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
}

body { background: var(--bg-main); color: var(--text-white); }

/* --- HERO SECTION --- */
.blog-hero {
    padding: 160px 0 60px;
    background: radial-gradient(circle at top center, rgba(59, 130, 246, 0.15), transparent 60%);
    text-align: center;
}
.blog-hero h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 15px; color: white; }
.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.sub-tag { color: var(--primary-blue); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; font-size: 0.9rem; }
.blog-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* --- BLOG GRID --- */
.section { padding: 80px 0; }
.bg-darker { background: #0b1120; } /* Slightly darker for contrast */

.sec-header { margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px; }
.sec-header h2 { font-size: 2.5rem; font-weight: 700; color: white; }
.highlight { color: var(--primary-blue); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Card Design */
.blog-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.card-thumb {
    height: 220px; overflow: hidden; position: relative;
}
.card-thumb img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.5s;
}
.blog-card:hover .card-thumb img { transform: scale(1.05); }

.card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }

.card-meta {
    font-size: 0.8rem; color: var(--text-muted); margin-bottom: 15px;
    display: flex; justify-content: space-between;
}
.card-title {
    font-size: 1.4rem; font-weight: 600; color: white; margin-bottom: 15px; line-height: 1.4;
    transition: 0.3s;
}
.card-title:hover { color: var(--primary-blue); }

.card-desc {
    font-size: 0.95rem; color: #cbd5e1; line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.read-btn {
    margin-top: auto;
    color: var(--primary-blue); font-weight: 600; font-size: 0.95rem;
    display: inline-flex; align-items: center; gap: 5px; transition: 0.3s;
}
.read-btn:hover { gap: 10px; }

/* Buttons */
.mt-40 { margin-top: 40px; }
.btn-outline {
    border: 2px solid var(--primary-blue); color: var(--primary-blue);
    padding: 10px 30px; border-radius: 50px; background: transparent;
    transition: 0.3s; cursor: pointer; font-weight: 600;
}
.btn-outline:hover { background: var(--primary-blue); color: white; }

/* Skeleton */
.skeleton-card { height: 400px; background: var(--bg-card); border-radius: 12px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%{opacity:0.5;} 50%{opacity:1;} 100%{opacity:0.5;} }

/* Responsive */
@media (max-width: 768px) {
    .blog-hero h1 { font-size: 2.5rem; }
    .blog-grid { grid-template-columns: 1fr; }
}