/* ================================================================
   LOMCOS — Blog CSS | Clean Corporate Light Theme (Final)
   ================================================================ */

/* ────────────────────────────────────
   BLOG LISTING PAGE
──────────────────────────────────── */

.blog-page-header {
    padding: 140px 0 60px;
    background: #fff;
    text-align: center;
}

.blog-pill {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.blog-page-header h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
}

.blog-page-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    line-height: 1.6;
    margin: 0 auto;
}

/* Layout */
.blog-outer {
    background: #f9fafb;
    padding: 48px 0 100px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static !important;
    }
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 110px;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.sidebar-section-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.search-wrap {
    position: relative;
    margin-bottom: 24px;
}

.search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 16px;
    height: 16px;
}

.blog-search-input {
    display: block;
    width: 100%;
    padding: 11px 13px 11px 40px;
    font-size: 0.9rem;
    color: #111827;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s;
}

.blog-search-input:focus {
    border-color: #1d4ed8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.blog-sort-select {
    display: block;
    width: 100%;
    padding: 11px 13px;
    font-size: 0.9rem;
    color: #111827;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

/* Article Cards */
/* Featured Post Card */
.blog-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 48px;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.blog-featured-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: #1d4ed8;
}

.blog-featured-img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    background: #f1f5f9;
}

.blog-featured-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
}

.featured-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 20px;
    width: fit-content;
}

.blog-featured-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.blog-featured-excerpt {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 30px;
}

.blog-featured-meta {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 1100px) {
    .blog-featured-card {
        grid-template-columns: 1fr;
    }

    .blog-featured-img {
        min-height: 280px;
        aspect-ratio: 16/9;
    }

    .blog-featured-content {
        padding: 32px;
    }
}

/* Article Cards Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: #1d4ed8;
}

.blog-card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 50px;
    padding: 4px 12px;
    margin-bottom: 16px;
    width: fit-content;
    line-height: 1;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.blog-card-excerpt {
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
}

.blog-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.blog-card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}

.meta-content {
    display: flex;
    flex-direction: column;
}

.blog-card-author {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
}

.blog-card-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.blog-card-arrow {
    margin-left: auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #1d4ed8;
    transition: all 0.3s ease;
}

.blog-card-arrow i {
    font-size: 14px;
    line-height: 1;
    display: flex;
}

.blog-card:hover .blog-card-arrow {
    background: #1d4ed8;
    color: #fff;
    transform: rotate(-45deg);
}

/* Newsletter Box - Premium Redesign */
.blog-newsletter-box {
    margin-top: 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
    border-radius: 32px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

/* Decorative Mesh Pattern */
.blog-newsletter-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Glass Orb Decor */
.blog-newsletter-box::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.bn-content {
    position: relative;
    z-index: 2;
}

.bn-content h3 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #fff;
}

.bn-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.7;
    font-weight: 400;
}

.bn-form {
    display: flex;
    gap: 14px;
    max-width: 540px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.bn-form input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 14px 24px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bn-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.bn-form input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.bn-form button {
    background: #fff;
    color: #1e3a8a;
    border: none;
    border-radius: 14px;
    padding: 0 32px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bn-form button:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    color: #1d4ed8;
}

.bn-form button i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.bn-form button:hover i {
    transform: translate(3px, -3px);
}

.bn-note {
    font-size: 0.8rem;
    opacity: 0.5;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.bn-icon {
    font-size: 120px;
    opacity: 0.12;
    transform: rotate(15deg);
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .blog-newsletter-box {
        grid-template-columns: 1fr;
        padding: 48px;
        gap: 32px;
    }

    .bn-icon {
        display: none;
    }
}

@media (max-width: 600px) {
    .blog-newsletter-box {
        padding: 40px 24px;
        text-align: center;
    }

    .bn-form {
        flex-direction: column;
        width: 100%;
    }

    .bn-form button {
        padding: 16px;
        justify-content: center;
    }
}

/* Empty / Error */
.blog-empty {
    padding: 80px 20px;
    text-align: center;
    color: #6b7280;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

/* ────────────────────────────────────
   BLOG POST PAGE
──────────────────────────────────── */

/* Reading Progress */
.reading-progress-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    background: #1d4ed8;
    width: 0%;
    transition: width 0.08s linear;
}

/* Post Hero */
.post-hero {
    padding: 150px 0 50px;
    background: #fff;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.82rem;
    color: #9ca3af;
    margin-bottom: 22px;
    font-weight: 500;
}

.post-breadcrumb a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
}

.post-breadcrumb a:hover {
    text-decoration: underline;
}

.post-hero-title {
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 900;
    color: #111827;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.post-author-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author-avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.post-author-name-txt {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
}

.post-author-meta-txt {
    font-size: 0.78rem;
    color: #9ca3af;
}

/* Banner */
.post-banner-section {
    background: #fff;
    padding: 0;
}

.post-banner-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Post Content Layout */
.post-content-outer {
    padding: 60px 0 100px;
    background: #fff;
}

.post-content-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    align-items: start;
}

