/**
 * Pelanggan Page - Modern & Futuristic Design
 * Menggunakan warna biru identitas theme dengan gaya modern dan futuristik
 * Senada dengan desain Artikel
 */

/* ============================================
   VARIABLES - Menggunakan warna dari Customizer Identitas Situs
   ============================================ */
/* Warna menggunakan CSS variables dari customizer yang sudah didefinisikan di functions.php */

/* ============================================
   PAGE LAYOUT
   ============================================ */
.pelanggan-page {
    /* padding-top: 80px; */
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
}

/* ============================================
   HERO SECTION - Futuristic
   ============================================ */
.pelanggan-hero {
    position: relative;
    background: linear-gradient(135deg, var(--inviro-primary-light, #75C6F1) 0%, var(--inviro-primary-medium, #4FB3E8) 50%, var(--inviro-primary, #2F80ED) 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
}

.pelanggan-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.pelanggan-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

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

.pelanggan-hero .container {
    position: relative;
    z-index: 1;
}

.pelanggan-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pelanggan-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */
.pelanggan-content-wrapper {
    min-height: calc(100vh - 300px);
}

/* ============================================
   REGION SIDEBAR INLINE - Horizontal Scroll
   ============================================ */
.region-sidebar-inline {
    flex: 0 0 75%;
    min-width: 0;
    max-width: 75%;
    overflow: hidden;
}

.region-sidebar-inline .region-list {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(47, 128, 237, 0.3) transparent;
}

.region-sidebar-inline .region-list::-webkit-scrollbar {
    height: 4px;
}

.region-sidebar-inline .region-list::-webkit-scrollbar-track {
    background: transparent;
}

.region-sidebar-inline .region-list::-webkit-scrollbar-thumb {
    background: rgba(47, 128, 237, 0.3);
    border-radius: 2px;
}

.region-sidebar-inline .region-list::-webkit-scrollbar-thumb:hover {
    background: rgba(47, 128, 237, 0.5);
}

.region-list {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(47, 128, 237, 0.3) transparent;
}

.region-list::-webkit-scrollbar {
    height: 4px;
}

.region-list::-webkit-scrollbar-track {
    background: transparent;
}

.region-list::-webkit-scrollbar-thumb {
    background: rgba(47, 128, 237, 0.3);
    border-radius: 2px;
}

.region-item {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: auto;
    min-width: fit-content;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--font-family, 'Poppins', sans-serif);
    font-size: 0.95rem;
    color: #666;
    position: relative;
    box-sizing: border-box;
}

.region-item:hover {
    background: rgba(47, 128, 237, 0.05);
    border-color: rgba(47, 128, 237, 0.2);
    color: var(--inviro-primary, #2F80ED);
    transform: translateY(-2px);
}

.region-item.active {
    background: linear-gradient(135deg, var(--inviro-primary-light, #75C6F1) 0%, var(--inviro-primary-medium, #4FB3E8) 50%, var(--inviro-primary, #2F80ED) 100%);
    border-color: var(--inviro-primary, #2F80ED);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.3);
    font-weight: 600;
}

.region-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px 3px 0 0;
}

.region-name {
    flex: 1;
}

.region-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

.region-item.active .region-count {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.pelanggan-main-content {
    flex: 1;
    min-width: 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

/* ============================================
   FILTER SECTION - Modern
   ============================================ */
.pelanggan-filter {
    padding: 20px 0;
    background: transparent;
    border-bottom: 1px solid rgba(47, 128, 237, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 80px;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.7);
}

.filter-bar {
    display: flex;
    gap: 16px;
    max-width: 80%;
    width: 80%;
    margin: 0 auto;
    align-items: center;
}

#pelanggan-search {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 2px solid rgba(47, 128, 237, 0.2);
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font-family, 'Poppins', sans-serif);
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#pelanggan-search:focus {
    outline: none;
    border-color: var(--inviro-primary, #2F80ED);
    box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.1), 0 0 20px rgba(47, 128, 237, 0.3), 0 0 40px rgba(47, 128, 237, 0.2);
    transform: translateY(-2px);
}

#pelanggan-search::placeholder {
    color: #999;
}

#pelanggan-region {
    width: 220px;
    min-width: 180px;
    max-width: 260px;
    padding: 10px 14px;
    border: 2px solid rgba(47, 128, 237, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--font-family, 'Poppins', sans-serif);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #2F80ED 50%), linear-gradient(135deg, #2F80ED 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

#pelanggan-region:focus {
    outline: none;
    border-color: var(--inviro-primary, #2F80ED);
    box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.1), 0 0 20px rgba(47, 128, 237, 0.3), 0 0 40px rgba(47, 128, 237, 0.2);
}

#sort-by {
    min-width: 48px;
    max-width: 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid rgba(47, 128, 237, 0.2);
    border-radius: 12px;
    font-size: 0;
    font-family: var(--font-family, 'Poppins', sans-serif);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232F80ED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M7 12h10M11 18h2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
    margin-left: 0;
}

#sort-by option {
    font-size: 15px;
    padding: 8px;
}

