/* Styles khusus team.html */
.team-section {
    padding: 4rem 0;
}

.team-row-scroll {
    position: relative;
    width: 100%;
    /* Default: No overflow here, it will be handled specifically in mobile media query */
}

.team-container {
    width: 100%; /* Default width for desktop */
    /* Overflow properties will be handled by .team-container itself for mobile */
    -webkit-overflow-scrolling: touch; /* This is a general property for smooth scrolling */
    padding-bottom: 1rem; /* Space for scrollbar if it appears here (desktop hidden) */
}

/* Custom scrollbar styles for webkit browsers (will apply to .team-container on mobile) */
.team-container::-webkit-scrollbar,
.team-row-scroll::-webkit-scrollbar { /* Apply to both just in case or for future consistency */
    height: 8px;
    background-color: #f5f5f5;
    border-radius: 10px;
}

.team-container::-webkit-scrollbar-thumb,
.team-row-scroll::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
    border: 2px solid #f5f5f5;
}

.team-container::-webkit-scrollbar-thumb:hover,
.team-row-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.team-grid {
    display: flex;
    gap: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    min-width: min-content; /* Allows the flex container to grow as needed */
    flex-wrap: nowrap; /* Ensure items don't wrap to the next line */
}

.team-card {
    flex: 0 0 auto;
    width: 200px; /* Reduced width for more compact cards */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 100%;
    height: 200px; /* Adjusted height to match new width for square images */
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-name {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.team-position {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #007bff;
}

/* Desktop Styles */
@media (min-width: 992px) {
    .team-row-scroll {
        overflow: visible; /* No scrolling needed on desktop */
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .team-container {
        width: 100%;
        overflow-x: visible;
        padding-bottom: 0;
    }
    .team-container::-webkit-scrollbar,
    .team-row-scroll::-webkit-scrollbar {
        display: none;
    }
    .team-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, 200px); /* Adjusted to fixed 200px for uniform size */
        gap: 2rem;
        padding-bottom: 0;
        justify-content: center;
    }

    .team-card {
        width: 100%; /* Allows cards to scale within the grid (which is now 200px) */
    }

    /* Hide scroll indicator and hint on desktop */
    .team-row-scroll::after,
    .team-row-scroll::before {
        display: none;
    }
}

/* Mobile Styles */
@media (max-width: 991.98px) {
    .team-section {
        padding: 2rem 0;
    }

    .team-row-scroll {
        /* This wrapper just provides context for breaking out of container, no overflow here */
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 0; 
        padding-right: 0;
    }

    .team-container {
        /* This is the main scrollable container on mobile */
        overflow-x: auto; /* Enable horizontal scrolling */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin; /* Firefox */
        -ms-overflow-style: auto; /* IE and Edge */
        padding-bottom: 1rem; /* Space for scrollbar */

        /* Apply internal padding to make space for content from viewport edges */
        padding-left: 1rem;
        padding-right: 1rem;
        
        display: block; /* Ensure it behaves as a block element */
        /* Reset any conflicting styles from general rules */
        width: auto; /* Allow content to dictate width */
        margin: 0;
        /* Padding is handled here now, removed from .team-grid */
        /* padding: 0; */ 
    }

    .team-grid {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        /* min-width: min-content; and flex-wrap: nowrap already handled in general styles */
        width: max-content; /* Force grid to be as wide as its content */
    }

    .team-card {
        width: 200px; /* Keep consistent with desktop base for compact look on mobile */
        flex-shrink: 0; /* Prevent cards from shrinking */
    }

    /* Scroll indicator */
    .team-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9));
        pointer-events: none;
        z-index: 1;
    }

    /* Add scroll hint */
    .team-container::before {
        content: '← Scroll →';
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.8rem;
        color: #666;
        white-space: nowrap;
        animation: scrollHint 2s infinite;
    }
}

@keyframes scrollHint {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* CTA Section Styles */
.cta-team-section {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 4rem 0;
    margin-top: 2rem;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===========================================
   CTA Section Styles for Team Page
   =========================================== */
   .cta-team-section {
    background: linear-gradient(135deg, #142850 0%, #4fc3f7 100%) !important;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}
.cta-team-section .cta-title,
.cta-team-section .cta-description {
    color: #fff;
}
.cta-team-section .cta-buttons .btn-light {
    background: #fff;
    color: #142850;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(20,40,80,0.08);
    transition: background 0.2s, color 0.2s;
}
.cta-team-section .cta-buttons .btn-light:hover {
    background: #223a5f;
    color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-section .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    z-index: 2;
}

.hero-section .hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 4rem 0;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-section .hero-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.hero-section .hero-content .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.hero-section .hero-content .breadcrumb-item,
.hero-section .hero-content .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-section .hero-content .breadcrumb-item a:hover {
    color: white;
}

.hero-section .hero-content .breadcrumb-item.active {
    color: white;
}

.hero-section .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-section .hero-content .lead {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .hero-section .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .hero-content .lead {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 40vh;
    }
    
    .hero-section .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-section .hero-content .lead {
        font-size: 1.1rem;
    }
}

.team-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.7), 
        rgba(0, 0, 0, 0.5));
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-hero .overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-hero:hover .overlay {
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.4), 
        rgba(0, 0, 0, 0.3));
}

.team-hero:hover .overlay::before {
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 0, 0, 0.15) 100%
    );
}