/* ============================================
   INSIGHTS PAGE STYLES
   Header/navbar styles are handled by header.html component
   ============================================ */

        /* Hero Section - Insights specific */
        .hero-section {
            padding: 140px 0 80px;
            position: relative;
            overflow: hidden;
            min-height: auto;
        }
        
        @media (max-width: 991.98px) {
            .hero-section {
                padding: 120px 15px 40px;
                min-height: auto;
            }
            
            .hero-section .content-box.glass-panel {
                padding: 1.5rem !important;
                margin-top: 0;
            }
            
            .hero-section .hero-visual {
                display: none;
            }
            
            .hero-section .global-network-container {
                display: none;
            }

                /* Make sure the stats ribbon and ticker are visible and correctly styled on insights page by scoping a few mobile-specific adjustments */
                @media (max-width: 991.98px) {
                    .stats-ribbon, .sd-ticker {
                        z-index: 10060 !important; /* Ensure it remains above the hero */
                    }
                    .sd-track {
                        display: flex !important;
                        gap: 1rem !important;
                    }
                    .sd-item {
                        color: #fff !important;
                    }
                }

                /* Hide toggler at large screens */
                @media (min-width: 992px) {
                    .navbar-toggler {
                        display: none !important;
                    }
                }
            
            .hero-section h1 {
                font-size: 1.75rem !important;
            }
            
            .hero-section .hero-subtitle {
                font-size: 0.95rem;
            }
        }

        /* Removed page-specific override; hero backgrounds now rely on inline styles and overlay pseudo-element */

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: transparent;
            pointer-events: none;
            z-index: 0;
        }

        .hero-title {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: #f1f1f1;
            line-height: 1.2;
        }

        .hero-subtitle {
            font-size: 1.125rem;
            color: #6b7280;
            max-width: 600px;
            margin: 1.5rem 0 2rem;
            line-height: 1.6;
        }

        .hero-content {
            position: relative;
            z-index: 10;
        }

        .network-highlight {
            background: linear-gradient(45deg, #007bff, #0056b3);
            color: white;
            padding: 8px 20px;
            border-radius: 25px;
            font-weight: 600;
            display: inline-block;
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
        }

        .hero-visual {
            position: relative;
            height: 500px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .global-network-container {
            position: relative;
            width: 400px;
            height: 400px;
        }

        .network-avatars {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .avatar-main {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10;
        }

        .avatar-main img {
            width: 120px;
            height: 120px;
            border: 4px solid white;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            border-radius: 50%;
        }

        .avatar-network {
            position: absolute;
            z-index: 5;
            animation: float 3s ease-in-out infinite;
        }

        .avatar-network img {
            width: 60px;
            height: 60px;
            border: 3px solid white;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            border-radius: 50%;
        }

        .avatar-network:hover img {
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        }

        /* Position network avatars in a circle */
        .avatar-1 { top: 10%; left: 25%; animation-delay: 0s; }
        .avatar-2 { top: 15%; right: 20%; animation-delay: 0.5s; }
        .avatar-3 { top: 45%; right: 5%; animation-delay: 1s; }
        .avatar-4 { bottom: 15%; right: 25%; animation-delay: 1.5s; }
        .avatar-5 { bottom: 10%; left: 30%; animation-delay: 2s; }
        .avatar-6 { top: 50%; left: 5%; animation-delay: 2.5s; }
        .avatar-7 { top: 25%; left: 10%; animation-delay: 3s; }
        .avatar-8 { bottom: 25%; right: 10%; animation-delay: 3.5s; }

        .connection-lines {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .connection-svg {
            width: 100%;
            height: 100%;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        /* Enhanced Network Visual with Auto-Scroll Carousel */
        /* Removed - replaced with network avatars layout */

       

        .stat-number {
            font-size: 1.5rem;
            font-weight: 700;
            color: #f59e0b;
            display: block;
        }

        .stat-label {
            font-size: 0.875rem;
            color: #6b7280;
            margin-top: 0.25rem;
        }

        /* Featured Article Section */
        .featured-section {
            background: linear-gradient(135deg, rgba(0, 123, 255, 0.5) 0%, rgba(0, 86, 179, 0.9) 100%), url('assets/uploads/cdot/women-discussing.jpeg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            color: white;
            padding: 80px 0;
            position: relative;
            overflow: hidden;
        }

        .featured-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(0, 123, 255, 0.4) 0%, rgba(0, 86, 179, 0.4) 100%);
            pointer-events: none;
            z-index: 0;
        }

        .featured-article {
            position: relative;
            z-index: 1;
            max-width: 900px;
            margin: 0 auto;
            text-decoration: none;
            color: inherit;
            display: flex;
            align-items: center;
            overflow: hidden;
            border-radius: 20px;
            transition: all 0.3s ease;
        }

        .featured-article:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        .featured-image {
            width: 40%;
            height: 400px;
            background-size: cover;
            background-position: center;
            position: relative;
            flex-shrink: 0;
        }

        .featured-category {
            position: absolute;
            top: 1.5rem;
            left: 1.5rem;
            background: rgba(0, 123, 255, 0.95);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            z-index: 2;
        }

        .featured-content {
            background: rgba(0, 14, 27, 0.35);
            backdrop-filter: blur(10px);
            padding: 40px;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: left;
        }

        .featured-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: white;
            line-height: 1.3;
        }

        .featured-excerpt {
            color: rgba(255, 255, 255, 0.85);
            font-size: 0.95rem;
            line-height: 1.7;
            margin-bottom: 2rem;
        }

        .featured-meta {
            display: flex;
            align-items: center;
            gap: 2rem;
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.7);
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
        }

        .featured-meta .read-time {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .featured-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.875rem;
            color: #9ca3af;
        }

        /* Articles Grid */
        .articles-section {
            padding: 80px 0;
            background: #f8fafc;
        }

        .section-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: #1a1a1a;
        }

        .section-subtitle {
            font-size: 1.125rem;
            color: #6b7280;
            max-width: 600px;
            margin: 0 auto;
        }

        .articles-carousel-container {
            position: relative;
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 50px;
        }

        .articles-grid {
            display: flex;
            gap: 2rem;
            overflow: hidden;
            scroll-behavior: smooth;
        }

        .article-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            cursor: pointer;
            border: 1px solid rgba(229, 231, 235, 0.5);
            text-decoration: none;
            color: inherit;
            min-width: 350px;
            max-width: 350px;
            flex-shrink: 0;
        }

        .article-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
            text-decoration: none;
            color: inherit;
        }

        .article-image {
            width: 100%;
            height: 220px;
            background-size: cover;
            background-position: center;
            position: relative;
        }

        .article-category {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 0.375rem 0.875rem;
            border-radius: 16px;
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
        }

        .article-content {
            padding: 1.5rem;
        }

        .article-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: #1a1a1a;
            line-height: 1.4;
        }

        .article-excerpt {
            color: #6b7280;
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .article-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8rem;
            color: #9ca3af;
        }

        .read-time {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .carousel-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 123, 255, 0.9);
            border: none;
            color: white;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .carousel-button:hover {
            background: #007bff;
            transform: translateY(-50%) scale(1.1);
        }

        .carousel-button.prev {
            left: 0;
        }

        .carousel-button.next {
            right: 0;
        }

        .carousel-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Newsletter Section */
        .newsletter-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            padding: 80px 0;
        }

        .newsletter-content {
            text-align: center;
        }

        .team-celebration {
            margin-bottom: 2rem;
        }

        .team-celebration img {
            max-height: 200px;
            width: 100%;
            object-fit: cover;
            border-radius: 1.5rem;
        }

        .newsletter-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: #1a1a1a;
        }

        .newsletter-subtitle {
            font-size: 1.125rem;
            color: #6b7280;
            max-width: 600px;
            margin: 0 auto 2rem;
            line-height: 1.6;
        }

        .newsletter-form {
            margin-bottom: 2rem;
        }

        .newsletter-form .input-group {
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        .newsletter-form input {
            border: 2px solid #e9ecef;
            padding: 15px 20px;
            font-size: 1rem;
        }

        .newsletter-form button {
            background: #1a1a1a;
            border: 2px solid #1a1a1a;
            color: white;
            font-weight: 600;
            padding: 15px 30px;
            transition: all 0.3s ease;
        }

        .newsletter-form button:hover {
            background: #333;
            border-color: #333;
            color: white;
        }

        .newsletter-privacy {
            font-size: 0.9rem;
            color: #6b7280;
            margin-bottom: 2rem;
        }

        /* Insights newsletter two-column layout */
        .insights-newsletter-row {
            display: block;
        }

        @media (min-width: 992px) {
            .insights-newsletter-row {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 1rem;
            }

            .insights-newsletter-left {
                -ms-flex: 0 0 60%;
                flex: 0 0 60% !important;
                max-width: 60% !important;
                width: 60% !important;
                min-width: 0;
                box-sizing: border-box;
                padding-right: 1rem;
            }

            .insights-newsletter-right {
                -ms-flex: 0 0 40%;
                flex: 0 0 40% !important;
                max-width: 40% !important;
                width: 40% !important;
                min-width: 0;
                box-sizing: border-box;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .insights-newsletter-video {
                width: auto;
                height: 100%;
                aspect-ratio: 16 / 9;
                object-fit: cover;
                max-height: 60vh;
                display: block;
                border-radius: 0.75rem;
            }

            .insights-newsletter-left .glass-panel {
                text-align: left;
                margin-bottom: 0;
            }
    
            .insights-newsletter-left .newsletter-subtitle {
                margin: 0 0 1rem 0;
                max-width: none;
            }

            .insights-newsletter-left .lead {
                margin: 0 0 1rem 0;
                max-width: none;
            }

            .insights-newsletter-left .newsletter-form {
                justify-content: flex-start;
            }
        }

        .trust-badges {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 2rem;
            padding-top: 2rem;
            border-top: 1px solid #e5e7eb;
        }

        .trust-badge {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #6b7280;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .trust-badge i {
            color: #007bff;
            font-size: 1.1rem;
        }

        /* Mobile Navigation: Keep default toggler visible on mobile; header component manages desktop/expanded behavior */
        .navbar-toggler {
            /* border: none;
            background: none;
            padding: 0.5rem;
            cursor: pointer; */
            /* Do not force 'display:none' here — let header styles control visibility per media query
               This prevents hiding the bootstrap toggler on this specific page */
            /* display: inline-flex;
            align-items: center;
            justify-content: center; */
        }

        /* Legacy/alternate hamburger class used on some pages. Keep in-case if present, but avoid overriding the header toggle styles. */
        /* .hamburger-line {
            display: block;
            width: 20px;
            height: 2px;
            background: #374151;
            margin: 3px 0;
            transition: all 0.3s ease;
        } */

        /* Responsive Design - Insights specific (navbar handled by header component) */
        @media (max-width: 991.98px) {
            .network-stats {
                gap: 1.5rem;
            }

            .stat-item {
                min-width: 100px;
                padding: 0.75rem;
            }

            .hero-visual {
                height: 400px;
                margin-top: 2rem;
            }

            .global-network-container {
                width: 300px;
                height: 300px;
            }

            .avatar-main img {
                width: 80px;
                height: 80px;
            }

            .avatar-network img {
                width: 40px;
                height: 40px;
            }
        }

        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.25rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .featured-title {
                font-size: 1.3rem;
            }

            .featured-article {
                flex-direction: column;
            }

            .featured-image {
                width: 100%;
                height: 250px;
                margin-bottom: 0;
            }

            .featured-content {
                text-align: left;
                padding: 30px;
            }

            .featured-excerpt {
                font-size: 0.9rem;
            }

            .featured-meta {
                flex-direction: column;
                gap: 1rem;
                align-items: flex-start;
            }

            .articles-carousel-container {
                padding: 0 45px;
            }

            .article-card {
                min-width: 300px;
                max-width: 300px;
            }

            .carousel-button {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }

            .newsletter-form {
                flex-direction: column;
                gap: 1rem;
            }

            .network-visual {
                margin: 0 auto 2rem;
            }

            .network-avatar {
                width: 60px;
                height: 60px;
            }

            .main-avatar {
                width: 75px;
                height: 75px;
            }

            .network-stats {
                flex-direction: column;
                gap: 1rem;
                align-items: center;
            }

            .hero-visual {
                height: 350px;
            }

            .global-network-container {
                width: 250px;
                height: 250px;
            }

            .avatar-main img {
                width: 70px;
                height: 70px;
            }

            .avatar-network img {
                width: 35px;
                height: 35px;
            }
        }