.main-header {
    background: var(--brand-primary);
}

.main-header .logo img {
    filter: brightness(0) invert(1);
    -webkit-filter: brightness(0) invert(1);
}

.slider-hero-home {
    background: var(--brand-primary);
    padding-top: 20px;
}

.glidikHomeHero .swiper-slide {
	max-width: 820px;
    overflow: hidden;
    border-radius: 25px;
    transition: opacity 0.3s ease;
    opacity: 0.3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.glidikHomeHero .swiper-slide-active {
    opacity: 1;
}

@media (max-width: 768px) {
    .slider-hero-home {
        padding: 15px;
    }
    .glidikHomeHero .swiper-slide {
        border-radius: 10px;
    }
}

/* Hero Section */
.hero-home {
    padding: 30px 20px 80px;
    text-align: center;
    background: var(--brand-primary);
    color: white;
}

.hero-home h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-home p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

@media (max-width: 480px) {
	.hero-home {
		padding-top: 20px;
	}
    .hero-home h1 {
        font-size: 2rem;
    }
}

/* PENCARIAN UTAMA */

.search-form-hero {
    display: flex;
    justify-content: space-between;
    background: white;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 30px auto;
}

.search-input-group,
.search-select-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-right: 1px solid #eee;
}

.search-input-group .material-icons-outlined {
    color: var(--brand-primary);
}

.search-select-group:last-of-type { 
    border-right: none; 
}

.search-form-hero input,
.search-form-hero select {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    padding: 10px;
}

.btn-search-main {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
}

