/* ===== Blog Section ===== */
.blog-section {
    padding: var(--section-bg-py) 0;
}

.blog-section .sectionHeadwrap {
    text-align: center;
}

/* ===== 2×2 Cards Grid ===== */
.blog-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
      gap: 25px;
}

/* ===== Blog Card ===== */
.blog-card {
    background: var(--color-white);
   border: 1px solid #DAE5F5;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

/* ===== Card Head ===== */
.blog-card-head {
    display: flex;
    align-items: start;
    gap: 12px;
}

/* ===== Card Icon ===== */
.blog-card-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: #F2F5FF;
    color: var(--color-primary);
    border: 1px solid #E8EDFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== Content Wrap (cat + time) ===== */
.blogContentwrap {
  flex: 1;
    display: flex;
    align-items: start;
    width: 100%;
    min-width: 0;
    flex-direction: column;
}
.contenthead{
     display: flex;
     justify-content: space-between;
     margin-bottom: 15px;
     width: 100%;
}
/* ===== Category Badge ===== */
.blog-card-cat {
  font-family: var(--font-primary);
    font-size: 13px;
    font-weight: var(--fw-regular);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #F2F5FF;
    border-radius: 100rem;
    line-height: 170%;
    padding: 0 10px;
    height: 26px;
    display: flex;
    white-space: nowrap;
    justify-content: center;
    align-items: center;
}

/* ===== Read Time ===== */
.blog-card-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: var(--fw-regular);
    color: var(--color-text);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;  /* pushes time to far right inside blogContentwrap */
}

/* ===== Title ===== */
.blog-card-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: var(--fw-medium);
    line-height: 140%;
    color: var(--color-heading);
    margin: 0 0 17px;
    max-width: 386px;
    width: 100%;
    flex: 1;
}

/* ===== Read Article Link ===== */
.blog-card-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: var(--fw-regular);
    color: var(--color-primary);
    transition: gap 0.2s ease;
}

.blog-card:hover .blog-card-read {
    gap: 10px;
}

/* ===== CTA Button ===== */
.blog-cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

@keyframes btn-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(58, 102, 212, 0.45); }
    70%  { box-shadow: 0 0 0 12px rgba(58, 102, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(58, 102, 212, 0); }
}

.blog-view-all-btn {
    animation: btn-pulse 2s ease-out infinite;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    height: 44px;
    background: var(--color-primary);
    border-radius: 13px;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-card-alt);
}

.blog-view-all-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-white);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .blog-cards-grid {
        gap: 16px;
    }

    .blog-card-title {
        font-size: 16px;
        max-width: 100%;
    }
}

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

    .blog-card {
        gap: 20px;
    }

    .blog-card-icon {
        width: 48px;
        height: 48px;
    }

    .blog-card-title {
        font-size: 16px;
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .blog-card {
        padding: 16px;
        gap: 16px;
    }

    .blog-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .blog-card-cat {
        font-size: 11px;
        padding: 0 8px;
    }

    .blog-card-time {
        display: none;
    }

    .blog-card-title {
        font-size: 15px;
        max-width: 100%;
        margin-bottom: 12px;
    }

    .blog-card-read {
        font-size: 14px;
    }

    .blog-view-all-btn {
        padding: 12px 28px;
        font-size: 15px;
    }
}
