/* ============================================
   Elogic News Module - Frontend Styles
   ============================================ */

/* ----- List Page ----- */
.news-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

.news-list-header {
    margin-bottom: 24px;
}

.news-list-main-title {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(90deg, #00b2b2 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Top Tag Pills Navigation */
.news-tags-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.news-tag-pill-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 25px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.news-tag-pill-btn:hover {
    border-color: #cbd5e0;
    color: #2d3748;
    transform: translateY(-1px);
}

.news-tag-pill-btn.active {
    border-color: #b3c5ea;
    background: #ffffff;
    color: #2b6cb0;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.12);
}

/* 4-column Main Cards Grid */
.news-cards-main-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .news-cards-main-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .news-cards-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .news-cards-main-grid {
        grid-template-columns: 1fr;
    }
}

/* Load More Button */
.news-load-more-wrapper {
    text-align: center;
    margin: 40px 0 30px;
}

.btn-load-more-news {
    display: inline-block;
    padding: 14px 48px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(90deg, #d3c4e5 0%, #c4dbed 100%);
    color: #2d3748;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-load-more-news:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ----- Tags ----- */
.news-item-tags,
.news-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.news-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f4fa;
    border: 1px solid #c8d8e8;
    border-radius: 12px;
    font-size: 12px;
    color: #1979c3;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.news-tag:hover {
    background: #1979c3;
    color: #fff;
    border-color: #1979c3;
}

/* ----- Pager ----- */
.news-pager {
    margin-top: 20px;
    text-align: center;
}

/* ============================================
   NEWS DETAIL PAGE - FIGMA DESIGN STYLES
   ============================================ */

.news-detail-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    color: #111827;
}

/* 1. Breadcrumbs */
.news-breadcrumbs {
    margin-bottom: 20px;
}

.news-breadcrumbs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.news-breadcrumb-item a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.news-breadcrumb-item a:hover {
    color: #111827;
}

.news-breadcrumb-item.active {
    color: #9ca3af;
}

.news-breadcrumb-separator {
    color: #d1d5db;
}

/* 2. Header Section */
.news-detail-header {
    margin-bottom: 28px;
}

.news-publish-date {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-publish-date::before {
    content: "📅";
    font-size: 14px;
}

.news-detail-title {
    font-size: 36px;
    line-height: 1.25;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.news-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.news-tag-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}

/* Main Image */
.news-detail-main-image {
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.news-detail-main-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* 3. Short Content */
.news-detail-short-desc {
    font-size: 18px;
    line-height: 1.6;
    color: #374151;
    background: #f9fafb;
    border-left: 4px solid #111827;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 32px;
    font-weight: 400;
}

/* 4. Table of Contents (TOC) */
.news-toc-container {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.news-toc-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-toc-item.level-h3 {
    padding-left: 20px;
}

.news-toc-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

.news-toc-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
    transform: translateX(4px);
}

/* 5. Content Body */
.news-detail-content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 48px;
}

.news-detail-content-body h2 {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin-top: 36px;
    margin-bottom: 16px;
    scroll-margin-top: 80px;
}

.news-detail-content-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-top: 28px;
    margin-bottom: 12px;
    scroll-margin-top: 80px;
}

.news-detail-content-body p {
    margin-bottom: 20px;
}

.news-detail-content-body blockquote {
    border-left: 4px solid #111827;
    padding-left: 16px;
    font-style: italic;
    color: #4b5563;
    margin: 24px 0;
}

.news-detail-content-body img {
    border-radius: 12px;
    margin: 24px 0;
    max-width: 100%;
    height: auto;
}

/* 6. Prev / Next Navigation */
.news-prev-next-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 56px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 28px 0;
}

.news-nav-link {
    display: block;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.news-nav-link:hover {
    background: #ffffff;
    border-color: #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.news-nav-next {
    text-align: right;
}

.news-nav-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.news-nav-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
}

/* 7 & 8. Related Sections & Cards (Figma Carousel) */
.news-related-section {
    margin-bottom: 60px;
}

/* Author Info Under Article */
.news-article-author-info {
    margin: 40px 0 24px;
    font-family: inherit;
}

.news-article-author-info .news-author-label {
    font-size: 14px;
    color: #a0aec0;
    margin-bottom: 2px;
}

.news-article-author-info .news-author-name {
    font-size: 15px;
    font-weight: 600;
    color: #4a5568;
}

