/* ==============================================
   blog.css  |  ADWHS Solutions – Blog Page Styles
   ============================================== */

/* ── Hero ────────────────────────────────────── */
.blog-hero {
    background: linear-gradient(rgba(11, 37, 69, 0.88), rgba(11, 37, 69, 0.96)), 
                url('/media/banners/hero_banner.png') no-repeat center center/cover;
    padding: 50px 24px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.blog-hero .slide-badge {
    transform: none !important;
    opacity: 1 !important;
    margin-bottom: 16px;
}

.blog-hero .slide-title {
    transform: none !important;
    opacity: 1 !important;
    font-size: var(--fs-hero-title);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.blog-hero .slide-title span {
    background: linear-gradient(135deg, var(--color-accent), #3B82F6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero .slide-description {
    transform: none !important;
    opacity: 1 !important;
    max-width: 750px;
    margin: 0 auto 24px auto;
    font-size: var(--fs-hero-desc);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* Floating shapes (from original design) */
.blog-hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: .07;
    pointer-events: none;
    animation: bFloat 9s ease-in-out infinite;
}
.blog-hero-shape-1 { width:320px; height:320px; background:var(--color-accent); top:-90px; right:-90px; animation-delay:0s; }
.blog-hero-shape-2 { width:220px; height:220px; background:var(--color-light-blue); bottom:-60px; left:-50px; animation-delay:3s; }
@keyframes bFloat {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-22px) rotate(8deg); }
}

/* ── Sticky filter bar ───────────────────────── */
.blog-filter-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 14px rgba(11,37,69,.07);
}
.blog-filter-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

/* Search */
.blog-search-wrap {
    position: relative;
    flex: 1 1 240px;
    max-width: 340px;
}
.blog-search-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
#blog-search {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 42px;
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    font-size: 13.5px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    transition: border-color .22s, box-shadow .22s;
    background: #fff;
    box-sizing: border-box;
}
#blog-search:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(11,37,69,.09);
}

/* Category pills */
.blog-cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
    padding: 7px 18px;
    border-radius: 50px;
    border: 1.5px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: all .22s ease;
}
.cat-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(11,37,69,.05);
}
.cat-pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ── Blog grid section ───────────────────────── */
.blog-grid-section { padding: 50px 24px; }

/* 4-column CSS Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ── Blog card ───────────────────────────────── */
.blog-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    box-shadow: 0 2px 10px rgba(11,37,69,.06);
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(11,37,69,.13);
    border-color: transparent;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Thumbnail */
.blog-card-thumb {
    position: relative;
    overflow: hidden;
    height: 185px;
    flex-shrink: 0;
}
.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s ease;
}
.blog-card:hover .blog-card-thumb img { transform: scale(1.07); }

.blog-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
}

/* Content area */
.blog-card-content {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Meta row */
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.meta-item { display: flex; align-items: center; gap: 4px; }
.meta-dot  { color: var(--border-color); }

/* Title */
.blog-card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.45;
    margin: 0 0 10px;
    transition: color .2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card:hover .blog-card-title { color: var(--color-accent); }

/* Excerpt */
.blog-card-excerpt {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA row */
.blog-card-cta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-primary);
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-top: auto;
    transition: color .2s, gap .2s;
}
.blog-card:hover .blog-card-cta { color: var(--color-accent); gap: 9px; }

/* ── No results ──────────────────────────────── */
.blog-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.blog-no-results svg { margin-bottom: 16px; color: var(--border-color); }
.blog-no-results h5  { font-size: 16px; color: var(--text-secondary); margin-bottom: 6px; }
.blog-no-results p   { font-size: 13.5px; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1199px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .blog-hero { padding: 40px 20px; }
    .blog-hero .slide-title { font-size: clamp(24px, 6vw, 34px); }
    .blog-grid-section { padding: 40px 16px 60px; }
}
@media (max-width: 480px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-hero { padding: 36px 16px; }
    .blog-filter-inner { flex-direction: column; align-items: stretch; }
    .blog-search-wrap { max-width: 100%; }
}