/**
 * Custom Directory Theme & Test Hero Image Backdrop Styles
 * Created and Powered by IPE Pakistan & MyIELTS.pk
 */

/* Rounded Card Thumbnails & Micro-Animations */
.thumbnail-w,
.thumbnail,
.item-main,
.item-alt,
.bd-top-listening,
.bd-top-reading {
    border-radius: 14px !important;
    overflow: hidden !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

/* Rounded Card Images */
.thumbnail img,
.thumbnail-w img,
.item-main img {
    border-radius: 10px !important;
    transition: transform 0.4s ease, filter 0.4s ease !important;
}

/* Dynamic Hover Elevation & Strong Glowing Shadow for Cards */
.thumbnail-w:hover,
.thumbnail:hover,
.bd-top-listening:hover,
.bd-top-reading:hover {
    transform: translateY(-6px) scale(1.015) !important;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.22) !important;
    border-color: #2563eb !important;
}

.thumbnail-w:hover img,
.thumbnail:hover img {
    transform: scale(1.04) !important;
}

/* FIX: Stacking Context override to ensure hover extra-info displays on top of images */
.extra-info {
    z-index: 10 !important;
    pointer-events: none !important; /* Ensure hover click passes through to the link */
}

/* Passage Top Decor Banner ONLY (50% Dark Overlay & 30% Blur) */
.text-center > img.img-responsive,
.reading-text .text-center > img {
    position: relative !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    filter: blur(8px) brightness(0.5) !important;
    transition: filter 0.3s ease, transform 0.3s ease !important;
    max-height: 260px !important;
    object-fit: cover !important;
    width: 100% !important;
    max-width: 500px !important;
    margin: 15px auto !important;
}

.text-center > img.img-responsive:hover,
.reading-text .text-center > img:hover {
    filter: blur(2px) brightness(0.7) !important;
}

/* EXPLICIT UNBLUR FOR QUESTION DIAGRAMS, MAPS, FIGURES & TABLES */
.exam-section img,
.workspace img,
img.map,
img.diagram,
img.chart,
img[alt*="map"],
img[alt*="diagram"],
img[alt*="figure"],
table img {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 6px !important;
}
