/* Blog Page Specific Styles - Enhanced */
.blog-header-section {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/blog.webp') no-repeat center center/cover;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    margin-top: 90px;
    position: relative;
    box-shadow: var(--box-shadow-sm);
}

.blog-header-section .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius-md);
}

.blog-header-section h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.blog-header-section .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    color: var(--white);
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.blog-content-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.blog-article {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 50px;
    box-shadow: var(--box-shadow-sm);
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-body {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-body h2, 
.blog-body h3, 
.blog-body h4 {
    color: var(--dark-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.blog-body h3 {
    font-size: 1.6rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    display: inline-block;
}

.blog-body p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.blog-body ul, 
.blog-body ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.blog-body li {
    margin-bottom: 12px;
    position: relative;
    line-height: 1.6;
}

.blog-body ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.blog-body ol {
    counter-reset: item;
    padding-left: 0;
}

.blog-body ol li {
    counter-increment: item;
    padding-left: 2em;
    list-style-type: none;
}

.blog-body ol li::before {
    content: counter(item) ".";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.blog-body hr {
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    margin: 40px 0;
    border-bottom: none;
}

.table-responsive {
    margin: 30px 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-collapse: collapse;
}

.table thead th {
    background-color: var(--dark-color);
    color: var(--white);
    font-weight: 600;
    padding: 15px;
    text-align: center;
    vertical-align: middle;
    border: none;
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.blog-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-tags .badge {
    font-size: 0.85rem;
    padding: 8px 15px;
    font-weight: 500;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    transition: var(--transition);
}

.blog-tags .badge:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply Animations */
.blog-header-section h1 {
    animation: fadeInDown 0.8s ease-out;
}

.blog-header-section .subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .blog-header-section {
        padding: 100px 0;
    }
    
    .blog-header-section h1 {
        font-size: 2.4rem;
    }
    
    .blog-article {
        padding: 40px;
    }
    
    .blog-body h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-header-section {
        padding: 80px 0;
        margin-top: 70px;
    }
    
    .blog-header-section h1 {
        font-size: 2rem;
    }
    
    .blog-header-section .subtitle {
        font-size: 1.1rem;
    }
    
    .blog-content-section {
        padding: 60px 0;
    }
    
    .blog-article {
        padding: 30px;
    }
    
    .blog-body {
        font-size: 1rem;
    }
    
    .blog-body h3 {
        font-size: 1.4rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .blog-header-section {
        padding: 70px 20px;
    }
    
    .blog-header-section h1 {
        font-size: 1.8rem;
    }
    
    .blog-header-section .subtitle {
        font-size: 1rem;
    }
    
    .blog-article {
        padding: 25px 20px;
    }
    
    .blog-body h3 {
        font-size: 1.3rem;
    }
    
    .table-responsive {
        margin: 20px -10px;
        width: calc(100% + 20px);
    }
    
    .table thead th,
    .table tbody td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .blog-tags {
        justify-content: center;
    }
}