.mini-card {
    width: 80px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mini-card span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    transition: color 0.3s ease; /* Added for smooth color fade */
}

/* Specific Hover Glows & Matching Text Colors */
.mini-card.portal:hover { border-color: #fff; box-shadow: 0 0 15px rgba(255,255,255,0.2); }
.mini-card.portal:hover span { color: #fff; }

.mini-card.red:hover    { border-color: #E01921; box-shadow: 0 0 15px rgba(224, 25, 33, 0.4); }
.mini-card.red:hover span    { color: #E01921; }

.mini-card.gold:hover   { border-color: #FFD700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
.mini-card.gold:hover span   { color: #FFD700; }

.mini-card.green:hover  { border-color: #008B45; box-shadow: 0 0 15px rgba(0, 139, 69, 0.4); }
.mini-card.green:hover span  { color: #008B45; }

.vibe-container { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }

/* Content Cards */
.reasoning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.vibe-card {
    background: #111;
    padding: 30px;
    border-radius: 5px;
    border-bottom: 3px solid #008B45; /* Green Accent */
    transition: transform 0.3s;
    position: relative; /* Add this if it's missing */
    cursor: pointer;    /* Makes the "hand" icon appear over the whole card */
    /* keep your other glass/border styles here */
}

.vibe-card:hover { transform: translateY(-5px); }
.card-tag { color: #E01921; font-weight: bold; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 10px; }
.vibe-card h2 { margin-bottom: 15px; color: #fff; font-size: 1.2rem; font-weight: 400}
.read-more { display: inline-block; margin-top: 20px; color: #FFD700; text-decoration: none; font-size: 1.0rem; font-weight: 400; }

/* ADD THIS: This creates the "invisible layer" that covers the card */
.read-more::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Stretches the click area to the edges of the .vibe-card */
}

/* Video Spotlight */
.video-spotlight { text-align: center; }
.video-placeholder {
    background: #1a1a1a;
    height: 450px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #333;
    color: #555;
}


.video-grid {
    display: grid;
    /* Automatically creates columns based on available space */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* 4. The Video Card */
.video-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.video-card:hover {
    transform: translateY(-5px); /* Subtle "lift" effect on hover */
}

.thumbnail-wrapper {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9; /* Keeps everything perfectly aligned */
    overflow: hidden;
    border-radius: 8px; /* Softens the look */
    background: #000;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures thumbnails don't look stretched */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-card:hover img {
    opacity: 1; /* Brightens the image when hovering */
}

/* 5. Play Overlay (Clean & Minimalist) */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    pointer-events: none; /* Allows clicks to pass through to the link */
}

/* 6. Typography */
.video-card h3 {
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.meta-date {
    font-family: monospace; /* Gives it that "admin" / "repository" feel */
    font-size: 0.85rem;
    color: #888;
}

/* 7. Responsive Fix for Hero Iframe */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Base Layout (Desktop) */
.video-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-spotlight {
    flex: 1 1 100%; /* Hero takes full width */
}

.video-card {
    flex: 1 1 300px; /* Cards share the remaining space */
}

@media (max-width: 768px) {
    .video-grid-container {
        flex-direction: column;
    }

    .hero-spotlight, .video-card {
        flex: 1 1 100%; /* Force everything to 100% width on mobile */
        width: 100%;
    }

    /* Ensure video container maintains aspect ratio */
    .video-container {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

