/**
 * Blog Redesign - Glassmorphism Dark Theme
 *
 * Concept 1: Modern Grid (Archive)
 * Concept 4: Sidebar Layout (Single Post)
 */

/* ==========================================================================
   1. Design System Variables
   ========================================================================== */

:root {
    /* Colors */
    --color-bg: #0B0E2A;
    --color-card-bg: rgba(255, 255, 255, 0.03);
    --color-card-border: rgba(255, 255, 255, 0.1);
    --color-primary: #3B82F6;
    --color-primary-hover: #60A5FA;
    --color-text-main: #FFFFFF;
    --color-text-muted: #9CA3AF;
    --color-widget-bg: #151932;

    /* Spacing */
    --spacing-container: 1280px;
    --spacing-gap: 30px;
    --header-height: 100px;

    /* Effects */
    --effect-blur: blur(10px);
    --effect-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.3);
    --effect-glow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* ==========================================================================
   1.5 Page Spacing - Prevent overlap with fixed header
   ========================================================================== */

.blog-section.page-section {
    padding-top: 120px;
}

.blog-content-section.page-section {
    padding-top: 120px;
}

/* ==========================================================================
   2. Blog Archive Page - Glassmorphism Grid
   ========================================================================== */

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-gap);
    padding: 40px 0;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Obsidian Card - Glassmorphism Style */
.obsidian-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: var(--effect-blur);
    -webkit-backdrop-filter: var(--effect-blur);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.obsidian-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: var(--effect-shadow);
}

.obsidian-card .card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Card Image */
.obsidian-card .card-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin: 0;
}

.obsidian-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.obsidian-card:hover .card-img {
    transform: scale(1.05);
}

.obsidian-card .placeholder-img,
.insight-card .placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #0B0E2A 100%);
}

/* Card Content */
.obsidian-card .card-content {
    padding: 24px;
}

.obsidian-card .card-cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.obsidian-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.obsidian-card .card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.obsidian-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--color-card-border);
}

.obsidian-card .read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.obsidian-card:hover .read-more {
    color: var(--color-primary-hover);
}

.obsidian-card .card-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 0;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 8px;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-text-main);
}

.blog-pagination .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-main);
}

/* ==========================================================================
   3. Blog Single Page - Sidebar Layout
   ========================================================================== */

/* Two Column Layout */
.blog-layout-wrapper {
    display: flex;
    gap: 60px;
    padding: 60px 0;
    max-width: var(--spacing-container);
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .blog-layout-wrapper {
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
    }
}

/* Main Content Column */
.blog-main-content {
    flex: 2;
    min-width: 0;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-card-border);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--color-text-muted);
}

.breadcrumb-list a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
    color: var(--color-primary);
}

.breadcrumb-list li:last-child span {
    color: var(--color-text-main);
    font-weight: 500;
}

/* Post Header */
.post-header {
    margin-bottom: 32px;
}

.post-header .post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.post-header .post-cat {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.post-header .post-cat:hover {
    opacity: 0.8;
}

.post-header .reading-time {
    color: var(--color-text-muted);
}

.post-header .post-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1.2;
    margin: 0 0 20px 0;
}

/* Author Info */
.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--color-card-border);
}

.post-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author .author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.post-author .author-name {
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 14px;
}

.post-author .last-updated {
    font-size: 12px;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .breadcrumb-list {
        font-size: 12px;
    }

    .post-header .post-title {
        font-size: 1.75rem;
    }

    .post-header .post-meta {
        font-size: 12px;
    }
}

/* Featured Image */
.post-featured-image {
    margin: 0 0 40px 0;
    border-radius: 16px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Entry Content Typography */
.blog-main-content .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #E2E8F0;
}

.blog-main-content .entry-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 48px 0 24px 0;
}

.blog-main-content .entry-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin: 40px 0 20px 0;
}

.blog-main-content .entry-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin: 32px 0 16px 0;
}

.blog-main-content .entry-content p {
    margin: 0 0 24px 0;
}

.blog-main-content .entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-main-content .entry-content a:hover {
    color: var(--color-primary-hover);
}

.blog-main-content .entry-content ul,
.blog-main-content .entry-content ol {
    margin: 0 0 24px 24px;
    padding: 0;
}

.blog-main-content .entry-content li {
    margin-bottom: 12px;
}

.blog-main-content .entry-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    border-left: 4px solid var(--color-primary);
    background: var(--color-card-bg);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--color-text-muted);
}

