/* container for both cards - responsive grid */
        .cards-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2.5rem;
        }

        /* individual card column */
        .card-column {
            flex: 1;
            min-width: 320px;
            max-width: 380px;
            width: 100%;
        }

        /* 3D card outer wrapper */
        .tilt-card-wrapper {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        /* cover dimensions */
        .cover {
            display: inline-block;
            height: 200px;
            width: 320px;
            margin: 0 auto;
            border-radius: 8px;
            cursor: pointer;
        }

        @media screen and (max-width: 700px) {
            .cover {
                display: block;
                height: 200px;
                width: 320px;
                margin: 0 auto;
            }
            .card-column {
                min-width: 300px;
            }
        }

        /* ----- ATVIMG 3D TILT SYSTEM (enhanced with iframe support) ----- */
        .atvImg {
            border-radius: 8px;
            transform-style: preserve-3d;
            -webkit-tap-highlight-color: rgba(0,0,0,0);
        }

        .atvImg img {
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(14,21,47,0.25);
        }

        .atvImg-container {
            position: relative;
            width: 100%;
            height: 100%;
            border-radius: 8px;
            transition: all 0.2s ease-out;
        }

        .atvImg-container.over .atvImg-shadow {
            box-shadow: 0 45px 100px rgba(14,21,47,0.4), 0 16px 40px rgba(14,21,47,0.4);
        }

        .atvImg-layers {
            position: relative;
            width: 100%;
            height: 100%;
            border-radius: 8px;
            overflow: hidden;
            transform-style: preserve-3d;
        }

        .atvImg-rendered-layer {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0%;
            left: 0%;
            background-repeat: no-repeat;
            background-position: center;
            background-color: transparent;
            background-size: cover;
            transition: all 0.1s ease-out;
            overflow: hidden;
            border-radius: 8px;
        }

        /* IFRAME LAYER STYLES */
        .atvImg-iframe-layer {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0%;
            left: 0%;
            border-radius: 8px;
            transition: all 0.1s ease-out;
            overflow: hidden;
            border: none;
            background: #1a1a2e;
        }

        .atvImg-iframe-layer iframe {
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 8px;
            pointer-events: none; /* Allows clicking through to maintain card interaction, but iframe is visible */
        }

        /* TEXT OVERLAY LAYER */
        .atvImg-text-overlay {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0%;
            left: 0%;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: center;
            padding: 20px 16px;
            background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
            border-radius: 8px;
            transition: all 0.1s ease-out;
            pointer-events: none;
            z-index: 10;
        }

        .atvImg-text-overlay .card-title {
            color: white;
            font-weight: 700;
            font-size: 1.3rem;
            text-shadow: 0 2px 8px rgba(0,0,0,0.3);
            letter-spacing: -0.3px;
            text-align: center;
            margin-bottom: 6px;
        }

        .atvImg-text-overlay .card-subtitle {
            color: rgba(255,255,255,0.9);
            font-size: 0.7rem;
            font-weight: 500;
            text-shadow: 0 1px 4px rgba(0,0,0,0.3);
            letter-spacing: 0.5px;
            text-transform: uppercase;
            background: rgba(0,0,0,0.4);
            padding: 4px 12px;
            border-radius: 20px;
            backdrop-filter: blur(4px);
        }

        .atvImg-shadow {
            position: absolute;
            top: 5%;
            left: 5%;
            width: 90%;
            height: 90%;
            transition: all 0.2s ease-out;
            box-shadow: 0 8px 30px rgba(14,21,47,0.6);
        }

        .atvImg-shine {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 8px;
            background: linear-gradient(135deg, rgba(255,255,255,.25) 0%,rgba(255,255,255,0) 60%);
            pointer-events: none;
            z-index: 15;
        }

        /* ----- INFO PANEL / TEXT BOX (below each card) ----- */
        .info-panel {
            background: #ffffff;
            border-radius: 20px;
            margin-top: 28px;
            padding: 1.5rem 1.25rem 1.75rem 1.25rem;
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
            transition: transform 0.25s ease, box-shadow 0.3s ease;
            text-align: left;
            border: 1px solid rgba(255,255,255,0.3);
        }

        .info-panel:hover {
            transform: translateY(-4px);
            box-shadow: 0 28px 38px -14px rgba(0, 0, 0, 0.28);
        }

        .category-badge {
            display: inline-block;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            background: #eef3ff;
            padding: 0.25rem 0.9rem;
            border-radius: 30px;
            color: #2c3e8f;
            margin-bottom: 0.9rem;
        }

        .info-panel h3 {
            font-size: 1.7rem;
            font-weight: 700;
            margin: 0.25rem 0 0.75rem 0;
            line-height: 1.25;
            color: #0a1c3a;
            letter-spacing: -0.3px;
        }

        .description-text {
            color: #3c4b6e;
            font-size: 0.95rem;
            margin-bottom: 1.2rem;
            line-height: 1.45;
            font-weight: 450;
        }

        .author-section {
            display: flex;
            align-items: center;
            gap: 12px;
            border-top: 1px solid #e9edf4;
            padding-top: 1rem;
            margin-top: 0.25rem;
        }

        .avatar-icon {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, #6c8eff, #4a6ee0);
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .author-info {
            display: flex;
            flex-direction: column;
        }

        .author-name {
            font-weight: 700;
            color: #141e3c;
            font-size: 0.9rem;
        }

        .timestamp {
            font-size: 0.7rem;
            color: #6f7c9b;
            letter-spacing: 0.2px;
        }

        /* second card variant */
        .card-column:last-child .category-badge {
            background: #f0eefe;
            color: #5b3e8f;
        }

        .card-column:last-child .avatar-icon {
            background: linear-gradient(135deg, #a07eff, #7a4ee0);
        }

        /* accessibility */
        .cover:focus-visible {
            outline: 2px solid #fff;
            outline-offset: 2px;
        }