::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: #020617; }
        ::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }
        ::-webkit-scrollbar-thumb:hover { background: #a855f7; }

        .glass {
            background: rgba(15, 23, 42, 0.7);
            -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .speech-bubble {
            position: relative;
        }
        .speech-bubble::before {
            content: '';
            position: absolute;
            left: -13px;
            top: 20px;
            width: 0;
            height: 0;
            border-top: 13px solid transparent;
            border-bottom: 13px solid transparent;
            border-right: 13px solid rgba(255, 255, 255, 0.1);
            z-index: 1;
        }
        .speech-bubble::after {
            content: '';
            position: absolute;
            left: -11px;
            top: 22px;
            width: 0;
            height: 0;
            border-top: 11px solid transparent;
            border-bottom: 11px solid transparent;
            border-right: 11px solid rgba(15, 23, 42, 0.9);
            z-index: 2;
        }

        .neon-border {
            position: relative;
            z-index: 1;
        }
        .neon-border::before {
            content: '';
            position: absolute;
            inset: -1px;
            background: linear-gradient(45deg, #a855f7, #22d3ee, #f472b6);
            z-index: -1;
            border-radius: inherit;
            opacity: 0.3;
            transition: opacity 0.3s;
        }
        .neon-border:hover::before { opacity: 1; }

        .strategy-step {
            clip-path: polygon(0% 0%, 95% 0%, 100% 50%, 95% 100%, 0% 100%, 5% 50%);
        }
        .strategy-step-mobile {
            clip-path: polygon(0% 0%, 100% 0%, 100% 50%, 100% 100%, 0% 100%, 0% 50%);
        }
        @media (min-width: 768px) {
            .strategy-step-mobile {
                clip-path: polygon(0% 0%, 95% 0%, 100% 50%, 95% 100%, 0% 100%, 5% 50%);
            }
        }

        /* Masonry grid - Safari compatible using flexbox/grid instead of column-count */
        .masonry-grid {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        @media (min-width: 640px) { 
            .masonry-grid { 
                gap: 2rem; 
            } 
        }
        @media (min-width: 1024px) { 
            .masonry-grid { 
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 2rem;
                align-items: start; /* Prevent cards from stretching together */
            } 
        }
        @media (min-width: 1280px) { 
            .masonry-grid { 
                max-width: 1400px; 
                margin: 0 auto; 
            } 
        }
        
        /* Ensure article cards don't affect each other in grid */
        .article-card {
            height: auto;
            min-height: fit-content;
        }
        
        .carousel-container {
            position: relative;
            width: 100%;
            padding-top: 56.25%;
            border-radius: 1rem;
            overflow: hidden;
        }
        @media (min-width: 640px) {
            .carousel-container {
                border-radius: 2rem;
            }
        }
        .carousel-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }
        
        /* YouTube Shorts Container - 9:16 aspect ratio */
        .youtube-shorts-container {
            position: relative;
            width: 100%;
            max-width: 400px;
            margin: 0 auto;
            padding-top: 177.78%; /* 9:16 aspect ratio */
            border-radius: 1rem;
            overflow: hidden;
        }
        @media (min-width: 640px) {
            .youtube-shorts-container {
                border-radius: 2rem;
                max-width: 500px;
            }
        }
        .youtube-shorts-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }
        
        /* YouTube Video Container - Compact size for Product Blog */
        .youtube-video-container {
            position: relative;
            width: 100%;
            max-width: 320px;
            margin: 0 auto;
            aspect-ratio: 16 / 9;
            border-radius: 1rem;
            overflow: hidden;
            background: #020617;
        }
        @media (min-width: 640px) {
            .youtube-video-container {
                border-radius: 1.5rem;
                max-width: 400px;
            }
        }
        @media (min-width: 1024px) {
            .youtube-video-container {
                max-width: 480px;
            }
        }
        .youtube-video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }
        
        /* YouTube Thumbnail Fallback */
        .youtube-thumbnail-wrapper {
            position: relative;
            width: 100%;
            height: 100%;
            cursor: pointer;
            overflow: hidden;
        }
        .youtube-thumbnail-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .youtube-play-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(2, 6, 23, 0.5);
            transition: background 0.3s ease;
        }
        .youtube-thumbnail-wrapper:hover .youtube-play-overlay {
            background: rgba(2, 6, 23, 0.3);
        }
        .youtube-play-button-large {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: rgba(255, 0, 0, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 0 8px 32px rgba(255, 0, 0, 0.4);
        }
        @media (min-width: 640px) {
            .youtube-play-button-large {
                width: 100px;
                height: 100px;
            }
        }
        .youtube-thumbnail-wrapper:hover .youtube-play-button-large {
            transform: scale(1.1);
            box-shadow: 0 12px 40px rgba(255, 0, 0, 0.6);
        }
        .youtube-play-button-large svg {
            width: 32px;
            height: 32px;
            margin-left: 4px;
            fill: white;
        }
        @media (min-width: 640px) {
            .youtube-play-button-large svg {
                width: 40px;
                height: 40px;
                margin-left: 6px;
            }
        }
        
        /* YouTube Modal/Lightbox */
        .youtube-modal {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(2, 6, 23, 0.95);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            padding: 1rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .youtube-modal.show {
            display: flex;
            opacity: 1;
        }
        .youtube-modal-content {
            position: relative;
            width: 100%;
            max-width: 900px;
            aspect-ratio: 16 / 9;
            background: #020617;
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }
        @media (min-width: 640px) {
            .youtube-modal-content {
                border-radius: 1.5rem;
            }
        }
        .youtube-modal.show .youtube-modal-content {
            transform: scale(1);
        }
        .youtube-modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            z-index: 10000;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(2, 6, 23, 0.9);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 2px solid rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .youtube-modal-close:hover {
            background: rgba(255, 0, 0, 0.9);
            border-color: rgba(255, 255, 255, 0.4);
            transform: scale(1.1);
        }
        .youtube-modal-close svg {
            width: 24px;
            height: 24px;
            fill: white;
        }
        .youtube-modal iframe {
            width: 100%;
            height: 100%;
            border: 0;
        }
        
        /* SVG Icon Color Styling - Using CSS filters to colorize SVG icons */
        /* Cyber-neon color: #22d3ee */
        /* Cyber-purple color: #a855f7 */
        
        /* Default: All icons are cyber-neon (cyan) */
        img[src*="icons"] {
            filter: brightness(0) saturate(100%) invert(77%) sepia(99%) saturate(1352%) hue-rotate(152deg) brightness(101%) contrast(101%);
        }
        
        /* Cyber-purple icons (specific icons) */
        img[src*="seal-check-fill"],
        img[src*="sketch-logo"] {
            filter: brightness(0) saturate(100%) invert(59%) sepia(95%) saturate(1352%) hue-rotate(250deg) brightness(105%) contrast(101%);
        }
        
        /* White icons (for badges on colored backgrounds) */
        img[src*="trend-up"],
        img[src*="fire"] {
            filter: brightness(0) invert(1);
        }
        
        /* LinkedIn icon - gray by default, cyber-neon on hover */
        a img[src*="linkedin"] {
            filter: brightness(0) saturate(100%) invert(60%);
            transition: filter 0.3s;
        }
        a:hover img[src*="linkedin"] {
            filter: brightness(0) saturate(100%) invert(77%) sepia(99%) saturate(1352%) hue-rotate(152deg) brightness(101%) contrast(101%);
        }
        
        .carousel-psych-safety {
            position: relative;
            width: 100%;
            overflow: hidden;
        }

        .impact-card {
            background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
            border-left: 4px solid #a855f7;
            position: relative;
            overflow: hidden;
        }
        .impact-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(34, 211, 238, 0.05) 100%);
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }
        .impact-card:hover::before {
            opacity: 1;
        }
        .impact-card:hover {
            border-left-color: #22d3ee;
            box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3), 0 0 20px rgba(34, 211, 238, 0.2);
        }

        /* Locked button styling */
        button:disabled {
            position: relative;
        }
        button:disabled:hover {
            border-color: rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.05);
        }
        button:disabled .group-hover\/lock\:opacity-100 {
            background: rgba(15, 23, 42, 0.95);
            -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
        }

        /* Article card expand/collapse - Chrome compatible */
        .article-card .article-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out, opacity 0.4s ease-out, margin-top 0.4s ease-out;
            opacity: 0;
            margin-top: 0;
            margin-bottom: 0;
            /* Chrome-specific fixes */
            will-change: max-height, opacity;
            transform: translateZ(0);
        }
        .article-card.expanded .article-content {
            max-height: 5000px;
            opacity: 1;
            margin-top: 1rem;
            margin-bottom: 0;
            /* Ensure Chrome processes the transition */
            transform: translateZ(0);
        }
        .article-card.expanded button span:last-child {
            content: 'Hide Holdings';
        }

        /* Logo white background in exact shape */
        .logo-bg {
            position: absolute;
            inset: 0;
            background: white;
            mask-image: url('../Assets IAI/Integrity_Ai_Logo.png');
            mask-size: contain;
            mask-repeat: no-repeat;
            mask-position: center;
            -webkit-mask-image: url('../Assets IAI/Integrity_Ai_Logo.png');
            -webkit-mask-size: contain;
            -webkit-mask-repeat: no-repeat;
            -webkit-mask-position: center;
        }

        /* Navigation button hover states - white menu */
        nav button.text-slate-700:hover {
            color: rgb(2, 6, 23);
            background: rgba(2, 6, 23, 0.05);
        }
        /* Active buttons maintain white text on hover */
        nav button.bg-cyber-black:hover {
            color: white !important;
        }
