/* ===================================================
   BLOG.CSS – Zen Interactive Technologies
   Blog listing page styles
   =================================================== */

/* ---------- CSS Variables (match site) ---------- */
:root {
    --theme-yellow: #F5D547;
    --primary-blue: #1a2b6b;
    --cream-bg: #f8f6f0;
    --text-dark: #111;
    --text-muted: #666;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 6px 24px rgba(0,0,0,0.07);
    --shadow-md: 0 20px 50px rgba(0,0,0,0.10);
    --shadow-lg: 0 30px 70px rgba(0,0,0,0.13);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- HEADER FIX (match exact sky blue from style.css --primary-blue) ---------- */
.header {
    background: #B8E0FF !important;
}

/* ---------- HERO ---------- */
.blog-hero-section {
    position: relative;
    padding: 140px 0 80px;
    background: #000;
    overflow: hidden;
    text-align: center;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 20% 50%, rgba(245,213,71,0.10) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 40%, rgba(26,43,107,0.25) 0%, transparent 70%);
    pointer-events: none;
}

.blog-hero-tag {
    display: inline-block;
    background: var(--theme-yellow);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 50px;
    margin-bottom: 22px;
}

.blog-hero-title {
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.blog-hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.70);
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto 36px;
}

/* Search bar */
.blog-search-wrap { margin-top: 10px; }

.blog-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 6px 6px 6px 22px;
    max-width: 540px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.blog-search-box i {
    color: #aaa;
    font-size: 16px;
    flex-shrink: 0;
    margin-right: 12px;
}

.blog-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    color: #111;
    background: transparent;
}

.blog-search-box input::placeholder { color: #bbb; }

.blog-search-box button {
    padding: 13px 26px;
    background: var(--theme-yellow);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.blog-search-box button:hover { background: #000; color: #fff; }

/* ---------- FILTER STRIP ---------- */
.blog-filter-strip {
    padding: 28px 0;
    background: var(--cream-bg);
    border-bottom: 1px solid #e8e8e8;
}

.blog-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-filter-btn {
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: 50px;
    background: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: var(--theme-yellow);
    border-color: var(--theme-yellow);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245,213,71,0.35);
}

/* ---------- FEATURED POST ---------- */
.blog-featured-section {
    padding: 80px 0 40px;
    background: #fff;
}

.blog-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid #f0f0f0;
    transition: var(--transition);
}

.blog-featured-card:hover {
    transform: translateY(-6px);
    border-color: var(--theme-yellow);
    box-shadow: 0 40px 80px rgba(0,0,0,0.14);
}

.blog-featured-img {
    position: relative;
    min-height: 420px;
}

.blog-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.blog-featured-card:hover .blog-featured-img img { transform: scale(1.05); }

.blog-featured-label {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--theme-yellow);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.blog-featured-body {
    padding: 50px 50px 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.blog-tag-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.blog-tag {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-tag.hospitality { background: rgba(245,213,71,0.25); color: #7a6a00; }
.blog-tag.partnership  { background: rgba(26,43,107,0.1);   color: var(--primary-blue); }
.blog-tag.communication{ background: rgba(0,153,204,0.1);    color: #0099cc; }
.blog-tag.storage      { background: rgba(0,102,204,0.1);    color: #0066cc; }
.blog-tag.voip         { background: rgba(0,153,102,0.1);    color: #009966; }

.blog-date-tag {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-featured-title {
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 800;
    color: #000;
    line-height: 1.3;
    margin-bottom: 18px;
    transition: color 0.3s;
}

.blog-featured-card:hover .blog-featured-title { color: var(--primary-blue); }

.blog-featured-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.blog-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cream-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 18px;
    flex-shrink: 0;
}

.blog-author strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 2px;
}

.blog-author span {
    font-size: 12px;
    color: #888;
}

.blog-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    flex-shrink: 0;
}

.blog-read-btn:hover {
    background: var(--theme-yellow);
    color: #000;
    gap: 12px;
}

/* ---------- BLOG LIST SECTION ---------- */
.blog-list-section {
    padding: 60px 0 100px;
    background: var(--cream-bg);
}

.section-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--theme-yellow);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    color: #000;
    line-height: 1.2;
}

.blog-count-badge {
    font-size: 14px;
    color: #888;
    background: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid #e8e8e8;
}

/* --- Individual list item (zen.ae style) --- */
.blog-list-item {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: var(--transition);
}

.blog-list-item:hover {
    border-color: var(--theme-yellow);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* Image side */
.blog-list-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 260px;
    flex-shrink: 0;
}

.blog-list-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-list-item:hover .blog-list-img-wrap img { transform: scale(1.06); }

.bli-cat {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: var(--theme-yellow);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 50px;
}

/* Content side */
.blog-list-body {
    padding: 38px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bli-meta {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: #999;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.bli-meta i { margin-right: 5px; color: var(--theme-yellow); }

.bli-title {
    font-size: 22px;
    font-weight: 800;
    color: #000;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.bli-title a {
    text-decoration: none;
    color: inherit;
}

.blog-list-item:hover .bli-title,
.blog-list-item:hover .bli-title a { color: var(--primary-blue); }

.bli-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.75;
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bli-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    align-self: flex-start;
    padding: 10px 22px;
    border: 2px solid #000;
    border-radius: 50px;
}

.bli-read-more:hover {
    background: var(--theme-yellow);
    border-color: var(--theme-yellow);
    color: #000;
    gap: 11px;
}

/* No results */
.blog-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 80px 20px;
    color: #aaa;
    text-align: center;
}

.blog-no-results i { font-size: 48px; color: #ddd; }
.blog-no-results p { font-size: 16px; margin: 0; }

/* Load more */
.blog-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.blog-load-more:hover {
    background: var(--theme-yellow);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245,213,71,0.4);
}

.blog-featured-title a {
    text-decoration: none;
    color: inherit;
}

.blog-featured-title a:hover {
    color: var(--zen-primary);
}
/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    .blog-featured-card {
        grid-template-columns: 1fr;
    }
    .blog-featured-img { min-height: 280px; }
    .blog-featured-body { padding: 36px 32px; }

    .blog-list-item {
        grid-template-columns: 1fr;
    }
    .blog-list-img-wrap { min-height: 220px; }
    .blog-list-body { padding: 28px 28px; }
}

@media (max-width: 767px) {
    .blog-hero-section { padding: 120px 0 60px; }
    .blog-filter-row { gap: 8px; }
    .blog-filter-btn { padding: 8px 18px; font-size: 13px; }
    .blog-list-body { padding: 24px 22px; }
    .bli-title { font-size: 18px; }
    .blog-featured-body { padding: 28px 24px; }
    .blog-featured-footer { flex-direction: column; align-items: flex-start; }
}