/* ============================================
   ODYSSIX BLOG - Mockup Design v3.0
   Based on Odyssix design system
   Colors: #3c72fc (primary), #102039 (navy)
   Fonts: Inter, Roboto
   Buttons: pill (border-radius: 9999px)
   ============================================ */

/* === HIDE COMMENTS EVERYWHERE === */
.comments-area,
.comment-respond,
.comments-title,
#comments,
#respond,
.comment-form,
.blog-post-nav,
.post-navigation,
.single-post-meta,
.author-biography {
    display: none !important;
}

/* ==========================================
   BLOG LISTING PAGE
   ========================================== */
.blog-listing-section {
    padding: 80px 0;
    background: #f8f9fb;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Blog Card */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    border: 1px solid #eef0f5;
    margin-bottom: 0;
}

.blog-card:hover {
    box-shadow: 0 12px 40px rgba(60, 114, 252, 0.1);
    transform: translateY(-6px);
}

.blog-card-thumb {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-card-thumb a {
    display: block;
    height: 100%;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.06);
}

.blog-card-cat {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #3c72fc;
    color: #fff;
    padding: 5px 16px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
}

.blog-card-body {
    padding: 24px 28px 28px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #9ca3af;
}

.blog-card-meta i {
    color: #3c72fc;
    margin-right: 4px;
    font-size: 12px;
}

.blog-card h3,
h3.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #102039;
    line-height: 1.35;
    margin-bottom: 10px;
}

.blog-card h3 a {
    color: #102039;
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: #3c72fc;
}

p.blog-card-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3c72fc !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
}

.blog-card-link:hover {
    gap: 14px;
}

.blog-card-link i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-link i {
    transform: translateX(4px);
}

/* Featured card - full width, horizontal */
.blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.blog-card.featured .blog-card-thumb {
    height: 100%;
    min-height: 340px;
}

.blog-card.featured .blog-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 40px;
}

.blog-card.featured h3 {
    font-size: 26px;
}

.blog-card.featured p.blog-card-excerpt {
    -webkit-line-clamp: 4;
}

/* ==========================================
   SINGLE ARTICLE PAGE
   ========================================== */
.article-section {
    padding: 60px 0 80px;
    background: #f8f9fb;
}

.article-container {
    max-width: 820px;
    margin: 0 auto;
}

.article-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.article-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-hero-cat {
    display: inline-block;
    background: #3c72fc;
    color: #fff !important;
    padding: 5px 18px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-decoration: none !important;
}

.article-hero-cat:hover {
    background: #2b5ce0;
}

.article-content-area {
    padding: 40px 48px 48px;
}

h1.article-title,
.article-title {
    font-size: 34px !important;
    font-weight: 800 !important;
    color: #102039 !important;
    line-height: 1.25 !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.5px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 28px;
    margin-bottom: 32px;
    border-bottom: 1px solid #eef0f5;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.article-meta-item i {
    color: #3c72fc;
    font-size: 14px;
}

.article-meta-item a {
    color: #6b7280;
    text-decoration: none;
}

.article-meta-item a:hover {
    color: #3c72fc;
}

/* Article Body Content */
.article-body {
    font-size: 17px;
    line-height: 1.85;
    color: #374151;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 700;
    color: #102039;
    margin: 40px 0 16px;
    padding-top: 8px;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 21px;
    font-weight: 700;
    color: #102039;
    margin: 32px 0 12px;
    line-height: 1.35;
}

.article-body h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 24px 0 10px;
}

.article-body p {
    margin-bottom: 18px;
    color: #374151;
}

.article-body strong {
    color: #102039;
}

.article-body a {
    color: #3c72fc;
    text-decoration: none;
    font-weight: 500;
}

.article-body a:hover {
    text-decoration: underline;
}

/* Unordered lists */
.article-body ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
}

.article-body ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-body ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 11px;
    width: 8px;
    height: 8px;
    background: #3c72fc;
    border-radius: 50%;
}

/* Ordered lists */
.article-body ol {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
    counter-reset: ol-counter;
}

.article-body ol li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 14px;
    line-height: 1.7;
    counter-increment: ol-counter;
}

.article-body ol li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    background: #3c72fc;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blockquote / Info box */
.article-body blockquote {
    background: #f0f4ff;
    border-left: 4px solid #3c72fc;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
    font-style: italic;
    color: #1f2937;
}

/* CTA Block in article */
.article-cta {
    background: linear-gradient(135deg, #102039 0%, #1a3a5c 100%);
    border-radius: 14px;
    padding: 36px 40px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.article-cta-text h4 {
    color: #fff !important;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    margin-top: 0;
}

.article-cta-text p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px;
    margin: 0 !important;
}

.cta-btn {
    background: #3c72fc;
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: none;
}

.cta-btn:hover {
    background: #2b5ce0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(60, 114, 252, 0.3);
    color: #fff !important;
}

/* Tags */
.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 28px;
    margin-top: 32px;
    border-top: 1px solid #eef0f5;
}

.article-tags .tag-label {
    font-size: 14px;
    font-weight: 600;
    color: #102039;
    margin-right: 4px;
}

.article-tags .tag-label i {
    color: #9ca3af;
}

.article-tag {
    background: #f3f4f6;
    color: #4b5563 !important;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: #3c72fc;
    color: #fff !important;
}

/* Share */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eef0f5;
}

.article-share .share-label {
    font-size: 14px;
    font-weight: 600;
    color: #102039;
}

