/* =========================================================
   LPPM STAI Kuala Kapuas - Custom Stylesheet
   ========================================================= */

:root {
    --brand-green: #0b5e3d;
    --brand-green-dark: #073d28;
    --brand-gold: #c9a227;
    --bg-light: #f6f8f7;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #2b2b2b;
    background-color: #ffffff;
}

a {
    text-decoration: none;
}

.text-brand {
    color: var(--brand-green);
}

.bg-brand {
    background-color: var(--brand-green) !important;
}

/* Ticker Pengumuman */
.ticker-pengumuman {
    display: flex;
    align-items: stretch;
    background: linear-gradient(90deg, var(--brand-green-dark), var(--brand-green));
    overflow: hidden;
    position: relative;
}

.ticker-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-gold);
    color: var(--brand-green-dark);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 9px 18px;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
    padding-right: 30px;
}

.ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 48px;
    white-space: nowrap;
    width: max-content;
    animation: tickerScroll 22s linear infinite;
    padding: 0 24px;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.95;
    position: relative;
    padding-left: 16px;
}

.ticker-item::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--brand-gold);
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 575.98px) {
    .ticker-label {
        font-size: 0.68rem;
        padding: 7px 12px;
        padding-right: 20px;
        gap: 4px;
    }
    .ticker-track {
        gap: 28px;
        padding: 0 14px;
    }
    .ticker-item {
        font-size: 0.8rem;
    }
}

/* Top bar */
.top-bar {
    background-color: var(--brand-green-dark);
    color: #fff;
}

/* Navbar */
.navbar-nav .nav-link {
    font-weight: 500;
    color: #2b2b2b;
    padding: 0.5rem 0.9rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--brand-green);
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    background-size: 200% 200%;
    color: #fff;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
    animation: heroGradientShift 12s ease infinite;
}

.hero-section h1 {
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 56px 0 40px;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .hero-section .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

.hero-section::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    animation: heroPulseCircle 6s ease-in-out infinite;
}

.hero-section::before {
    content: "";
    position: absolute;
    left: -60px;
    bottom: -100px;
    width: 260px;
    height: 260px;
    background: rgba(201, 162, 39, 0.12);
    border-radius: 50%;
    animation: heroFloatBlob 9s ease-in-out infinite;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Aurora berputar di balik konten hero */
.hero-aurora {
    position: absolute;
    inset: -25%;
    z-index: 0;
    background: conic-gradient(from 0deg, rgba(201, 162, 39, 0.28), rgba(11, 94, 61, 0) 30%, rgba(255, 255, 255, 0.14) 55%, rgba(11, 94, 61, 0) 80%, rgba(201, 162, 39, 0.28));
    filter: blur(70px);
    animation: heroAuroraSpin 24s linear infinite;
    pointer-events: none;
}

@keyframes heroAuroraSpin {
    to { transform: rotate(360deg); }
}

/* Partikel ikon mengambang */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    color: rgba(255, 255, 255, 0.18);
    animation: heroParticleFloat linear infinite;
}

.hero-particle.p1 { top: 14%; left: 6%; font-size: 2.2rem; animation-duration: 9s; }
.hero-particle.p2 { top: 72%; left: 4%; font-size: 1.5rem; color: rgba(201, 162, 39, 0.3); animation-duration: 11s; animation-delay: 1s; }
.hero-particle.p3 { top: 18%; left: 92%; font-size: 1.9rem; animation-duration: 8s; animation-delay: .5s; }
.hero-particle.p4 { top: 58%; left: 89%; font-size: 1.3rem; color: rgba(201, 162, 39, 0.28); animation-duration: 13s; animation-delay: 2s; }
.hero-particle.p5 { top: 86%; left: 46%; font-size: 1.7rem; animation-duration: 10s; animation-delay: 1.5s; }
.hero-particle.p6 { top: 6%; left: 45%; font-size: 1.2rem; color: rgba(201, 162, 39, 0.32); animation-duration: 7s; animation-delay: .8s; }

@keyframes heroParticleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: .45; }
    50% { transform: translateY(-24px) rotate(12deg); opacity: 1; }
}

@media (max-width: 767.98px) {
    .hero-particle.p2,
    .hero-particle.p4 {
        display: none;
    }
}

/* Wave divider di bagian bawah hero */
.hero-wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 200%;
    line-height: 0;
    z-index: 1;
    animation: heroWaveDrift 20s linear infinite;
}

.hero-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

.hero-wave path {
    fill: var(--bg-light);
}

@keyframes heroWaveDrift {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes heroPulseCircle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: .6; }
}

@keyframes heroFloatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -25px) scale(1.08); }
}

/* Animasi masuk elemen hero (fade + slide, staggered) */
.hero-anim {
    opacity: 0;
    animation: heroFadeUp .8s ease forwards;
}

