/* KUSDGS Custom Theme Additions */

/* Homepage Gaps */
.homepage-section-gap {
    margin-bottom: 2.5rem;
}

/* Featured Card Hover Effects */
.featured-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-img-container {
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background-color: #f0f0f0;
}

.card-img-container img {
    transition: transform 0.3s ease;
}

.featured-card:hover .card-img-container img {
    transform: scale(1.05);
}

/* SDG Swiper Base Styles (Extracted from kusdgs) */
#homepage-sdg-swiper {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    z-index: 20;
}

#homepage-sdg-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    transform: scale(1);
    z-index: 1;
    position: relative;
}

#homepage-sdg-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 6px;
    object-fit: cover;
}

#homepage-sdg-swiper .swiper-slide-active {
    transform: scale(1.4);
    z-index: 10;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4)) drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

@keyframes sdg-sheen {
    0% { transform: translateX(-100%) skewX(-15deg); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateX(200%) skewX(-15deg); opacity: 0; }
}

#homepage-sdg-swiper .swiper-slide-active::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.55) 50%, transparent 80%);
    animation: sdg-sheen 1.4s ease-in-out forwards;
    pointer-events: none;
    border-radius: 6px;
}

#homepage-sdg-swiper .swiper-slide:not(.swiper-slide-active):hover {
    transform: scale(1.1);
    z-index: 5;
}

/* Sidebar Widgets */
.widget-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}
.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bs-primary) !important;
    color: var(--bs-primary);
}

.list-item {
    transition: background 0.15s;
}
.list-item:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
}
