/* =============================================
   LAYANAN PUBLIK PAGE STYLES
   Prefix: lp- untuk menghindari konflik
   Font: Poppins
   ============================================= */

/* CSS Variables */
:root {
    --lp-primary: #2e85c8;
    --lp-primary-dark: #1f679e;
    --lp-primary-light: #3b82f6;
    --lp-background-light: #ffffff;
    --lp-card-light: #FFFFFF;
    --lp-text-light: #1F2937;
    --lp-subtext-light: #6B7280;
    --lp-border-light: #E5E7EB;
}

/* Base Container */
.lp-main {
    font-family: var(--font-sans, 'Stack Sans Text', sans-serif);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--lp-background-light);
    color: var(--lp-text-light);
}

.lp-hero-title, .lp-main h1, .lp-main h2, .lp-main h3, .lp-main h4 {
    font-family: var(--font-heading, 'Bricolage Grotesque', sans-serif);
}

/* ==========================================
   HERO HEADER SECTION
   ========================================== */
.lp-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--lp-background-light);
    padding-top: 150px;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid var(--lp-border-light);
}

.lp-hero-pattern {
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat,
        #2e85c8;
    opacity: 1;
}

.lp-hero-blob-right {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: -6rem;
    margin-right: -6rem;
    width: 24rem;
    height: 24rem;
    background: rgba(96, 165, 250, 0.2);
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
}

.lp-hero-blob-left {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-bottom: -6rem;
    margin-left: -6rem;
    width: 20rem;
    height: 20rem;
    background: rgba(4, 79, 160, 0.1);
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
}

.lp-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .lp-hero-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lp-hero-container {
        padding: 0 2rem;
    }
}

.lp-hero-content {
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
    margin-top: -25px;
}

/* Badge */
.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: rgba(239, 246, 255, 0.8);
    color: var(--lp-primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(191, 219, 254, 0.5);
}

.lp-hero-badge-dot {
    position: relative;
    display: flex;
    height: 0.5rem;
    width: 0.5rem;
}

.lp-hero-badge-dot-ping {
    position: absolute;
    display: inline-flex;
    height: 100%;
    width: 100%;
    border-radius: 9999px;
    background-color: #60a5fa;
    opacity: 0.75;
    animation: lp-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.lp-hero-badge-dot-core {
    position: relative;
    display: inline-flex;
    border-radius: 9999px;
    height: 0.5rem;
    width: 0.5rem;
    background-color: #3b82f6;
}

@keyframes lp-ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Title */
.lp-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    /* color: var(--lp-text-light); */
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .lp-hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .lp-hero-title {
        font-size: 3.0rem;
    }
}

.lp-hero-title-br {
    display: none;
}

@media (min-width: 640px) {
    .lp-hero-title-br {
        display: block;
    }
}

.lp-hero-title-gradient {
    /* background: linear-gradient(to right, var(--lp-primary), #3b82f6); */
    background-color: #F7D558;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.lp-hero-subtitle {
    font-size: 1.125rem;
    /* color: var(--lp-subtext-light); */
    color: white;
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

@media (min-width: 640px) {
    .lp-hero-subtitle {
        font-size: 1.0rem;
    }
}

/* Search Box */
.lp-search-wrapper {
    max-width: 42rem;
    margin: 0 auto;
    position: relative;
}

.lp-search-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(to right, #93c5fd, var(--lp-primary));
    border-radius: 9999px;
    filter: blur(8px);
    opacity: 0.25;
    transition: opacity 0.2s;
}

.lp-search-wrapper:hover .lp-search-glow {
    /* opacity: 0.5; */
}

.lp-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--lp-card-light);
    border-radius: 9999px;
    /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); */
    overflow: hidden;
    border: 1px solid var(--lp-border-light);
}

.lp-search-icon {
    padding-left: 1.5rem;
    color: var(--lp-subtext-light);
}

.lp-search-icon .material-icons-round {
    font-size: 1.5rem;
    margin-top: 10px;
}

.lp-search-input {
    width: 100%;
    padding: 1rem 1rem;
    background: transparent;
    border: none;
    color: var(--lp-text-light);
    font-size: 0.875rem;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.lp-search-input::placeholder {
    color: var(--lp-subtext-light);
}

@media (min-width: 640px) {
    .lp-search-input {
       font-size: 0.875rem;
    }
}

.lp-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    bottom: 0.5rem;
    background: var(--lp-primary);
    color: white;
    padding: 0 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Poppins', sans-serif;
}

.lp-search-btn:hover {
    background: var(--lp-primary-dark);
}

@media (min-width: 640px) {
    .lp-search-btn {
        font-size: 1rem;
    }
}

/* Trust Badges */
.lp-trust-badges {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
    /* color: var(--lp-subtext-light); */
    color: white;
}

.lp-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lp-trust-badge .material-icons-round {
    font-size: 1rem;
}

.lp-trust-badge-green .material-icons-round {
    color: #22c55e;
}

.lp-trust-badge-blue .material-icons-round {
    color: #3b82f6;
}

.lp-trust-badge-purple .material-icons-round {
    color: #a855f7;
}

