/* Blog Styles for Kaulig Companies Theme */



/* Blog Hero Image */
.blog-hero-image {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    position: relative;
    overflow: hidden;
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-hero-overlay h1 {
    color: #fff;
    font-size: 56px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Category Filter */
.category-filter-wrapper {
    margin-bottom: 40px;
}

.category-filter {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.category-filter:hover {
    border-color: #142658;
}

.category-filter:focus {
    outline: none;
    border-color: #142658;
    box-shadow: 0 0 0 3px rgba(20, 38, 88, 0.1);
}

/* Blog Listing Styles */
.blog-listing,
.blog-archive {
    padding: 80px 20px 80px;
    min-height: 100vh;
}

.blog-listing .container,
.blog-archive .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Archive Header */
.archive-header {
    margin-bottom: 60px;
    text-align: center;
}

.archive-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.archive-description {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Blog Posts Grid */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.blog-post-item {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-post-item:hover {
    transform: translateY(-8px);
}

.blog-post-item .post-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-post-item .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post-item:hover .post-thumbnail img {
    transform: scale(1.1);
}

.blog-post-item .post-content {
    padding: 15px 0;
}

.post-categories {
    display: none;
}

.blog-post-item .post-categories {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0066cc;
    margin-bottom: 15px;
}

.blog-post-item .post-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-post-item .post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-item .post-title a:hover {
    color: #0066cc;
}

.blog-post-item .post-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.blog-post-item .post-excerpt {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-post-item .post-excerpt p {
    margin-bottom: 12px;
}

/* Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #142658;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.read-more-btn:hover {
    background-color: #0d1a3d;
    transform: translateX(4px);
}

.read-more-btn .arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover .arrow {
    transform: translateX(4px);
}

/* Single Post Styles */
.single-post {
    background: #fff;
    padding-bottom: 50px;
}

.single-post .hero-image {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.single-post .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post .content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 60px;
}

.single-post .main-content {
    flex: 1;
    max-width: 800px;
}

.single-post article {
    background: #fff;
}

.single-post .entry-header {
    margin-bottom: 40px;
}

.single-post .post-categories {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #0066cc;
    margin-bottom: 20px;
}

.single-post .entry-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.single-post .post-date {
    font-size: 16px;
    color: #999;
}

.single-post .entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.single-post .entry-content p {
    margin-bottom: 24px;
}

.single-post .entry-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 20px;
}

.single-post .entry-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 30px 0 15px;
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.single-post .entry-content li {
    margin-bottom: 10px;
}

.single-post .entry-content a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid #0066cc;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.single-post .entry-content a:hover {
    color: #004499;
    border-color: #004499;
}

/* Sidebar Styles */
.sidebar {
    width: 350px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0066cc;
}

.sidebar-post {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-post-thumbnail {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.sidebar-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-post:hover .sidebar-post-thumbnail img {
    transform: scale(1.05);
}

.sidebar-post-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.sidebar-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-post-title a:hover {
    color: #0066cc;
}

.sidebar-post-date {
    font-size: 13px;
    color: #999;
}

.sidebar-post-categories {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0066cc;
    margin-bottom: 8px;
}

/* Post Navigation */
.post-navigation {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid #e5e5e5;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    max-width: 48%;
}

.post-navigation a {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.post-navigation a:hover {
    background: #e9ecef;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 8px;
}

.post-navigation .nav-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.post-navigation .nav-next {
    text-align: right;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 12px 18px;
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #0066cc;
    color: #fff;
}

.pagination .page-numbers.dots {
    background: transparent;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
    color: #1a1a1a;
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 80px 20px;
}

.no-posts h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.no-posts p {
    font-size: 18px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .single-post .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {

    .blog-hero-image {
        height: 40vh;
        min-height: 300px;
    }

    .blog-hero-overlay h1 {
        font-size: 36px;
        padding: 0 20px;
    }



    .blog-posts {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .archive-title {
        font-size: 32px;
    }

    .blog-post-item .post-title {
        font-size: 20px;
    }

    .single-post .hero-image {
        height: 50vh;
        min-height: 300px;
        margin-bottom: 40px;
    }

    .single-post .content-wrapper {
        gap: 40px;
    }

    .single-post .entry-title {
        font-size: 32px;
    }

    .single-post .entry-content {
        font-size: 16px;
    }

    .single-post .entry-content h2 {
        font-size: 26px;
    }

    .single-post .entry-content h3 {
        font-size: 20px;
    }

    .post-navigation .nav-links {
        flex-direction: column;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
    }

    .post-navigation .nav-next {
        text-align: left;
    }

    .sidebar-widget {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .archive-title {
        font-size: 26px;
    }

    .blog-post-item .post-content {
        padding: 20px;
    }

    .single-post .entry-title {
        font-size: 26px;
    }

    .pagination .page-numbers {
        padding: 10px 14px;
        font-size: 14px;
    }
}