/* ===== MANAJEMEN SEKOLAH MODERN STYLE ===== */
/* Professional Management Team Section */

.manajemen {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    position: relative;
    overflow: hidden;
}

.manajemen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 193, 7, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(33, 150, 243, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.manajemen .container {
    position: relative;
    z-index: 1;
}

/* Category Section */
.manajemen-category {
    margin-bottom: 60px;
}

.manajemen-category:last-child {
    margin-bottom: 0;
}

.category-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
}

.category-title::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine-title 3s infinite;
}

@keyframes shine-title {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Grid Layout */
.manajemen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Card Design */
.manajemen-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.manajemen-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2196f3, #00bcd4, #4caf50);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.manajemen-card:hover::before {
    transform: scaleX(1);
}

.manajemen-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Photo Section */
.manajemen-photo {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manajemen-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
    pointer-events: none;
}

.manajemen-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    padding: 10px;
}

.manajemen-card:hover .manajemen-photo img {
    transform: scale(1.05);
}

/* Info Section */
.manajemen-info {
    padding: 25px;
    text-align: center;
}

.manajemen-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.4;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manajemen-info .jabatan {
    font-size: 15px;
    font-weight: 600;
    color: #2196f3;
    margin: 10px 0;
    padding: 8px 15px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.05) 100%);
    border-radius: 20px;
    display: inline-block;
}

.manajemen-info .detail {
    font-size: 13px;
    color: #666;
    margin: 8px 0;
    line-height: 1.5;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #4caf50;
}

/* Special Styling for Yayasan Cards */
.manajemen-category:first-child .manajemen-card {
    background: linear-gradient(135deg, #fff 0%, #fffbf0 100%);
}

.manajemen-category:first-child .manajemen-card::before {
    background: linear-gradient(90deg, #ffc107, #ff9800, #ff5722);
}

.manajemen-category:first-child .manajemen-photo {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.manajemen-category:first-child .manajemen-info .jabatan {
    color: #ff9800;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .manajemen-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .manajemen {
        padding: 60px 0;
    }
    
    .category-title {
        font-size: 26px;
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .manajemen-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .manajemen-photo {
        height: 280px;
    }
    
    .manajemen-info {
        padding: 20px;
    }
    
    .manajemen-info h4 {
        font-size: 16px;
        min-height: auto;
    }
    
    .manajemen-info .jabatan {
        font-size: 14px;
    }
    
    .manajemen-info .detail {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .manajemen {
        padding: 40px 0;
    }
    
    .category-title {
        font-size: 22px;
        padding: 12px;
        margin-bottom: 25px;
    }
    
    .manajemen-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .manajemen-photo {
        height: 300px;
    }
    
    .manajemen-info {
        padding: 20px 15px;
    }
    
    .manajemen-info h4 {
        font-size: 15px;
    }
    
    .manajemen-info .jabatan {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .manajemen-info .detail {
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* Animation on Scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.manajemen-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.manajemen-card:nth-child(1) { animation-delay: 0.1s; }
.manajemen-card:nth-child(2) { animation-delay: 0.2s; }
.manajemen-card:nth-child(3) { animation-delay: 0.3s; }
.manajemen-card:nth-child(4) { animation-delay: 0.4s; }
