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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;

    }
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #E4DEBE;
    color: #A94438;
    background-image: url('../assets/background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    backdrop-filter: blur(5px);
}

/* bungkus utama */
.container-main {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    background: #FFF2EB;
    box-shadow: 0 0 20px #A9443840;
    display: flex;
    flex-direction: column;
}

/* padding antar konten */
main {
    padding: 2.5rem;
    min-height: 100vh;
    background: #FFF2EB;
}

header {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: 180px;
    display: flex;
    align-items: center;
}

/* bg video dan overlay  */
.h-video,
.h-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.h-overlay {
    background: rgba(40, 20, 20, 0.30);
    z-index: 2;
}

.h-mobile {
    display: none;
}

/* biar gk ngelek */
@media (max-width: 450px) {
    .h-video {
        display: none;
    }

    .h-mobile {
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-image: url('../assets/header_mobile.jpg');
        background-size: cover;
        background-position: top center;
    }
}

header h1 {
    z-index: 3;
    color: #fff;
    font-size: 4.1rem;
    letter-spacing: 2px;
    margin: 0 0 0 2.2rem;
    text-align: left;
    text-shadow: 0px 0px 20px #000a;
}

nav {
    background: #A94438;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0 2rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08rem;
    padding: 0.5rem 1.1rem;
    transition: background 0.2s, color 0.2s;
    display: block;
    justify-content: center;
}

nav ul li a:hover,
nav ul li a:focus {
    background: #2d3c5a;
    color: #E6BAA3;
}

nav ul li .drop {
    display: none;
    position: absolute;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0px 0px 20px #A9443840;
    padding: 0.5rem 0;
    z-index: 100;
    border: 1px solid #E6BAA3;
}

nav ul li .drop li a {
    color: #A94438;
    padding: 0.6rem;
    font-weight: 500;
    display: block;
    transition: background 0.2s, color 0.2s;
}

nav ul li .drop li a:hover {
    background: #E6BAA3;
    color: #D24545;
}

nav ul li.has-drop:hover>.drop,
ul li.has-drop:focus-within>.drop {
    display: block;
}

footer {
    background-color: #A94438;
    color: #fff;
    text-align: center;
    padding: 1rem;
    position: relative;
}

hr {
    border: none;
    height: 2px;
    margin-bottom: 5px;
    background-color: #E6BAA3;
}

/* judul konten index */
.judul-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

/* bungkus konten universal */
.content-section,
.content-section-2 {
    background: #E4DEBE;
    color: #A94438;
    padding: 1.5rem 2rem;
    border-top: 3px solid #E6BAA3;
    box-shadow: 0px 0px 20px #A9443810;
    animation: fadeIn 1.0s ease-in-out;
}

/* set konten index */
.content-section-2 {
    margin-bottom: 2rem;
}

.content-section h1 {
    text-align: center;
    margin-bottom: 2%;
}

/* setting teks  */
.teks {
    min-height: 100vh;
}

.teks p {
    text-align: justify;
    margin-bottom: 2%;
}

.teks h1,
h3 {
    text-align: center;
    margin-bottom: 2%;
}

.teks h3 {
    margin-top: 5%;
    margin-bottom: 10%;
}

.list {
    margin-left: 5%;
    margin-bottom: 2%;
}

/* style card universal index */
.card {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #A94438 #E4DEBE;
    animation: fadeIn 1.5s ease-in-out;
}

/* style card universal */
.isi-card {
    background: #E6BAA3;
    border-radius: 8px;
    display: flex;
    flex: 0 0 calc(20% - 1.2rem);
    min-width: 140px;
    max-width: 190px;
    margin: 0;
    padding: 0.9rem;
    color: #A94438;
    text-align: center;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
}

/* img isi-card  */
.card-img {
    width: 100%;
    max-width: 130px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.7em;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.500);
    background: #eee;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 2, 0.6, 1);
}

.isi-card:hover .card-img {
    transform: scale(1.07);
}

/* judul pv */
.extra {
    font-size: 0.9rem;
    color: #2d3c5a;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* judul isi-card */
.scroll-title {
    display: block;
    width: 100%;
    max-width: 130px;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    text-align: center;
    font-size: 1.01rem;
    font-weight: 600;
    color: #2d3c5a;
    cursor: pointer;
    text-decoration: none;
}

.scroll-title span {
    display: inline-block;
    padding-left: 0;
    transition: transform 0.2s;
}

.scroll-title.scrollable:hover span {
    animation: scroll-title-x 4s linear infinite;
}

.isi-card:hover .scroll-title.scrollable span {
    animation: scroll-title-x 4s linear infinite;
}

@keyframes scroll-title-x {
    0% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(0);
    }

    80% {
        transform: translateX(calc(-100% + 130px));
    }

    100% {
        transform: translateX(calc(-100% + 130px));
    }
}

/* tablet */
@media (max-width: 780px) {

    main {
        padding: 1.8rem;
    }

    header {
        height: 130px;
    }

    header h1 {
        font-size: 3.1rem;
    }

    nav {
        min-height: 34px;
    }

    nav ul li a {
        font-weight: 600;
        font-size: 0.9rem;
    }

    nav ul li .drop li a {
        font-weight: 300;
    }

    .judul-section h2 {
        font-size: 1.2rem;
    }

    .content-section h1,
    .content-section-2 h1 {
        font-size: 1.2rem;
    }

    .card-img {
        height: 160px;
    }

    .isi-card span,
    .extra,
    p,
    h3 {
        font-size: 0.9rem;
    }

    .teks h2 {
        font-size: 1.1rem;
    }

    .list {
        margin-left: 6%;
        font-size: 1rem;
    }

    @keyframes scroll-title-x {
        0% {
            transform: translateX(0);
        }

        10% {
            transform: translateX(0);
        }

        80% {
            transform: translateX(calc(-100% + 100px));
        }

        100% {
            transform: translateX(calc(-100% + 100px));
        }
    }
}

/* handphone */
@media (max-width: 450px) {

    .content-section,
    .content-section-2 {
        padding: 1rem 1rem;
        margin-bottom: 1.5rem;
    }

    main {
        padding: 0;
    }

    header {
        height: 80px;
    }

    header h1 {
        font-size: 1.9rem;
        margin: 0 auto;
    }

    nav {
        min-height: 26px;
        margin-bottom: 1.1rem;
    }

    nav ul {
        padding: 0%;
    }

    nav ul li a {
        font-size: 0.7rem;
        padding: 0.4rem;
    }

    nav ul li .drop li a {
        font-weight: 300;
        padding: 0.3rem 0.6rem;
    }

    .judul-section h2 {
        font-size: 0.9rem;
    }

    .judul-section a {
        font-size: 0.7rem;
    }

    .content-section h1,
    .content-section-2 h1 {
        font-size: 0.9rem;
    }

    .isi-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 80px;
        max-width: 100px;
        padding: 0.7rem;
    }

    .card-img {
        max-width: 80px;
        height: 110px;
    }

    .isi-card span,
    .scroll-title,
    .extra,
    p,
    h3 {
        font-size: 0.7rem;
    }

    .teks h2 {
        font-size: 0.8rem;
    }

    .list {
        margin-left: 7%;
        font-size: 0.8rem;
    }

}

@media (max-width: 330px) {

    nav ul li a {
        font-size: 0.7rem;
        padding: 0.2rem;
    }

}