@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Patrick+Hand&family=Quicksand:wght@500;700&display=swap');
*,html{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.sniglet-regular {
  font-family: "Sniglet", system-ui;
  font-weight: 700;
  font-style: normal;
}

.sniglet-extrabold {
  font-family: "Sniglet", system-ui;
  font-weight: 1000;
  font-style: normal;
}
.A{
    padding-left: 100px;
}
.navbar {
    width: 100%;
    height: 130px;
    background-color: #F194B4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -10px;
}

.menu-tengah {
    display: flex;
    gap: 5rem;
    font-size: 20px;
    margin-top: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.sosmed-icons {
    display: flex;
    gap: 1rem;
    margin-left: 20cm;
    margin-top: -40px;
    font-size: 40px;
    color: white;
}
a{
    text-decoration: none;
    color: white;
}
.huruf-1{
    color: rgb(37, 139, 255);
    font-size: 40px;
}
.huruf-2{
    color: rgb(238, 54, 54);
    font-size: 40px;
}
.huruf-3{
    color: rgb(231, 161, 11);
    font-size: 40px;
}
.huruf-4{
    color: rgb(37, 139, 255);
    font-size: 40px;
}
.huruf-5{
    color: rgb(238, 54, 54);
    font-size: 40px;
}
.huruf-6{
    color: rgb(238, 54, 54);
    font-size: 40px;
}
.huruf-7{
    color: rgb(37, 139, 255);
    font-size: 40px;
}
.huruf-8{
    color: rgb(238, 54, 54);
    font-size: 40px;
}
.huruf-9{
    color: rgb(231, 161, 11);
    font-size: 40px;
}
.topbar {
    display: contents;
}
.sidebar-close-btn{
    display: none;}
.sidebar-logo{
    display: none;
}
.sidebar-sosmed{
    display: none;
}
.hamburger-btn{
    display: none;
}
.topbar-logo{
    display: none;
}
.sidebar-menu{
    display: none;
}
.back{
    width: 50px;
    height: 50px;
    background-color: #b3aafd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0px 0px 30px;
    border: none;
    font-size: 30px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: -60px;
}
.back:hover{
    background-color: #f8bfd5;
}
.slider-container {
    margin-left: 10px;
    margin-top: 20px;
    width: 400px;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

input[type="radio"] {
    display: none;
}
.slides {
    display: flex;
    width: 500%;
    height: 100%;
}

.slide {
    width: 20%;
    transition: 0.6s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#slide1:checked ~ .slides .s1 {
    margin-left: 0;
}

#slide2:checked ~ .slides .s1 {
    margin-left: -20%;
}

#slide3:checked ~ .slides .s1 {
    margin-left: -40%;
}
#slide4:checked ~ .slides .s1 {
    margin-left: -60%;
}
#slide5:checked ~ .slides .s1 {
    margin-left: -80%;
}
.nav-btn-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: none;
    justify-content: space-between;
    padding: 0 20px;
}
.prev-btn, .next-btn {
    background-color: rgba(255, 255, 255, 0.7);
    color: #000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background-color: #fff;
    transform: scale(1.1);
}

