/* ==============================================
   BLOG.CSS — SmartNet Blog Pages Styles
   ============================================== */

/* ---- Blog Section Header (index.html) ---- */
.blog-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    gap: 40px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 6px;
    transition: color 0.3s, border-color 0.3s, gap 0.3s;
    white-space: nowrap;
    cursor: none;
}

.view-all-btn:hover {
    color: var(--white);
    border-color: var(--white);
    gap: 16px;
}

.blog-img-link {
    display: block;
}

/* ==================================================
   BLOG LISTING PAGE (blog.html)
================================================== */

/* Hero */
.blog-hero {
    background: var(--grad-hero);
    padding: 140px 0 60px;
}

.blog-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
}

.blog-hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.blog-hero-title em {
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

.blog-hero-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 400px;
}

/* Search */
.blog-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 20px;
    min-width: 280px;
    color: rgba(255, 255, 255, 0.5);
}

.blog-search input {
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 100%;
}

.blog-search input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Filter Bar */
.blog-filters-bar {
    background: var(--blue-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.blog-filter-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.blog-filter-tabs::-webkit-scrollbar {
    display: none;
}

.blog-filter-tab {
    padding: 16px 28px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: none;
    white-space: nowrap;
    transition: color 0.25s, border-color 0.25s;
}

.blog-filter-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.blog-filter-tab.active {
    color: var(--white);
    border-bottom-color: var(--cyan);
}

/* Blog Main */
.blog-main {
    background: var(--off-white);
    padding: 72px 0 100px;
}

/* Blog Listing Grid */
.blog-listing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

/* Blog Card */
.bl-card {
    background: var(--white);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.bl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.bl-img-wrap {
    display: block;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
}

.bl-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(20%);
    transition: transform 0.5s var(--ease), filter 0.4s;
}

.bl-card:hover .bl-img-wrap img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.bl-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--blue);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
}

.bl-body {
    padding: 24px;
}

.bl-body time {
    font-size: 0.72rem;
    color: var(--gray-mid);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.bl-body h2 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.4;
    margin-bottom: 12px;
}

.bl-body h2 a {
    transition: color 0.2s;
    cursor: none;
}

.bl-body h2 a:hover {
    color: var(--gray-mid);
}

.bl-body p {
    font-size: 0.875rem;
    color: var(--gray-mid);
    line-height: 1.65;
    margin-bottom: 20px;
}

.bl-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    padding-top: 16px;
}

.bl-author {
    font-size: 0.72rem;
    color: var(--gray-mid);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bl-read {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: letter-spacing 0.2s;
    cursor: none;
}

.bl-read:hover {
    letter-spacing: 2px;
}

/* Card hidden (filter) */
.bl-card.bl-hidden {
    display: none;
}

.bl-card.bl-show {
    animation: fadeInUp 0.4s var(--ease2) forwards;
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 0;
    color: var(--gray-mid);
    font-size: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pag-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: none;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    color: var(--gray-mid);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: none;
    transition: all 0.2s;
}

.pag-btn:hover {
    border-color: var(--black);
    color: var(--black);
}

.pag-btn.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.pag-next {
    padding: 0 20px;
}

/* ==================================================
   BLOG DETAIL PAGE (blog-detail.html)
================================================== */

/* Breadcrumb */
.detail-breadcrumb {
    background: var(--off-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 14px 0;
    margin-top: 80px;
}

.detail-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--gray-mid);
}

.detail-breadcrumb a {
    color: var(--gray-mid);
    transition: color 0.2s;
    cursor: none;
}

.detail-breadcrumb a:hover {
    color: var(--black);
}

.detail-breadcrumb span {
    color: rgba(0, 0, 0, 0.25);
}

/* Detail Main */
.detail-main {
    background: var(--off-white);
    padding: 60px 0 100px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    align-items: start;
}

/* Article */
.detail-article-header {
    margin-bottom: 40px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-tag {
    background: var(--blue);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 2px;
}

.detail-date {
    font-size: 0.78rem;
    color: var(--gray-mid);
}

.detail-read-time {
    font-size: 0.78rem;
    color: var(--gray-mid);
    padding-left: 12px;
    border-left: 1px solid rgba(0, 0, 0, 0.15);
}

.detail-title {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--black);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.detail-lead {
    font-size: 1.1rem;
    color: var(--gray-mid);
    line-height: 1.7;
    margin-bottom: 28px;
    border-left: 3px solid var(--blue);
    padding-left: 20px;
}

.detail-author-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.detail-avatar {
    width: 44px;
    height: 44px;
    background: var(--grad-card);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.detail-author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--black);
}

.detail-author-role {
    font-size: 0.75rem;
    color: var(--gray-mid);
}

.detail-hero-img {
    overflow: hidden;
    margin-bottom: 48px;
}

.detail-hero-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Article Body Typography */
.detail-body {
    font-size: 1rem;
    line-height: 1.85;
    color: #333;
}

.detail-body p {
    margin-bottom: 24px;
}

.detail-body h2 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
    margin: 40px 0 16px;
    letter-spacing: -0.5px;
}

.detail-body ul {
    list-style: none;
    margin-bottom: 24px;
    padding: 0;
}

.detail-body ul li {
    padding: 8px 0 8px 24px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.detail-body ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gray-mid);
    font-weight: 300;
}

.detail-body blockquote {
    background: var(--grad-card);
    color: var(--white);
    padding: 32px 36px;
    margin: 36px 0;
    position: relative;
}

.detail-body blockquote::before {
    content: '"';
    position: absolute;
    top: 12px;
    left: 24px;
    font-family: var(--font-head);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
}

.detail-body blockquote p {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--white);
}

.detail-body blockquote cite {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.detail-cta-box {
    background: var(--off-white);
    border: 2px solid var(--blue);
    padding: 36px;
    margin-top: 48px;
    text-align: center;
}

.detail-cta-box h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.detail-cta-box p {
    color: var(--gray-mid);
    margin-bottom: 24px;
}

/* Share */
.detail-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 28px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 40px;
}

.detail-share span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-mid);
    margin-right: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    color: var(--gray-dark);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: none;
}

.share-btn:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

/* Sidebar */
.detail-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-mid);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 8px;
    transition: color 0.2s, gap 0.2s;
    cursor: none;
}

.sidebar-back:hover {
    color: var(--black);
    gap: 14px;
}

.sidebar-section {}

.sidebar-title {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blue);
}

.sidebar-related {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.related-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    cursor: none;
    transition: background 0.2s;
}

.related-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.related-item img {
    width: 72px;
    height: 56px;
    object-fit: cover;
    flex-shrink: 0;
    filter: grayscale(40%);
    transition: filter 0.3s;
}

.related-item:hover img {
    filter: grayscale(0%);
}

.related-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-mid);
    display: block;
    margin-bottom: 4px;
}

.related-item p {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.4;
}

.sidebar-cta {
    background: var(--grad-card);
    color: var(--white);
    padding: 32px 28px;
}

.sidebar-cta h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin: 10px 0 12px;
}

.sidebar-cta p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 1024px) {
    .blog-listing {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 48px;
    }

    .blog-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-search {
        width: 100%;
        min-width: unset;
    }

    .blog-listing {
        grid-template-columns: 1fr;
    }

    .blog-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .detail-hero-img img {
        height: 260px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }
}