.blog-hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f9f7f5 0%, #fff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(197, 168, 128, 0.3),
        transparent
    );
}

.blog-hero h1 {
    font-size: 3.5rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.blog-hero .subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    padding: 100px 0;
    background-color: #fff;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 0;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-radius: 50%;
    border-top-color: #c5a880;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-posts {
    text-align: center;
    padding: 4rem 0;
}

.no-posts h3 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.no-posts p {
    color: #666;
    font-size: 1.1rem;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(197, 168, 128, 0.2);
}

.blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.blog-image {
    position: relative;
    padding-bottom: 60%;
    overflow: hidden;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-overlay {
    opacity: 1;
}

.read-more {
    color: white;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border: 2px solid white;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.blog-overlay:hover .read-more {
    background: white;
    color: #1a1a1a;
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 60%);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-title {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tag {
    background: rgba(197, 168, 128, 0.1);
    color: #c5a880;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.loading-container,
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 1rem;
    padding: 4rem 0;
}

.error-container h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.error-container p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.back-button,
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #c5a880 0%, #9e8451 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.back-button:hover,
.back-to-blog:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 168, 128, 0.3);
}

.blog-post {
    background: white;
}

.post-hero {
    padding: 180px 0 60px;
    background: linear-gradient(135deg, #f9f7f5 0%, #fff 100%);
    text-align: center;
    position: relative;
}

.post-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(197, 168, 128, 0.3),
        transparent
    );
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-title {
    font-size: 3.5rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.post-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(197, 168, 128, 0.1);
    color: #c5a880;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(197, 168, 128, 0.2);
}

.post-image {
    padding: 0 0 60px;
    background: linear-gradient(135deg, #f9f7f5 0%, #fff 100%);
}

.featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.post-content {
    padding: 60px 0;
    background: white;
}

.content-wrapper {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.content-wrapper :global(p) {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.content-wrapper :global(h2) {
    font-size: 2rem;
    color: #1a1a1a;
    margin: 2.5rem 0 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-wrapper :global(h2::after) {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, #c5a880, #9e8451);
}

.content-wrapper :global(h3) {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.content-wrapper :global(ul),
.content-wrapper :global(ol) {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-wrapper :global(li) {
    margin-bottom: 0.5rem;
}

.content-wrapper :global(blockquote) {
    border-left: 4px solid #c5a880;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
    background: rgba(197, 168, 128, 0.05);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.post-footer {
    padding: 60px 0;
    background: #f9f7f5;
    border-top: 1px solid rgba(197, 168, 128, 0.2);
}

@media (max-width: 768px) {
    .post-hero {
        padding: 140px 0 40px;
    }

    .post-title {
        font-size: 2.5rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .post-tags {
        gap: 0.5rem;
    }

    .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .content-wrapper {
        font-size: 1rem;
    }

    .content-wrapper :global(h2) {
        font-size: 1.8rem;
    }

    .content-wrapper :global(h3) {
        font-size: 1.3rem;
    }

    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .blog-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .blog-content {
        padding: 1.5rem;
    }
}