#slide1:checked ~ .n1,
#slide2:checked ~ .n2,
#slide3:checked ~ .n3,
#slide4:checked ~ .n4,
#slide5:checked ~ .n5 {
    display: flex;
}
.text{
    margin-left: 30rem;
    margin-top: -31rem;
}
.text h1{
    font-family: 'Patrick Hand', cursive;
    font-size: 36px;
    color: #333;
}
.text h2{
    font-family: 'Fredoka', cursive;
    font-size: 24px;
    color: #555;
    margin-bottom: 10px;
}
.text p{
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    color: #666;
}
.btn{
    margin-left: 40rem;
    margin-top: 5rem;
    width: 120px;
    height: 40px;
    border: none;
    border-radius: 1000px;
    background-color: rgb(76, 210, 255);
    font-family: 'Quicksand', sans-serif;
    color: white;
    cursor: pointer;
}
/* TABLET (max-width: 1024px) */
@media (max-width: 1024px) {
    .navbar {
        display: none;
    }

    .topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        background-color: #F194B4;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .hamburger-btn {
        display: flex;
        background: none;
        border: none;
        font-size: 28px;
        color: white;
        cursor: pointer;
    }

    .topbar-logo {
        display: block;
    }

    .topbar-logo span {
        font-size: 28px;
    }

    /* Sidebar Panel */
    .sidebar-panel {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100%;
        background-color: #F194B4;
        z-index: 1002;
        transition: left 0.3s ease;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }

    .sidebar-panel.sidebar-open {
        left: 0;
    }

    .sidebar-close-btn {
        display: flex;
        background: none;
        border: none;
        font-size: 28px;
        color: white;
        cursor: pointer;
        margin-left: auto;
        margin-bottom: 20px;
    }

    .sidebar-logo {
        display: block;
        text-align: center;
        margin-bottom: 30px;
    }

    .sidebar-logo span {
        font-size: 32px;
    }

    .sidebar-menu {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .sidebar-menu a {
        font-size: 18px;
        padding: 10px;
        border-radius: 8px;
        transition: background 0.2s;
    }

    .sidebar-menu a:hover {
        background-color: rgba(255,255,255,0.2);
    }

    .sidebar-sosmed {
        display: flex;
        gap: 20px;
        justify-content: center;
        font-size: 28px;
        color: white;
        margin-top: 20px;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 1001;
        display: none;
    }

    .sidebar-overlay.overlay-active {
        display: block;
    }

    /* Adjust main content for tablet */
    body {
        padding-top: 70px;
    }

    main {
        padding: 20px;
    }

    .back {
        margin-top: 0;
        margin-left: 0;
    }

    .slider-container {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 4 / 5;
        margin: 20px auto;
    }

    .text {
        margin: 30px 0 0 0;
    }

    .text h1 {
        font-size: 32px;
    }

    .text h2 {
        font-size: 20px;
    }

    .text p {
        font-size: 15px;
        line-height: 1.5;
    }

    .btn {
        margin: 30px auto;
        display: block;
        width: 160px;
    }
}

/* MOBILE (max-width: 768px) */
@media (max-width: 768px) {
    .topbar {
        padding: 12px 16px;
    }

    .hamburger-btn {
        font-size: 24px;
    }

    .topbar-logo span {
        font-size: 24px;
    }

    .sidebar-panel {
        width: 260px;
    }

    .sidebar-logo span {
        font-size: 28px;
    }

    .sidebar-menu a {
        font-size: 16px;
        padding: 8px;
    }

    .sidebar-sosmed {
        font-size: 24px;
        gap: 15px;
    }

    .back {
        width: 40px;
        height: 40px;
        font-size: 24px;
        margin-bottom: 10px;
    }

    .slider-container {
        max-width: 100%;
        margin: 15px auto;
    }

    .text {
        margin: 20px 0;
    }

    .text h1 {
        font-size: 28px;
        text-align: center;
    }

    .text h2 {
        font-size: 18px;
        text-align: center;
    }

    .text p {
        font-size: 14px;
        text-align: justify;
    }

    .btn {
        width: 140px;
        height: 38px;
        font-size: 14px;
        margin: 20px auto;
    }

    .prev-btn, .next-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .nav-btn-container {
        padding: 0 10px;
    }
}

/* SMALL MOBILE (max-width: 480px) */
@media (max-width: 480px) {
    .topbar {
        padding: 10px 12px;
    }

    .hamburger-btn {
        font-size: 22px;
    }

    .topbar-logo span {
        font-size: 20px;
    }

    .sidebar-panel {
        width: 240px;
        padding: 15px;
    }

    .sidebar-logo span {
        font-size: 24px;
    }

    .sidebar-menu a {
        font-size: 14px;
    }

    .back {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .text h1 {
        font-size: 24px;
    }

    .text h2 {
        font-size: 16px;
    }

    .text p {
        font-size: 13px;
    }

    .btn {
        width: 130px;
        height: 35px;
        font-size: 13px;
    }

    .prev-btn, .next-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}