/* ==================== INSIGHTS PAGE STYLES ==================== */

/* Featured Section */
.featured-section {
    padding: 4rem 0;
    background: white;
}

.featured-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.featured-image {
    position: relative;
    height: 300px;
    background: var(--color-primary-light);
    overflow: hidden;
}

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

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.featured-content {
    padding: 2rem;
}

.featured-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-black);
    line-height: 1.3;
}

.featured-content p {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.featured-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-gray);
}

.meta-date,
.meta-read {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Featured Sidebar */
.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.sidebar-card {
    display: block;
    text-decoration: none;
    background: var(--color-primary-light);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
}

.sidebar-card:hover {
    background: var(--color-black);
    color: white;
}

.sidebar-card:hover .sidebar-type {
    color: var(--color-primary);
}

.sidebar-card:hover h4 {
    color: white;
}

.sidebar-card:hover .meta-date {
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.sidebar-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.sidebar-card .meta-date {
    font-size: 0.8rem;
    color: var(--color-gray);
}

/* Filter Section */
.filter-section {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #e5e7eb;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.filter-btn.active {
    background: var(--color-black);
    border-color: var(--color-black);
    color: white;
}

/* Content Grid Section */
.content-grid-section {
    padding: 4rem 0;
    background: var(--color-primary-light);
}

.insight-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.insight-image {
    height: 180px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #e8f4f8 100%);
    overflow: hidden;
}

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

.insight-content {
    padding: 1.5rem;
}

.insight-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.insight-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.insight-content p {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.insight-meta {
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* Load More Button */
.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background: white;
}

.newsletter-box {
    background: var(--color-black);
    border-radius: 16px;
    padding: 3rem;
    color: white;
}

.newsletter-box h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-box p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.newsletter-form .input-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
}

.newsletter-form input[type="email"]:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.newsletter-form .btn-primary-hst {
    white-space: nowrap;
}

.form-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .featured-sidebar {
        margin-top: 1.5rem;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .featured-section,
    .content-grid-section,
    .newsletter-section {
        padding: 3rem 0;
    }

    .featured-image {
        height: 200px;
    }

    .featured-content {
        padding: 1.5rem;
    }

    .featured-content h2 {
        font-size: 1.25rem;
    }

    .featured-sidebar {
        flex-direction: column;
    }

    .sidebar-card {
        flex: 1;
        min-width: auto;
    }

    .filter-bar {
        justify-content: center;
    }

    .newsletter-box {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .newsletter-box h2 {
        font-size: 1.5rem;
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .newsletter-form .btn-primary-hst {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .featured-section,
    .content-grid-section,
    .newsletter-section {
        padding: 2rem 0;
    }

    .filter-section {
        padding: 1.5rem 0;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .insight-image {
        height: 150px;
    }

    .insight-content {
        padding: 1.25rem;
    }

    .insight-content h3 {
        font-size: 1rem;
    }

    .newsletter-box {
        padding: 1.5rem 1.25rem;
    }

    .newsletter-box h2 {
        font-size: 1.25rem;
    }
}
