/*=============================================
  HERO SECTION
=============================================*/

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/*=============================================
  GENERAL SECTION
=============================================*/
.sarpras-section {
    padding: 80px 0;
    background: #FAFAFA;
}

.bg-white {
    background: var(--white);
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header-left {
    text-align: left;
    margin-bottom: 40px;
}

.sp-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.sp-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-green);
    border-radius: 2px;
}

.section-header-center .sp-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.sp-desc {
    font-size: 16px;
    color: var(--slate);
    line-height: 1.7;
}

/*=============================================
  FASILITAS UTAMA (Alternating)
=============================================*/
.alt-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.alt-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Even rows reverse order */
.alt-row:nth-child(even) {
    flex-direction: row-reverse;
}

.alt-image-box {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

.alt-image-box:hover {
    transform: translateY(-10px);
}

.alt-image-box img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.alt-content-box {
    flex: 1;
}

.alt-icon {
    width: 60px;
    height: 60px;
    background: rgba(5, 150, 105, 0.1);
    color: var(--primary-green);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.alt-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.alt-text {
    font-size: 16px;
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 24px;
}

.alt-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alt-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--charcoal);
    font-weight: 500;
}

.alt-features li svg {
    color: var(--primary-green);
    flex-shrink: 0;
    margin-top: 2px;
}

/*=============================================
  FASILITAS PENUNJANG (Gallery)
=============================================*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    cursor: pointer;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    transition: opacity 0.3s ease;
}

.gallery-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    margin-bottom: 4px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-card:hover .gallery-title {
    transform: translateY(0);
}

.gallery-card:hover .gallery-desc {
    transform: translateY(0);
    opacity: 1;
}

/*=============================================
  RESPONSIVE DESIGN
=============================================*/
@media (max-width: 991px) {
    .alt-row, .alt-row:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }

    .alt-image-box {
        width: 100%;
    }

    .alt-image-box img {
        height: 300px;
    }

    .alt-content-box {
        width: 100%;
    }
}

@media (max-width: 768px) {

    .sp-title {
        font-size: 26px;
    }

    .sarpras-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .alt-image-box img {
        height: 250px;
    }

    .alt-title {
        font-size: 22px;
    }
}