/* Blog Styles */

/* Blog Header */
.blog-header {
    background-color: var(--light-gray);
    padding: 60px 0 40px;
    margin-top: 60px;
}

.blog-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin: 10px 0 0;
}

.breadcrumbs {
    font-size: 14px;
    color: var(--gray);
    padding-top: 5%;
}

.breadcrumbs a {
    color: var(--gray);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--blue);
}

/* Blog Container */
.blog-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1140px;
    margin: 0 auto;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.blog-categories,
.blog-search,
.related-posts {
    margin-bottom: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.blog-sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 16px;
}

.blog-categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-categories ul li {
    margin-bottom: 10px;
}

.blog-categories ul li a {
    display: block;
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
}

.blog-categories ul li a:hover,
.blog-categories ul li a.active {
    color: var(--orange);
}

.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.search-form input:focus {
    border-color: var(--blue);
}

.search-form button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 5px;
}

.search-form button:hover {
    color: var(--blue);
}

/* Blog Main Content */
.blog-main {
    width: 100%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-post {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-post.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.blog-post.featured .post-image {
    height: 100%;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.post-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    margin: 20px 20px 10px;
}

.post-title {
    margin: 0 20px 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.blog-post.featured .post-title {
    font-size: 24px;
}

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

.post-title a:hover {
    color: var(--orange);
}

.post-excerpt {
    margin: 0 20px 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray);
}

.read-more {
    display: inline-block;
    margin: 0 20px 20px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.read-more:hover {
    color: var(--light-orange);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.blog-pagination .current-page,
.blog-pagination .page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-pagination .current-page {
    background-color: var(--orange);
    color: white;
    font-weight: 600;
}

.blog-pagination .page-number {
    background-color: #F8FAFC;
    color: var(--gray);
}

.blog-pagination .page-number:hover {
    background-color: #E2E8F0;
    color: var(--navy);
}

.blog-pagination .next-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    border-radius: 50%;
    background-color: #F8FAFC;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.2s;
}

.blog-pagination .next-page:hover {
    background-color: #E2E8F0;
    color: var(--navy);
}

/* Single Blog Post */
.single-blog-container {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1140px;
    margin: 0 auto;
}

.single-blog-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.blog-post-header {
    padding: 30px;
}

.blog-post-header .post-category {
    margin: 0 0 15px 0;
}

.blog-post-header .post-title {
    margin: 0 0 20px 0;
    font-size: 32px;
}

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray);
}

.post-date {
    margin-right: 20px;
}

.post-reading-time {
    display: flex;
    align-items: center;
}

.post-reading-time::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: var(--gray);
    border-radius: 50%;
    margin-right: 20px;
}

.blog-post-header .post-image {
    height: 400px;
    margin: 10px 0 0;
}

.blog-post-content {
    padding: 30px;
}

.blog-post-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin: 30px 0 20px;
}

.blog-post-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin: 25px 0 15px;
}

.blog-post-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #4A5568;
    margin-bottom: 20px;
}

.blog-post-content ul {
    margin: 0 0 20px 20px;
    padding: 0;
}

.blog-post-content ul li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
    color: #4A5568;
}

.blog-post-footer {
    padding: 30px;
    border-top: 1px solid #E2E8F0;
}

.post-share {
    display: flex;
    align-items: center;
}

.post-share span {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-right: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: opacity 0.2s;
}

.social-icon:hover {
    opacity: 0.8;
}

.social-icon.facebook {
    background-color: #1877F2;
}

.social-icon.twitter {
    background-color: #1DA1F2;
}

.social-icon.linkedin {
    background-color: #0A66C2;
}

/* Related Posts */
.related-post-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-post {
    display: flex;
    text-decoration: none;
    gap: 12px;
}

.related-post-image {
    flex: 0 0 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--navy);
    transition: color 0.2s;
}

.related-post:hover .related-post-title {
    color: var(--orange);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .blog-container,
    .single-blog-container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
        order: 2;
    }
    
    .blog-main,
    .single-blog-content {
        order: 1;
    }
    
    .blog-post.featured {
        grid-template-columns: 1fr;
    }
    
    .blog-post.featured .post-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-header {
        padding: 40px 0 30px;
    }
    
    .blog-post-header .post-title {
        font-size: 24px;
    }
    
    .blog-post-header .post-image {
        height: 250px;
    }
} 