/* Insights Page Styles */
.insights-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

.insights-hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.insights-hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Filter Section */
.insights-filter-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #374151;
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 6px;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.filter-btn.active {
    background: #e5e7eb;
    border-color: #6b7280;
    color: #111827;
    font-weight: 600;
}

/* Featured Section */
.featured-section {
    margin: 40px 0;
}

.featured-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #1f2937;
    font-weight: 700;
}

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

.featured-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.featured-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.featured-image a {
    display: block;
    height: 100%;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fbbf24;
    color: #78350f;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 1;
}

.featured-content {
    padding: 25px;
}

.featured-content .post-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.featured-content .post-category {
    color: #3b82f6;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-content .post-date,
.featured-content .post-read-time {
    color: #6b7280;
}

.featured-content h3 {
    font-size: 1.5rem;
    margin: 15px 0;
    line-height: 1.3;
}

.featured-content h3 .article-title-link {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.featured-content h3 .article-title-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.featured-content p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.insight-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.insight-image {
    height: 200px;
    overflow: hidden;
}

.insight-image a {
    display: block;
    height: 100%;
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.insight-card:hover .insight-image img {
    transform: scale(1.05);
}

.insight-content {
    padding: 20px;
}

.post-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.post-category {
    color: #3b82f6;
    font-weight: 600;
    text-transform: uppercase;
}

.post-date {
    color: #6b7280;
}

.insight-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.insight-content h3 .article-title-link {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}

.insight-content h3 .article-title-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.insight-content p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author span {
    font-size: 0.85rem;
    color: #4b5563;
}

.read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.read-more:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Article Page Styles */
.article-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 60px 20px 0;
    position: relative;
}

.article-hero-content {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-category {
    color: #3b82f6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.article-date,
.article-read-time {
    color: #94a3b8;
    font-size: 0.9rem;
}

.article-hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 30px;
    line-height: 1.3;
    font-weight: 700;
}

.article-author-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.article-author-large img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    color: white;
    font-weight: 600;
    display: block;
    font-size: 1rem;
}

.author-title {
    color: #94a3b8;
    font-size: 0.85rem;
}

.article-featured-image {
    max-width: 1000px;
    margin: 0 auto;
}

.article-featured-image img {
    width: 100%;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
}

/* Article Content - White Background */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background: white;
}

.article-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 3fr) 1fr;
    gap: 50px;
    background: white;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    background: white;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #1f2937;
    font-weight: 700;
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #1f2937;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #1f2937;
    font-weight: 600;
}

/* Author Widget */
.author-widget {
    text-align: center;
    margin-bottom: 30px;
}

.author-widget img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.author-widget .author-name {
    display: block;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-widget .author-title {
    display: block;
    color: #3b82f6;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Author tagline */
.author-tagline {
    display: block;
    color: #C1C1C1;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 5px;
    font-style: italic;
}

/* Share Buttons - Horizontal Layout */
.share-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.8;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.email {
    background: #6b7280;
    color: white;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.tag:hover {
    background: #e5e7eb;
}

/* Related Posts */
.related-posts {
    background: #f9fafb;
    padding: 60px 0;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #1f2937;
    font-weight: 700;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.related-image {
    height: 180px;
    overflow: hidden;
}

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

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.related-content {
    padding: 20px;
}

.related-category {
    color: #3b82f6;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.related-content h3 {
    font-size: 1.1rem;
    margin: 10px 0;
    line-height: 1.4;
}

.related-content h3 .article-title-link {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.related-content h3 .article-title-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.related-content p {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.5;
}

.related-author {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 8px 0;
}

.related-author span {
    font-weight: 500;
    color: #4b5563;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 60px 20px;
    margin-top: 60px;
    border-radius: 20px;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.newsletter-section p {
    color: #94a3b8;
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #1e293b;
    color: white;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: #64748b;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #3b82f6;
}

.newsletter-form button {
    padding: 12px 25px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: #2563eb;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 10px;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0;
}

.page-link {
    padding: 8px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s;
}

.page-link:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.page-link.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .article-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .insights-hero h1 {
        font-size: 2rem;
    }
    
    .insights-hero p {
        font-size: 1rem;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 12px;
    }
    
    .featured-content h3 {
        font-size: 1.3rem;
    }
    
    .article-hero h1 {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .article-wrapper {
        gap: 30px;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .post-meta {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .featured-content {
        padding: 20px;
    }
    
    .featured-content h3 {
        font-size: 1.2rem;
    }
    
    .insight-content {
        padding: 15px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .author-widget img {
        width: 70px;
        height: 70px;
    }
}