.blog-main-content .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.blog-main-content .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.blog-main-content .entry-content pre,
.blog-main-content .entry-content code {
    background: #1a1f3e;
    border-radius: 8px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.blog-main-content .entry-content pre {
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
}

.blog-main-content .entry-content code {
    padding: 2px 8px;
    font-size: 0.9em;
}

/* Post Footer */
.post-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-card-border);
}

.post-footer .blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.post-footer .tag-item {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-footer .tag-item:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.post-footer .blog-share {
    display: flex;
    align-items: center;
    gap: 16px;
}

.post-footer .share-label {
    font-weight: 600;
    color: var(--color-text-main);
}

.post-footer .share-link {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-footer .share-link:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   4. Sidebar Widgets
   ========================================================================== */

/* Sidebar Column */
.blog-sidebar {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

@media (max-width: 1024px) {
    .blog-sidebar {
        max-width: 100%;
        position: static;
    }
}

/* Widget Base */
.widget {
    background: var(--color-widget-bg);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-card-border);
}

/* Search Widget */
.search-widget .search-form {
    display: flex;
    gap: 8px;
}

.search-widget input[type="search"],
.search-widget input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 8px;
    color: var(--color-text-main);
    font-size: 0.9rem;
}

.search-widget input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-widget button {
    padding: 12px 20px;
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-widget button:hover {
    background: var(--color-primary-hover);
}

/* Categories Widget */
.categories-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-widget li {
    margin-bottom: 12px;
}

.categories-widget a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease;
}

.categories-widget a:hover {
    color: var(--color-primary);
}

.categories-widget .count {
    font-size: 0.75rem;
    background: var(--color-card-bg);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Subscribe Widget - Gradient */
.subscribe-widget {
    background: linear-gradient(135deg, #1e3a8a 0%, #0B0E2A 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.subscribe-widget p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0 0 16px 0;
}

.subscribe-widget input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--color-text-main);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.subscribe-widget input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.subscribe-widget input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

.subscribe-widget .subscribe-btn {
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-widget .subscribe-btn:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--effect-glow);
}

/* CF7 Subscribe Form Override */
.subscribe-widget .wpcf7 input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--color-text-main);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.subscribe-widget .wpcf7 input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.subscribe-widget .wpcf7 input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

.subscribe-widget .wpcf7 input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-widget .wpcf7 input[type="submit"]:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--effect-glow);
}

.subscribe-widget .wpcf7-response-output {
    margin: 12px 0 0 0;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Recent Posts Widget */
.recent-posts-widget .recent-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.recent-posts-widget .recent-post-item:last-child {
    border-bottom: none;
}

.recent-posts-widget .recent-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-posts-widget .recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-posts-widget .recent-post-info h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.recent-posts-widget .recent-post-info span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   5. Related Posts Section
   ========================================================================== */

.related-posts-section {
    padding: 60px 0;
    border-top: 1px solid var(--color-card-border);
}

.related-posts-section .section-head {
    margin-bottom: 32px;
}

.related-posts-section .main-title {
    font-size: 1.5rem;
    color: var(--color-text-main);
}

/* ==========================================================================
   6. Blog Navigation
   ========================================================================== */

.blog-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-card-border);
}

.blog-navigation a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 45%;
}

.blog-navigation a:hover {
    border-color: var(--color-primary);
    color: var(--color-text-main);
}

.blog-navigation a span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-navigation .nav-next {
    margin-left: auto;
    text-align: right;
}

@media (max-width: 768px) {
    .blog-navigation {
        flex-direction: column;
    }

    .blog-navigation a {
        max-width: 100%;
    }
}

/* ==========================================================================
   10. Table of Contents - Floating Sidebar
   ========================================================================== */

.table-of-contents {
    background: var(--color-widget-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-card-border);
}

.toc-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-main);
}

.toc-toggle {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
    transition: color 0.2s;
}

.toc-toggle:hover {
    color: var(--color-primary);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.toc-list.collapsed {
    display: none;
}

.toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 8px;
}

.toc-list li a {
    display: block;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

.toc-list li a::before {
    content: counter(toc-counter) ". ";
    color: var(--color-primary);
    font-weight: 500;
}

.toc-list li a:hover,
.toc-list li a.active {
    color: var(--color-text-main);
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--color-primary);
}

.toc-list li.toc-h3 a {
    padding-left: 28px;
    font-size: 13px;
}

.toc-list li.toc-h3 a::before {
    content: "• ";
}

/* Empty TOC - hide when no headings */
.table-of-contents.toc-empty {
    display: none;
}

