/* Blog Section Styling */

.blog-section {
    padding: 80px 20px;
    background-color: #faf9f6;
}

.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-title {
    font-family: "Philosopher", sans-serif;
    font-size: 45px;
    color: #111111;
    font-weight: 600;
    margin: 0;
    text-transform: none;
    line-height: 1.3;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 20px;
    max-width: 100%;
}

.blog-card-link {
    text-decoration: none;
    display: block;
}

.blog-card {
    width: 100%;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

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

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

.blog-card-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background-color: #302623;
    color: white;
    padding: 6px 12px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.blog-card-title {
    font-family: "Philosopher", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #111111;
    margin: 15px 0;
    line-height: 1.4;
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.blog-card-date .material-icons {
    font-size: 18px;
}

/* Responsive Design */

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .blog-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 60px 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .blog-title {
        font-size: 28px;
    }

    .blog-card-image {
        height: 240px;
    }

    .blog-card-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .blog-section {
        padding: 40px 15px;
    }

    .blog-header {
        margin-bottom: 40px;
    }

    .blog-label {
        font-size: 12px;
    }

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

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-image {
        height: 200px;
    }
}

/* ===== Blog Page Styles ===== */

.blog-page-container {
    max-width: 1200px;
    margin: 40px auto;
    margin-top: 10dvh;
    padding: 60px 20px;
}

.blog-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-page-title {
    font-family: "Philosopher", sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #111111;
    margin: 0;
}

.blog-posts-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.blog-post-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-bottom: 80px;
    border-bottom: 1px solid #e8e8e8;
}

.blog-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-post-content {
    order: 1;
}

.blog-post-image {
    order: 2;
    overflow: hidden;
    width: 100%;
    height: 400px;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.blog-post-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background-color: #302623;
    color: white;
    padding: 6px 12px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.blog-post-title {
    font-family: "Philosopher", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #111111;
    margin: 10px 0;
    text-transform: none;
}

.blog-post-excerpt {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 20px 0 60px 0;
    max-height: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    transition: all 0.4s ease-in-out;
    position: relative;
}

.blog-post-item.expanded .blog-post-excerpt {
    max-height: none;
    overflow: visible;
    text-overflow: clip;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    margin-bottom: 20px;
}

.blog-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 0;
    padding-top: 20px;
}

.blog-post-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.blog-post-date .material-icons {
    font-size: 18px;
}

.blog-expand-btn {
    background-color: transparent;
    border: 1px solid #59463E;
    color: #59463E;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
    text-transform: uppercase;
}

.blog-expand-btn:hover {
    background-color: #59463E;
    color: white;
}

.blog-post-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8e8e8;
    color: #999;
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8e8e8;
    color: #999;
}

/* Responsive Design for Blog Page */

@media (max-width: 1024px) {
    .blog-post-item {
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .blog-page-container {
        padding: 40px 20px;
    }

    .blog-post-item {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 50px;
    }

    .blog-page-title {
        font-size: 2.5rem;
    }

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

    .blog-post-excerpt {
        font-size: 15px;
    }

    .blog-post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .blog-page-container {
        padding: 30px 15px;
    }

    .blog-page-label {
        font-size: 12px;
    }

    .blog-page-title {
        font-size: 2.5rem;
    }

    .blog-post-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 35px;
        display: flex;
        flex-direction: column-reverse;
    }

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

    .blog-post-excerpt {
        font-size: 14px;
        max-height: 100px;
    }

    .blog-post-image {
        order: unset;
        width: 100%;
        height: 250px;
    }

    .blog-post-content {
        order: unset;
    }
}