#sort-by:focus {
    outline: none;
    border-color: var(--inviro-primary, #2F80ED);
    box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.1), 0 0 20px rgba(47, 128, 237, 0.3), 0 0 40px rgba(47, 128, 237, 0.2);
    transform: translateY(-2px);
}

/* Override filter styles on Pelanggan page to match Artikel layout */
.pelanggan-filter .container .filter-bar {
    display: flex;
    gap: 16px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    align-items: center;
}

.pelanggan-filter .filter-dropdowns {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pelanggan-filter #pelanggan-search {
    flex: 1;
    min-width: 0;
    padding: 12px 20px;
    border: 2px solid rgba(47, 128, 237, 0.2);
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font-family, 'Poppins', sans-serif);
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.pelanggan-filter #pelanggan-search:focus {
    outline: none;
    border-color: var(--inviro-primary, #2F80ED);
    box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.1), 0 0 20px rgba(47, 128, 237, 0.3), 0 0 40px rgba(47, 128, 237, 0.2);
    transform: translateY(-2px);
}

.pelanggan-filter #pelanggan-search::placeholder {
    color: #999;
}

.pelanggan-filter #pelanggan-region,
.pelanggan-filter #sort-by {
    min-width: 200px;
    max-width: 250px;
    padding: 12px 20px;
    border: 2px solid rgba(47, 128, 237, 0.2);
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font-family, 'Poppins', sans-serif);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232F80ED' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.pelanggan-filter #pelanggan-region:focus,
.pelanggan-filter #sort-by:focus {
    outline: none;
    border-color: var(--inviro-primary, #2F80ED);
    box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.1), 0 0 20px rgba(47, 128, 237, 0.3), 0 0 40px rgba(47, 128, 237, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   GRID SECTION
   ============================================ */
.pelanggan-grid-section {
    padding: 10px 0 80px; /* Sama dengan artikel */
    background: transparent; /* Background hanya pada grid, bukan section */
}

.pelanggan-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 kolom saja */
    gap: 16px; /* Sama dengan artikel */
    margin-top: 40px; /* Sama dengan artikel */
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
}

/* Ensure hidden cards don't break grid layout */
.pelanggan-card[style*="display: none"] {
    display: none !important;
}

.pelanggan-card:not([style*="display: none"]) {
    display: flex !important;
}

/* ============================================
   PELANGGAN CARD - List Artikel Style (Horizontal)
   ============================================ */
.pelanggan-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(117, 198, 241, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    align-items: stretch; /* Stretch agar gambar dan konten sama tinggi */
    position: relative;
    border: 1px solid rgba(47, 128, 237, 0.1);
    height: auto; /* Mengikuti konten */
}

