/* ---------- SWIFT9JA BLOG STYLES ---------- */
:root {
    --sn-navy: #001665;
    --sn-green: #089f19;
    --sn-green-light: rgba(8, 159, 25, 0.1);
    --text-main: #333333;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 15px 40px rgba(0, 22, 101, 0.1);
    --transition: all 0.3s ease;
}

/* Hero Section */
.blog-hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--sn-navy), #0a1f5c);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIj48ZyBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiPjxjaXJjbGUgY3g9IjIwMCIgY3k9IjIwMCIgcj0iMjAwIi8+PC9nPjwvc3ZnPg==') center/cover;
    opacity: 0.1;
}

.blog-hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.blog-hero h1 span {
    color: var(--sn-green);
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--sn-green);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.blog-card-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.blog-card-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,22,101,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.blog-card:hover .blog-card-img::after {
    opacity: 1;
}

.blog-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--sn-green);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(8, 159, 25, 0.3);
}

.blog-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.blog-card-meta i {
    color: var(--sn-green);
    margin-right: 5px;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.blog-card-title a {
    color: var(--sn-navy);
    text-decoration: none;
    transition: var(--transition);
}

.blog-card-title a:hover {
    color: var(--sn-green);
}

.blog-card-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sn-navy);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-read-more i {
    transition: transform 0.3s;
    color: var(--sn-green);
}

.btn-read-more:hover {
    color: var(--sn-green);
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

/* Sidebar Styling */
.sidebar-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.03);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sn-navy);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--sn-green);
    border-radius: 3px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 10px;
    transition: var(--transition);
    background: var(--bg-light);
}

.category-list a:hover {
    background: var(--sn-green);
    color: white;
}

.category-list a:hover span {
    background: white;
    color: var(--sn-green);
}

.recent-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-item img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.recent-post-item h4 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-post-item h4 a {
    color: var(--sn-navy);
    text-decoration: none;
    transition: var(--transition);
}

.recent-post-item h4 a:hover {
    color: var(--sn-green);
}

.recent-post-item .date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Pagination */
.pagination-wrapper .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    list-style: none;
    padding: 0;
}

.pagination-wrapper .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    color: var(--sn-navy);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: none;
}

.pagination-wrapper .page-item.active .page-link,
.pagination-wrapper .page-link:hover {
    background: var(--sn-green);
    color: white;
}

/* Article Body specific */
.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.article-body h2, .article-body h3 {
    color: var(--sn-navy);
    margin: 2rem 0 1rem;
    font-weight: 800;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body img {
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: var(--card-shadow);
    max-width: 100%;
}

.article-body blockquote {
    border-left: 5px solid var(--sn-green);
    padding: 20px 30px;
    background: var(--sn-green-light);
    border-radius: 0 15px 15px 0;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--sn-navy);
    margin: 2rem 0;
}

/* Share Buttons */
.share-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.share-btn-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
    text-decoration: none;
}

.share-btn-circle:hover {
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.author-box {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 30px;
    margin-top: 4rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    border: 1px solid #eee;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--sn-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--sn-navy);
    font-weight: 700;
}

.author-info p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--sn-navy), #0a1f5c);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.cta-box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.cta-box p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: white;
}

.btn-cta {
    display: inline-block;
    background: var(--sn-green);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

.btn-cta:hover {
    background: white;
    color: var(--sn-navy);
}

/* Responsive */
@media (max-width: 991px) {
    .blog-hero h1 { font-size: 2.5rem; }
    .author-box { flex-direction: column; text-align: center; }
}

@media (max-width: 767px) {
    .blog-grid { grid-template-columns: 1fr; }
}
