:root {
    --primary-ma: #065f46;
    --primary-grad: linear-gradient(135deg, #065f46 0%, #047857 100%);
    --gold-ma: #f59e0b;
    --gold-grad: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --slate-900: #064e3b;
    --slate-600: #374151;
    --slate-500: #6b7280;
    --white: #ffffff;
    --deep-footer: #042f2e;
    --transition-sultan: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 1. GLOBAL & TYPOGRAPHY */
body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: var(--white); color: var(--slate-600); margin: 0; }
.text-gradient { background: var(--primary-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-gold { color: var(--gold-ma) !important; }
.fw-900 { font-weight: 900; }
.py-100 { padding: 100px 0; }

/* 2. NAVBAR NAVIGATION */
.navbar-ma { background: var(--white); padding: 10px 0; box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05); transition: var(--transition-sultan); z-index: 1000; }
.navbar-ma.scrolled { background: rgba(6, 95, 70, 0.95); padding: 12px 0; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.navbar-brand img { height: 50px; transition: 0.4s; }
.navbar-ma.scrolled .navbar-brand img { height: 40px; }
.logo-text { color: var(--slate-900); transition: 0.3s; }
.navbar-ma.scrolled .logo-text { color: var(--white); }

.nav-link-ma { color: var(--slate-900); font-weight: 700; font-size: 15px; padding: 5px 10px !important; position: relative; transition: 0.3s; }
.navbar-ma.scrolled .nav-link-ma { color: rgba(255, 255, 255, 0.9) !important; }
.nav-link-ma::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 0; height: 2px; background: var(--gold-ma); transform: translateX(-50%); transition: 0.3s; }
.nav-link-ma:hover, .nav-link-ma.active { color: var(--primary-ma) !important; }
.nav-link-ma:hover::after, .nav-link-ma.active::after { width: 30px; }
.navbar-ma.scrolled .nav-link-ma:hover, .navbar-ma.scrolled .nav-link-ma.active { color: var(--gold-ma) !important; }

/* 3. BREADCRUMB GLASSMORPHISM (FITUR KEMBALI) */
.breadcrumb-glass {
    display: inline-flex; 
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 30px; 
    border-radius: 100px;
    list-style: none; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}
.breadcrumb-glass a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.breadcrumb-glass a:hover { color: var(--white); }
.breadcrumb-glass .active { color: var(--gold-ma); font-weight: 700; padding-left: 10px; font-size: 0.9rem; }
.header-line { width: 100px; height: 5px; background: var(--gold-grad); border-radius: 10px; margin: 15px 0; }

/* 4. BUTTONS & SHINE EFFECT */
.btn-madrasah, .btn-nav-ppdb {
    padding: 12px 25px; border-radius: 12px; font-weight: 800; font-size: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: var(--transition-sultan); position: relative; overflow: hidden;
    border: none; z-index: 1; text-decoration: none !important;
}
.btn-nav-ppdb { background: var(--gold-grad); color: white !important; }
.btn-primary-green { background: var(--primary-grad); color: white !important; }
.btn-madrasah::before, .btn-nav-ppdb::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s; z-index: -1;
}
.btn-madrasah:hover::before, .btn-nav-ppdb:hover::before { left: 100%; }
.btn-madrasah:hover, .btn-nav-ppdb:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(0,0,0,0.15); }

/* Menghilangkan outline dan shadow biru pada semua button saat fokus */
button:focus,
.btn:focus,
.btn:active:focus,
button:active:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Spesifik untuk menonaktifkan behavior :focus-visible jika diperlukan */
button:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

/* 5. ANIMATIONS: BUBBLES & FLOAT */
.bubbles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: hidden; pointer-events: none; }
.bubble { position: absolute; bottom: -100px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; opacity: 0.5; animation: rise 15s infinite linear; }
.bubble:nth-child(1) { left: 10%; width: 80px; height: 80px; animation-duration: 8s; }
.bubble:nth-child(2) { left: 20%; width: 20px; height: 20px; animation-duration: 12s; animation-delay: 1s; }
.bubble:nth-child(3) { left: 35%; width: 50px; height: 50px; animation-duration: 10s; animation-delay: 2s; }
.bubble:nth-child(4) { left: 50%; width: 40px; height: 40px; animation-duration: 14s; }
@keyframes rise { 0% { bottom: -100px; transform: translateX(0); } 50% { transform: translateX(100px); } 100% { bottom: 1080px; transform: translateX(-200px); } }

/* 6. COMPONENTS & FOOTER */
.profile-header { padding: 120px 0 80px !important; position: relative; background: var(--primary-grad); color: white; }
.profile-header .container { position: relative; z-index: 5; }
.pattern-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://www.transparenttextures.com/patterns/islamic-art.png'); opacity: 0.05; z-index: 1; pointer-events: none; }

.footer-ma { background-color: var(--deep-footer); color: rgba(255, 255, 255, 0.8); padding: 80px 0 30px; position: relative; overflow: hidden; }
.footer-title { color: var(--gold-ma); font-weight: 800; font-size: 1.25rem; margin-bottom: 25px; position: relative; display: inline-block; }
.footer-title::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 3px; background: var(--gold-grad); border-radius: 10px; }
.footer-link { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: 0.3s; display: block; margin-bottom: 12px; }
.footer-link:hover { color: var(--gold-ma); transform: translateX(8px); }

.btn-wa-float { position: fixed; bottom: 30px; right: 30px; z-index: 999; background: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); }

/* 7. HAMBURGER & MOBILE */
.navbar-toggler { width: 30px; height: 30px; position: relative; border: none; padding: 0; }
.toggler-icon { display: block; position: absolute; height: 2px; width: 100%; background: var(--primary-ma); border-radius: 9px; transition: .25s ease-in-out; }
.navbar-ma.scrolled .toggler-icon { background: var(--white); }
.toggler-icon:nth-child(1) { top: 6px; }
.toggler-icon:nth-child(2) { top: 15px; }
.toggler-icon:nth-child(3) { top: 24px; }
.navbar-toggler:not(.collapsed) .toggler-icon:nth-child(1) { top: 15px; transform: rotate(135deg); }
.navbar-toggler:not(.collapsed) .toggler-icon:nth-child(2) { opacity: 0; left: -40px; }
.navbar-toggler:not(.collapsed) .toggler-icon:nth-child(3) { top: 15px; transform: rotate(-135deg); }

@media (max-width: 991.98px) {
    .nav-link-ma::after { left: 20px; transform: translateX(0); }
    .navbar-collapse { background: var(--white); margin: 10px -15px 0; padding: 20px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    .navbar-ma.scrolled .navbar-collapse { background: var(--primary-ma); }
}
