/* ==========================================================================
THEME NAME : Aurora Glass iOS (MAN 6 Tasikmalaya)
PALETTE    : Emerald (#10B981) -> Sapphire (#3B82F6) -> Amethyst (#8B5CF6)
STYLE      : iOS Glassmorphism + Bouncy Spring + Glassy Tabs V10
========================================================================== */

:root {
--emerald: #10B981;
--sapphire: #3B82F6;
--amethyst: #8B5CF6;
--text-dark: #0f172a;
--text-muted: #475569;
--aurora-grad: linear-gradient(135deg, #10B981 0%, #3B82F6 50%, #8B5CF6 100%);
--spring-curve: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
BASE & MESH AURORA BACKGROUND
========================================================================== */
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
color: var(--text-dark);
background-color: #f4f7fb;
background-image:
radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.22) 0px, transparent 50%),
radial-gradient(at 50% 8%, rgba(59, 130, 246, 0.20) 0px, transparent 55%),
radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.24) 0px, transparent 50%),
radial-gradient(at 85% 65%, rgba(16, 185, 129, 0.14) 0px, transparent 50%),
radial-gradient(at 12% 85%, rgba(139, 92, 246, 0.16) 0px, transparent 50%);
background-attachment: fixed;
overflow-x: hidden;
}

.font-display {
font-family: 'Plus Jakarta Sans', sans-serif;
letter-spacing: -0.02em;
}

/* Floating Ambient Orbs */
.aurora-orb {
position: fixed;
border-radius: 50%;
filter: blur(80px);
pointer-events: none;
z-index: -1;
animation: floatOrb 10s ease-in-out infinite;
}
.orb-emerald {
width: 320px;
height: 320px;
top: 8%;
left: -4%;
background: rgba(16, 185, 129, 0.22);
}
.orb-amethyst {
width: 360px;
height: 360px;
top: 18%;
right: -5%;
background: rgba(139, 92, 246, 0.22);
animation-direction: reverse;
animation-duration: 13s;
}
.orb-sapphire {
width: 400px;
height: 400px;
bottom: 5%;
left: 30%;
background: rgba(59, 130, 246, 0.18);
animation-duration: 15s;
}

@keyframes floatOrb {
0%, 100% { transform: translate(0, 0) scale(1); }
50% { transform: translate(24px, -18px) scale(1.06); }
}

/* ==========================================================================
iOS GLASSMORPHISM CORE SURFACES & BOOTSTRAP CARD OVERRIDE
========================================================================== */
.ios-glass,
main .card {
background: rgba(255, 255, 255, 0.68) !important;
backdrop-filter: blur(22px) saturate(180%);
-webkit-backdrop-filter: blur(22px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.88) !important;
border-radius: 1.75rem !important;
box-shadow:
0 10px 30px -5px rgba(31, 38, 135, 0.07),
inset 0 1px 1px rgba(255, 255, 255, 0.95) !important;
transition: transform 0.5s var(--spring-curve), background 0.3s ease, box-shadow 0.4s ease;
}

main .card:hover {
transform: translateY(-6px) scale(1.012);
background: rgba(255, 255, 255, 0.88) !important;
box-shadow: 0 22px 44px -12px rgba(99, 102, 241, 0.16) !important;
}

main .card-header,
main .card-footer {
background: transparent !important;
border-color: rgba(148, 163, 184, 0.2) !important;
}

.ios-glass-strong {
background: rgba(255, 255, 255, 0.82);
backdrop-filter: blur(28px) saturate(200%);
-webkit-backdrop-filter: blur(28px) saturate(200%);
border: 1px solid rgba(255, 255, 255, 0.96);
box-shadow:
0 20px 42px -10px rgba(31, 38, 135, 0.10),
inset 0 1px 2px rgba(255, 255, 255, 1);
}

.ios-glass-dark {
background: rgba(15, 23, 42, 0.55);
backdrop-filter: blur(18px) saturate(160%);
-webkit-backdrop-filter: blur(18px) saturate(160%);
border: 1px solid rgba(255, 255, 255, 0.25);
}

.rounded-glass { border-radius: 1.25rem !important; }
.rounded-glass-lg { border-radius: 1.75rem !important; }
.rounded-xl { border-radius: 1rem !important; }
.rounded-pill-left { border-radius: 50rem 0 0 50rem !important; }
.rounded-pill-right { border-radius: 0 50rem 50rem 0 !important; }
.border-glass { border-color: rgba(148, 163, 184, 0.22) !important; }

