/* Blog Section Styles */
.blog-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 120px;
    box-sizing: border-box;
}

.blog-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
}

.blog-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.blog-description {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    max-width: 1020px;
}

.blog-heading {
    font-family: 'IvyOra Display', serif;
    font-weight: 500;
    font-style: italic;
    font-size: 32px;
    line-height: 1;
    color: #005b68;
    margin: 0;
}

.blog-heading .italic {
    font-style: italic;
    font-weight: 500;
}

.blog-paragraph {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #403936;
    margin: 0;
}

.blog-button-desktop {
    display: flex;
    align-self: flex-end;
    margin-top: 10px;
}

.blog-button-mobile {
    display: none;
}

.blog-cards {
    display: flex;
    gap: 24px;
    align-items: stretch;
    width: 100%;
}

.blog-card {
    display: flex;
    flex-direction: column;
    width: 384px;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.blog-card-orange {
    background-color: #ed6a59;
}

.blog-card-orange .blog-card-title,
.blog-card-orange .blog-card-title a,
.blog-card-orange .blog-tag {
    color: #ffffff;
}

.blog-card-white {
    background-color: #ffffff;
}

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

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.blog-card-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px 16px;
}

.blog-card-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    height: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 0;
}

.blog-card-orange .blog-card-title,
.blog-card-orange .blog-card-title a {
    color: #ffffff;
    text-decoration: none;
}

.blog-card-white .blog-card-title,
.blog-card-white .blog-card-title a {
    color: #403936;
    text-decoration: none;
}

.blog-card-title a:hover {
    opacity: 0.8;
}

.blog-card-tags {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-tag {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.blog-card-orange .blog-tag {
    color: #ffffff;
}

.blog-card-white .blog-tag {
    color: #403936;
}

.blog-tag-dot {
    width: 2px;
    height: 2px;
    background-color: currentColor;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Tablet Styles */
@media (max-width: 1200px) {
    .blog-section {
        padding: 0 60px;
    }

    .blog-header {
        flex-direction: column;
    }

    .blog-button-desktop {
        display: none;
    }

    .blog-button-mobile {
        display: flex;
        align-self: flex-start;
    }

    .blog-cards {
        overflow-x: auto;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

    .blog-cards::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    .blog-card {
        flex-shrink: 0;
        width: 250px;
    }

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

/* Mobile Styles */
@media (max-width: 768px) {
    .blog-section {
        padding: 0 16px;
        gap: 40px;
    }

    .blog-description {
        gap: 16px;
    }

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