/* ===================================
   Insights Page Styles
   =================================== */

/* Hero Section */
.insights-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
}

.insights-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.insights-hero .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
}

.insights-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(74, 58, 255, 0.9) 0%, rgba(34, 193, 195, 0.8) 100%); */
    z-index: 2;
}

.insights-hero .container {
    position: relative;
    z-index: 4;
}

.insights-hero .hero-content {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.insights-hero .hero-tag {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.insights-hero .hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.insights-hero .title-line {
    display: block;
}

.insights-hero .title-line.highlight {
    background: linear-gradient(135deg, #00f5ff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.insights-hero .hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.insights-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.insights-hero .stat {
    text-align: center;
}

.insights-hero .stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.insights-hero .stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* Filter Section */
.insights-filter {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    /* position: sticky; */
    top: 80px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 24px;
    border: 2px solid transparent;
    background: transparent;
    color: var(--text-light);
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(74, 58, 255, 0.05);
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card.featured {
    grid-column: span 2;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

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

.blog-card.featured .blog-image {
    height: 350px;
}

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

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

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-content {
    padding: 2rem;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card.featured .blog-content h3 {
    font-size: 2rem;
}

.blog-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.blog-meta span {
    position: relative;
}

.blog-meta span:not(:last-child)::after {
    content: '•';
    margin-left: 1rem;
    color: var(--text-light);
}

/* Portfolio/Case Studies Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(24, 137, 189, 0.9), rgba(199, 125, 29, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.portfolio-info p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.portfolio-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.portfolio-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Whitepapers Section */
.whitepapers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.whitepaper-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.whitepaper-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.whitepaper-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.whitepaper-icon i {
    font-size: 2rem;
    color: white;
}

.whitepaper-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.whitepaper-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.whitepaper-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Research Section */
.research-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.research-tab {
    padding: 12px 24px;
    border: 2px solid transparent;
    background: transparent;
    color: var(--text-light);
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.research-tab:hover,
.research-tab.active {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(74, 58, 255, 0.05);
}

.research-panel {
    display: none;
}

.research-panel.active {
    display: block;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.research-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.research-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.research-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.research-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
}

/* Section Backgrounds */
.bg-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* CTA Section - Fixed and Customizable */
/* .cta { */
    /* background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
     */
    /* background: linear-gradient(135deg, #c07835 0%, #9c5442 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0; /* Ensure proper padding */
    /* min-height: 300px; /* Ensure minimum height for visibility */
    /* display: flex;
    align-items: center;
    z-index: 1;
}  */

/* Alternative color schemes for insights page - uncomment one to change CTA color */
/*
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
*/

/*
.cta {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
*/

/*
.cta {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
*/

/*
.cta {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
*/

/* .cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-description {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.cta-actions .btn {
    min-width: 200px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
} */

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #A8E6A3 0%, #A3D1F6 100%);
    color: white;
    text-align: center;
    padding: 120px 0;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.cta-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta .btn-outline {
    background: none;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

/* Ensure primary buttons in CTA match the orange/brown theme */
.cta .btn-primary {
    background-color: #A8E6A3;
    border-color: #A8E6A3;
    color: #1A2740;
}

.cta .btn-primary:hover {
    background-color: #A3D1F6;
    border-color: #A3D1F6;
    color: #1A2740;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    /* Fix insights hero section for mobile */
    .insights-hero {
        min-height: 100vh;
        height: 100vh;
    }
    
    .insights-hero .hero-background {
        width: 100vw;
        height: 100vh;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .insights-hero .hero-image {
        width: 100vw;
        height: 100vh;
        left: 50%;
        transform: translateX(-50%);
        background-size: cover;
        background-position: center center;
        object-fit: cover;
    }
    
    .insights-hero .hero-overlay {
        width: 100vw;
        height: 100vh;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Ensure hero tag is centered on mobile */
    .insights-hero .hero-content {
        text-align: center !important;
        padding-top: 20vh;
    }

    .insights-hero .hero-tag {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        width: max-content !important;
    }

    .insights-hero .hero-stats {
        gap: 2rem;
    }

    .insights-hero .stat-number {
        font-size: 2.5rem;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .blog-grid,
    .portfolio-grid,
    .whitepapers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .research-tabs {
        gap: 0.5rem;
    }
    
    .research-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .insights-hero .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .blog-content,
    .whitepaper-card,
    .research-card {
        padding: 2rem;
    }
    
    .portfolio-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .research-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Loading States */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .portfolio-card,
    .whitepaper-card,
    .research-card,
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in {
        transition: none;
    }
}

/* Focus States */
.blog-card:focus-within,
.portfolio-card:focus-within,
.whitepaper-card:focus-within,
.research-card:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Print Styles */
@media print {
    .insights-hero,
    .cta {
        background: white !important;
        color: black !important;
    }
    
    .blog-card,
    .portfolio-card,
    .whitepaper-card,
    .research-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
} 