.pelanggan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--inviro-primary-light, #75C6F1) 0%, var(--inviro-primary-medium, #4FB3E8) 50%, var(--inviro-primary, #2F80ED) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.pelanggan-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(47, 128, 237, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.pelanggan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(47, 128, 237, 0.2), 0 0 20px rgba(47, 128, 237, 0.3);
    border-color: var(--inviro-primary, #2F80ED);
}

.pelanggan-card:hover::before {
    opacity: 1;
}

.pelanggan-card:hover::after {
    opacity: 1;
}

/* Image Container - Horizontal Layout (sama dengan artikel) */
.pelanggan-image {
    position: relative;
    width: 320px; /* Sama dengan artikel */
    min-width: 320px;
    height: 100%; /* Sama dengan height card */
    min-height: 280px; /* Sama dengan artikel */
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    flex-shrink: 0;
    display: flex !important;
    align-items: stretch;
    z-index: 0;
    line-height: 0; /* Hilangkan space di bawah gambar */
    margin: 0;
    padding: 0;
}

.pelanggan-image img {
    width: 100% !important;
    height: 100% !important; /* Mengisi container - sama dengan height card */
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.pelanggan-card:hover .pelanggan-image img {
    transform: scale(1.08);
}

/* Content - Horizontal Layout (sama dengan artikel) */
.pelanggan-content {
    padding: 20px 24px; /* Sama dengan artikel */
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px; /* Sama dengan artikel */
    justify-content: flex-start;
    min-height: 280px; /* Sama dengan artikel */
    min-width: 0;
}

.pelanggan-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem; /* Sama dengan artikel */
    color: #666;
    flex-wrap: nowrap; /* Sama dengan artikel */
    margin-bottom: 4px;
}

