/**
 * Bright Infosystem Website
 *
 * @file blog-section.css
 * @description Styles for the "From Our Blog" section.
 * @version 2.2 (Scoped CTA Styles to prevent conflicts)
 */

.blog-section {
    padding: 100px 20px;
}
.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.blog-header {
    margin-bottom: 60px;
}
.blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid var(--dark-divider-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 30px;
}
.blog-badge .badge-icon {
    width: 16px;
    height: 16px;
}
.blog-heading {
    font-size: 44px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.3;
}
.blog-heading .gradient-text {
    background: linear-gradient(to right, var(--accent-color) 0%, var(--accent-secondary-color) 50%, var(--accent-color) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.5s ease-in-out;
}
.blog-heading:hover .gradient-text {
    background-position: 100% 0%;
}

/* --- Blog Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    text-align: left;
}
.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.blog-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.blog-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(6, 6, 6, 0.95) 20%, rgba(6, 6, 6, 0.7) 60%, transparent);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 15px;
}
.blog-category {
    border: 1px solid var(--accent-color);
    background: rgba(218, 33, 220, 0.1);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}
.blog-date {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-title {
    font-size: 20px;
    margin: 0 0 15px 0;
    line-height: 1.4;
    font-weight: 600;
    color: var(--primary-color);
}
.blog-excerpt {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
}
.read-more {
    font-weight: 600;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 1; /* Always visible */
    transform: translateY(0); /* Default position */
    transition: color 0.3s ease, gap 0.3s ease;
}
.read-more i {
    transition: transform 0.3s ease;
}
.blog-card:hover .read-more i {
    transform: translateX(5px);
}
.no-blogs-message p {
    color: var(--text-color);
    font-size: 18px;
    padding: 50px 0;
    grid-column: 1 / -1;
}

/* --- Unique CTA Card for Blog Section --- */
.blog-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    border-radius: 20px;
    background: var(--secondary-color) url('/assets/images/cta-pattern.svg') no-repeat center center;
    background-size: cover;
    border: 1px solid var(--divider-color);
}
.blog-cta-card .cta-content {
    text-align: left;
}
.blog-cta-card .cta-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}
.blog-cta-card .cta-text {
    color: var(--text-color);
    font-size: 16px;
    margin: 0;
}
.blog-cta-card .cta-button .btn-secondary {
    margin: 0;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .blog-heading {
        font-size: 32px;
    }
    .blog-cta-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .blog-cta-card .cta-content {
        text-align: center;
    }
}

