/* Variables */
:root {
    --primary: #0e509e;
    --primary-dark: #0a3d7a;
    --secondary: #666666;
    --primary-opacity: #0e4f9e5b;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --border: #e1e1e1;
    --success: #28a745;
    --danger: #dc3545;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --font-main: 'Poppins', sans-serif;
}

/* Global Blog Styles */
.blog-wrapper {
    padding: 60px 0;
    background-color: var(--light);
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.blog-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.blog-main {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

.blog-sidebar {
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .blog-sidebar {
        width: 100%;
        margin-top: 40px;
    }
}

/* Archive Header */
.archive-header {
    text-align: center;
    margin-bottom: 50px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.archive-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.archive-description {
    color: var(--secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-card-image {
    position: relative;
    padding-top: 60%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    display: block;
}

.blog-card-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

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

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

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

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

.blog-meta {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-meta i {
    color: var(--primary);
    margin-right: 5px;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.blog-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    text-decoration: underline;
}

.read-more i {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Sidebar Widgets */
.blog-widget {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.blog-widget-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.blog-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-dark);
}

.widget-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.widget-post-item:last-child {
    margin-bottom: 0;
}

.widget-post-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.widget-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-post-thumb .mini-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.widget-post-content h5 {
    font-size: 0.95rem;
    margin: 0 0 5px;
    line-height: 1.4;
}

.widget-post-content h5 a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}

.widget-post-content h5 a:hover {
    color: var(--primary);
}

.widget-post-date {
    font-size: 0.8rem;
    color: var(--secondary);
}

/* Single Post Pro Styles */
.single-post-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.single-hero-pro {
    position: relative;
    height: 500px;
    background-color: var(--dark);
    color: var(--white);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.single-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 1;
}

.single-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.single-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.single-categories {
    margin-bottom: 15px;
}

.cat-badge {
    background: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    margin-right: 10px;
    display: inline-block;
}

.cat-badge:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.single-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.single-meta-pro {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.post-content-pro {
    padding: 60px 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
}

.post-content-pro p {
    margin-bottom: 25px;
}

.post-content-pro h2, 
.post-content-pro h3 {
    color: var(--dark);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.post-content-pro blockquote {
    border-left: 5px solid var(--primary);
    background: var(--light);
    padding: 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Author Box Pro */
.author-box-pro {
    margin: 60px auto;
    max-width: 900px;
    padding: 30px;
    background: var(--light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 25px;
}

.author-avatar-pro img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.author-info-pro h4 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    color: var(--dark);
}

.author-info-pro h4 span {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 400;
    margin-left: 10px;
}

.author-bio-pro {
    color: var(--secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Comments Section Pro */
.comments-section-pro {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

.comments-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    background: var(--light);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    position: relative;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.comment-author cite {
    font-style: normal;
    font-weight: 700;
    color: var(--dark);
    font-size: 1.1rem;
}

.comment-metadata a {
    color: var(--secondary);
    text-decoration: none;
}

.comment-content p {
    margin-bottom: 15px;
    color: #444;
}

.reply a {
    display: inline-block;
    padding: 5px 15px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.reply a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.comment-form-section {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 50px;
}

.comment-reply-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: block;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.form-submit .submit {
    background: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.form-submit .submit:hover {
    background: var(--primary-dark);
}

/* Pagination */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
