/* ============================================================
 * EKSTRAKURIKULER — DETAIL FRONTEND
 * Path: public/assets/css/ekstrakurikuler-detail.css
 * ============================================================ */

/* ----------------------------------------
 * HERO OVERRIDE (detail)
 * ---------------------------------------- */
.extra-detail-hero-content {
    max-width: 900px;
}

.extra-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.extra-detail-badge-cat,
.extra-detail-badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.extra-detail-badge-cat {
    background: #2563eb;
    color: #ffffff;
}

.extra-detail-badge-featured {
    background: #f59e0b;
    color: #ffffff;
}

/* ----------------------------------------
 * LAYOUT
 * ---------------------------------------- */
.extra-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

/* ----------------------------------------
 * ARTICLE
 * ---------------------------------------- */
.extra-detail-article {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.extra-detail-image {
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    overflow: hidden;
}

.extra-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.extra-detail-content {
    padding: 32px 40px;
    position: relative;
}

.extra-detail-icon {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
    border: 4px solid #ffffff;
}

/* ----------------------------------------
 * INFO BOXES
 * ---------------------------------------- */
.extra-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.extra-info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.extra-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.extra-info-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.extra-info-value {
    font-size: 13px;
    color: #1e293b;
    font-weight: 500;
}

/* ----------------------------------------
 * BODY
 * ---------------------------------------- */
.extra-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.extra-detail-body p {
    margin-bottom: 16px;
}

.extra-detail-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 28px;
    margin-bottom: 12px;
}

.extra-detail-body ul,
.extra-detail-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.extra-detail-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.extra-detail-body strong {
    color: #0f172a;
    font-weight: 700;
}

.extra-detail-body a {
    color: #2563eb;
    text-decoration: underline;
}

.extra-detail-back {
    padding: 20px 40px 32px;
    border-top: 1px solid #f1f5f9;
}

/* ----------------------------------------
 * SIDEBAR
 * ---------------------------------------- */
.extra-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.extra-sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.extra-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.extra-sidebar-title i {
    color: #2563eb;
}

.extra-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.extra-sidebar-item {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.extra-sidebar-item:hover {
    background: #f8fafc;
}

.extra-sidebar-thumb {
    width: 70px;
    height: 55px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.extra-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.extra-sidebar-item:hover .extra-sidebar-thumb img {
    transform: scale(1.1);
}

.extra-sidebar-thumb-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 24px;
}

.extra-sidebar-info {
    flex: 1;
    min-width: 0;
}

.extra-sidebar-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.extra-sidebar-item:hover .extra-sidebar-info h4 {
    color: #2563eb;
}

.extra-sidebar-cat {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ----------------------------------------
 * CTA CARD
 * ---------------------------------------- */
.extra-cta-card {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 16px;
    padding: 24px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.extra-cta-card i {
    font-size: 32px;
    opacity: 0.9;
    margin-bottom: 12px;
    display: block;
}

.extra-cta-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.extra-cta-card p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.extra-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.extra-cta-btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* ----------------------------------------
 * RESPONSIVE
 * ---------------------------------------- */
@media (max-width: 991.98px) {
    .extra-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .extra-detail-sidebar {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .extra-detail-content {
        padding: 24px 20px;
    }

    .extra-detail-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
        margin-top: -50px;
    }

    .extra-detail-body {
        font-size: 15px;
    }

    .extra-detail-body h3 {
        font-size: 18px;
    }

    .extra-detail-back {
        padding: 16px 20px 24px;
    }

    .extra-breadcrumb span {
        max-width: 120px;
    }
}