/* =========================================================================
   --- Student Award Heroes (Happy Comic Style) Layout ---
   ========================================================================== */

.comic-awards-page {
    /* A soft, cheerful dotted background matching the theme colors */
    background-image: radial-gradient(rgba(37, 99, 235, 0.05) 2px, transparent 2px);
    background-size: 20px 20px; 
    padding: 20px 0 60px 0; 
}

/* --- 1. The Playful Grid --- */


/* The Link Wrapper */
.comic-panel-link {
    display: block;
    text-decoration: none;
    z-index: 1;
    position: relative;
}

/* The Card Itself - Now using theme-friendly rounded corners and thick borders */
.comic-panel {
    position: relative;
    width: 100%;
    background-color: #FFFFFF;
    border-radius: var(--radius-soft); /* Harmonious rounded corners */
    border: 4px solid var(--primary);  /* Base colorful comic border */
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* --- 2. The Random "Comic Poses" (Replacing Jagged Shards) --- */
/* The JS applies these randomly. We use them to give each card a playful tilt and a unique theme color! */
.shard-1 { transform: rotate(-2deg); border-color: var(--accent-yellow); }
.shard-2 { transform: rotate(3deg);  border-color: var(--accent-purple); }
.shard-3 { transform: rotate(-1deg); border-color: var(--primary); }
.shard-4 { transform: rotate(2deg);  border-color: var(--accent-green); }
.shard-5 { transform: rotate(-3deg); border-color: var(--accent-yellow); }
.shard-6 { transform: rotate(1deg);  border-color: var(--primary); }
.shard-7 { transform: rotate(-2deg); border-color: var(--accent-purple); }
.shard-8 { transform: rotate(2deg);  border-color: var(--accent-green); }

/* --- 3. The Energetic Hover Pop-Out --- */
.comic-panel-link:hover {
    z-index: 100;
}

.comic-panel-link:hover .comic-panel {
    /* Card straightens up, zooms in, and gets a deeper shadow! */
    transform: scale(1.08) rotate(0deg) translateY(-10px) !important; 
    box-shadow: var(--shadow-hover);
    border-color: var(--primary); /* Unifies to Royal Blue on hover */
}

/* --- 4. Hero Portrait (Full Color, Happy Photos) --- */
.comic-hero-portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; /* Standard, friendly photo size */
    overflow: hidden;
    background-color: var(--bg-main);
}

.comic-hero-portrait img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: transform 0.4s ease;
}

/* Subtle image zoom inside the panel on hover */
.comic-panel-link:hover .comic-hero-portrait img {
    transform: scale(1.05); 
}

/* --- 5. Integrated Panel Description & Action Bubble --- */
.comic-panel-info-overlay {
    background: #FFFFFF;
    padding: 15px 20px;
    box-sizing: border-box;
    text-align: center; /* Centered for a friendlier feel */
}

.comic-award-title {
    color: var(--text-main) !important;
    text-transform: uppercase;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

/* Title turns blue to invite clicks, matching the rest of the blog layout */
.comic-panel-link:hover .comic-award-title {
    color: var(--primary) !important; 
}

.comic-panel-date {
    font-size: 0.85rem;
    font-weight: bold;
    color: #64748B !important; /* Softer slate gray */
}

/* --- 6. The Action Thought Bubble Caption --- */
.comic-hover-caption {
    display: block;
    position: absolute;
    bottom: -100%; /* Hides below the card initially */
    left: 0;
    width: 100%;
    padding: 12px 15px;
    background: rgba(37, 99, 235, 0.95); /* Royal Blue */
    color: #FFFFFF;
    box-sizing: border-box;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* The hover trigger sweeps the blue action caption up over the text area */
.comic-panel-link:hover .comic-hover-caption {
    bottom: 0; 
}
