/* ============================================================
   JANNATA GROUP — FASILITAS PUSDIKLAT PAGE STYLESHEET
   Mobile (<768px), Tablet (768px-1023px), Macbook (1024px-1439px), Desktop (>=1440px)
   ============================================================ */

/* ============================================================
   SECTION 0 — HERO BANNER
   ============================================================ */
.fp-hero-section {
    position: relative;
    height: 450px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 40px;
    background: linear-gradient(180deg, rgba(0, 8, 67, 0.65) 0%, rgba(3, 34, 93, 0.8) 100%), url('/img/kontak-kami/hero.png') no-repeat center center / cover;
    border-radius: 0 0 120px 120px;
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
}

.fp-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.fp-hero-tag {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.fp-hero-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.fp-hero-desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 780px;
}

/* ============================================================
   SECTION 1 — HEADER & TABEL FASILITAS
   ============================================================ */
.fp-table-section {
    background: #FFFFFF;
    padding-top: 120px;
}

.fp-section-header-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 18px;
    max-width: 1040px;
    margin: 0 auto 40px auto;
}

.fp-section-tag {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0A3995;
    margin: 0;
    display: block;
}

.fp-section-title {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 36px;
    line-height: 44px;
    text-align: center;
    color: #1C252E;
    margin: 0 0 8px 0;
}

.fp-accent-line {
    width: 301px;
    height: 0px;
    border: 2px solid #0C45B5;
    margin: 0 auto;
}

.fp-table-card {
    background: transparent;
    border-radius: 14px;
    border: none;
    box-shadow: none;
    overflow: hidden;
}

.fp-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.fp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.fp-table thead tr {
    background: #0A3995;
    color: #FFFFFF;
    height: 61px;
}

.fp-table th {
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 21px;
    color: #FFFFFF;
    vertical-align: middle;
}

.fp-table th:first-child {
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    text-align: center;
}

.fp-table th:last-child {
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

.fp-table th.col-no {
    width: 120px;
    text-align: center;
}

.fp-table th.col-kondisi {
    width: 200px;
}

.fp-table tbody tr {
    height: 48px;
    transition: background 0.15s ease;
}

.fp-table tbody tr:nth-child(odd) {
    background: #FFFFFF;
}

.fp-table tbody tr:nth-child(even) {
    background: #F9FAFB;
}

.fp-table tbody tr:hover {
    background: rgba(10, 57, 149, 0.04);
}

.fp-table td {
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #4A4A4A;
    vertical-align: middle;
}

.fp-table td.col-no {
    text-align: center;
    color: #404040;
}

.fp-badge-good {
    display: inline-block;
    background: rgba(22, 163, 74, 0.1);
    color: #16A34A;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
}

/* ============================================================
   SECTION 2 — GALERI FASILITAS BERKATEGORI
   ============================================================ */
.fp-gallery-section {
    background: #FAFAFA;
}

.fp-gallery-group {
    margin-bottom: 56px;
}

.fp-gallery-group:last-child {
    margin-bottom: 0;
}

.fp-group-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.fp-group-title {
    font-size: 24px;
    font-weight: 700;
    color: #1C252E;
    margin: 0;
    white-space: nowrap;
}

.fp-group-line {
    flex: 1;
    height: 2px;
    background: #0C45B5;
    border-radius: 2px;
}

.fp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.fp-img-item,
.fp-img-item--large {
    position: relative;
    width: 100% !important;
    height: 240px !important;
    border-radius: 24px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fp-img-item img,
.fp-img-item--large img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 24px;
    transition: transform 0.4s ease;
}

.fp-img-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.fp-img-item:hover img {
    transform: scale(1.05);
}

/* ============================================================
   SECTION 3 — CALL TO ACTION BANNER
   ============================================================ */
.fp-cta-section {
    background: #FFFFFF;
}

.fp-cta-card {
    background: linear-gradient(135deg, #000E4B 0%, #0B1B4F 50%, #162F65 100%);
    border-radius: 24px;
    padding: 56px 32px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fp-cta-title {
    font-size: 34px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 16px 0;
    max-width: 720px;
    line-height: 1.25;
}

.fp-cta-desc {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 32px 0;
    max-width: 640px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS (Desktop, Macbook, Tablet, Mobile)
   ============================================================ */

/* 1. DESKTOP (>= 1440px) - Handled by default styles */

/* 2. MACBOOK / LAPTOP (1024px to 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .fp-section-title {
        font-size: 32px;
    }

    .fp-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 3. TABLET (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .fp-table-section {
        padding-top: 120px;
    }

    .fp-section-title {
        font-size: 28px;
    }

    .fp-group-title {
        font-size: 20px;
    }

    .fp-gallery-grid,
    .fp-grid-3,
    .fp-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .fp-cta-card {
        padding: 44px 24px;
    }

    .fp-cta-title {
        font-size: 28px;
    }
}

/* 4. MOBILE (< 768px) */
@media (max-width: 767px) {
    .fp-hero-section {
        height: 360px;
        padding-top: 70px;
        padding-bottom: 30px;
        border-radius: 0 0 60px 60px;
    }

    .fp-hero-title {
        font-size: 32px;
    }

    .fp-table-section {
        padding-top: 100px;
    }

    .fp-section-title {
        font-size: 22px;
    }

    .fp-accent-line {
        width: 180px;
    }

    .fp-table th,
    .fp-table td {
        padding: 12px 14px;
        font-size: 14px;
    }

    .fp-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .fp-group-line {
        width: 100%;
    }

    .fp-group-title {
        font-size: 18px;
        white-space: normal;
    }

    .fp-gallery-grid,
    .fp-grid-2,
    .fp-grid-3,
    .fp-grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fp-img-item,
    .fp-img-item--large {
        width: 100% !important;
        height: 200px !important;
    }

    .fp-cta-card {
        padding: 36px 20px;
        border-radius: 16px;
    }

    .fp-cta-title {
        font-size: 22px;
    }

    .fp-cta-desc {
        font-size: 14px;
    }
}