@media (max-width: 991px) {
    .post-content-grid {
        grid-template-columns: 1fr;
    }

    .post-sidebar-right {
        display: none;
    }
}

/* Article Body */
.post-article {
    max-width: 760px;
}

.post-intro-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.75;
    border-left: 4px solid #1d4ed8;
    padding-left: 20px;
    margin-bottom: 40px;
}

.post-rich-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111827;
    margin: 48px 0 18px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.post-rich-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin: 36px 0 14px;
}

.post-rich-text p {
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.9;
    margin-bottom: 22px;
}

.post-rich-text ul,
.post-rich-text ol {
    padding-left: 20px;
    margin-bottom: 22px;
}

.post-rich-text li {
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 8px;
}

/* Author Bio */
.post-author-bio {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
    margin-top: 56px;
}

@media (max-width: 600px) {
    .post-author-bio {
        flex-direction: column;
        text-align: center;
    }
}

.post-author-bio-img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-author-bio-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1d4ed8;
    display: block;
    margin-bottom: 5px;
}

.post-author-bio-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #111827;
    display: block;
    margin-bottom: 6px;
}

.post-author-bio-desc {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* FAQ */
.post-faq {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid #e5e7eb;
}

.post-faq h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 24px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    transition: background 0.2s;
}

.faq-btn:hover {
    background: #f9fafb;
}

.faq-item.open>.faq-btn {
    background: #eff6ff;
    color: #1d4ed8;
}

.faq-chevron {
    flex-shrink: 0;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: #1d4ed8;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.faq-answer-inner {
    padding: 4px 22px 22px;
    font-size: 0.93rem;
    color: #6b7280;
    line-height: 1.75;
}

/* Post Footer */
.post-footer-bar {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.share-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    background: #fff;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.share-icon-btn:hover {
    border-color: #1d4ed8;
    color: #1d4ed8;
}

/* Post Right Sidebar */
.post-sidebar-right {
    position: sticky;
    top: 110px;
}

.post-sidebar-widget {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 18px;
}

.post-sidebar-widget h6 {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-bottom: 14px;
}

.sidebar-share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.2s;
    width: 100%;
    cursor: pointer;
}

.sidebar-share-btn:hover {
    border-color: #1d4ed8;
    color: #1d4ed8;
}

/* Loader/Error States */
.view-loader {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Reveal Animation */
.reveal-el {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-el.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ────────────────────────────────────
   SKELETON LOADER
──────────────────────────────────── */

.skeleton {
    background: #f1f5f9;
    background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite linear;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Skeleton Containers */
.skeleton-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 48px;
    border: 1px solid #f1f5f9;
}

.skeleton-featured-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.skeleton-featured-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
}

.skeleton-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
}

.skeleton-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.skeleton-card-body {
    padding: 32px;
}

.skeleton-post-hero {
    padding: 150px 0 50px;
    background: #fff;
}

.skeleton-post-banner {
    width: 100%;
    height: 480px;
    border-radius: 0;
    margin-bottom: 60px;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 12px;
    border-radius: 4px;
    background: #f1f5f9;
    background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite linear;
}

.skeleton-text.title { height: 36px; margin-bottom: 24px; width: 85%; }
.skeleton-text.subtitle { height: 22px; margin-bottom: 16px; width: 65%; }
.skeleton-text.short { width: 35%; }
.skeleton-text.medium { width: 75%; }

.view-loader {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
}

@media (max-width: 1100px) {
    .skeleton-featured {
        grid-template-columns: 1fr;
    }
    .skeleton-featured-img {
        min-height: 280px;
    }
    .skeleton-featured-content {
        padding: 32px;
    }
    .skeleton-post-hero {
        padding: 100px 0 40px;
    }
    .skeleton-post-banner {
        height: 300px;
    }
}

/* Pagination / Load More btn */
.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #1d4ed8;
    border: 2px solid #eff6ff;
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.btn-load-more:hover {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.2);
}

.btn-load-more i {
    font-size: 16px;
}

.btn-load-more:active {
    transform: scale(0.96);
}

/* Post Pagination (Prev/Next) */
.post-next-prev-nav {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eff6ff;
}

.pnp-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
}

.pnp-divider {
    width: 1px;
    height: 40px;
    background: #eff6ff;
}

.pnp-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.pnp-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #1d4ed8;
    letter-spacing: 0.05em;
}

.pnp-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.pnp-item:hover .pnp-title {
    color: #1d4ed8;
}

.pnp-item.prev:hover {
    transform: translateX(-8px);
}

.pnp-item.next:hover {
    transform: translateX(8px);
}

@media (max-width: 600px) {
    .pnp-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pnp-divider { display: none; }
    .pnp-item.next { text-align: left !important; }
}



