/**
 * Blog Archive Page Styles
 * Matching Dentakay design 100%
 */

/* Hero Section */
.blog-hero-section {
    background: #1a1a1a;
    padding: 60px 0 80px;
    color: #fff;
}
section.blog-hero-section {
    padding-top: 130px;
}
.blog-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
}

.blog-breadcrumbs a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.blog-breadcrumbs a:hover {
    opacity: 0.8;
}

.breadcrumb-separator {
    margin: 0 8px;
    opacity: 0.7;
}

.breadcrumb-current {
    font-weight: 600;
}

.blog-hero-title {
    font-size: 56px;
    font-weight: 700;
    margin: 0 0 40px 0;
    line-height: 1.2;
}

.blog-hero-search {
    width: 1400px;
    margin: 0 auto;
    max-width: 100%;
}

.blog-search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.blog-search-input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.blog-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.blog-search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.blog-search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #cca350;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.blog-search-button:hover {
    background: #1d4ed8;
}

.blog-search-button svg {
    flex-shrink: 0;
}

/* Main Content Wrapper */
.blog-content-wrapper {
    background: #f5f5f5;
    padding: 60px 0;
    min-height: 60vh;
}

.blog-content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* Categories Swiper Section */
.blog-categories-section {
    margin-bottom: 40px;
}

.blog-categories-swiper-wrapper {
    position: relative;
}

.blog-categories-swiper {
    overflow: visible;
    padding: 0 50px;
}

.blog-categories-swiper .swiper-wrapper {
    align-items: center;
    gap: 12px;
}

.blog-categories-swiper .swiper-slide {
    width: auto;
    height: auto;
}

.blog-category-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s;
    cursor: pointer;
}

.blog-category-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.blog-category-item.active {
    background: #e5e7eb;
    color: #1a1a1a;
    font-weight: 600;
}

.category-name {
    display: inline-block;
}

.category-count {
    display: inline-block;
    color: #666;
    font-weight: 400;
}

.blog-category-item.active .category-count {
    color: #4b5563;
}

/* Navigation Arrows */
.blog-categories-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: #333;
}

.blog-categories-nav:hover {
    background: #f3f4f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-categories-nav.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.blog-categories-prev {
    left: 0;
}

.blog-categories-next {
    right: 0;
}

/* Blog Posts Grid */
.blog-main-content {
    display: flex;
    flex-direction: column;
}

.search-results-info {
    margin-bottom: 20px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.search-results-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.blog-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-post-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: #f3f4f6;
}

.blog-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: #020202;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    z-index: 2;
}

.blog-post-content {
    padding: 15px;
}

.blog-post-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-categories-prev, .blog-categories-next {
    display: none;
}
aside.blog-sidebar {
    position: sticky;
    top: 140px;
}
.blog-categories-swiper {
    padding: 0;
}
.blog-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.blog-post-date {
    font-size: 14px;
    color: #666;
}

.blog-post-read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border-radius: 50%;
    color: #333;
    transition: all 0.3s;
}

.blog-post-card:hover .blog-post-read-more {
    background: #cca350;
    color: #fff;
}

.blog-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Pagination */
.blog-main-content .wp-pagination,
.blog-main-content .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.blog-main-content .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.blog-main-content .page-numbers:hover {
    background: #2563eb;
    color: #fff;
}

.blog-main-content .page-numbers.current {
    background: #2563eb;
    color: #fff;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blog-sidebar-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

/* Sidebar Search */
.blog-sidebar-search-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.blog-sidebar-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.blog-sidebar-search-input:focus {
    border-color: #2563eb;
}

.blog-sidebar-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.blog-sidebar-search-button:hover {
    background: #1d4ed8;
}

/* Latest Posts */
.blog-latest-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-latest-post-item {
    margin: 0;
}

.blog-latest-post-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.blog-latest-post-link:hover {
    opacity: 0.8;
}

.blog-latest-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.blog-latest-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-latest-post-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.blog-latest-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 968px) {
    .blog-content-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-sidebar {
        order: -1;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-hero-section {
        padding: 40px 0 60px;
    }

    .blog-hero-title {
        font-size: 42px;
    }

    .blog-search-form {
        flex-direction: column;
    }

    .blog-search-button {
        width: 100%;
        justify-content: center;
    }

    .blog-categories-swiper {
        padding: 0 40px;
    }

    .blog-content-wrapper {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 32px;
    }

    .blog-categories-nav {
        width: 32px;
        height: 32px;
    }

    .blog-categories-nav svg {
        width: 16px;
        height: 16px;
    }

    .blog-categories-swiper {
        padding: 0 35px;
    }
}
