@import url("../../font/GTWalsheimPro.css");

/* RESET */
* {
    margin: 0;
    /* padding: 0; */
    box-sizing: border-box;
}

body {
    /* font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
        "Helvetica Neue", Arial, sans-serif; */
    font-family: "GT Walsheim Pro", Geneva, Tahoma, sans-serif;
    color: #222;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10 px;
}

.logo img {
    height: 100px;
}

.site-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-list > li > a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
}

.nav-list > li > a:hover {
    background: #f2f2f2;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    min-width: 220px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
}

.dropdown-menu li a:hover {
    background: #f7f7f7;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    padding: 6px 10px;
    border-radius: 8px;
}

.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    /* agar video tidak keluar dari area hero */
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    /* position: relative; */
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* padding: 220px 22px; */
    /* padding: 350px 22px; */
    z-index: 2;
}

.hero h1 {
    /* font-size: 56px; */
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.tagline {
    font-size: 18px;
    opacity: 0.95;
}

.service-buttons {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.service-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e0523d;
    color: #fff;
    padding: 14px 18px;
    border-radius: 40px;
    font-weight: 700;
    box-shadow: 0 10px 50px rgba(224, 82, 61, 0.25);
}

.service-btn .icon {
    width: 22px;
    height: 22px;
}

.about-pesona {
    background: #fff;
    padding: 36px 0;
}

.about-pesona h2 {
    margin-bottom: 10px;
}

.about-pesona p {
    margin: 8px 0;
    color: #444;
}

.about-pesona .btn-readmore {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    background: #e0523d;
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
}

.region-slider {
    /* background: linear-gradient(90deg, #7ad1e5, #2f6fb0); */
    background-image: url("https://papuaselatan.go.id/static/profile/img/testimonials-bg.jpg");
    padding: 36px 0;
    position: relative;
    color: #fff;

    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

.region-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(58, 71, 83, 0.8);
}

.slider-container {
    position: relative;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    font-size: 28px;
    padding: 10px 12px;
    border-radius: 12px;
    background: transparent;
    color: #124;
    cursor: pointer;
}

.slider-control.prev {
    left: -60px;
}

.slider-control.next {
    right: -60px;
}

.slides {
    overflow: hidden;
    border-radius: 22px;
}

.slide {
    display: none;
    position: relative;
    height: 360px;
    background-size: cover;
    background-position: initial;
    border-radius: 22px;
}

.slide.active {
    display: block;
}

.slide-info {
    position: absolute;
    right: 24px;
    bottom: 24px;
    background: rgba(0, 0, 0, 0.55);
    padding: 18px 20px;
    border-radius: 16px;
    max-width: 360px;
}

.slide-info h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

.slide-info .cta {
    display: inline-block;
    margin-top: 8px;
    background: #ff7a3c;
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
}

.apps-section {
    padding: 44px 0;
    background: #fff;
    opacity: 0;
    transform: scale(0.9) translateY(30px);
}

.apps-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.apps-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.app-item {
    width: 200px;
    text-align: center;
    border-radius: 16px;
    padding: 14px;
}

.app-item img {
    width: 80px;
    height: 75px;
    margin-bottom: 8px;
}

.pesona-detail {
    padding: 60px 0;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

.pesona-detail .container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out both;
}

.pesona-detail h1 {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    color: #1a3d6d;
    margin-bottom: 22px;
    letter-spacing: 0.2px;
    position: relative;
}

.pesona-detail h1::after {
    content: "";
    width: 64px;
    height: 4px;
    background: #ff9900;
    display: block;
    margin: 12px auto 0;
    border-radius: 3px;
}

.pesona-detail p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
    margin: 14px 0;
    text-align: justify;
}

.pesona-detail strong {
    color: #1a3d6d;
}

.pesona-detail .container {
    position: relative;
    overflow: hidden;
}

.pesona-detail .container::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #1a3d6d, #ff9900);
}

footer {
    background: #1f2329;
    color: #fff;
    padding: 22px 0;
    margin-top: 0px;
}

.footer-container {
    text-align: center;
}

.footer-container a {
    text-decoration: underline;
}

.profile-page,
.contact-page,
.map-page {
    padding: 36px 0;
}

.profile-photo {
    max-width: 200px;
    float: left;
    margin: 0 20px 20px 0;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        position: absolute;
        right: 20px;
        top: 64px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        flex-direction: column;
        width: 240px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    }

    .nav-list.open {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        display: none;
        border: none;
        box-shadow: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .hero h1 {
        /* font-size: 42px; */
        font-size: 32px;
    }

    .hero-content {
        position: relative;
        text-align: center;
        padding: 30% 10px;
        z-index: 2;
    }

    .slide {
        height: 300px;
    }

    .hero-control.prev {
        display: none;
    }

    .hero-control.next {
        display: none;
    }
}

