@import url('https://fonts.googleapis.com/css2?family=Monomaniac+One&family=Poppins:wght@300;400;500;600;700&display=swap');


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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 'Poppins', sans-serif;
    background-color: #fafafa;
    overflow-x: hidden;
}

.navbar { 
    display: flex; 
    align-items: center; 
    gap: 12px;
    padding: 10px 30px; 
    background-color: #fff; 
    box-shadow: 0 4px 20px rgba(128, 30, 104, 0.5); 
    height: 75px; 
    position: sticky; 
    top: 10px; 
    margin: 0 30px; 
    border-radius: 30px; 
    z-index: 1000; 
}
.logo { margin-right: 15px; margin-left: 10px; flex: 0 0 auto; }
.logo a { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { width: auto; height: 85px; max-height: 85px; object-fit: contain; display: block; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    background: #f4eef5;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex: 0 0 auto;
}
.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #801e68;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-menu { display: flex; align-items: center; margin-right: auto; gap: 5px; }
.nav-menu > a { 
    text-decoration: none; 
    color: #555; 
    font-weight: 600; 
    font-size: 1.1rem; 
    padding: 10px 20px; 
    border-radius: 18px; 
    transition: all 0.2s; 
    white-space: nowrap; 
}
.nav-menu > a:hover, .nav-menu > a.active { 
    color: #801e68; 
    background-color: #f4eef5; 
    -webkit-text-stroke: 0.7px #801e68; 
}

/* DROPDOWN MENU */
.dropdown { position: relative; display: inline-block; }
.dropdown-btn { 
    text-decoration: none; 
    color: #555; 
    font-weight: 600; 
    font-size: 1.1rem; 
    padding: 10px 20px; 
    border-radius: 18px; 
    display: inline-block; 
    cursor: pointer; 
    transition: all 0.2s; 
    user-select: none; 
}
.dropdown:hover .dropdown-btn, .dropdown-btn.active { 
    color: #801e68; 
    background-color: #f4eef5; 
    -webkit-text-stroke: 0.7px #801e68; 
}
.dropdown-content { 
    display: none; 
    position: absolute; 
    background-color: #ffffff; 
    min-width: 180px; 
    box-shadow: 0px 8px 20px rgba(0,0,0,0.08); 
    border-radius: 15px; 
    padding: 10px 0; 
    z-index: 1; 
    top: calc(100% + 15px); 
    left: 0; 
    border: 1px solid #f0f0f0; 
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content.show { display: block !important; }

/* INI BAGIAN YANG DIPERBARUI DENGAN .active */
.dropdown-content a { 
    color: #555; 
    padding: 12px 25px; 
    text-decoration: none; 
    display: block; 
    font-size: 1.05rem; 
    transition: background-color 0.2s; 
    font-weight: 600 !important; 
}
.dropdown-content a:hover,
.dropdown-content a.active { 
    background-color: #fafafa; 
    color: #801e68; 
    font-weight: 700 !important; 
}

/* AUTH & BUTTONS */
.auth-actions { display: flex; align-items: center; }
.auth-actions a { margin-right: 20px; text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.btn-primary { 
    background-color: #5b2158; 
    color: white !important; 
    padding: 12px 30px; 
    border-radius: 30px; 
    transition: transform 0.2s; 
    text-decoration: none;
}
.btn-primary:hover { transform: scale(1.05); }

/* NAVBAR RESPONSIVE */
@media (max-width: 1180px) {
    .navbar {
        height: auto;
        min-height: 72px;
        margin: 0 20px;
        padding: 10px 18px;
        border-radius: 26px;
    }
    .logo { margin-left: 4px; margin-right: 8px; }
    .logo img { height: 72px; max-height: 72px; }
    .nav-menu > a,
    .dropdown-btn,
    .auth-actions a { font-size: 0.96rem; }
    .nav-menu > a,
    .dropdown-btn { padding: 9px 12px; }
    .btn-primary { padding: 11px 20px; }
    .auth-actions a { margin-right: 0; }
}

@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
        top: 8px;
        gap: 8px 12px;
    }
    .logo img { height: 66px; max-height: 66px; }
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        margin: 0;
        gap: 6px;
    }
    .auth-actions { margin-left: auto; }
}

