/* ============================================ */
/* LAYANAN PAGE STYLING */
/* ============================================ */

/* Active Navigation (sama seperti profile.css) */
.nav-menu a.nav-link {
    position: relative;
    display: inline-block;
}

.nav-menu a.nav-link.active {
    color: var(--primary-color);
}

.nav-menu a.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

/* ============================================ */
/* INTRO LAYANAN */
/* ============================================ */
#layanan-intro {
    background: linear-gradient(180deg, #ffffff 0%, var(--light-color) 100%);
    padding: 40px 0;
}

#layanan-intro .section-subtitle {
    max-width: 700px;
    margin: -1.5rem auto 0 auto;
}

/* ============================================ */
/* LAYANAN DETAIL CARDS */
/* ============================================ */
#layanan-detail {
    border-top: 4px solid var(--secondary-color);
    border-bottom: 4px solid var(--secondary-color);
}

.layanan-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    background: #ffffff;
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.layanan-detail-card:last-child {
    margin-bottom: 0;
}

.layanan-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* Reverse Layout untuk variasi */
.layanan-detail-card.reverse {
    direction: rtl;
}

.layanan-detail-card.reverse > * {
    direction: ltr;
}

/* Decorative Background */
.layanan-detail-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 124, 202, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.layanan-detail-card.reverse::before {
    right: auto;
    left: -100px;
}

/* Content Section */
.layanan-detail-content {
    position: relative;
    z-index: 1;
}

.layanan-detail-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), #5a9ad8);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(59, 124, 202, 0.3);
    transition: all 0.3s ease;
}

.layanan-detail-card:hover .layanan-detail-icon {
    transform: rotate(5deg) scale(1.05);
}

.layanan-detail-icon.secondary {
    background: linear-gradient(135deg, var(--secondary-color), #f5b041);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}

.layanan-detail-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.layanan-detail-text {
    position: relative;
}

.layanan-number {
    position: absolute;
    top: -40px;
    left: 100px;
    font-size: 5rem;
    font-weight: 900;
    color: var(--secondary-color);
    opacity: 0.1;
    line-height: 1;
    z-index: -1;
}

.layanan-detail-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.layanan-detail-text p {
    color: var(--grey-color);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

/* Features List */
.layanan-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: var(--light-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: linear-gradient(135deg, rgba(59, 124, 202, 0.1), rgba(243, 156, 18, 0.05));
    transform: translateX(5px);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.feature-item span {
    color: var(--dark-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Image Section */
.layanan-detail-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    height: 400px;
}

.layanan-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.layanan-detail-card:hover .layanan-detail-image img {
    transform: scale(1.1);
}

.layanan-detail-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 124, 202, 0.8), rgba(243, 156, 18, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.layanan-detail-card:hover .layanan-detail-image .image-overlay {
    opacity: 1;
}

.layanan-detail-image .image-overlay i {
    font-size: 5rem;
    color: #fff;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================ */
/* KEUNGGULAN SECTION */
/* ============================================ */
#keunggulan {
    background: linear-gradient(180deg, var(--light-color) 0%, #ffffff 100%);
}

.keunggulan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.keunggulan-card {
    background: #fff;
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.keunggulan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.keunggulan-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #5a9ad8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 8px 25px rgba(59, 124, 202, 0.3);
    transition: all 0.3s ease;
}

.keunggulan-card:hover .keunggulan-icon {
    background: linear-gradient(135deg, var(--secondary-color), #f5b041);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.4);
    transform: rotateY(360deg);
}

.keunggulan-icon i {
    font-size: 2.2rem;
    color: #fff;
}

.keunggulan-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.keunggulan-card p {
    color: var(--grey-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */
@media (max-width: 992px) {
    .layanan-detail-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .layanan-detail-card.reverse {
        direction: ltr;
    }

    .layanan-detail-image {
        order: -1;
        height: 300px;
    }

    .layanan-features {
        grid-template-columns: 1fr;
    }

    .keunggulan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .layanan-detail-card {
        margin-bottom: 3rem;
        padding: 1.5rem;
    }

    .layanan-detail-icon {
        width: 70px;
        height: 70px;
    }

    .layanan-detail-icon i {
        font-size: 2rem;
    }

    .layanan-number {
        font-size: 3rem;
        left: 80px;
    }

    .layanan-detail-text h3 {
        font-size: 1.5rem;
    }

    .layanan-detail-image {
        height: 250px;
    }

    .keunggulan-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .layanan-detail-icon {
        width: 60px;
        height: 60px;
    }

    .layanan-detail-icon i {
        font-size: 1.8rem;
    }

    .layanan-number {
        font-size: 2.5rem;
        top: -30px;
        left: 70px;
    }

    .layanan-detail-text h3 {
        font-size: 1.3rem;
    }

    .feature-item {
        font-size: 0.85rem;
    }

    .keunggulan-icon {
        width: 70px;
        height: 70px;
    }

    .keunggulan-icon i {
        font-size: 2rem;
    }
}