/* ==========================================================================
GRADIENT TEXT, BADGES & BUTTONS
========================================================================== */
.aurora-text {
background: linear-gradient(135deg, #059669 0%, #2563EB 50%, #7C3AED 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.hover-aurora:hover {
color: #2563EB !important;
transition: color 0.25s ease;
}

.badge-aurora {
background: var(--aurora-grad);
color: #ffffff;
font-weight: 700;
font-size: 0.68rem;
letter-spacing: 0.05em;
padding: 0.35rem 0.85rem;
border-radius: 50rem;
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.btn-aurora {
background: var(--aurora-grad);
color: #ffffff !important;
border: none;
box-shadow: 0 6px 18px rgba(59, 130, 246, 0.28);
}

.btn-aurora-3d {
background: var(--aurora-grad);
color: #ffffff !important;
border: 1px solid rgba(255, 255, 255, 0.45);
box-shadow:
0 8px 20px -4px rgba(99, 102, 241, 0.42),
inset 0 2px 3px rgba(255, 255, 255, 0.55),
inset 0 -2px 4px rgba(15, 23, 42, 0.18);
}

.btn-glass-sm {
background: rgba(255, 255, 255, 0.72);
color: var(--text-dark);
border: 1px solid rgba(255, 255, 255, 0.9);
box-shadow: 0 4px 12px rgba(31, 38, 135, 0.05);
}

.btn-glass-icon {
width: 38px;
height: 38px;
padding: 0;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.78);
color: var(--text-dark);
border: 1px solid rgba(255, 255, 255, 0.95);
box-shadow: 0 4px 12px rgba(31, 38, 135, 0.06);
}

/* Soft Icon Pills */
.icon-pill {
width: 46px;
height: 46px;
border-radius: 1rem;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1.25rem;
}
.bg-emerald-soft { background: rgba(16, 185, 129, 0.15); }
.text-emerald { color: #059669; }
.bg-sapphire-soft { background: rgba(59, 130, 246, 0.15); }
.text-sapphire { color: #2563EB; }
.bg-amethyst-soft { background: rgba(139, 92, 246, 0.15); }
.text-amethyst { color: #7C3AED; }
.bg-indigo-soft { background: rgba(99, 102, 241, 0.15); }
.text-indigo { color: #4F46E5; }
.text-purple { color: #7C3AED; }

/* ==========================================================================
BOUNCY SPRING PHYSICS & SCROLL-REVEAL ANIMATION
========================================================================== */
.bouncy-btn {
transition: transform 0.45s var(--spring-curve), box-shadow 0.3s ease, background 0.3s ease;
}
.bouncy-btn:hover {
transform: translateY(-3px) scale(1.03);
}
.bouncy-btn:active {
transform: translateY(1px) scale(0.94);
transition: transform 0.12s var(--spring-curve);
}

.bouncy-card {
transition: transform 0.5s var(--spring-curve), background 0.3s ease, box-shadow 0.4s ease;
}
.bouncy-card:hover {
transform: translateY(-6px) scale(1.012);
background: rgba(255, 255, 255, 0.88);
box-shadow: 0 22px 44px -12px rgba(99, 102, 241, 0.16);
}
.bouncy-card:active {
transform: scale(0.98);
}

/* Scroll-Reveal Slide-Up & Fade-In on Scroll */
.scroll-reveal {
opacity: 0;
transform: translateY(34px) scale(0.97);
transition:
opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
transform 0.75s var(--spring-curve);
will-change: opacity, transform;
}
.scroll-reveal.is-visible {
opacity: 1;
transform: translateY(0) scale(1);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ==========================================================================
CONCENTRIC ROUNDED CORNERS UNTUK FOTO DIREKTORI (GTK, SISWA, ALUMNI)
========================================================================== /
main .card img,
main .card img.rounded-0,
main .card .img-fluid,
main .rounded-0 img,
.profile-pict img,
.ios-glass img[src="employees"],
.ios-glass img[src*="students"],
.ios-glass img[src*="alumni"],
.ios-glass img[src*="media_library"] {
border-radius: 1.15rem !important;
overflow: hidden !important;
object-fit: cover;
border: 2px solid rgba(255, 255, 255, 0.9);
box-shadow: 0 6px 16px rgba(31, 38, 135, 0.08);
transition: transform 0.35s var(--spring-curve);
}

/* Pengecualian untuk gambar header berita penuh di atas kartu */
.post-thumb-wrapper img,
.album-thumb-wrapper img,
.hero-slide-wrapper img {
border-radius: 0 !important;
border: none !important;
box-shadow: none !important;
}

main .card:hover img {
transform: scale(1.02);
}

/* ==========================================================================
BRAND HEADER
========================================================================== */
.brand-logo-box {
width: 44px;
height: 44px;
border-radius: 14px;
background: #ffffff;
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 12px rgba(31, 38, 135, 0.08);
flex-shrink: 0;
}
.brand-title {
font-size: 1.05rem;
line-height: 1.15;
}
.brand-subtitle {
font-size: 0.72rem;
letter-spacing: 0.03em;
}

/* ==========================================================================
GLASSY NAVIGATION TABS DOCK (REFERENSI V10 — WARNA HIJAU-BIRU-UNGU)
========================================================================== */
.z-index-nav {
z-index: 1030;
}

.glassy-tab-dock {
background: rgba(255, 255, 255, 0.72);
backdrop-filter: blur(26px) saturate(200%);
-webkit-backdrop-filter: blur(26px) saturate(200%);
border: 1.5px solid rgba(255, 255, 255, 0.95);
border-radius: 50rem;
padding: 0.45rem 0.65rem;
box-shadow:
0 16px 36px -8px rgba(31, 38, 135, 0.10),
inset 0 2px 3px rgba(255, 255, 255, 1),
inset 0 -2px 4px rgba(148, 163, 184, 0.12);
}

.glassy-tab-list {
display: flex !important;
align-items: center;
justify-content: space-between;
width: 100%;
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
}

.glassy-tab-item {
flex: 1 1 auto;
position: relative;
display: flex;
justify-content: center;
}

.glassy-tab-item:not(:last-child)::after {
content: "";
position: absolute;
right: 0;
top: 22%;
height: 56%;
width: 1px;
background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.35), transparent);
pointer-events: none;
}

.glassy-tab-link {
display: flex !important;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 0.55rem 1.05rem !important;
border-radius: 50rem !important;
color: #1e293b !important;
background: transparent !important;
text-decoration: none !important;
min-width: 86px;
transition: all 0.38s var(--spring-curve) !important;
}

.glassy-tab-link .tab-icon {
font-size: 1.12rem;
line-height: 1;
margin-bottom: 0.28rem;
color: #334155;
transition: transform 0.35s var(--spring-curve), color 0.3s ease;
}

.glassy-tab-link .tab-label {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 0.74rem;
font-weight: 700;
line-height: 1.1;
white-space: nowrap;
}

.glassy-tab-link:hover {
background: rgba(255, 255, 255, 0.78) !important;
color: #2563EB !important;
}
.glassy-tab-link:hover .tab-icon {
color: #2563EB;
transform: translateY(-2px);
}

.glassy-tab-item.active-tab .glassy-tab-link,
.glassy-tab-link.active {
background: linear-gradient(135deg, #10B981 0%, #3B82F6 52%, #8B5CF6 100%) !important;
color: #ffffff !important;
border: 1px solid rgba(255, 255, 255, 0.55);
box-shadow:
0 10px 22px -4px rgba(59, 130, 246, 0.45),
0 4px 12px rgba(139, 92, 246, 0.35),
inset 0 2px 3px rgba(255, 255, 255, 0.65),
inset 0 -3px 5px rgba(15, 23, 42, 0.22) !important;
}

.glassy-tab-item.active-tab .glassy-tab-link .tab-icon,
.glassy-tab-link.active .tab-icon,
.glassy-tab-item.active-tab .glassy-tab-link .tab-label,
.glassy-tab-link.active .tab-label {
color: #ffffff !important;
}

.glassy-tab-link .sub-arrow {
position: static !important;
margin-top: 2px !important;
margin-left: 0 !important;
font-size: 0.65rem !important;
opacity: 0.75;
}

.glassy-tab-list ul {
background: rgba(255, 255, 255, 0.92) !important;
backdrop-filter: blur(24px) saturate(190%) !important;
-webkit-backdrop-filter: blur(24px) saturate(190%) !important;
border: 1px solid rgba(255, 255, 255, 0.96) !important;
border-radius: 1.25rem !important;
padding: 0.5rem !important;
margin-top: 0.55rem !important;
box-shadow: 0 18px 38px -8px rgba(31, 38, 135, 0.16) !important;
min-width: 215px !important;
}

.glassy-tab-list ul li a {
font-family: 'Inter', sans-serif !important;
font-size: 0.82rem !important;
font-weight: 600 !important;
color: #1e293b !important;
padding: 0.55rem 0.95rem !important;
border-radius: 0.85rem !important;
background: transparent !important;
transition: all 0.25s ease !important;
}

.glassy-tab-list ul li a:hover {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(59, 130, 246, 0.14), rgba(139, 92, 246, 0.14)) !important;
color: #2563EB !important;
padding-left: 1.15rem !important;
}

@media (max-width: 991.98px) {
.glassy-tab-dock {
border-radius: 1.75rem;
padding: 0.75rem;
margin-top: 0.25rem;
}
.glassy-tab-list {
flex-direction: column !important;
align-items: stretch !important;
}
.glassy-tab-item {
justify-content: flex-start;
margin-bottom: 0.35rem;
}
.glassy-tab-item::after {
display: none;
}
.glassy-tab-link {
flex-direction: row !important;
justify-content: flex-start !important;
width: 100%;
padding: 0.65rem 1rem !important;
}
.glassy-tab-link .tab-icon {
margin-bottom: 0;
margin-right: 0.75rem;
width: 22px;
text-align: center;
}
}

/* ==========================================================================
HERO SLIDER, POST CARDS, SIDEBAR & GALERI
========================================================================== */
.hero-slide-wrapper {
position: relative;
height: 410px;
}
.hero-slide-img {
height: 100%;
object-fit: cover;
}
.hero-slide-overlay {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 35%, rgba(15, 23, 42, 0.68) 100%);
}
.carousel-nav-glass {
width: 42px;
height: 42px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.78);
backdrop-filter: blur(12px);
color: #0f172a;
display: inline-flex;
align-items: center;
justify-content: center;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

/* Post Thumbnail & Card */
.post-thumb-wrapper {
position: relative;
height: 195px;
overflow: hidden;
}
.object-cover {
object-fit: cover;
}
.post-date-badge {
position: absolute;
bottom: 12px;
left: 12px;
background: rgba(15, 23, 42, 0.68);
backdrop-filter: blur(10px);
color: #ffffff;
font-size: 0.72rem;
font-weight: 600;
padding: 0.3rem 0.75rem;
border-radius: 50rem;
}
.post-title-clamp {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
line-height: 1.4;
}

/* Headmaster Frame di Sidebar */
.headmaster-frame {
padding: 6px;
border-radius: 1.5rem;
background: var(--aurora-grad);
}
.headmaster-frame img {
border-radius: 1.2rem !important;
}

/* Album Foto */
.album-thumb-wrapper {
height: 200px;
}
.album-overlay {
position: absolute;
inset: 0;
background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.82) 100%);
}

/* Kembali ke Atas */
#return-to-top {
position: fixed;
bottom: 24px;
right: 24px;
width: 46px;
height: 46px;
border-radius: 50%;
background: var(--aurora-grad);
color: #ffffff;
display: none;
box-shadow: 0 10px 24px rgba(59, 130, 246, 0.38);
z-index: 1040;
text-decoration: none;
overflow: hidden;
}

#return-to-top i {
position: absolute !important;
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -52%) !important;
margin: 0 !important;
font-size: 1rem;
line-height: 1;
color: #ffffff;
}