.btn-nearby {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    background: rgba(255,255,255,0.2);
    border: 1px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.btn-nearby .material-icons-outlined.spin {
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-form-hero {
        flex-direction: column;
        border-radius: 15px;
        padding: 15px;
    }
    .search-input-group,
    .search-select-group { 
        border-right: none; 
        border-bottom: 1px solid #eee; 
        padding: 0;
    }
    .search-form-hero input,
    .search-form-hero select {
        padding: 10px 0;
    }
    .btn-search-main {
        margin-top: 15px;
    }
}

/* ---------- ICON CARI CEPAT ---------- */

.quick-categories {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.category-scroll-wrapper {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
	gap: 10px;
    padding: 20px;
    margin-top: -40px;
    background: #fff;
    border-radius: 50px;
}

.cat-item {
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
	gap: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.cat-item:active {
    transform: scale(0.9);
}

.cat-icon-box {
    width: 60px;
    height: 60px;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    transition: all 0.3s ease;
}

.cat-item:hover .cat-icon-box {
    background: var(--brand-primary);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(11, 34, 57, 0.2);
}

.cat-icon-box .material-icons-outlined {
    font-size: xx-large;
}

.cat-item small {
    font-size: 13px;
	color: var(--brand-primary);
    text-transform: capitalize;
    line-height: 1.3;
    text-align: center;
    word-wrap: break-word;
}

@media (max-width: 480px) {
    .category-scroll-wrapper {
        grid-template-columns: repeat(4, 1fr);
		gap: 15px 10px;
        overflow-x: hidden;
    }
	.quick-categories {
		padding: 0 10px;
	}
	.cat-icon-box .material-icons-outlined {
		font-size: x-large;
	}
}

/* =========================================
   MODAL SEMUA KATEGORI (BOTTOM SHEET STYLE)
   ========================================= */

   .modal-kategori {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-kategori.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-content-kategori {
    width: 100%;
    background-color: #f5f5f5;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}

.modal-kategori.is-active .modal-content-kategori {
    transform: translateY(0);
}

.modal-header-kategori {
    display: flex;
    align-items: center;
    justify-content: space-between;
	padding: 20px;
    padding-bottom: 20px;
	background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.header-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-title-wrap strong {
    font-size: large;
}

.close-modal-kategori {
    color: #999;
    cursor: pointer;
}

.modal-body-kategori {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 10px;
    max-height: 70vh;
    overflow-y: auto;
	scrollbar-width: none; 
    -ms-overflow-style: none;
}

.modal-body-kategori::-webkit-scrollbar {
    display: none;
}

.group-kategori-wrapper {
	background: #fff;
	padding: 15px;
	border-radius: 15px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);;
}

.group-header-kategori {
	font-size: small;
	font-weight: 700;
	text-transform: uppercase;
	text-align: left;
	padding: 5px 0 10px;
	border-bottom: 1px solid #f0f0f0;
}

.child-grid-wrapper {
	display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px 15px;
	padding: 15px 0 30px;
}

.child-grid-wrapper small {
	font-size: 12px;
}

@media (max-width: 480px) {
    .child-grid-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   SECTION: PEKERJA TERBARU (BERANDA)
   ========================================================================== */

   .home-section {
    padding: 80px 0;
    background-color: #f9fbff;
}

.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.title-area .subtitle {
    color: #1e73be;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 5px;
}

.title-area h2 {
    font-size: 32px;
    color: #1a1a1a;
    margin: 0;
    font-weight: 800;
}

.title-line {
    width: 60px;
    height: 4px;
    background: #ffca28;
    margin-top: 12px;
    border-radius: 10px;
}

.btn-view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1e73be;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    padding-bottom: 5px;
}

.btn-view-all:hover {
    gap: 15px;
    color: #0d47a1;
}

.grid-pekerja {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 10px;
}

@media (max-width: 768px) {
    .grid-pekerja {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-pekerja {
        grid-template-columns: repeat(2, 1fr);
    }
}

.empty-state {
    text-align: center;
    padding: 50px;
    background: #ffffff;
    border: 2px dashed #e0e0e0;
    border-radius: 15px;
}

.empty-state .material-icons-outlined {
    font-size: 50px;
    color: #ccc;
    display: block;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .home-section {
        padding: 50px 0;
    }
    
    .section-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .title-area h2 {
        font-size: 26px;
    }
}

/* ==========================================================================
   END SECTION: PEKERJA TERBARU
   ========================================================================== */

   /* WRAPPER TAB */
   .glidik-tab-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.glidik-tabs-container {
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.glidik-tabs-container::-webkit-scrollbar {
    display: none;
}

.glidik-tabs {
    display: inline-flex;
    gap: 8px;
}

.tab-btn {
    flex: 0 0 auto;
    padding: 8px 15px;
    border-radius: 25px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-size: small;
}

.tab-btn.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    font-weight: bold;
}

/* Tombol Filter di sebelah Tab */
.btn-filter-trigger {
    background: #fff;
    padding: 8px 0 8px 10px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

/* LOADER SPIN */
.ajax-loader {
    text-align: center;
    padding: 50px 0;
}

.spin {
    animation: rotate 1s linear infinite;
    font-size: 40px;
    color: #1e73be;
}

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


/* BATAS KODE */ 

.btn-load-more {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: small;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(30, 115, 190, 0.2);
}

.btn-load-more:hover {
    background: #165a96;
    transform: translateY(-2px);
}

.btn-load-more:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* BATAS KODE */

/* ---------- MODAL FILTER ---------- */
.modal-filter {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    display: flex;
    align-items: flex-end;
}

.modal-filter.is-active { visibility: visible; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: 0.3s;
}

.modal-filter.is-active .modal-overlay { opacity: 1; }

.modal-content {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-filter.is-active .modal-content { transform: translateY(0); }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-reset { flex: 1; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 10px; 
    cursor: pointer; 
}

.btn-apply { flex: 2; 
    padding: 12px; 
    background: #1e73be; 
    color: #fff; 
    border: none; 
    border-radius: 10px; 
    font-weight: bold; 
    cursor: pointer; 
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-section {
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-label {
    display: block;
    font-weight: 700;
    font-size: small;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.filter-pills {
    display: flex;
    gap: 20px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-pills label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: small;
}

.filter-pills input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: #1e73be;
}

/* Efek saat teks label di-hover */
.filter-pills label:hover {
    color: #1e73be;
}

/* Style untuk Dropdown Sorting agar tetap selaras */
.glidik-select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: small;
    color: #666;
}