:root {
    --blog-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --blog-card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --blog-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 204, 204, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.blog-hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-grid-section {
    padding: 80px 0;
    background: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--blog-card-shadow);
    transition: var(--blog-transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--blog-card-hover-shadow);
    border-color: rgba(0, 204, 204, 0.2);
}

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

.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.1);
}

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

.blog-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-teal);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.blog-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: var(--primary-blue);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.blog-date {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.blog-card:hover .read-more i {
    transform: translateX(5px);
}

/* Post Detail Styles */
.post-container {
    max-width: 800px;
    margin: 120px auto 80px;
    padding: 0 20px;
}

.post-header {
    margin-bottom: 40px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.post-meta .blog-category {
    margin-bottom: 0;
}

.post-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--primary-dark);
}

.post-featured-image {
    width: 100%;
    height: 450px;
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--primary-dark);
}

.post-content ul, .post-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.back-to-blog:hover {
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    .post-title {
        font-size: 2.2rem;
    }
    .post-featured-image {
        height: 300px;
    }
}
