@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

.blog-content {
    padding: 80px 20px;
    background: #f8fafc;
}

.container {
    display: flex;
    flex-direction: row;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-main {
    flex: 3;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 48px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background: #d4af37;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: #d4af37;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d4af37;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.blog-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin: 8px 0 12px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0 0 16px;
    line-height: 1.8;
    flex-grow: 1;
}

.blog-card .btn-primary {
    background: #1a202c;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.blog-card .btn-primary:hover {
    background: #d4af37;
    color: #1a202c;
    transform: translateY(-2px);
}

.blog-sidebar {
    flex: 1;
    min-width: 280px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 80px;
}

.sidebar-search, .sidebar-categories, .sidebar-social {
    margin-bottom: 32px;
}

.sidebar-search h3, .sidebar-categories h3, .sidebar-social h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
    position: relative;
}

.sidebar-search h3::after, .sidebar-categories h3::after, .sidebar-social h3::after {
    content: '';
    width: 30px;
    height: 2px;
    background: #d4af37;
    position: absolute;
    bottom: -8px;
    left: 0;
}

.search-bar {
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.search-bar i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a5568;
    transition: color 0.3s ease;
}

.search-bar input:focus + i {
    color: #d4af37;
}

.sidebar-categories ul {
    list-style: none;
    padding: 0;
}

.sidebar-categories li {
    margin-bottom: 8px;
}

.sidebar-categories a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a202c;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-categories a:hover {
    background: #d4af37;
    color: #fff;
}

.sidebar-social p {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 16px;
    line-height: 1.8;
}

.sidebar-social .btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #d4af37;
    color: #1a202c;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-social .btn-secondary:hover {
    background: #e2c057;
    transform: translateY(-2px);
}

.blog-detail-section {
    padding: 60px 20px;
    background: #f8fafc;
}

.blog-detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}

.blog-content {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.8;
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    .blog-main, .blog-sidebar {
        width: 100%;
    }
    .blog-sidebar {
        position: static;
        border: none;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-card h3 {
        font-size: 1.35rem;
    }
    .blog-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }
    .blog-card h3 {
        font-size: 1.25rem;
    }
    .blog-card p {
        font-size: 0.8rem;
    }
    .blog-sidebar {
        padding: 16px;
    }
}