:root {
    --primary: #eb7613;
    --primary-dark: #c09e5e;
    --primary-light: #f5a745;
    --secondary: #013d21;
    --secondary-light: #1a5a37;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --neutral-50: #fafbfc;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(30px);
    }
}

@keyframes fadeOutLoadingScreen {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--neutral-50);
    color: var(--neutral-900);
    line-height: 1.6;
}

.app-layout {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

.imageHeader {
    width: 100%;
    display: none;
}

header {
    background-image: url(asset/header.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 18px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-box {
    margin-bottom: 10px;
    margin-top: 10px;
    display: grid;
    gap: 20px;
}

.container-box > div {
    padding: 20px 0;
    text-align: center;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    height: auto;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

}

.container-box > div:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px); 
}

.container-box > div > p:nth-child(1){
    color: var(--primary);
    font-size: 30px;
}

.container-box > div > p:nth-child(2){
    color: var(--neutral-900);
    font-size: 20px;
}

.container-pengumuman {
    display: grid;
    grid-template-rows: auto;
    gap: 10px;
    margin: 10px 0;
}

.gambarPengumuman {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    height: auto;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px;
}

.gambarPengumuman img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.gambarPengumuman:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px); 
}

.gambarPengumuman > h3 {
    margin: 10px 0;
    color: var(--primary);
}

.deskripsiPengumuman {
    font-size: 14px;
    color: var(--neutral-700);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deskripsiPengumuman > p:nth-child(2) > a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    background: none;
    border: none;
    padding: 10px;
    margin-right: -10px;
    z-index: 3000;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background-color: var(--neutral-100);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 1);
    transform: translateX(-100%);
    border-bottom: 1px solid var(--neutral-200);
    /* padding: 0; */
    padding-top: 80px;
    z-index: 2000;
    transition: all 0.3s ease;
    /* overflow: hidden;
    border-bottom: none; */
}

nav.active {
    transform: translatex(0);
    border-bottom: 1px solid var(--neutral-200);
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

nav button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-600);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    position: relative;
}

nav button:hover {
    color: var(--primary);
    background-color: var(--neutral-50);
}

nav button.active {
    color: var(--primary);
    border-bottom: #c0a165
}

.judulHalaman {
    margin-bottom: 8px;
    font-size: 20px;
}

/* SUBMENU STYLE */
.has-submenu {
    position: relative;
}

.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    background-color: var(--neutral-100);
    transition: max-height 0.35s ease;
    border-left: 3px solid var(--primary);
    padding-left: -100px;
}

/* Style tombol submenu */
.submenu li button {
    padding: 12px 32px;
    font-size: 11px;
    background-color: var(--neutral-50);
}

.has-submenu.open .submenu {
    max-height: 400px; /* cukup besar untuk isi submenu */
}


main {
    margin-top: 10px;
    flex: 1;
    padding: 12px 0;
    animation: fadeIn 0.6s ease-out 0.2s backwards;
}

.mySlider {
    width: 100%;
    height: 300px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.mySlider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--neutral-100);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    margin-bottom: 20px;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
}

.card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.card-header {
    color: var(--neutral-900);
    font-weight: 700;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    animation: countUp 1s ease-out 0.3s backwards;
}

.form-group {
    display: flex;
    justify-content: flex-end;
}

.form-group input {
    width: 60%;
    padding: 13px 16px;
    border: 1.5px solid var(--neutral-300);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: var(--neutral-50);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(235, 118, 19, 0.15);
    transform: translateY(-2px);
}



.table-responsive {
    overflow: auto;
    animation: fadeIn 0.5s ease-out 0.2s backwards;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background-color: linear-gradient(
        135deg,
        rgba(235, 118, 19, 0.08) 0%,
        rgba(1, 61, 33, 0.08) 100%
    );
}

th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: var(--neutral-800);
    border-bottom: 2px solid var(--primary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 12px;
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--neutral-200);
    font-weight: 500;
    animation: fadeIn 0.4s ease-out;
}

tbody tr {
    transition: all 0.3s ease;
}

tbody tr:hover {
    background-color: var(--neutral-50);
}

.pagination {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.pagination-btn {
    padding: 6px 12px;
    border: 1px solid var(--neutral-300);
    background: white;
    cursor: pointer;
    border-radius: 6px;
    font-size: 12px;
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.container-lam {
    display: grid;
    gap: 20px;
    margin: 10px 0;
}

.container-lam > div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 170px;
}

.container-lam img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    align-items: center;
    width: 150px;
}

.container-footer {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 50px;
}

.namaLembaga {
    color: var(--primary);
    font-size: 23px;
}


.container-footer > div:nth-child(1) {
    width: 300px;
}

.container-footer > div:nth-child(2) {
    color: var(--secondary);
}

.container-footer img {
    width: 200px;
}

/* Mobile */
@media screen and (min-width: 450px) {
    .form-group input {
        width: 30%;
    }
}

@media screen and (min-width: 550px) {
    .hamburger {
        display: none;
    }

    header {
        display: none;
    }

    nav {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        background-color: white;
        padding: 0 20px;
        box-shadow: none;
        z-index: 10;
    }

    nav ul {
        flex-direction: row;
        justify-content: flex-end;
    }

    nav button {
        border-bottom: none;
    }

    nav button:hover {
        background-color: var(--neutral-100);
    }

    nav button.active {
        color: var(--primary);
        border-bottom-color: var(--primary);
    }

    nav button::after {
        content: "";
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 0;
        height: 3px;
        background: linear-gradient(
            90deg,
            var(--primary) 0%,
            var(--primary-dark) 100%
        );
        transition: width 0.3s ease;
    }

    nav button:hover::after {
        width: 100%;
    }

    .container-box {
        grid-template-columns: repeat(3, 1fr);
    }

    .container-pengumuman {
        grid-template-columns: repeat(3, 1fr);
    }

    .container-lam {
        grid-template-columns: repeat(5, 1fr);
    }
}


@media screen and (min-width: 800px) {
    .imageHeader {
        display: flex;
    }
    
    #mobileNav .container ul li{
        width: 100%;
    }

    .submenu  ul{
        display: flex;
        flex-direction: column;
    }

    .has-submenu {
        position: static;
    }

    .container-footer {
        display: flex;
        flex-direction: row;
        gap: 100px;
        justify-content: center;
        align-items: center;
    }
    
    .container-footer > div:first-child {
        width: 300px;
    }


    .container-footer img {
        width: 200px;
    }

    .namaLembaga {
        color: var(--primary);
    }
}
