/* css/blog.css */

/* Hero Section */
.blog-hero {
    padding: 100px 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: var(--bg-hero);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text { flex: 1; }

.hero-tag {
    color: var(--primary);
    background: rgba(217, 4, 41, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.hero-text h1 span { color: var(--primary); }

.hero-text h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-subtitle {
    color: var(--text-sec);
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-icon-box {
    font-size: 10rem;
    color: var(--primary);
    opacity: 0.05;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
}

/* Filters */
.blog-grid-section { padding: 80px 0; }

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--text-main);
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    background: var(--bg-card);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Blog Card */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.blog-card:hover .card-image img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.post-meta i { color: var(--primary); }

.card-content h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-content h2 a {
    color: var(--text-main);
    transition: 0.3s;
}

.card-content h2 a:hover { color: var(--primary); }

.card-content p {
    color: var(--text-sec);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    color: var(--primary);
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    transition: 0.3s;
}

.read-more:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* Mobile */
@media (max-width: 768px) {
    .blog-hero { padding: 60px 0; text-align: center; }
    .hero-container { flex-direction: column; }
    .hero-icon-box { display: none; }
}