.author-news-title,
.news-related-section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 28px;
    background: linear-gradient(90deg, #00b2b2 0%, #2b6cb0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.news-related-section-title::after {
    display: none;
}

/* Slider Grid Layout override for Slick */
.news-cards-grid.slick-initialized {
    display: block;
    position: relative;
    padding: 0 40px;
}

.news-cards-grid.slick-initialized .slick-track {
    display: flex !important;
    gap: 0;
}

.news-cards-grid.slick-initialized .slick-slide {
    height: auto;
    padding: 0 10px;
}

.news-cards-grid.slick-initialized .slick-slide > div {
    height: 100%;
}

/* Custom Slick Arrows */
.news-cards-grid .slick-prev,
.news-cards-grid .slick-next {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0;
    color: transparent;
    outline: none;
    transition: transform 0.2s;
}

.news-cards-grid .slick-prev:hover,
.news-cards-grid .slick-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.news-cards-grid .slick-prev::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23718096' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 19l-7-7 7-7' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.news-cards-grid .slick-next::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23718096' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.news-cards-grid .slick-prev {
    left: -5px;
}

.news-cards-grid .slick-next {
    right: -5px;
}

/* Card Styling (Figma Design) */
.news-card-item {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
    padding-bottom: 20px;
}

.news-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.news-card-img-wrap {
    display: block;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #f7fafc;
    padding: 10px;
}

.news-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.news-card-item:hover .news-card-img-wrap img {
    transform: scale(1.04);
}

.news-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
}

.news-card-tags {
    font-size: 11px;
    color: #a0aec0;
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-card-tag {
    display: inline;
    margin: 0 2px;
}

.news-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 10px 0;
    color: #2d3748;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
}

.news-card-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s;
}

.news-card-title a:hover {
    color: #3182ce;
}

.news-card-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: #a0aec0;
    margin-bottom: 14px;
}

.news-card-cta-btn {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, #e9ddf5 0%, #dbe7f8 100%);
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.news-card-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #2d3748;
}

/* "Всі новини" Centered Button */
.all-news-btn-wrapper {
    text-align: center;
    margin: 36px 0 56px;
}

.btn-all-news {
    display: inline-block;
    padding: 14px 52px;
    border-radius: 30px;
    background: linear-gradient(90deg, #d3c4e5 0%, #c4dbed 100%);
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-all-news:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    color: #1a202c;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .news-list,
    .news-cards-grid {
        grid-template-columns: 1fr;
    }

    .news-detail-title {
        font-size: 26px;
    }

    .news-prev-next-nav {
        grid-template-columns: 1fr;
    }

    .news-nav-next {
        text-align: left;
    }
}

/* ----- Custom Figma Pager ----- */
.news-custom-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 40px 0 20px;
}

.news-custom-pager .pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.news-custom-pager .pager-btn:hover:not(.disabled) {
    border-color: #3182ce;
    color: #3182ce;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.12);
}

.news-custom-pager .pager-btn.disabled {
    opacity: 0.45;
    cursor: default;
    border-color: #edf2f7;
    color: #a0aec0;
}

.news-custom-pager .pager-pages-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-custom-pager .pager-page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.news-custom-pager .pager-page-item a,
.news-custom-pager .pager-page-item span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #ffffff;
}

.news-custom-pager .pager-page-item a:hover {
    border-color: #3182ce;
    color: #3182ce;
}

.news-custom-pager .pager-page-item.active span {
    border-color: #3182ce;
    color: #3182ce;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.15);
}

.news-custom-pager .pager-page-item.dots span {
    border: none;
    background: transparent;
    color: #a0aec0;
    font-size: 16px;
    width: auto;
    padding: 0 4px;
}

/* ============================================
   BLOG LIST PAGE - FIGMA DESIGN STYLES
   ============================================ */

.blog-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 60px;
    color: #1e293b;
    width: 100%;
}

/* 1. Hero Section */
.blog-hero-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 40px !important;
    margin-top: 10px !important;
    margin-bottom: 40px !important;
    background: transparent !important;
    width: 100% !important;
}

.blog-hero-left {
    position: relative !important;
    width: 180px !important;
    max-width: 180px !important;
    flex-shrink: 0 !important;
}

