/* Blog Section Styles */

/* Image ratio optimization for better display */
.blogs .blog-image.ratio-wide {
    width: 280px;
    height: 150px;
}

.blogs .blog-image.ratio-tall {
    width: 180px;
    height: 200px;
}

.blogs .blog-image.ratio-square {
    width: 200px;
    height: 200px;
}

/* Blog List Page */
.blogs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.blogs article {
    margin-bottom: 2rem;
    border-radius: 12px;
    background: var(--color-dark-blue);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blogs article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.blogs .blog {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.blogs .blog-image {
    min-width: 180px;
    max-width: 280px;
    width: auto;
    height: auto;
    min-height: 120px;
    max-height: 200px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blogs .blog-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.blogs .blog-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.blogs .placeholder-content {
    font-size: 2rem;
    opacity: 0.5;
}

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

.blogs .info {
    flex: 1;
    min-width: 0;
}

.blogs .date {
    color: var(--color-blue);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.blogs h2 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.blogs .brief {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog Single Page */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-image {
    flex-shrink: 0;
    max-width: 400px;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.description h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.description h1 span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.description h1 small {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1rem;
}

.content h2 {
    color: white;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.content h3 {
    color: white;
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.content p {
    margin-bottom: 1.2rem;
}

.content ul, .content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content a {
    color: var(--color-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.content a:hover {
    border-bottom-color: var(--color-blue);
}

.content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
}

.content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.content blockquote {
    border-left: 3px solid var(--color-blue);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blogs {
        padding: 1rem;
    }
    
    .blogs .blog {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blogs .blog-image {
        width: 100% !important;
        height: 180px !important;
        order: -1 !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }
    
    .blogs .blog-image img {
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
    }
    
    .blogs .info {
        order: 1;
    }
    
    .blogs h2 {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 1rem;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-image {
        max-width: 100%;
        order: -1;
    }
    
    .description {
        order: 1;
    }
    
    .description h1 span {
        font-size: 1.5rem;
    }
    
    .description h1 small {
        font-size: 1rem;
    }
    
    .content {
        font-size: 0.95rem;
    }
    
    .content h2 {
        font-size: 1.3rem;
    }
    
    .content h3 {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .blogs {
        padding: 0.5rem;
    }
    
    .blogs .blog {
        padding: 1rem;
    }
    
    .blogs .blog-image {
        height: 180px;
    }
    
    .hero {
        padding: 0.5rem;
    }
    
    .description h1 span {
        font-size: 1.3rem;
    }
    
    .content {
        font-size: 0.9rem;
    }
}