/* Floating TOC for desktop - DISABLED, using inline instead */
/*
@media (min-width: 1200px) {
    .table-of-contents.toc-floating {
        position: fixed;
        top: 120px;
        left: calc((100vw - 1280px) / 2 - 280px);
        width: 250px;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
        z-index: 100;
    }
}
*/

@media (max-width: 1199px) {
    .table-of-contents {
        margin-top: 20px;
    }
}

/* ==========================================================================
   11. Blog Category Tabs - Mobile First
   ========================================================================== */

.blog-tabs-wrapper {
    margin-bottom: 30px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Mobile: Gradient fade indicator for scroll */
.blog-tabs-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to right, transparent, var(--color-bg));
    pointer-events: none;
    z-index: 2;
}

.blog-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 50px 8px 0;
    /* Right padding for fade */
}

.blog-tabs::-webkit-scrollbar {
    display: none;
}

/* First tab (All) should always be fully visible */
.blog-tab:first-child {
    scroll-snap-align: start;
    margin-left: 0;
}

.blog-tab {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 10px 16px;
    background: var(--color-widget-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 25px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.blog-tab:hover {
    color: var(--color-text-main);
    border-color: var(--color-primary);
}

.blog-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.blog-tab .tab-count {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 12px;
}

.blog-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Tab Panels */
.blog-tab-panels {
    position: relative;
    min-height: 400px;
}

.blog-tab-panel {
    display: none;
}

.blog-tab-panel.active {
    display: block;
}

/* Loading Spinner */
.tab-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-card-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Load More Button */
.blog-ajax-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 30px;
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Desktop Tabs */
@media (min-width: 768px) {
    .blog-tabs-wrapper::after {
        display: none;
        /* Hide fade gradient on desktop */
    }

    .blog-tabs {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        overflow-x: visible;
        padding: 8px 0;
        margin: 0;
        padding-left: 0;
    }

    .blog-tab {
        padding: 12px 28px;
        font-size: 15px;
    }
}

/* ==========================================================================
   12. Homepage Latest Insights Slider
   ========================================================================== */

.insights-section {
    padding: 80px 0;
}

.insights-slider {
    margin-top: 40px;
}

.insight-card {
    padding: 0 10px;
}

.insight-card .card-link {
    display: block;
    background: var(--color-widget-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.insight-card .card-link:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--effect-shadow);
}

.insight-card .card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    margin: 0;
}

.insight-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insight-card .card-body {
    padding: 20px;
}

.insight-card .card-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 15px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.insight-card .card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-card .card-excerpt {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.insight-card .read-more {
    color: var(--color-primary);
    font-weight: 500;
}

.insight-card .card-date {
    color: var(--color-text-muted);
}

.insights-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 30px;
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Owl Carousel overrides for insights slider */
.insights-slider.owl-carousel {
    display: block;
}

.insights-slider.owl-carousel .owl-stage-outer {
    overflow: hidden;
}

.insights-slider.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.insights-slider.owl-carousel .owl-item {
    float: none;
    min-height: 100%;
}

.insights-slider.owl-carousel .owl-item .insight-card {
    height: 100%;
}

.insights-slider.owl-carousel .owl-item .insight-card .card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.insights-slider.owl-carousel .owl-item .insight-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.insights-slider.owl-carousel .owl-item .insight-card .card-excerpt {
    flex: 1;
}

/* Owl Carousel Navigation */
.insights-slider.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 10px;
}

.insights-slider.owl-carousel .owl-nav button {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    background: var(--color-widget-bg) !important;
    border: 1px solid var(--color-card-border) !important;
    border-radius: 50%;
    color: var(--color-primary) !important;
    font-size: 18px;
    transition: all 0.2s ease;
}

.insights-slider.owl-carousel .owl-nav button:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
}

.insights-slider.owl-carousel .owl-nav button.disabled {
    opacity: 0.3;
    cursor: default;
}

.insights-slider.owl-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.insights-slider.owl-carousel .owl-dots .owl-dot {
    width: 10px;
    height: 10px;
    background: var(--color-card-border);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.insights-slider.owl-carousel .owl-dots .owl-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .insights-section {
        padding: 50px 0;
    }

    .insights-slider {
        margin-top: 25px;
    }

    .insight-card {
        padding: 0 5px;
    }

    .insight-card .card-image {
        height: 160px;
    }

    .insight-card .card-body {
        padding: 15px;
    }

    .insight-card .card-title {
        font-size: 16px;
    }

    .insight-card .card-excerpt {
        font-size: 13px;
    }

    .insights-footer {
        margin-top: 30px;
    }

    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .insights-slider.owl-carousel .owl-nav {
        display: none;
    }
}