/* Fade in hero content */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in service buttons with stagger */
.service-btn {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInRight 0.6s ease forwards;
}

.service-btn:nth-child(1) {
    animation-delay: 1s;
}

.service-btn:nth-child(2) {
    animation-delay: 1.2s;
}

.service-btn:nth-child(3) {
    animation-delay: 1.4s;
}

.service-btn:nth-child(4) {
    animation-delay: 1.6s;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Button hover glow */
.service-btn:hover {
    box-shadow: 0 0 12px rgba(224, 82, 61, 0.7);
    background-color: #c74230;
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* Slide fade effect */
.slide {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 360px;
    transition: opacity 1s ease-in-out;
    display: block;
    border-radius: 22px;
}

.slide.active {
    opacity: 1;
    position: relative;
    z-index: 10;
}

.slider-control {
    transition: background-color 0.3s, color 0.3s;
    background-color: rgba(255 255 255 / 0.7);
    color: #124;
}

.slider-control:hover {
    background-color: #e0523d;
    color: #fff;
    cursor: pointer;
}

.apps-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 3s ease forwards;
    animation-delay: 3s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.animate-active {
    animation: fadeInUp 3s ease forwards;
}

.apps-section.animate-active {
    animation: appsFadeIn 1.2s ease forwards;
}

@keyframes appsFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.apps-list .app-item {
    opacity: 0;
    transform: translateY(20px);
}

.apps-section.animate-active .app-item {
    animation: appItemFadeUp 0.6s ease forwards;
}

.apps-section.animate-active .app-item:nth-child(1) {
    animation-delay: 0.3s;
}

.apps-section.animate-active .app-item:nth-child(2) {
    animation-delay: 0.5s;
}

.apps-section.animate-active .app-item:nth-child(3) {
    animation-delay: 0.7s;
}

.apps-section.animate-active .app-item:nth-child(4) {
    animation-delay: 0.9s;
}

.apps-section.animate-active .app-item:nth-child(5) {
    animation-delay: 1.1s;
}

@keyframes appItemFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 3s ease forwards;
}

.profile-card .profile-photo {
    width: 250px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: cover;
}

.profile-card .profile-info {
    flex: 1;
}

.profile-card h2 {
    margin-bottom: 10px;
}

.profile-card ul {
    list-style: disc;
    padding-left: 20px;
}

@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-card ul {
        text-align: left;
    }
}

.profile-section-bg {
    position: relative;
    background: url("../images/background3.png") no-repeat center/cover;
    padding: 50px 0;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.profile-section-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.profile-section-bg > * {
    position: relative;
    z-index: 1;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-list li a.active {
    color: #005eff;
    font-weight: bold;
    background-color: #ededff;
}

/* Default: desktop = tabel */
#tableView {
    display: block;
}

#cardView {
    display: none;
}

/* Mode HP */
@media (max-width: 768px) {
    #tableView {
        display: none;
    }

    #cardView {
        display: grid;
    }
}

.card-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.card-img {
    width: 150px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 8px;
}

/* === HERO CAROUSEL STYLES === */

.hero {
    /* Pastikan position-nya relative agar tombol bisa di-position absolute */
    position: relative;
}

.hero-slides {
    width: 100%;
    height: 100%;
}

.hero-slide {
    display: none;
    /* Sembunyikan semua slide secara default */
    width: 100%;
    height: 700px;
    position: absolute;
    /* Posisikan slide di atas satu sama lain */
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 2;
    /* Pastikan konten di atas overlay video */
}

.hero-slide.active {
    display: block;
    /* Tampilkan hanya slide yang aktif */
    position: relative;
    /* Atur kembali position untuk slide aktif */
    opacity: 1;
}

/* Tombol Navigasi Hero */
.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    /* Pastikan tombol di atas konten slide */
    background: transparent;
    color: #fff;
    border: none;
    font-size: 28px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-control.prev {
    left: 20px;
}

.hero-control.next {
    right: 20px;
}

.pesona-detail ul,
.pesona-detail ol {
    margin: 1em 0 1em 2em;
    padding-left: 20px;
}

.pesona-detail ul {
    list-style-type: disc;
    /* tampilkan bullet bulat */
}

.pesona-detail ol {
    list-style-type: decimal;
    /* tampilkan angka */
}

.bg-kata-sambutan {
    /* background: url("https://papuaselatan.go.id/static/profile/img/testimonials-bg.jpg"); */
    background: url("/assets/img/strategi-bg.png");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-kata-sambutan::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(58, 71, 83, 0.1);
}
