/* ==========================================================================
   "Tennis Green" Design System - Blog & Blog Detail Pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   Blog List Page (.blog-list-container)
   -------------------------------------------------------------------------- */
.blog-list-hero {
    background: #FAF8F5;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.blog-list-hero-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #43A047, #2E7D32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(46, 125, 50, 0.2);
}

.blog-list-hero-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.blog-list-hero-content p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(46, 125, 50, 0.1);
    border-color: rgba(46, 125, 50, 0.2);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 20px 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card-title {
    color: #2E7D32;
}

.blog-card-readmore {
    margin-top: auto;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #FFA726;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.blog-card-readmore svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-readmore {
    color: #FB8C00;
}

.blog-card:hover .blog-card-readmore svg {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Blog Detail Page (.blog-detail-container)
   -------------------------------------------------------------------------- */
.blog-detail-container {
    max-width: 900px;
    margin: 0 auto 60px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    overflow: hidden;
}

.blog-detail-header {
    padding: 40px 40px 30px 40px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.blog-detail-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
}

.blog-detail-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-detail-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.blog-detail-content {
    padding: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.blog-detail-content p {
    margin-bottom: 20px;
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-detail-content h2, 
.blog-detail-content h3, 
.blog-detail-content h4 {
    color: #1a1a1a;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Gallery inside Blog Detail */
.blog-detail-gallery-wrapper {
    padding: 0 40px 40px 40px;
}

.blog-detail-gallery-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(46, 125, 50, 0.2);
    display: inline-block;
}

.blog-detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.blog-gallery-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #f5f5f5;
    aspect-ratio: 4/3;
}

.blog-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(46, 125, 50, 0.15);
}

.blog-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-gallery-item:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-list-hero {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-detail-container {
        border-radius: 0;
        margin-bottom: 30px;
    }
    
    .blog-detail-header,
    .blog-detail-content,
    .blog-detail-gallery-wrapper {
        padding: 24px;
    }
    
    .blog-detail-title {
        font-size: 24px;
    }
}
