/* --- RESET & FONT --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body { background-color: #ffffff; color: #333; }
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 10px; 
}

/* --- HEADER GRADIENT --- */
.navbar {
    background: linear-gradient(90deg, #852F6A 0%, #C158A0 100%);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    
    position: sticky;
    top: 0;
    z-index: 1000;

}

.navbar-flex { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo-small { height: 45px; }

.brand-text h1 { color: white; font-size: 1.1rem; font-weight: 800; line-height: 1.2; }
.brand-text p { color: white; font-size: 0.8rem; font-weight: 400; }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { color: white; text-decoration: none; font-size: 0.9rem; font-weight: 700; transition: 0.3s; }
.nav-links a:hover { opacity: 0.8; }
.btn-primary { background: rgba(255,255,255,0.2); padding: 8px 18px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.4); }

/* --- HERO & CONTENT --- */
.hero-section { height: 400px; background: url('image/unm.png') center/cover; position: relative; }
.hero-overlay { background: rgba(0,0,0,0.5); height: 100%; display: flex; align-items: center; backdrop-filter: blur(2px); }
.hero-content { border-left: 8px solid #f7e018; padding-left: 20px; }
.hero-title { color: white; font-size: 3rem; font-weight: 800; }
.hero-subtitle { color: white; font-size: 1.4rem; font-weight: 600; }

.main-content { padding: 80px 0; }
.grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* --- ANIMASI HOVER INTERAKTIF --- */
.card { 
    border-radius: 40px; 
    padding: 80px; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    cursor: pointer;
    position: relative;
}
.card:hover { transform: translateY(-15px) scale(1.02); }
.card-purple-solid:hover { box-shadow: 0 25px 50px rgba(133, 47, 106, 0.4); }
.card-light-pink:hover { box-shadow: 0 25px 50px rgba(193, 88, 160, 0.3); }

.card-purple-solid { background-color: #b15694; color: white; }
.card-body p { margin-bottom: 20px; font-weight: 600; text-align: justify; line-height: 1.8; letter-spacing: 0.3px; }

.card-light-pink {
    background-color: #e9d6e4; 
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    border-radius: 40px; 
    padding: 60px 50px; 
}
.branding-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.logo-large { height: 90px; }
.branding-titles h3 { color: #852F6A; font-weight: 800; font-size: 1.3rem; }
.branding-titles h4 { color: #852F6A; font-weight: 700; font-size: 1rem; }
.motto { color: #852F6A; font-weight: 800; text-align: center; font-size: 1rem; }
.accent-bar-yellow { width: 15px; height: 40px; background-color: #f7e018; margin: 25px auto 0; }

/* --- FOOTER SEIMBANG --- */
.footer {
    background: linear-gradient(180deg, #852F6A 0%, #C158A0 100%);
    color: white;
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 0.5fr; 
    gap: 60px;
    align-items: start;
}

/* Kolom 1 */
.capsule-logo {
    background: white; 
    padding: 10px 25px; 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    width: fit-content; 
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}
.capsule-logo img { height: 45px; width: auto; object-fit: contain; }
.capsule-text { color: #852F6A; font-size: 0.75rem; font-weight: 800; line-height: 1.2; display: flex; flex-direction: column; }

.gmaps-container { width: 100%; border-radius: 20px; overflow: hidden; height: 200px; margin-bottom: 15px; }
.gmaps-container iframe { width: 100%; height: 100%; border: none; }
.footer-mini-address { font-size: 0.75rem; font-weight: 600; opacity: 0.9; }

/* JUDUL DENGAN GARIS GRADIENT PREMIUM */
.footer-heading { 
    font-weight: 800; 
    font-size: 1.2rem; 
    margin-bottom: 25px; 
    color: #f7e018; 
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f7e018 0%, rgba(247, 224, 24, 0) 100%);
    border-radius: 2px;
}

.contact-item { margin-bottom: 20px; }
.contact-item strong { display: block; font-size: 0.95rem; margin-bottom: 5px; color: #f7e018; }
.contact-item strong i { margin-right: 8px; color: #f7e018; }
.contact-item p { font-size: 0.85rem; line-height: 1.6; font-weight: 500; }

.social-wrapper { margin-top: 30px; }
.social-wrapper strong { 
    font-size: 0.95rem; 
    display: block; 
    margin-bottom: 15px; 
    color: #f7e018;
    position: relative;
    padding-bottom: 8px;
}

.social-wrapper strong::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #f7e018 0%, rgba(247, 224, 24, 0) 100%);
}

.social-icons { display: flex; gap: 15px; }
.social-icons a { 
    width: 45px; height: 45px; 
    background: rgba(255, 255, 255, 0.1); 
    color: white; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    text-decoration: none; font-size: 1.2rem; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icons a:hover { 
    transform: translateY(-5px) rotate(360deg); 
    background: #f7e018; 
    color: #852F6A; 
    box-shadow: 0 0 20px rgba(247, 224, 24, 0.5);
}

/* Kolom 3 */
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.footer-links a { 
    color: white; text-decoration: none; font-size: 0.9rem; font-weight: 600; 
    display: flex; align-items: center; gap: 10px; transition: 0.3s;
}
.footer-links a:hover { color: #f7e018; padding-left: 8px; }

/* Ikon Panah Navigasi Font Awesome */
.footer-links a::before { 
    content: "\f105"; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    color: #f7e018; 
}

/* Bottom Footer */
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 60px; padding-top: 25px; text-align: center; }
.footer-bottom p { font-size: 0.75rem; font-weight: 500; opacity: 0.7; }

/* Responsive */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr; gap: 50px; }
}

/* --- TOMBOL GMAPS FOOTER --- */
.btn-gmaps {
    display: block;
    background-color: #ffffff;
    color: #852F6A;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 12px;
    border-radius: 12px;
    margin: 15px 0;
    transition: all 0.3s ease;
}
.btn-gmaps i { margin-right: 5px; }
.btn-gmaps:hover {
    background-color: #f7e018;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- TOMBOL WHATSAPP FLOATING SEIMBANG --- */
.wa-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #852F6A; /* Kuning selaras UNM */
    color: #25d366; /* Hijau WhatsApp */
    border-radius: 50%;
    
    /* Rahasia agar seimbang sempurna */
    display: grid;
    place-items: center; 
    
    text-decoration: none;
    font-size: 35px; /* Ukuran ikon diperbesar sedikit agar gagah */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    border: 3px solid #ffffff; /* Border putih agar lebih rapi */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-float:hover {
    background-color: #ffffff;
    color: #128c7e;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 25px rgba(247, 224, 24, 0.5);
}

/* Penyesuaian untuk HP agar tidak terlalu besar */
@media (max-width: 480px) {
    .wa-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        left: 20px;
    }
}

/* --- CSS UNTUK DROPDOWN ANIMASI KE BAWAH --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.arrow-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Kotak Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    top: 100%;
    left: 0;
    margin-top: 15px; /* Jarak kotak dari navbar */
    z-index: 9999;
    overflow: hidden;
    padding: 10px 0;
}

/* --- CSS DROPDOWN STABIL (TIDAK MUDAH HILANG) --- */

.dropdown {
    position: relative;
    padding-bottom: 20px; /* JEMBATAN: Menutup celah kosong agar kursor tetap di area menu */
    margin-bottom: -20px;
}

.dropbtn {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.arrow-icon {
    font-size: 0.7rem;
    transition: transform 0.4s ease;
}

/* Kotak Konten */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 190px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    top: 100%; /* Pas di bawah jembatan */
    left: 0;
    z-index: 9999;
    overflow: hidden;
    padding: 10px 0;
    margin-top: -10px; /* Menempelkan ke area padding jembatan */
}

/* Link di dalam */
.dropdown-content a {
    color: #852F6A !important;
    padding: 12px 20px !important;
    display: block !important;
    font-size: 0.85rem !important;
    border: none !important;
    transition: 0.3s;
}

.dropdown-content a:hover {
    background-color: #fcf4f9;
    padding-left: 28px !important;
    color: #C158A0 !important;
}

.dropdown-divider {
    height: 1px;
    background-color: #f7e018;
    margin: 5px 20px;
    opacity: 0.4;
}

/* HOVER STATE: Menampilkan & Memutar Panah */
.dropdown:hover .dropdown-content {
    display: block;
    animation: slideDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dropdown:hover .arrow-icon {
    transform: rotate(180deg);
    color: #f7e018;
}

/* Animasi Turun */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- TAMBAHAN AKSES LOGIN MINIMALIS --- */
.user-access {
    margin-left: 5px;
}

.dropbtn-icon {
    font-size: 1.8rem;
    color: #f7e018; /* Warna kuning selaras UNM */
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropbtn-icon:hover {
    transform: scale(1.1);
    color: white;
}

/* Mengatur posisi dropdown agar rata kanan (tidak keluar layar) */
.dropdown-right {
    left: auto !important;
    right: 0 !important;
    min-width: 170px !important;
}

.dropdown-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #852F6A;
    text-align: center;
    padding: 5px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* Ikon di dalam menu dropdown */
.dropdown-content a i {
    margin-right: 10px;
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

/* Penyesuaian di Mobile */
@media (max-width: 992px) {
    .user-access {
        margin-left: 0;
        margin-top: 5px;
    }
    .dropdown-right {
        right: auto !important;
        left: 50% !important;
        transform: translateX(-50%);
    }
}

/* --- PERBAIKAN LAYOUT MOBILE (RESPONSIVE) --- */
@media (max-width: 992px) {
    /* Navbar jadi tumpuk agar tidak sesak */
    .navbar-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* Grid konten jadi 1 kolom (Atas-Bawah) */
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Padding kartu diperkecil agar pas di layar HP */
    .card {
        padding: 40px 20px;
    }

    /* Footer jadi satu kolom rata tengah */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .capsule-logo {
        margin: 0 auto 20px;
    }

    .social-icons, .footer-links a {
        justify-content: center;
    }

    /* Pastikan dropdown login tidak keluar layar */
    .dropdown-right {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
    }
}

/* Optimasi teks untuk HP kecil */
@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .brand-text h1 { font-size: 1rem; }
    .nav-links a { font-size: 0.8rem; }
}