.pelanggan-author {
    font-weight: 600;
    color: var(--inviro-primary, #2F80ED);
}

.pelanggan-date {
    color: #999;
}

.pelanggan-content h3 {
    font-size: 1.3rem; /* Sama dengan artikel */
    font-weight: 700;
    margin: 0 0 8px 0; /* Sama dengan artikel */
    color: #1a1a1a;
    line-height: 1.4; /* Sama dengan artikel */
    display: block; /* Sama dengan artikel */
    white-space: normal;
    overflow: visible;
}

.pelanggan-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pelanggan-content h3 a:hover {
    color: var(--inviro-primary, #2F80ED);
}

.pelanggan-excerpt {
    font-size: 0.95rem; /* Sama dengan artikel */
    color: #666;
    line-height: 1.6; /* Sama dengan artikel */
    margin: 0 0 8px 0; /* Sama dengan artikel */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Sama dengan artikel */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pelanggan-link {
    display: inline-block;
    color: var(--inviro-primary, #2F80ED);
    font-weight: 600; /* Sama dengan artikel */
    text-decoration: none;
    font-size: 0.95rem; /* Sama dengan artikel */
    margin-top: auto;
    padding-top: 0; /* Sama dengan artikel */
    margin-top: 0; /* Sama dengan artikel */
    border-top: none; /* Sama dengan artikel */
    transition: all 0.3s ease;
}

.pelanggan-link:hover {
    color: var(--inviro-primary-medium, #4FB3E8);
    transform: translateX(5px);
}

/* ============================================
   COMPANY LOGOS SECTION
   ============================================ */
.company-logos-section {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.company-logos-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1a1a1a;
    background: linear-gradient(135deg, var(--inviro-primary-light, #75C6F1) 0%, var(--inviro-primary-medium, #4FB3E8) 50%, var(--inviro-primary, #2F80ED) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logos-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.logo-card {
    background: white;
    border: 2px solid rgba(47, 128, 237, 0.1);
    border-radius: 16px;
    padding: 30px 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-card:hover {
    border-color: var(--inviro-primary, #2F80ED);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(47, 128, 237, 0.2);
}

.logo-card img {
    max-width: 100% !important;
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 auto 10px auto !important;
    padding: 0 !important;
    border: none !important;
}

.logo-name {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* ============================================
   CTA SECTION - Futuristic
   ============================================ */
.pelanggan-cta {
    position: relative;
    background: linear-gradient(135deg, var(--inviro-primary-light, #75C6F1) 0%, var(--inviro-primary-medium, #4FB3E8) 50%, var(--inviro-primary, #2F80ED) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.pelanggan-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.pelanggan-cta .container {
    position: relative;
    z-index: 1;
}

.pelanggan-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
    color: #ffffff;
}

.pelanggan-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background: #ffffff;
    color: var(--inviro-primary, #2F80ED);
    padding: 18px 48px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(47, 128, 237, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(-2px);
}

/* ============================================
   NO RESULTS
   ============================================ */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 20px;
    border: 2px dashed rgba(47, 128, 237, 0.3);
}

.no-results p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.no-results strong {
    color: var(--inviro-primary, #2F80ED);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .pelanggan-grid {
        grid-template-columns: 1fr; /* Tetap 1 kolom */
        gap: 16px; /* Sama dengan artikel */
    }
    
    .pelanggan-image {
        width: 280px; /* Sedikit lebih kecil */
        min-width: 280px;
        min-height: 260px; /* Tambah min-height */
    }
    
    .pelanggan-content {
        min-height: 260px; /* Tambah min-height */
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .filter-bar {
        max-width: 80%;
        gap: 8px;
    }
    
    .region-sidebar-inline {
        flex: 0 0 75%;
        max-width: 75%;
    }
    
    #pelanggan-search {
        flex: 1;
        min-width: 0;
    }
    
    #sort-by {
        min-width: 48px;
        max-width: 48px;
        width: 48px;
    }
}

@media (max-width: 992px) {
    .pelanggan-content-wrapper {
        flex-direction: column;
    }
    
    .pelanggan-main-content {
        width: 100%;
    }
    
    .pelanggan-filter {
        padding: 16px 0;
    }
    
    .filter-bar {
        flex-wrap: wrap;
        gap: 12px;
        max-width: 80%;
    }
    
    .region-sidebar-inline {
        order: 1;
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }
    
    .region-list {
        gap: 10px;
    }
    
    .region-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .region-count {
        padding: 3px 8px;
        font-size: 0.8rem;
        min-width: 28px;
    }
    
    .pelanggan-hero h1 {
        font-size: 2.5rem;
    }
    
    .pelanggan-hero p {
        font-size: 1.1rem;
    }
    
    .pelanggan-grid {
        grid-template-columns: 1fr; /* Tetap 1 kolom */
        gap: 16px; /* Sama dengan artikel */
    }
    
    .pelanggan-image {
        width: 260px; /* Sedikit lebih kecil */
        min-width: 260px;
        min-height: 240px; /* Tambah min-height */
    }
    
    .pelanggan-content {
        min-height: 240px; /* Tambah min-height */
    }
    
    .pelanggan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .pelanggan-image {
        width: 220px;
        min-width: 220px;
        height: 160px;
    }
    
    .pelanggan-content {
        padding: 16px 20px;
    }
    
    .pelanggan-cta h2 {
        font-size: 2rem;
    }
    
    .company-logos-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    
    
    .pelanggan-hero {
        padding: 60px 0 50px;
    }
    
    .pelanggan-hero h1 {
        font-size: 2rem;
    }
    
    .pelanggan-hero p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .pelanggan-filter {
        top: 70px;
        padding: 16px 0;
    }
    
    .pelanggan-filter .container {
        padding: 0 16px;
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 12px;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .filter-dropdowns {
        width: 100%;
        display: flex;
        gap: 12px;
        align-items: stretch;
    }
    
    .pelanggan-filter #pelanggan-search {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 12px;
    }
    
    .pelanggan-filter #pelanggan-search::placeholder {
        font-size: 14px;
    }
    
    .pelanggan-filter #pelanggan-region,
    .pelanggan-filter #sort-by {
        flex: 1 1 calc(50% - 6px);
        width: calc(50% - 6px);
        min-width: 0 !important;
        max-width: calc(50% - 6px) !important;
        box-sizing: border-box;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 12px;
        padding-right: 40px;
    }
    
    .pelanggan-grid {
        grid-template-columns: 1fr; /* Tetap 1 kolom */
        gap: 14px; /* Dikurangi dari 20px */
        background: #ffffff;
        border-radius: 16px;
        padding: 16px;
    }
    
    .pelanggan-card {
        flex-direction: row; /* Tetap horizontal seperti desktop */
        align-items: stretch; /* Stretch agar gambar memenuhi height card */
        height: auto; /* Mengikuti konten */
    }
    
    .pelanggan-image {
        width: 100px !important; /* Ratio 1:3 dengan content */
        min-width: 100px !important;
        height: 100% !important; /* Memenuhi height card */
        min-height: 100px !important; /* Fixed min-height */
        flex: 1; /* Ratio 1:3 */
        align-self: stretch; /* Stretch untuk memenuhi height card */
    }
    
    .pelanggan-image img {
        width: 100% !important;
        height: 100% !important; /* Memenuhi height container */
        object-fit: cover !important;
        position: absolute !important; /* Tetap absolute */
        top: 0 !important;
        left: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .pelanggan-content {
        flex: 3; /* Ratio 1:3 dengan image */
        padding: 8px 12px !important; /* Dikurangi lagi */
        gap: 4px !important; /* Dikurangi lagi */
        min-height: auto !important; /* Override desktop */
    }
    
    .pelanggan-meta-top {
        font-size: 0.65rem; /* Dikurangi lagi */
        margin-bottom: 2px; /* Dikurangi */
    }
    
    .pelanggan-content h3 {
        font-size: 0.8rem; /* Dikurangi lagi */
        margin: 0 0 3px 0; /* Dikurangi */
        line-height: 1.2; /* Dikurangi */
    }
    
    .pelanggan-excerpt {
        font-size: 0.7rem; /* Dikurangi lagi */
        line-height: 1.3; /* Dikurangi */
        -webkit-line-clamp: 2; /* Dikurangi dari 3 */
        margin: 0 0 2px 0; /* Dikurangi */
    }
    
    .pelanggan-link {
        font-size: 0.7rem; /* Dikurangi lagi */
    }
    
    .pelanggan-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .pelanggan-cta {
        padding: 2rem 1rem;
    }
    
    .pelanggan-cta .container {
        padding: 0 0.75rem;
    }
    
    .pelanggan-cta h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .pelanggan-cta p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        line-height: 1.6;
    }
    
    .btn-primary {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        border-radius: 40px;
    }
    
    /* Company Logos Section Mobile */
    .company-logos-section {
        padding: 40px 0;
    }
    
    .company-logos-section h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .logos-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .logo-card {
        padding: 20px 12px;
        min-height: 120px;
        border-radius: 12px;
    }
    
    .logo-card img {
        max-height: 60px !important;
        margin-bottom: 8px !important;
    }
    
    .logo-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .pelanggan-filter {
        padding: 12px 0;
    }
    
    .pelanggan-filter .container {
        padding: 0 12px;
    }
    
    .filter-bar {
        gap: 10px;
    }
    
    .filter-dropdowns {
        gap: 10px;
    }
    
    .pelanggan-filter #pelanggan-search {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .pelanggan-filter #pelanggan-search::placeholder {
        font-size: 13px;
    }
    
    .pelanggan-filter #pelanggan-region,
    .pelanggan-filter #sort-by {
        flex: 1 1 calc(50% - 5px);
        width: calc(50% - 5px);
        max-width: calc(50% - 5px) !important;
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 10px;
        padding-right: 36px;
    }
    
    .pelanggan-grid {
        grid-template-columns: 1fr;
        gap: 12px; /* Dikurangi dari 16px */
        background: #ffffff;
        border-radius: 12px;
        padding: 12px;
    }
    
    .pelanggan-hero {
        padding: 20px 0 10px;
    }
    
    .pelanggan-hero h1 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .pelanggan-hero p {
        font-size: 0.85rem;
        padding: 0 12px;
    }
    
    .pelanggan-card {
        flex-direction: row; /* Tetap horizontal seperti desktop */
        align-items: stretch; /* Stretch agar gambar memenuhi height card */
        border-radius: 12px;
        height: auto; /* Mengikuti konten */
    }
    
    .pelanggan-image {
        width: 80px !important; /* Ratio 1:3 dengan content (dari 180px) */
        min-width: 80px !important;
        height: 100% !important; /* Memenuhi height card */
        min-height: 80px !important; /* Fixed min-height */
        flex: 1; /* Ratio 1:3 */
        align-self: stretch; /* Stretch untuk memenuhi height card */
    }
    
    .pelanggan-image img {
        width: 100% !important;
        height: 100% !important; /* Memenuhi height container */
        object-fit: cover !important;
        position: absolute !important; /* Tetap absolute */
        top: 0 !important;
        left: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .pelanggan-content {
        padding: 6px 10px !important; /* Dikurangi lagi */
        gap: 3px !important; /* Dikurangi lagi */
        flex: 3; /* Ratio 1:3 dengan image */
        min-height: auto !important; /* Override desktop */
    }
    
    .pelanggan-meta-top {
        font-size: 0.6rem; /* Dikurangi lagi */
        margin-bottom: 1px; /* Dikurangi lagi */
    }
    
    .pelanggan-content h3 {
        font-size: 0.75rem; /* Dikurangi lagi */
        margin: 0 0 2px 0; /* Dikurangi lagi */
        line-height: 1.15; /* Dikurangi lagi */
    }
    
    .pelanggan-excerpt {
        font-size: 0.65rem; /* Dikurangi lagi */
        line-height: 1.25; /* Dikurangi lagi */
        -webkit-line-clamp: 2; /* Tetap 2 */
        margin: 0 0 1px 0; /* Dikurangi lagi */
    }
    
    .pelanggan-link {
        font-size: 0.65rem; /* Dikurangi lagi */
        padding-top: 0;
        margin-top: 0;
    }
    
    /* Company Logos Section Mobile 480px */
    .company-logos-section {
        padding: 30px 0;
    }
    
    .company-logos-section h2 {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }
    
    .logos-subtitle {
        font-size: 0.8rem;
        margin-bottom: 24px;
    }
    
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .logo-card {
        padding: 16px 10px;
        min-height: 100px;
        border-radius: 10px;
    }
    
    .logo-card img {
        max-height: 50px !important;
        margin-bottom: 6px !important;
    }
    
    .logo-name {
        font-size: 0.7rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pelanggan-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.pelanggan-card:nth-child(1) { animation-delay: 0.1s; }
.pelanggan-card:nth-child(2) { animation-delay: 0.2s; }
.pelanggan-card:nth-child(3) { animation-delay: 0.3s; }
.pelanggan-card:nth-child(4) { animation-delay: 0.4s; }
.pelanggan-card:nth-child(5) { animation-delay: 0.5s; }
.pelanggan-card:nth-child(6) { animation-delay: 0.6s; }
.pelanggan-card:nth-child(n+7) { animation-delay: 0.7s; }

/* ============================================
   LOADING STATE
   ============================================ */
.pelanggan-card.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .pelanggan-card,
    .pelanggan-card::after,
    .pelanggan-hero::after {
        animation: none;
    }
    
    .pelanggan-card:hover {
        transform: translateY(-4px);
    }
}