.share-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.share-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff !important;
}

.share-icon.linkedin { background: #0A66C2; }
.share-icon.twitter { background: #1a1a1a; }
.share-icon.email { background: #6b7280; }

/* ==========================================
   RELATED ARTICLES
   ========================================== */
.related-section {
    margin-top: 50px;
}

.related-section > h3 {
    font-size: 24px;
    font-weight: 700;
    color: #102039;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 14px;
}

.related-section > h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #3c72fc;
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef0f5;
    transition: all 0.35s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(60, 114, 252, 0.1);
}

.related-card-thumb {
    height: 160px;
    overflow: hidden;
}

.related-card-thumb a {
    display: block;
    height: 100%;
}

.related-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.related-card:hover .related-card-thumb img {
    transform: scale(1.05);
}

.related-card-body {
    padding: 18px 20px;
}

.related-card-date {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-card-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: #102039;
    line-height: 1.4;
    margin-top: 6px;
}

.related-card-body h4 a {
    color: #102039;
    text-decoration: none;
}

.related-card-body h4 a:hover {
    color: #3c72fc;
}

/* ==========================================
   PAGINATION
   ========================================== */
.basic-pagination {
    text-align: center;
    margin-top: 40px;
}

.basic-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 4px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.basic-pagination .page-numbers.current,
.basic-pagination .page-numbers:hover {
    background: #3c72fc;
    color: #fff;
    border-color: #3c72fc;
    box-shadow: 0 4px 12px rgba(60, 114, 252, 0.3);
}

/* ==========================================
   OVERRIDE THEME DEFAULTS
   ========================================== */

/* Remove old theme blog styles */

/* Override breadcrumb title for blog */
.breadcrumb__wrapper .breadcrumb__title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card.featured {
        grid-template-columns: 1fr;
    }

    .blog-card.featured .blog-card-thumb {
        min-height: 240px;
        height: 240px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-content-area {
        padding: 28px 24px 32px;
    }

    h1.article-title,
    .article-title {
        font-size: 28px !important;
    }

    .article-hero {
        height: 300px;
    }

    .article-cta {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }
}

@media (max-width: 768px) {
    .blog-listing-section {
        padding: 50px 0;
    }

    .blog-card-thumb {
        height: 200px;
    }

    .blog-card-body {
        padding: 20px;
    }

    .article-section {
        padding: 40px 0 60px;
    }

    .article-content-area {
        padding: 24px 20px 28px;
    }

    h1.article-title,
    .article-title {
        font-size: 24px !important;
    }

    .article-hero {
        height: 240px;
    }

    .article-body h2 {
        font-size: 22px;
    }

    .article-body h3 {
        font-size: 19px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-cta {
        flex-direction: column;
        text-align: center;
    }

    .article-share {
        flex-wrap: wrap;
    }
}


/* ========== TABLE DES MATIERES ========== */
.article-toc {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border: 1px solid #d0daf5;
    border-left: 4px solid #3c72fc;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 32px;
    position: relative;
}
.article-toc .toc-title {
    font-size: 18px !important;
    font-weight: 700;
    color: #102039;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    border: none !important;
}
.article-toc .toc-list {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
    margin: 0;
}
.article-toc .toc-item {
    counter-increment: toc-counter;
    margin-bottom: 8px;
    padding-left: 0;
}
.article-toc .toc-item::before {
    content: counter(toc-counter) ".";
    color: #3c72fc;
    font-weight: 700;
    margin-right: 8px;
    font-size: 14px;
}
.article-toc .toc-item a {
    color: #102039;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.article-toc .toc-item a:hover {
    color: #3c72fc;
}
.article-toc .toc-item.toc-sub {
    padding-left: 24px;
    font-size: 14px;
}
.article-toc .toc-item.toc-sub::before {
    color: #7a8ba8;
    font-size: 12px;
}


/* ========== FAQ ACCORDION v2 ========== */
.faq-accordion-section {
    background: #f8f9fb;
    border-radius: 16px;
    padding: 32px;
    margin: 48px 0 24px;
}
.faq-accordion-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #102039 !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    border: none !important;
}
.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-accordion-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.25s ease;
}
.faq-accordion-item:hover {
    border-color: #3c72fc;
    box-shadow: 0 2px 12px rgba(60,114,252,0.08);
}
.faq-accordion-item.open {
    border-color: #3c72fc;
    box-shadow: 0 4px 16px rgba(60,114,252,0.12);
}
.faq-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    gap: 16px;
}
.faq-accordion-trigger:hover {
    background: #f8f9fb;
}
.faq-accordion-q {
    font-size: 16px;
    font-weight: 700;
    color: #102039;
    line-height: 1.4;
    flex: 1;
}
.faq-accordion-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f4ff;
    color: #3c72fc;
    transition: transform 0.25s ease, background 0.25s ease;
}
.faq-accordion-item.open .faq-accordion-icon {
    transform: rotate(180deg);
    background: #3c72fc;
    color: #fff;
}
.faq-accordion-panel {
    padding: 0 24px 20px;
}
.faq-accordion-panel p {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    margin: 0;
    padding-top: 4px;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

@media (max-width: 768px) {
    .faq-accordion-section {
        padding: 20px 16px;
    }
    .faq-accordion-trigger {
        padding: 16px;
    }
    .faq-accordion-q {
        font-size: 15px;
    }
    .faq-accordion-panel {
        padding: 0 16px 16px;
    }
}
