/* Blog Page Specific Styles */

/* Blog Banner */
.blog-banner {
    padding-top: 100px;
    padding-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.blog-banner-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-banner .section-title {
    font-family: var(--body-font, 'Montserrat', sans-serif);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: var(--text-color, #171717);
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin: 0 auto;
}

/* Blog List Section */
.blog-section {
    padding: 20px 0;
    background-color: transparent;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Blog Card */
.blog-card {
    display: flex;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    border: 1px solid rgba(255, 255, 255, 0.65);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px -12px rgba(249, 115, 22, 0.22),
        0 1px 0 rgba(255, 255, 255, 1) inset;
    border-color: rgba(249, 115, 22, 0.5);
}

.blog-image {
    flex: 0 0 40%;
    background-color: rgba(255, 255, 255, 0.25);
    min-height: 250px;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

/* Thumbnail Styles */
.blog-thumbnail-text {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(241, 245, 249, 0.3) 100%);
    transition: background 0.35s ease;
}

.thumbnail-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-color, #333);
    line-height: 1.4;
    max-width: 90%;
    margin: 0;
    z-index: 2;
    transition: color 0.35s ease;
}

.blog-card:hover .thumbnail-title {
    color: var(--accent-orange, #f97316);
}

.blog-content {
    flex: 0 0 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.blog-category {
    color: var(--primary-color, #5c82ae);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.blog-title {
    font-size: 1.8rem;
    color: var(--text-color, #111);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.35s ease;
}

.blog-card:hover .blog-title {
    color: var(--accent-orange, #f97316);
}

.blog-date {
    font-size: 1.25rem;
    color: var(--text-color-light, #888);
    margin-bottom: 15px;
    display: block;
}

.blog-excerpt {
    font-size: 1.5rem;
    color: var(--text-color-secondary, #555);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Read More Button System */
.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-lg, 12px);
    background-color: var(--primary-color, #2D3139);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.read-more:hover::before {
    left: 100%;
}

.read-more:hover {
    background-color: var(--accent-orange, #f97316);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
    transform: translateY(-2px);
    gap: 12px;
}

.read-more i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-banner {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-image {
        flex: auto;
        height: 200px;
        min-height: auto;
    }

    .blog-content {
        flex: auto;
        padding: 30px 20px;
    }

    .blog-title {
        font-size: 1.5rem;
    }

    .blog-section {
        padding: 10px 20px;
    }
}

/* ============================================
   DARK MODE ADAPTATIONS FOR CASE STUDIES
   ============================================ */
[data-theme="dark"] .blog-card {
    background: rgba(19, 25, 38, 0.35);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

[data-theme="dark"] .blog-card:hover {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 24px 50px -12px rgba(249, 115, 22, 0.25);
}

[data-theme="dark"] .blog-image {
    background-color: rgba(15, 21, 34, 0.5);
    border-right-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .blog-thumbnail-text {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
}

[data-theme="dark"] .thumbnail-title {
    color: #f1f5f9;
}

[data-theme="dark"] .blog-title {
    color: #f1f5f9;
}

[data-theme="dark"] .blog-excerpt {
    color: #94a3b8;
}

[data-theme="dark"] .read-more {
    background-color: #1e293b;
    color: #ffffff;
}

[data-theme="dark"] .read-more:hover {
    background-color: var(--accent-orange);
}