/* ==========================================
   MAIN CONTENT SECTION
   ========================================== */
.lp-content {
    flex-grow: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0rem 1rem;
    width: 100%;
    margin-top: 0px;
    position: relative;
    z-index: 20;
}

@media (min-width: 640px) {
    .lp-content {
        padding: 0rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lp-content {
        padding: 1rem 2rem;
    }
}

/* Filter Pills */
.lp-filter-section {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.5rem;
    padding-top: 10px;
    z-index: 999999;
}

.lp-filter-section::before,
.lp-filter-section::after {
    content: '';
    margin: auto;
}

.lp-filter-section::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .lp-filter-section {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        overflow-x: visible;
    }
    .lp-filter-section::before,
    .lp-filter-section::after {
        display: none;
    }
}

.lp-filter-pill {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    flex-shrink: 0;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .lp-filter-pill {
        gap: 0.5rem;
        padding: 0.5rem 1rem 0.5rem 0.5rem;
        font-size: 0.8125rem;
    }
}

@media (min-width: 768px) {
    .lp-filter-pill {
        padding: 0.5rem 1.25rem 0.5rem 0.5rem;
        font-size: 0.875rem;
    }
}

.lp-filter-pill:hover {
    transform: translateY(-2px);
}

.lp-filter-pill-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

@media (min-width: 480px) {
    .lp-filter-pill-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
}

@media (min-width: 768px) {
    .lp-filter-pill-icon {
        width: 2rem;
        height: 2rem;
    }
}

.lp-filter-pill:hover .lp-filter-pill-icon {
    transform: scale(1.1);
}

.lp-filter-pill-icon .material-icons-round {
    font-size: 0.875rem;
}

