/* Custom Styles for Blog Pages */

/* Blog Index Hero Redesign */
.blog-hero-v2 {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(0, 97, 242, 0.8) 100%), url('https://images.unsplash.com/photo-1499750310159-5b988703ae74?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 140px 0 100px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.blog-hero-v2 h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -1px;
}

.blog-hero-v2 p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.blog-hero-v2 .btn-write-us {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-hero-v2 .btn-write-us:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    background: var(--light);
}

/* Featured Post (First item) */
.featured-post {
    margin-bottom: 4rem;
}
.featured-post-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.featured-image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}
.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-content .badge {
    align-self: flex-start;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
}
.featured-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.featured-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Standard Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}
.blog-card-v2 {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.blog-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.blog-card-image {
    height: 240px;
    overflow: hidden;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card-v2:hover .blog-card-image img {
    transform: scale(1.05);
}
.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
}
.blog-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.blog-card-body h3 a {
    color: var(--dark);
    transition: color 0.2s;
}
.blog-card-body h3 a:hover {
    color: var(--primary);
}
.blog-card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}
.read-more-link {
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.read-more-link:hover {
    gap: 0.75rem; /* Slide arrow effect */
}

/* Single Post Page */
.post-header {
    background: var(--dark);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
}
.post-header h1 {
    color: var(--white);
    font-size: 3rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}
.post-header-meta {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}
.post-featured-image {
    margin-top: -80px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    max-height: 500px;
}
.post-featured-image img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}
.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--dark);
    max-width: 800px;
    margin: 4rem auto;
}
.post-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.post-content p { margin-bottom: 1.5rem; }
.author-box {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-top: 4rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .featured-post-card { grid-template-columns: 1fr; }
    .featured-image { min-height: 250px; }
    .post-header h1 { font-size: 2rem; }
}