.blog-hero-img {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.blog-hero-right {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
}

.blog-hero-title {
    font-size: 52px !important;
    font-weight: 800 !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.1 !important;
    letter-spacing: -1px !important;
}

.blog-title-cyan {
    color: #00b2b2 !important;
}

.blog-title-grad {
    background: linear-gradient(90deg, #00b2b2 0%, #9333ea 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* 2. Category Filter Pills */
.blog-tags-filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
}

.blog-tag-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 28px !important;
    border-radius: 30px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

.blog-tag-pill-btn:nth-child(1) {
    border-color: #f43f5e !important;
}

.blog-tag-pill-btn:nth-child(2) {
    border-color: #38bdf8 !important;
}

.blog-tag-pill-btn:nth-child(3) {
    border-color: #f97316 !important;
}

.blog-tag-pill-btn:hover,
.blog-tag-pill-btn.active {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
    font-weight: 600 !important;
}

.blog-tag-pill-btn.active {
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.15) !important;
}

/* 3. Cards Grid (4 Columns) */
.blog-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

.blog-card-item {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 0 0 20px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.blog-card-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

.blog-card-img-wrap {
    position: relative !important;
    width: 100% !important;
    height: 180px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
}

.blog-card-img-backdrop {
    position: absolute !important;
    width: 140px !important;
    height: 140px !important;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.15) 0%, rgba(192, 132, 252, 0.15) 100%) !important;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70% !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
}