@media (max-width: 640px) {
    .navbar {
        margin: 0 10px;
        padding: 8px 12px;
        border-radius: 22px;
        align-items: center;
    }
    .logo {
        margin: 0;
        margin-right: auto;
    }
    .navbar .logo img { height: 54px !important; max-height: 54px !important; }
    .nav-toggle { display: inline-flex !important; }
    .navbar.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .navbar.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .navbar.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-menu,
    .auth-actions {
        display: none !important;
        width: 100% !important;
        order: 3 !important;
    }
    .navbar.is-open .nav-menu,
    .navbar.is-open .auth-actions { display: flex !important; }

    .nav-menu {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding-top: 8px;
    }
    .nav-menu > a,
    .dropdown-btn {
        width: 100% !important;
        display: flex !important;
        justify-content: center;
        font-size: 0.95rem;
        padding: 11px 14px;
        border-radius: 16px;
    }
    .dropdown { width: 100%; }
    .dropdown-content {
        display: none !important;
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-top: 6px;
        padding: 8px !important;
        transform: none !important;
        box-shadow: none;
        border-radius: 16px;
        background: #fafafa;
        left: auto !important;
        top: auto !important;
        border: 1px solid #f0edf2;
    }
    .dropdown:hover .dropdown-content { display: none !important; }
    .navbar.is-open .dropdown-content.show {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
    }
    .dropdown-content a {
        text-align: center;
        display: block !important;
        padding: 11px 16px;
        border-radius: 12px;
        font-size: 0.92rem;
        line-height: 1.25;
    }
    .auth-actions {
        order: 4 !important;
        justify-content: center !important;
        padding-top: 4px;
    }
    .auth-actions .btn-primary {
        width: 100%;
        text-align: center;
        padding: 12px 18px;
        font-size: 0.95rem;
    }
}

@media (max-width: 420px) {
    .navbar {
        margin: 0 8px;
        padding: 7px 10px;
        border-radius: 20px;
    }
    .navbar .logo img { height: 48px !important; max-height: 48px !important; }
    .nav-toggle {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }
    .nav-menu > a,
    .dropdown-btn {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
}

/* =========================================
   3. FOOTER STYLES (DIPERBARUI FULLSCREEN)
   ========================================= */
.footer { 
    width: 100%; 
    background-color: #260d2a; 
    color: white; 
    padding: clamp(44px, 7vw, 72px) 0 22px; 
    box-sizing: border-box;
}

/* Mengatur container di dalam footer agar responsif aman di semua device */
.footer .container, .footer-container { 
    width: 100%;
    max-width: 1240px !important; 
    margin: 0 auto;    
    padding: 0 clamp(18px, 4vw, 32px) !important;
    box-sizing: border-box;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr) minmax(160px, 1fr) minmax(140px, 1fr) !important;
    gap: clamp(28px, 4vw, 48px) !important; 
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    padding-bottom: clamp(30px, 5vw, 44px); 
    margin-bottom: 18px; 
}

