/* =============================================
   INTERNAL LOOP LINKS - Enhanced Styles
   Version: 1.6.0
============================================= */

.ill-wrapper {
    margin: 3.5rem 0 2rem;
    font-family: inherit;
    --ill-radius: 16px;
    --ill-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ill-wrapper * {
    box-sizing: border-box;
}

/* ====================== HEADER ====================== */
.ill-head {
    margin-bottom: 1.25rem;
}

.ill-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ill-text);
    opacity: 0.85;
}

.ill-kicker::after {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--ill-text);
    opacity: 0.3;
}

/* ====================== HORIZONTAL LAYOUT ====================== */
.ill-layout-horizontal .ill-horizontal {
    display: grid;
    gap: 2rem;
}

.ill-item {
    background: var(--ill-bg);
    border-radius: var(--ill-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--ill-transition);
    border: 1px solid rgba(255,255,255,0.08);
}

.ill-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ill-card {
    display: flex;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.ill-media {
    width: 42%;
    position: relative;
}

.ill-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ill-item:hover .ill-media img {
    transform: scale(1.08);
}

.ill-body {
    flex: 1;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.ill-title {
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ill-text);
}

.ill-cta {
    margin-top: auto;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ill-text);
    opacity: 0.85;
    transition: var(--ill-transition);
}

.ill-item:hover .ill-cta {
    opacity: 1;
    padding-left: 6px;
}

/* No thumbnail */
.ill-item.no-thumb .ill-card {
    flex-direction: column;
}

.ill-item.no-thumb .ill-body {
    padding: 2rem;
}

/* ====================== OVERLAY LAYOUT ====================== */
.ill-layout-overlay .ill-overlay {
    display: block;
    height: 380px;
    border-radius: var(--ill-radius);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: var(--ill-transition);
}

.ill-layout-overlay .ill-overlay:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.ill-overlay-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15),
        rgba(0,0,0,0.75) 65%
    );
    transition: var(--ill-transition);
}

.ill-overlay:hover .ill-overlay-mask {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1),
        rgba(0,0,0,0.85) 70%
    );
}

.ill-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem;
    color: white;
    z-index: 2;
}

.ill-overlay-kicker {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
    opacity: 0.9;
}

.ill-overlay-title {
    font-size: 1.65rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ill-overlay-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* ====================== STYLE VARIANTS ====================== */

/* Classic Style */
.ill-style-classic {
    --ill-text: #ffffff;
}

.ill-style-classic .ill-item {
    border-color: rgba(255,255,255,0.1);
}

/* Minimal Style */
.ill-style-minimal {
    --ill-text: #111111;
}

.ill-style-minimal .ill-item {
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.ill-style-minimal .ill-item:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
    .ill-wrapper {
        margin: 2.5rem 0 1.5rem;
    }
    
    .ill-media {
        width: 38%;
    }
    
    .ill-body {
        padding: 1.4rem;
    }
    
    .ill-title {
        font-size: 1.2rem;
    }
    
    .ill-layout-overlay .ill-overlay {
        height: 320px;
    }
    
    .ill-overlay-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .ill-media {
        width: 100%;
        height: 220px;
    }
    
    .ill-card {
        flex-direction: column;
    }
}