/* ============================================
   SENTRA KI - Main Stylesheet
   Halaman: Beranda & Daftar Sentra
   ============================================ */

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Utility ---------- */
.gradient-text {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Navbar (Shared) ---------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    color: #1e293b;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.95rem;
}

.nav-links a {
    color: #64748b;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2563eb;
    font-weight: 600;
}

/* ---------- Buttons (Shared) ---------- */
.btn {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    border: none;
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
}

.btn-xl {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-detail {
    background: #eff6ff;
    border: none;
    color: #2563eb;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-detail:hover {
    background: #dbeafe;
}

/* ---------- Section Headers (Shared) ---------- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.section-header p {
    color: #64748b;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   BERANDA (HOME PAGE)
   ============================================ */

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 3rem;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
    color: #1d4ed8;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
    color: #0f172a;
}

.hero p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

.hero-visual {
    flex: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-box {
    width: 420px;
    height: 320px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.08);
}

.glow-1 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
    top: -50px;
    right: -50px;
    border-radius: 50%;
}

.glow-2 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.06), transparent 70%);
    bottom: -30px;
    left: -30px;
    border-radius: 50%;
}

.visual-content {
    text-align: center;
    z-index: 2;
}

.visual-content .icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.visual-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
}

.visual-content p {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.3rem;
}

/* Stats Bar */
.stats-bar {
    background: white;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    padding: 2.5rem 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* Sections */
.section {
    padding: 5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.1);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.service-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 5rem 3rem;
    background: white;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.steps-line {
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #0891b2);
    opacity: 0.2;
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.step h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.step p {
    color: #64748b;
    font-size: 0.85rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 3rem;
    text-align: center;
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 3rem;
}

.cta-box h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
}

.cta-box p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-note {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* ============================================
   DAFTAR SENTRA (SENTRA LIST PAGE)
   ============================================ */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    padding: 4rem 3rem 3rem;
    text-align: center;
    border-bottom: 1px solid #dbeafe;
}

.page-header-inner {
    max-width: 700px;
    margin: 0 auto;
}

.page-badge {
    display: inline-block;
    background: white;
    color: #2563eb;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid #dbeafe;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.page-header h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.page-header p {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.page-header strong {
    color: #2563eb;
}

/* Search & Filter */
.search-section {
    padding: 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 450px;
}

.search-input-wrap span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}

.search-input-wrap input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
    color: #1e293b;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.search-input-wrap input:focus {
    border-color: #2563eb;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
    color: #64748b;
    outline: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.filter-select:focus {
    border-color: #2563eb;
}

/* Sentra Grid */
.grid-section {
    padding: 0 3rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sentra-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Sentra Card */
.sentra-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.sentra-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(37, 99, 235, 0.12);
}

.card-header {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Random Color untuk Card Header menggunakan :nth-child */
.sentra-card:nth-child(6n+1) .card-header {
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.sentra-card:nth-child(6n+2) .card-header {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.sentra-card:nth-child(6n+3) .card-header {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

.sentra-card:nth-child(6n+4) .card-header {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

.sentra-card:nth-child(6n+5) .card-header {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.sentra-card:nth-child(6n+6) .card-header {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #dcfce7;
    color: #16a34a;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.card-body {
    padding: 1.5rem;
}

.card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.card-location {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

.stat-box .stat-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2563eb;
}

.stat-box .stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination button {
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    color: #64748b;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination button:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.pagination button.active {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ============================================
   FOOTER (Shared)
   ============================================ */
.footer {
    border-top: 1px solid #f1f5f9;
    padding: 3rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    background: white;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: white;
}

.footer-logo-text {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE (Shared)
   ============================================ */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .services-grid,
    .sentra-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }

    .steps-line {
        display: none;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .services-grid,
    .sentra-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .visual-box {
        width: 100%;
        height: 250px;
    }

    .search-bar {
        flex-direction: column;
        width: 100%;
    }

    .search-input-wrap {
        max-width: 100%;
    }

    .page-header {
        padding: 3rem 1.5rem 2rem;
    }
}