/* Start custom CSS for html, class: .elementor-element-e331618 *//* Modernized Styles */
        
        :root {
            --bg-color: #f0f4f8; /* Light gray-blue background */
            --card-bg: #ffffff;
            --primary-color: #5a67d8; /* Indigo */
            --secondary-color: #667eea; /* Lighter Indigo */
            --accent-color: #81e6d9; /* Teal */
            --text-primary: #1a202c; /* Dark gray for headings */
            --text-secondary: #4a5568; /* Slightly lighter for body text */
            --shadow-color: rgba(69, 90, 100, 0.1);
        }

         #wrapper #main-content
         {
            padding: 0;
            width: 100%;
        }
        
        .section-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent 0%, rgba(147, 197, 253, 0.3) 20%, rgba(139, 92, 246, 0.4) 50%, rgba(147, 197, 253, 0.3) 80%, transparent 100%);
            margin: 2rem auto;
            max-width: 800px;
            position: relative;
        }
        
        .section-divider::before {
            content: '';
            position: absolute;
            top: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 5px;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
            border-radius: 50px;
            filter: blur(1px);
        }
        .elementor-column-gap-default>.elementor-column>.elementor-element-populated {
             padding: 0; 
        }

        .elementor-section.elementor-section-boxed > .elementor-container {
            max-width: 100%;
        }
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            overflow-x: hidden;
            line-height: 1.6;
        }

        /* Section Styling */
        .staff-section {
            padding: 5rem 0;
            min-height: 100vh;
            
            display: flex;
            align-items: center;
            justify-content: center;
            background: radial-gradient(circle at top left, rgba(90, 103, 216, 0.05) 0%, transparent 40%),
                        radial-gradient(circle at bottom right, rgba(126, 142, 234, 0.05) 0%, transparent 40%);
        }

        .staff-container {
            max-width: 1600px;
            width: 100%;
            margin: 0 auto;
            padding: 0 2rem;
        }


        .staff-phone, .staff-email {
            margin-top: 5px;
            font-weight: 500;
            color: #333;
        }
        .staff-email a {
            color: #0066cc;
            text-decoration: none;
        }
        .staff-email a:hover {
            text-decoration: underline;
        }
        
        
        .staff-contacts {
            margin-top: 10px;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .badge {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            color: white;
            text-align: center;
        }
        
        .phone-badge {
            background-color: #007bff; /* Blue badge */
        }
        
        .email-badge {
            background-color: #28a745; /* Green badge */
        }
        
        .email-badge a {
            color: white;
            text-decoration: none;
        }
        
        .email-badge a:hover {
            text-decoration: underline;
        }


        /* Section Header */
        .section-header {
            text-align: center;
            margin-bottom: 3.5rem;
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--text-primary);
            position: relative;
            display: inline-block;
        }

        .section-subtitle {
            font-size: 1.1rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

        /* Main Staff Display */
        .staff-main-display {
            background: var(--card-bg);
            border-radius: 2rem;
            padding: 3rem;
            margin-bottom: 3rem;
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 3rem;
            align-items: center;
            box-shadow: 0 20px 50px -10px var(--shadow-color);
            position: relative;
            overflow: hidden;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .staff-main-display::before {
            content: '';
            position: absolute;
            top: -20%;
            left: -20%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, var(--accent-color) 0%, transparent 60%);
            opacity: 0.1;
            animation: moveGradient 15s linear infinite alternate;
        }

        @keyframes moveGradient {
            0% { transform: translate(0, 0); }
            100% { transform: translate(100px, 100px); }
        }

        /* Staff Image */
        .staff-image-container {
            position: relative;
            aspect-ratio: 1;
            border-radius: 1.5rem;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            border: 4px solid var(--primary-color);
            transform: scale(1.02);
            transition: transform 0.3s ease;
            background-image: url('https://unistudent.upsi.edu.my/asset/images/pintu_gerbang_upsi_compressed.jpg');
background-size: cover;
background-position: center; /* keeps it centered */
background-repeat: no-repeat;
        }

        .staff-image-container:hover {
            transform: scale(1.05);
            
        }

        .staff-main-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
            transform: scale(1.1);
        }

        .staff-main-image.active {
            opacity: 1;
            transform: scale(1);
        }

        /* Staff Info */
        .staff-info {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .staff-info.active {
            opacity: 1;
            transform: translateY(0);
        }

        .staff-name {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.25rem;
            line-height: 1.2;
        }

        .staff-position {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .staff-bio {
            color: var(--text-secondary);
            line-height: 1.8;
            font-size: 1rem;
        }

        /* Thumbnail Gallery */
        .staff-thumbnails {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .thumbnails-container {
            display: flex;
            gap: 1.5rem;
            overflow-x: auto;
            padding: 1rem 0;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .thumbnails-container::-webkit-scrollbar {
            display: none;
        }

        .staff-thumbnail {
            flex: 0 0 110px;
            aspect-ratio: 1;
            border-radius: 1.25rem;
            overflow: hidden;
            cursor: pointer;
            position: relative;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 3px solid transparent;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            transform: scale(1);
        }

        .staff-thumbnail:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .staff-thumbnail.active {
            border-color: var(--primary-color);
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 15px 35px rgba(90, 103, 216, 0.3);
        }

        .thumbnail-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .staff-thumbnail:hover .thumbnail-image {
            filter: brightness(0.9);
        }

        /* Thumbnail Overlay */
        .thumbnail-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
            color: white;
            padding: 0.5rem;
            font-size: 0.75rem;
            font-weight: 600;
            text-align: center;
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .staff-thumbnail:hover .thumbnail-overlay, .staff-thumbnail.active .thumbnail-overlay {
            transform: translateY(0);
        }
        
        .staff-thumbnail.active .thumbnail-overlay {
            color: var(--accent-color);
            background: linear-gradient(to top, rgba(90, 103, 216, 0.8), transparent);
        }

        /* Navigation Buttons */
        .thumbnail-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: var(--card-bg);
            border: none;
            border-radius: 50%;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            z-index: 10;
            color: var(--primary-color);
            font-size: 1.5rem;
        }

        .thumbnail-nav:hover {
            background: var(--primary-color);
            color: white;
            box-shadow: 0 8px 20px rgba(90, 103, 216, 0.3);
            transform: translateY(-50%) scale(1.1);
        }

        .thumbnail-nav-left {
            left: -24px;
        }

        .thumbnail-nav-right {
            right: -24px;
        }

        .thumbnail-nav:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            box-shadow: none;
            background: var(--card-bg);
            color: var(--text-secondary);
            transform: translateY(-50%) scale(1);
        }
        
        /* Loading Animation */
        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 5;
        }

        .loading-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .loading-spinner {
            border: 4px solid var(--bg-color);
            border-top: 4px solid var(--primary-color);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Mobile Responsive */
        @media (max-width: 900px) {
            .staff-main-display {
                grid-template-columns: 1fr;
                gap: 2rem;
                padding: 2rem;
                text-align: center;
            }

            .staff-image-container {
                max-width: 200px;
                margin: 0 auto;
            }

            .staff-name {
                font-size: 1.8rem;
            }

            .staff-position {
                font-size: 1rem;
            }

            .thumbnail-nav {
                display: none;
            }
        }/* End custom CSS */