.hero-anim-0 { animation-delay: 0s; }
.hero-anim-1 { animation-delay: .1s; }
.hero-anim-2 { animation-delay: .3s; }
.hero-anim-3 { animation-delay: .5s; }
.hero-anim-4 { animation-delay: .9s; }

.hero-anim-photo {
    animation-name: heroFadeRight;
    animation-delay: .3s;
}

/* Badge kicker dengan efek shine berjalan */
.hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    background: rgba(201, 162, 39, 0.16);
    border: 1px solid rgba(201, 162, 39, 0.45);
    color: var(--brand-gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: .03em;
    padding: 7px 16px;
    border-radius: 999px;
}

.hero-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: heroBadgeShine 3.2s ease-in-out infinite;
}

@keyframes heroBadgeShine {
    0% { left: -60%; }
    55% { left: 130%; }
    100% { left: 130%; }
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeRight {
    from { opacity: 0; transform: translateX(45px); }
    to { opacity: 1; transform: translateY(0) translateX(0); }
}

/* Tombol hero: efek hover mengambang */
.hero-section .btn {
    transition: transform .25s ease, box-shadow .25s ease;
}

.hero-section .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .hero-section::after,
    .hero-section::before,
    .hero-aurora,
    .hero-particle,
    .hero-badge::after,
    .hero-wave,
    .hero-ketua-ring,
    .hero-anim,
    .hero-ketua-photo img {
        animation: none !important;
    }
    .hero-ketua {
        transform: none !important;
    }
}

/* Hero - Foto Ketua LPPM */
.hero-section .col-lg-5 {
    perspective: 1200px;
}

.hero-ketua {
    position: relative;
    z-index: 1;
    max-width: 380px;
    margin: 0 auto;
    transition: transform .25s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-ketua-photo {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-ketua-ring {
    position: absolute;
    width: 240px;
    height: 240px;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    border: 2px dashed rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    z-index: 0;
    animation: heroRingRotate 16s linear infinite;
}

.hero-ketua-ring::before {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.28) 0%, rgba(201, 162, 39, 0) 70%);
}

@keyframes heroRingRotate {
    to { transform: translateX(-50%) rotate(360deg); }
}

.hero-ketua-photo img {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    max-width: 100%;
    height: 380px;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.35));
    animation: heroFloatPhoto 4.5s ease-in-out infinite;
    animation-delay: 1.1s;
}

@keyframes heroFloatPhoto {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.hero-ketua-quote {
    position: relative;
    margin-top: -10px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 22px 22px 18px;
    color: #fff;
}

.hero-ketua-quote-icon {
    display: block;
    font-size: 1.8rem;
    color: var(--brand-gold);
    margin-bottom: 6px;
}

.hero-ketua-quote p {
    font-size: 0.92rem;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.hero-ketua-nama {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--brand-gold);
}

.hero-ketua-jabatan {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 991.98px) {
    .hero-ketua {
        margin-top: 20px;
    }
}

@media (max-width: 575.98px) {
    .hero-ketua {
        max-width: 280px;
    }
    .hero-ketua-photo img {
        height: 260px;
    }
    .hero-ketua-ring {
        width: 170px;
        height: 170px;
        bottom: 20px;
    }
    .hero-ketua-quote {
        padding: 18px 18px 14px;
    }
    .hero-ketua-quote p {
        font-size: 0.85rem;
    }
}

/* Section titles */
.section-title {
    font-weight: 700;
    color: var(--brand-green-dark);
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 30px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--brand-gold);
    border-radius: 4px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Cards */
.card-lppm {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.card-lppm:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.card-lppm img {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    height: 190px;
    object-fit: cover;
}

.badge-brand {
    background-color: var(--brand-green);
    color: #fff;
}

/* Fitur Website */
.fitur-card {
    display: block;
    height: 100%;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fitur-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.fitur-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--brand-green);
    font-size: 1.7rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.fitur-card:hover .fitur-icon {
    background: var(--brand-green);
    color: #fff;
}

.fitur-card h6 {
    color: var(--brand-green-dark);
    font-weight: 600;
}

/* Pengurus */
.pengurus-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-light);
}

/* Footer */
.footer-lppm {
    background-color: var(--brand-green-dark);
}

.footer-link {
    color: rgba(255, 255, 255, 0.75);
}

.footer-link:hover {
    color: #fff;
}

/* Page banner (inner pages) */
.page-banner {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    color: #fff;
    padding: 55px 0;
}

.breadcrumb-lppm a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-lppm .active {
    color: #fff;
    font-weight: 600;
}

/* Admin sidebar */
.admin-sidebar {
    min-height: 100vh;
    background-color: var(--brand-green-dark);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin-bottom: 4px;
}

.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn-brand {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: #fff;
}

.btn-brand:hover {
    background-color: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
    color: #fff;
}
