@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
    --p4s-green: #198754;
    /* Warna statis hijau */
    --p4s-dark: #0a1f13;
    --p4s-mid: #0f2318;
    --p4s-accent: #4ade80;
    --p4s-light: #f4f7f5;
}

/* ── HEADER ─────────────────────────────────────── */
.header-pelatihan {
    height: 52vh;
    background:
        linear-gradient(
            155deg,
            rgba(10, 31, 19, 0.92) 0%,
            rgba(25, 135, 84, 0.7) 100%
        ),
        /* Pastikan gambar ini ada di folder public/assets/img/ kamu */
        url(/assets/img/tari.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: white;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
    font-family: "Inter", sans-serif;
}

.header-pelatihan::before {
    content: "profil desa";
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-family: "Inter", sans-serif;
    font-size: 18vw;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    pointer-events: none;
}

.header-pelatihan::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.07) 1px,
        transparent 1px
    );
    background-size: 36px 36px;
    pointer-events: none;
}

.header-inner {
    position: relative;
    z-index: 10;
}

.header-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: var(--p4s-accent);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.title-header {
    font-family: "Inter", sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 0.95;
    margin-bottom: 16px;
    color: white;
}

.header-sub {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
}

/* ── KELAS SECTION ──────────────────────────────── */
.section-kelas {
    background: var(--p4s-light);
    padding: 100px 0;
    font-family: "Inter", sans-serif;
}

.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--p4s-green);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.section-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--p4s-green);
}

.section-heading {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.3px;
    color: var(--p4s-dark);
    margin-bottom: 56px;
    line-height: 1.1;
}

.card-pelatihan {
    border: none;
    border-radius: 20px;
    background: white;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transform-style: preserve-3d;
    will-change: transform;
    cursor: default;
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        box-shadow 0.35s;
}

.card-pelatihan.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-pelatihan.tilting {
    transition:
        transform 0.06s linear,
        box-shadow 0.3s !important;
}

.card-shimmer {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(25, 135, 84, 0.07) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 1;
}

.card-pelatihan:hover .card-shimmer {
    opacity: 1;
}

.card-pelatihan:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.img-container {
    height: 210px;
    overflow: hidden;
    position: relative;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-pelatihan:hover .img-container img {
    transform: scale(1.06);
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 31, 19, 0.4) 0%,
        transparent 60%
    );
}

.card-body-inner {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.badge-tersedia {
    display: inline-block;
    background: rgba(74, 222, 128, 0.12);
    color: #16a34a;
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.card-title-pelatihan {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--p4s-dark);
    letter-spacing: -0.04em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.85rem;
    color: #6b7c74;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 24px;
}

.card-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f0f4f2;
}

.card-price {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--p4s-green);
    letter-spacing: -0.05em;
}

.btn-mulai {
    background: var(--p4s-dark);
    color: white;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition:
        background 0.25s,
        transform 0.25s;
    position: relative;
    overflow: hidden;
}

.btn-mulai::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 255, 255, 0.18) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.btn-mulai:hover::after {
    opacity: 1;
}

.btn-mulai:hover {
    background: var(--p4s-green);
    color: white;
}

.btn-mulai svg {
    transition: transform 0.25s;
}

.btn-mulai:hover svg {
    transform: translateX(3px);
}

.empty-state {
    text-align: center;
    padding: 80px 0;
    color: #a0b0a8;
    font-style: italic;
}

/* ── REVIEW SECTION ─────────────────────────────── */
.section-review {
    background: var(--p4s-dark);
    padding: 120px 0;
    font-family: "Inter", sans-serif;
    position: relative;
    overflow: hidden;
}

.section-review::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1px
    );
    background-size: 32px 32px;
    pointer-events: none;
}

.review-form-panel {
    background: #0f2318;
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateX(-24px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.review-form-panel.visible {
    opacity: 1;
    transform: translateX(0);
}

.review-form-panel::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(74, 222, 128, 0.07) 0%,
        transparent 70%
    );
    top: -80px;
    right: -80px;
    pointer-events: none;
}

.review-panel-title {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.2px;
    color: white;
    margin-bottom: 6px;
}

.review-panel-sub {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 32px;
}

.rv-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 8px;
    display: block;
}

.rv-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 13px 16px;
    color: white;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: all 0.25s;
    outline: none;
}

.rv-input::placeholder {
    color: rgba(255, 255, 255, 0.18);
}

.rv-input:focus {
    border-color: rgba(74, 222, 128, 0.45);
    background: rgba(74, 222, 128, 0.05);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.08);
}

select.rv-input option {
    background: #0f2318;
    color: white;
}

textarea.rv-input {
    resize: vertical;
    min-height: 100px;
}

.btn-kirim-rv {
    width: 100%;
    background: var(--p4s-accent);
    color: var(--p4s-dark);
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s,
        background 0.3s;
    will-change: transform;
}

.btn-kirim-rv::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 255, 255, 0.2) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.btn-kirim-rv:hover::after {
    opacity: 1;
}

.reviews-side {
    position: relative;
    z-index: 1;
}

.reviews-heading {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -0.2px;
    color: white;
    margin-bottom: 36px;
    line-height: 1.15;
}

.review-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(20px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        background 0.25s,
        border-color 0.25s;
}

.review-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.review-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: "Inter", sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: rgba(74, 222, 128, 0.08);
    line-height: 1;
}

.review-card:hover {
    background: rgba(74, 222, 128, 0.06);
    border-color: rgba(74, 222, 128, 0.2);
    transform: translateX(6px);
}

.review-card.visible:hover {
    transform: translateX(6px);
}

.review-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--p4s-green), var(--p4s-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.review-card:hover .author-avatar {
    transform: scale(1.1);
}

.author-name {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: white;
}

.author-class {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
}

.empty-review {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.25);
    font-style: italic;
    font-size: 0.88rem;
}