/* ==========================================================================
PENYESUAIAN RESPONSIF KHUSUS SMARTPHONE & TABLET
========================================================================== */
@media (max-width: 767.98px) {
.hero-slide-wrapper {
height: auto !important;
min-height: 0 !important;
max-height: none !important;
}
.hero-slide-img {
width: 100% !important;
height: auto !important;
object-fit: contain !important;
}
.hero-slide-overlay {
display: none;
}
.carousel-nav-glass {
width: 30px;
height: 30px;
font-size: 0.75rem;
}
}

@media (max-width: 575.98px) {
.mobile-header-bar {
padding-left: 0.65rem !important;
padding-right: 0.65rem !important;
}
.brand-wrapper {
min-width: 0;
flex: 1 1 auto;
margin-right: 0.35rem;
}
.brand-logo-box {
width: 36px;
height: 36px;
border-radius: 11px;
padding: 3px;
}
.brand-text-box {
min-width: 0;
overflow: hidden;
}
.brand-title {
font-size: 0.82rem;
line-height: 1.15;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.btn-glass-icon {
width: 34px;
height: 34px;
font-size: 0.85rem;
}
.btn-login-nav {
width: 34px;
height: 34px;
padding: 0 !important;
display: inline-flex;
align-items: center;
justify-content: center;
}
.navbar-toggler {
width: 34px;
height: 34px;
padding: 0 !important;
display: inline-flex;
align-items: center;
justify-content: center;
}
}