@media (min-width: 480px) {
    .lp-filter-pill-icon .material-icons-round {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .lp-filter-pill-icon .material-icons-round {
        font-size: 1.125rem;
    }
}

/* Active filter pill */
.lp-filter-pill-active {
    background: var(--lp-primary);
    color: white;
    /* box-shadow: 0 10px 15px -3px rgba(4, 79, 160, 0.25); */
}

.lp-filter-pill-active:hover {
    /* box-shadow: 0 10px 15px -3px rgba(4, 79, 160, 0.4); */
}

.lp-filter-pill-active .lp-filter-pill-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* Inactive filter pills */
.lp-filter-pill-inactive {
    background: var(--lp-card-light);
    color: var(--lp-subtext-light);
    border: 1px solid var(--lp-border-light);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lp-filter-pill-inactive:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Filter pill color variants */
.lp-filter-pill-blue .lp-filter-pill-icon {
    background: #dbeafe;
    color: #2563eb;
}

.lp-filter-pill-blue:hover {
    border-color: #bfdbfe;
    background: rgba(219, 234, 254, 0.3);
    color: #1d4ed8;
}

.lp-filter-pill-red .lp-filter-pill-icon {
    background: #fee2e2;
    color: #dc2626;
}

.lp-filter-pill-red:hover {
    border-color: #fecaca;
    background: rgba(254, 226, 226, 0.3);
    color: #b91c1c;
}

.lp-filter-pill-orange .lp-filter-pill-icon {
    background: #ffedd5;
    color: #ea580c;
}

.lp-filter-pill-orange:hover {
    border-color: #fed7aa;
    background: rgba(255, 237, 213, 0.3);
    color: #c2410c;
}

.lp-filter-pill-cyan .lp-filter-pill-icon {
    background: #cffafe;
    color: #0891b2;
}

.lp-filter-pill-cyan:hover {
    border-color: #a5f3fc;
    background: rgba(207, 250, 254, 0.3);
    color: #0e7490;
}

.lp-filter-pill-emerald .lp-filter-pill-icon {
    background: #d1fae5;
    color: #059669;
}

.lp-filter-pill-emerald:hover {
    border-color: #a7f3d0;
    background: rgba(209, 250, 229, 0.3);
    color: #047857;
}

/* ==========================================
   CARDS GRID
   ========================================== */
.lp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .lp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .lp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.lp-card {
    background: var(--lp-card-light);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--lp-border-light);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lp-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.lp-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.lp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.lp-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.lp-card-icon .material-icons-round {
    font-size: 1.5rem;
}

/* Card icon colors */
.lp-card-icon-blue {
    background: #e0f2fe;
    color: #0369a1;
}

.lp-card-icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.lp-card-icon-indigo {
    background: #e0e7ff;
    color: #4f46e5;
}

.lp-card-icon-red {
    background: #fee2e2;
    color: #dc2626;
}

.lp-card-icon-purple {
    background: #f3e8ff;
    color: #9333ea;
}

.lp-card-icon-orange {
    background: #ffedd5;
    color: #ea580c;
}

.lp-card-icon-gray {
    background: #e5e7eb;
    color: #374151;
}

.lp-card-icon-teal {
    background: #ccfbf1;
    color: #0d9488;
}

.lp-card-icon-cyan {
    background: #cffafe;
    color: #0891b2;
}

.lp-card-icon-slate {
    background: #e2e8f0;
    color: #475569;
}

.lp-card-icon-emerald {
    background: #d1fae5;
    color: #059669;
}

.lp-card-icon-yellow {
    background: #fef9c3;
    color: #ca8a04;
}

.lp-card-icon-rose {
    background: #ffe4e6;
    color: #e11d48;
}

/* Card badges */
.lp-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lp-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.lp-card-badge-gray {
    background: #f3f4f6;
    color: #4b5563;
}

.lp-card-badge-amber {
    background: #fef3c7;
    color: #92400e;
}

.lp-card-badge-red {
    background: #fef2f2;
    color: #b91c1c;
}

.lp-card-badge-orange {
    background: #fff7ed;
    color: #c2410c;
}

.lp-card-badge-cyan {
    background: #ecfeff;
    color: #0e7490;
}

.lp-card-badge-emerald {
    background: #ecfdf5;
    color: #047857;
}

/* Card content */
.lp-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.lp-card:hover .lp-card-title {
    color: var(--lp-primary);
}

.lp-card-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card footer */
.lp-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: white;
    border-radius: 0 0 0.75rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-card-url {
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: monospace;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lp-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.lp-card-link:hover {
    color: var(--lp-primary-dark);
    text-decoration: underline;
}

.lp-card-link .material-icons-round {
    font-size: 0.875rem;
}

/* ==========================================
   PAGINATION / LOAD MORE
   ========================================== */
.lp-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.lp-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--lp-card-light);
    border: 1px solid var(--lp-border-light);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lp-text-light);
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.lp-load-more-btn:hover {
    background: var(--lp-primary);
    color: white;
    border-color: var(--lp-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(4, 79, 160, 0.25);
}

.lp-load-more-btn .material-icons-round {
    font-size: 1.25rem;
}

.lp-pagination-info {
    font-size: 0.875rem;
    color: var(--lp-subtext-light);
}

/* ==========================================
   CONTACT CTA SECTION
   ========================================== */
.lp-cta {
    background-color: #f1f5f9;
    padding: 4rem 1rem;
    border-top: 1px solid var(--lp-border-light);
    margin-top: 3rem;
    border-radius: 1rem;
}

.lp-cta-container {
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
}

.lp-cta-content {
    max-width: 42rem;
    margin: 0 auto;
}

.lp-cta-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--lp-text-light);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.lp-cta-text {
    color: var(--lp-subtext-light);
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.lp-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
}

@media (min-width: 640px) {
    .lp-cta-buttons {
        flex-direction: row;
    }
}

.lp-cta-btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.lp-cta-btn:hover {
    transform: translateY(-2px);
}

.lp-cta-btn-accent {
    background-color: #F7D558;
    color: var(--lp-primary);
}

.lp-cta-btn-accent:hover {
    background-color: #ebc43c;
    box-shadow: 0 10px 15px -3px rgba(247, 213, 88, 0.4);
}

.lp-cta-btn-primary {
    background-color: var(--lp-primary);
    color: white;
}

.lp-cta-btn-primary:hover {
    background-color: var(--lp-primary-dark);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(4, 79, 160, 0.4);
}

.lp-cta-btn .material-icons-round {
    font-size: 1.25rem;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

/* Extra small devices (phones, less than 480px) */
@media (max-width: 479px) {
    .lp-hero {
        padding-top: 140px;
        padding-bottom: 2rem;
    }

    .lp-hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .lp-hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }

    .lp-hero-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .lp-search-input {
        height: 50px !important;
        font-size: 0.8rem;
    }

    .lp-trust-badges {
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .lp-content {
        padding: 0 0.75rem;
    }

    .lp-grid {
        gap: 1rem;
    }

    .lp-card-body {
        padding: 1rem;
    }

    .lp-card-title {
        font-size: 1rem;
    }

    .lp-card-desc {
        font-size: 0.8125rem;
    }

    .lp-card-footer {
        padding: 0.75rem 1rem;
    }

    .lp-cta {
        padding: 2rem 0.75rem;
        margin-top: 2rem;
    }

    .lp-cta-title {
        font-size: 1.25rem;
    }

    .lp-cta-text {
        font-size: 0.875rem;
    }

    .lp-cta-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
}

/* Small devices (phones, 480px to 639px) */
@media (min-width: 480px) and (max-width: 639px) {
    .lp-hero {
        padding-top: 145px;
        padding-bottom: 3rem;
    }

    .lp-hero-title {
        font-size: 1.75rem;
    }

    .lp-hero-subtitle {
        font-size: 0.9375rem;
    }
}

/* Medium devices (tablets, 640px to 767px) */
@media (min-width: 640px) and (max-width: 767px) {
    .lp-hero {
        padding-top: 120px;
        padding-bottom: 3rem;
    }

    .lp-hero-title {
        font-size: 2rem;
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .lp-hero {
        padding-top: 150px;
    }
}

/* Custom Scrollbar */
.lp-main::-webkit-scrollbar {
    width: 8px;
}

.lp-main::-webkit-scrollbar-track {
    background: transparent;
}

.lp-main::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.lp-main::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