.blog-card-img-link {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.blog-card-img-link img {
    max-width: 85% !important;
    max-height: 85% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.blog-card-item:hover .blog-card-img-link img {
    transform: scale(1.05) !important;
}

.blog-card-no-img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
}

.blog-card-content {
    padding: 0 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}

.blog-card-tags {
    font-size: 11px !important;
    color: #94a3b8 !important;
    margin-bottom: 8px !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

.blog-card-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 0 10px 0 !important;
    text-align: center !important;
    height: 38px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.blog-card-title a {
    color: #1e293b !important;
    text-decoration: none !important;
}

.blog-card-title a:hover {
    color: #9333ea !important;
}

.blog-card-meta {
    text-align: center !important;
    margin-bottom: 14px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
}

.blog-card-author-line .author-label {
    color: #94a3b8 !important;
}

.blog-card-author-line .author-name {
    color: #94a3b8 !important;
}

.blog-card-date {
    display: block !important;
    color: #cbd5e1 !important;
}

.blog-card-footer {
    margin-top: auto !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.blog-card-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 32px !important;
    border-radius: 25px !important;
    background: linear-gradient(90deg, #d3c4e5 0%, #c4dbed 100%) !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.blog-card-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* 4. Load More Button (Centered) */
.blog-load-more-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 30px 0 40px !important;
    width: 100% !important;
}

.btn-load-more-blog {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 48px !important;
    border-radius: 30px !important;
    background: linear-gradient(90deg, #d3c4e5 0%, #c4dbed 100%) !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.btn-load-more-blog:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1) !important;
}

/* 5. Custom Pager Styling */
.blog-pager-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 20px !important;
    width: 100% !important;
}

.news-custom-pager {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
}

.news-custom-pager .pager-prev,
.news-custom-pager .pager-next {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 28px !important;
    border-radius: 25px !important;
    border: 1.5px solid #f43f5e !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.news-custom-pager .pager-prev:hover,
.news-custom-pager .pager-next:hover {
    background: #fff1f2 !important;
}

.news-custom-pager .pager-page-item a,
.news-custom-pager .pager-page-item span {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 1px solid #e2e8f0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    color: #475569 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.news-custom-pager .pager-page-item.active span,
.news-custom-pager .pager-page-item.active a {
    border-color: #ec4899 !important;
    color: #d946ef !important;
    font-weight: 700 !important;
}

.news-custom-pager .pager-ellipsis {
    color: #94a3b8 !important;
    font-size: 16px !important;
}

/* 6. Responsive Adjustments */
@media (max-width: 1024px) {
    .blog-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .blog-hero-section {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    .blog-hero-title {
        font-size: 36px !important;
    }

    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .blog-cards-grid {
        grid-template-columns: 1fr !important;
    }

    .blog-hero-left {
        width: 140px !important;
    }
}

/* ============================================
   BLOG DETAIL PAGE - FIGMA DESIGN STYLES
   ============================================ */

.blog-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 60px;
    color: #1e293b;
    font-family: inherit;
}

/* Breadcrumbs */
.blog-detail-breadcrumbs {
    margin-bottom: 24px;
    font-size: 14px;
}

.blog-breadcrumbs-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: #64748b;
}

.blog-breadcrumb-item a {
    color: #00b2b2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-breadcrumb-item a:hover {
    color: #9333ea;
}

.blog-breadcrumb-item.active span {
    color: #64748b;
}

.blog-breadcrumb-separator {
    color: #cbd5e1;
}

/* Header Flex Section */
.blog-detail-header-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
}

.blog-header-info-col {
    flex: 1 1 50%;
    max-width: 580px;
}

.blog-detail-date {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-detail-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 20px 0;
    color: #00A3DF;
    background: linear-gradient(135deg, #00A3DF 0%, #D4145A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-detail-tags {
    font-size: 13px;
    color: #00A3DF;
    font-weight: 500;
    line-height: 1.5;
}

.blog-header-tag-link {
    color: #00A3DF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-header-tag-link:hover {
    color: #D4145A;
}

.blog-tag-sep {
    color: #94a3b8;
}

.blog-header-media-col {
    flex: 0 0 500px;
    max-width: 500px;
    width: 100%;
}

.blog-header-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.blog-header-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.blog-header-main-img img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Short Description */
.blog-detail-short-desc {
    font-size: 17px;
    line-height: 1.65;
    color: #334155;
    background: #f8fafc;
    border-left: 4px solid #00b2b2;
    padding: 18px 24px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 32px;
    font-weight: 500;
}

/* Table of Contents (Зміст) */
.blog-toc-card {
    background: #f8fafc;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 40px;
    border-left: 4px solid #00b2b2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.blog-toc-title {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 14px;
}

.blog-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-toc-item {
    font-size: 15px;
}

.blog-toc-link {
    color: #00b2b2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.blog-toc-link:hover,
.blog-toc-link.active {
    color: #d946ef;
    text-decoration: underline;
}

/* Content Body */
.blog-detail-content-body {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 40px;
}

.blog-detail-content-body h2,
.blog-detail-content-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 36px;
    margin-bottom: 16px;
    scroll-margin-top: 100px;
}

.blog-detail-content-body p {
    margin-bottom: 18px;
}

.blog-detail-content-body ul,
.blog-detail-content-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.blog-detail-content-body li {
    margin-bottom: 8px;
}

.blog-detail-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 24px auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.blog-images-row {
    display: flex;
    gap: 20px;
    margin: 28px 0;
    width: 100%;
}

.blog-images-row img {
    width: calc(50% - 10px);
    max-width: 50%;
    height: auto;
    border-radius: 14px;
    margin: 0;
    display: inline-block;
    object-fit: cover;
}

/* Prev / Next Article Navigation */
.blog-prev-next-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0 30px;
    padding: 24px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.blog-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.blog-nav-link:hover {
    border-color: #00b2b2;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 178, 178, 0.08);
}

.blog-nav-next {
    text-align: right;
    align-items: flex-end;
}

.blog-nav-prev {
    text-align: left;
    align-items: flex-start;
}

.blog-nav-label {
    font-size: 12px;
    font-weight: 600;
    color: #00b2b2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-nav-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .blog-prev-next-nav {
        grid-template-columns: 1fr;
    }
    .blog-nav-next {
        text-align: left;
        align-items: flex-start;
    }
}

/* Author Section */
.blog-author-card {
    margin: 40px 0 50px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.blog-author-label {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.blog-author-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.blog-author-other-link {
    color: #00b2b2;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.blog-author-other-link:hover {
    color: #9333ea;
}

/* Sliders */
.blog-slider-section {
    margin-bottom: 60px;
}

.blog-slider-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
    color: #0f172a;
}

.blog-gradient-text {
    background: linear-gradient(90deg, #00b2b2 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Back to List Button */
.blog-back-btn-container {
    text-align: center;
    margin: 40px 0 60px;
}

.btn-back-to-blog-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 44px;
    border-radius: 30px;
    background: linear-gradient(90deg, #e9ddf5 0%, #dbe7f8 100%);
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    border: 1px solid #f1f5f9;
}

.btn-back-to-blog-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

/* Mobile responsive */
@media (max-width: 992px) {
    .blog-detail-header-flex {
        flex-direction: column;
        gap: 24px;
    }
    .blog-header-media-col {
        max-width: 100%;
        flex: 1 1 100%;
    }
}