.footer-logo { width: clamp(100px, 12vw, 130px) !important; height: auto; margin-bottom: 12px; display: block; }
.footer-brand p { color: #aaa; line-height: 1.65; margin-top: 15px; font-size: 0.95rem; max-width: 430px; }
.footer-support { margin-top: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-support span { color: #aaa; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.5px; }
.footer-support img { height: 50px; width: auto; max-width: 100%; object-fit: contain; }
.footer-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 18px; color: white; letter-spacing: 0.5px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.footer-links a { color: #aaa; text-decoration: none; margin-bottom: 12px; font-size: 0.95rem; line-height: 1.35; transition: all 0.2s ease; overflow-wrap: anywhere; }
.footer-links a:hover { color: #d64d85; transform: translateX(5px); }
.copyright { text-align: left; color: #777; font-size: 0.9rem; line-height: 1.6; padding-top: 8px; }

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .footer { padding-top: 42px; }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        text-align: center;
    }
    .footer-logo { margin-left: auto; margin-right: auto; }
    .footer-brand p { max-width: 100%; margin-left: auto; margin-right: auto; font-size: 0.92rem; }
    .footer-support { justify-content: center; gap: 10px 14px; }
    .footer-support span { width: 100%; font-size: 0.78rem; }
    .footer-support img { height: 46px; }
    .footer-links { align-items: center; }
    .footer-title { margin-bottom: 12px; }
    .footer-links a { margin-bottom: 10px; }
    .footer-links a:hover { transform: none; }
    .copyright { text-align: center; font-size: 0.82rem; }
}

@media (max-width: 380px) {
    .footer .container, .footer-container { padding-left: 14px !important; padding-right: 14px !important; }
    .footer-logo { width: 124px !important; }
    .footer-brand p,
    .footer-links a { font-size: 0.88rem; }
    .footer-support img { height: 42px; }
}

/* =========================================
   4. KODE ASLI ANDA (UTUH & AMAN)
   ========================================= */
.carousel-text {
    position: relative;
    top: 210px;
    background-color: rgba(27, 17, 7, 0.502);
    height: 150px;
    border-radius: 5px;
}

.heading-font {
    font-size: 24px;
    font-family: 'Monomaniac One', sans-serif;
}

.explore-font {
    font-family: ui-serif;
}

.logHeading {
    position: relative;
    top: -24px;
    color: white;
    background: rgba(0, 0, 0, 0.46);
    padding: 5px 12px 8px 12px;
    border-radius: 5px;
    left: 10%;
}

.body-font {
    font-family: 'Poppins', sans-serif;
    background-color: #fafafa;
}

.formcontainer {
    display: flex;
    width: 100%;
    justify-content: center;
}

.myform {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-top: 90px;
    width: auto;
    background: white;
    height: 45vh;
}

.catImage {
    height: 212px;
    width: 211px;
    transition: 0.3s ease-in-out;
}

.cat-anchor {
    height: 212px;
    width: 211px;
    position: absolute;
    background-color: #fff;
    opacity: 0;
}

.signcontent {
    text-align: center;
}

.form-control {
    outline: none;
}

.mycardtext {
    position: relative;
    background-color: #0c040480;
    top: -212px;
    height: 212px;
    width: 210px;
    left: 11px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

.card-body {
    height: 260px;
    margin-top: 30px;
}

.mybtn {
    width: 60%;
}

@keyframes slide {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes tickSlide {
    from { height: 0px; }
    to { height: 80px; }
}

.noOverFlow {
    overflow-y: hidden;
}

.noOverFlowX {
    overflow-x: hidden;
}

.mybar {
    animation: slide 20s linear;
}

.mytimeout {
    position: absolute;
    margin-top: -125px;
}

.cursor-ptr {
    cursor: pointer;
}

.options-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qns-carousal {
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -105px;
    z-index: 3;
}

.radiobtns {
    align-self: flex-start;
}

.tickImg {
    height: 80px;
    animation: tickSlide 0.5s ease-in-out;
}

.noselection {
    font-size: 20px;
    position: absolute;
    top: 22px;
    background-color: #060b169c;
    padding: 5px 10px;
    border-radius: 5px;
}

.noselSignup {
    position: relative;
    color: white;
}

.noselLogin {
    width: fit-content;
}

.alertdiv {
    display: flex;
    justify-content: center;
}

.catItems {
    justify-content: center;
    width: 100%;
    margin-left: 0px !important;
}

.mycarousal {
    height: 700px;
}

.imager {
    display: none;
}

.seeMorecontain {
    justify-content: center;
    width: 100%;
}

.seeMorebtn {
    width: 17% !important;
    margin-left: 2%;
}

@media(max-width:1400px) {
    .imager { display: flex; width: 100vw; position: relative; bottom: 700px; }
    .logImager { z-index: -1; transform: rotate(180deg); bottom: 976px; }
    .carousel-text { top: 160px; }
}

@media(max-width:1000px) {
    .radioLabel { width: 47vw !important; }
    .radioLabel p { font-family: sans-serif; font-size: 13px; }
    .seeMorebtn { width: 45vw !important; margin-left: 4%; }
}

@media(max-width:600px) {
    .logImager { bottom: 575px; }
}

@media(max-width:400px) {
    .logImager { bottom: 429px; }
    .signupImager { bottom: 484px; }
}

.loginItem {
    background-color: #ffffff00;
    border: 0px;
    outline: none;
    padding: 0px 4px;
    position: relative;
    float: left;
    left: 11%;
}

.loghr {
    height: 6px;
    background-color: #000;
    margin: -7% 0% 4% 7%;
    border-radius: 5px;
    width: 250px;
}

.evenwidth {
    margin-left: 11%;
}

.logImg {
    position: absolute;
    top: 51px;
    width: 100vw;
    z-index: -1;
    display: none;
}

.logLabel {
    position: relative;
    z-index: 1;
    transition: 0.3s ease-in-out;
    left: 40px;
}

.no-left {
    left: 0px;
    margin-left: 0px;
}

.radioLabel {
    background: linear-gradient(#cc2b5e, #753a88);
    width: 32vw;
    height: auto;
    cursor: pointer;
    border-radius: 5px;
}

.radioLabel:hover {
    background: linear-gradient(#43cea2, #185a9d);
}

.radioLabel p {
    margin-top: 1.8vh;
    padding: 1px 4px;
}

.addhover {
    color: black;
    background-color: yellow;
    border: 0px black solid;
    border-radius: 5px;
    padding: 3px 7px;
    box-shadow: 2px 3px #888888;
}

.addhover:hover {
    background-color: #38ff2d;
}

.adminformhead {
    font-family: Helvetica;
    color: #827b34;
}

/* Footer designing  */
.foottext {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f3ffd5;
}

.copyfooter {
    width: 100vw;
    color: #fff;
}

.copy-contain {
    background-color: rebeccapurple;
}

.ansmodalcolor {
    background-color: #efffff;
}

.bodycolor {
    background: linear-gradient(269deg, #9db835, #6076ae);
}
