/* =================================================
   DETAIL EKSTRAKURIKULER - SDN 2 KARANGCENGIS
   Tema Biru Putih Modern
   ================================================= */

:root {
    --primary-blue: #0a4d8c;
    --secondary-blue: #1e6eb5;
    --accent-blue: #3498db;
    --light-blue: #eef5fc;
    --pure-white: #ffffff;
    --soft-white: #f8fafd;
    --text-dark: #2c3e50;
    --text-light: #5a6a7a;
    --border-light: #d9e6f2;
    --shadow: 0 10px 30px rgba(10, 77, 140, 0.08);
    --shadow-hover: 0 15px 40px rgba(10, 77, 140, 0.12);
    --gradient-blue: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--soft-white);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ========== BANNER HALAMAN (DIPERBAIKI) ========== */
.page-banner {
    position: relative;
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--pure-white);
    margin-bottom: 3rem;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.banner-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--pure-white);
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb span {
    color: var(--pure-white);
    font-weight: 500;
}

/* ========== DETAIL SECTION ========== */
.detail-section {
    padding: 0 0 4rem;
}

.detail-card {
    background: var(--pure-white);
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.detail-header {
    background: var(--gradient-blue);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.header-icon i {
    font-size: 2rem;
    color: var(--pure-white);
}

.detail-header h2 {
    color: var(--pure-white);
    font-size: 2rem;
    margin: 0;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 2rem;
}

.detail-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 350px;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.detail-image:hover img {
    transform: scale(1.05);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    background: var(--light-blue);
    border-radius: 10px;
    padding: 1.2rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: var(--pure-white);
    border-color: var(--accent-blue);
}

.info-icon {
    width: 40px;
    text-align: center;
}

.info-icon i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.info-content {
    flex: 1;
}

.info-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.info-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.detail-description {
    background: var(--pure-white);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.detail-description h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-description h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.description-text {
    color: var(--text-light);
    line-height: 1.8;
    text-align: justify;
}

.detail-benefits {
    background: var(--light-blue);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-benefits h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.benefits-list li i {
    color: var(--accent-blue);
}

.detail-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-back, .btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 25px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-back {
    background: var(--light-blue);
    color: var(--primary-blue);
    border: 1px solid var(--border-light);
}

.btn-back:hover {
    background: var(--primary-blue);
    color: var(--pure-white);
    transform: translateY(-3px);
}

.btn-contact {
    background: var(--gradient-blue);
    color: var(--pure-white);
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.related-section {
    margin-top: 3rem;
}

.related-header {
    text-align: center;
    margin-bottom: 2rem;
}

.related-header h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--accent-blue);
    margin: 0.5rem auto 0;
    border-radius: 4px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    background: var(--pure-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.related-image {
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 1.2rem;
}

.related-content h4 {
    font-size: 1rem;
    color: var(--primary-blue);
    margin-bottom: 0.3rem;
}

.related-content p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-related {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent-blue);
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
}

.btn-related i {
    transition: transform 0.3s ease;
}

.btn-related:hover i {
    transform: translateX(3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .detail-content {
        grid-template-columns: 1fr;
    }
    
    .detail-image {
        height: 300px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 250px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .detail-header h2 {
        font-size: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .btn-back, .btn-contact {
        width: 100%;
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .detail-image {
        height: 250px;
    }
    
    .detail-header {
        padding: 1.5rem;
    }
    
    .header-icon {
        width: 50px;
        height: 50px;
    }
    
    .header-icon i {
        font-size: 1.5rem;
    }
}