﻿/* ===== Blog Styles - Professional Law Firm ===== */

html, body { overflow-x: hidden; max-width: 100%; }

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #0c1f3f 0%, #162d54 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(184,150,78,0.08) 0%, transparent 50%);
}

.blog-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, #f8f7f4, transparent);
}

.blog-header-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.blog-header-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.75);
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* Search Section */
.search-section {
    box-shadow: none;
    background: var(--bg-warm, #f8f7f4) !important;
    border-bottom: 1px solid var(--border, #e2e4e9);
}

.search-form .input-group {
    box-shadow: var(--shadow, 0 4px 20px rgba(12,31,63,0.08));
    border-radius: var(--radius, 8px);
    overflow: hidden;
    background: white;
}

.search-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.search-form .form-control:focus { box-shadow: none; }

.search-form .btn {
    padding: 1rem 2rem;
    border: none;
    background: var(--gold, #b8964e);
    color: white;
    border-radius: 0 !important;
}

.search-form .btn:hover { background: var(--gold-dark, #9a7a3c); }

/* Featured Post */
.featured-post {
    background: white;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-lg, 0 10px 40px rgba(12,31,63,0.12));
    transition: all 0.4s ease;
    border: 1px solid var(--border, #e2e4e9);
}

.featured-post:hover {
    box-shadow: var(--shadow-xl, 0 20px 60px rgba(12,31,63,0.16));
    transform: translateY(-4px);
}

.featured-post-image {
    height: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--gold, #b8964e);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius, 8px);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(184,150,78,0.35);
}

.featured-post-content { padding: 2.5rem; }

.post-category {
    display: inline-block;
    background: var(--primary, #0c1f3f);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: var(--radius, 8px);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-post-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary, #0c1f3f);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.featured-post-excerpt {
    font-size: 1.05rem;
    color: var(--text-light, #6b7280);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted, #9ca3af);
    font-size: 0.9rem;
}

.post-meta span { display: flex; align-items: center; gap: 0.5rem; }

/* Sidebar */
.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg, 16px);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(12,31,63,0.06));
    transition: all 0.4s ease;
    border: 1px solid var(--border, #e2e4e9);
    word-wrap: break-word;
}

.sidebar-widget:hover { box-shadow: var(--shadow, 0 4px 20px rgba(12,31,63,0.08)); }

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary, #0c1f3f);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border, #e2e4e9);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px; right: 0;
    width: 50px; height: 2px;
    background: var(--gold, #b8964e);
}

/* Category List */
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { margin-bottom: 0.5rem; }

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    color: var(--text, #3a3f4b);
    text-decoration: none;
    border-radius: var(--radius, 8px);
    transition: all 0.3s ease;
    background: var(--bg-warm, #f8f7f4);
    font-size: 0.92rem;
}

.category-list a:hover,
.category-list li.active a {
    background: var(--primary, #0c1f3f);
    color: white;
    box-shadow: 0 4px 12px rgba(12,31,63,0.15);
}

.category-list .count {
    background: rgba(255,255,255,0.15);
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Recent Posts */
.recent-posts-list { list-style: none; padding: 0; margin: 0; }

.recent-posts-list li {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border, #e2e4e9);
}

.recent-posts-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.recent-post-item {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.recent-post-item:hover { transform: translateX(-4px); }

.recent-post-item img {
    width: 75px; height: 75px;
    object-fit: cover;
    border-radius: var(--radius, 8px);
    flex-shrink: 0;
}

.recent-post-content { flex: 1; min-width: 0; }

.recent-post-content h6 {
    font-size: 0.9rem;
    color: var(--primary, #0c1f3f);
    margin-bottom: 0.4rem;
    line-height: 1.5;
    word-wrap: break-word;
    font-weight: 600;
}

.recent-post-content small { color: var(--text-muted, #9ca3af); font-size: 0.8rem; }

/* Blog Card */
.blog-card {
    background: white;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(12,31,63,0.06));
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border, #e2e4e9);
}

.blog-card:hover {
    box-shadow: var(--shadow-xl, 0 20px 60px rgba(12,31,63,0.16));
    transform: translateY(-8px);
    border-color: transparent;
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.08); }

.post-category-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--primary, #0c1f3f);
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius, 8px);
    font-size: 0.78rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.blog-card-title a {
    color: var(--primary, #0c1f3f);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover { color: var(--gold, #b8964e); }

.blog-card-excerpt {
    color: var(--text-light, #6b7280);
    line-height: 1.7;
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.92rem;
}

.blog-card-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted, #9ca3af);
    font-size: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border, #e2e4e9);
}

.blog-card-meta span { display: flex; align-items: center; gap: 0.5rem; }

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold, #b8964e);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.read-more-link:hover { color: var(--primary, #0c1f3f); gap: 0.8rem; }

/* Pagination */
.pagination { gap: 0.4rem; }

.pagination .page-link {
    color: var(--primary, #0c1f3f);
    border: 2px solid var(--border, #e2e4e9);
    border-radius: var(--radius, 8px);
    padding: 0.6rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: var(--primary, #0c1f3f);
    color: white;
    border-color: var(--primary, #0c1f3f);
}

/* Load More */
#load-more-btn {
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    border-radius: var(--radius, 8px);
    box-shadow: 0 4px 15px rgba(184,150,78,0.2);
    transition: all 0.3s ease;
    background: var(--gold, #b8964e);
    border-color: var(--gold, #b8964e);
}

#load-more-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(184,150,78,0.35); }

/* CTA Widget */
.cta-widget {
    background: var(--primary, #0c1f3f) !important;
    color: white;
    text-align: center;
    padding: 2.5rem 2rem !important;
    border: none !important;
}

.cta-widget h4 { color: white; font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.cta-widget p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }

.cta-widget .btn {
    background: var(--gold, #b8964e);
    color: white;
    border: none;
    font-weight: 700;
}

.cta-widget .btn:hover {
    background: var(--gold-light, #d4b06a);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991px) {
    .featured-post-image { min-height: 280px; }
    .featured-post-content { padding: 2rem; }
    .featured-post-title { font-size: 1.4rem; }
    .blog-header-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .blog-header { padding: 110px 0 60px; }
    .post-meta { flex-direction: column; gap: 0.6rem; }
    .blog-card-meta { flex-direction: column; gap: 0.6rem; }
    .featured-post-image { min-height: 220px; }
    .blog-header-title { font-size: 1.8rem; }
    .blog-header-subtitle { font-size: 1rem; }
    .sidebar-widget { padding: 1.5rem; }
    .blog-card-image { height: 180px; }
}

@media (max-width: 576px) {
    .blog-header { padding: 90px 0 40px; }
    .blog-header-title { font-size: 1.5rem; }
    .featured-post-content { padding: 1.5rem; }
    .featured-post-image { min-height: 180px; }
    .blog-card-content { padding: 1.2rem; }
}
