.blog-section {
    padding: 10rem 2rem 6rem;
    min-height: 80vh;
    background: radial-gradient(circle at 50% 10%, rgba(191, 90, 242, 0.03) 0%, transparent 60%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.005) 0px, rgba(255, 255, 255, 0.005) 1px, transparent 1px, transparent 30px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.005) 0px, rgba(255, 255, 255, 0.005) 1px, transparent 1px, transparent 30px);
}

.blog-header-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem auto;
    position: relative;
}

.blog-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: 1px;
    color: #fff;
}

.blog-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto 6rem auto;
    padding: 0 1rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(191, 90, 242, 0.2), transparent);
}

.blog-card:hover {
    border-color: rgba(191, 90, 242, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(191, 90, 242, 0.04);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(20, 20, 25, 0.8) 100%);
    pointer-events: none;
}

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

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.35;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

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

.blog-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
    margin-top: auto;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-author {
    color: #bf5af2;
    font-weight: 700;
}

.blog-card.coming-soon {
    opacity: 0.55 !important;
    border-color: rgba(255, 255, 255, 0.03);
    cursor: not-allowed;
}

.blog-card.coming-soon::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.blog-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.03);
}

.blog-card.coming-soon:hover .blog-card-image img {
    transform: none;
}

.blog-card.coming-soon:hover .blog-title {
    color: #fff;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Coming Soon Modal */
.cert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.cert-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.cert-modal {
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid rgba(191, 90, 242, 0.25);
    border-radius: 28px;
    padding: 3.5rem;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(191, 90, 242, 0.05);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cert-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(191, 90, 242, 0.3), transparent);
}

.cert-modal-overlay.active .cert-modal {
    transform: translateY(0);
}

.cert-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.cert-modal-close:hover {
    color: #fff;
}

.cert-modal h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-modal .cert-modal-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
