/* ================================================================
   PORTAL UNIVERSITAS AL ASYARIAH MANDAR
   Style Reference: Universitas Bung Hatta
   Warna: Biru Tua #003366, Biru Medium #0052D4, Biru Muda #6FB1FC
   ================================================================ */

:root {
    --primary-dark: #003366;
    --primary: #0052D4;
    --primary-medium: #4364F7;
    --primary-light: #6FB1FC;
    --white: #FFFFFF;
    --bg-light: #F4F8FF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --shadow: 0 4px 20px rgba(0, 51, 102, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 51, 102, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ================================================================
   NAVBAR - Style seperti Bung Hatta
   ================================================================ */
#mainNavbar {
    padding: 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#mainNavbar .navbar-brand {
    padding: 0.5rem 0;
}

#mainNavbar .nav-link {
    font-size: 0.82rem;
    font-weight: 500;
    padding: 1rem 0.85rem !important;
    letter-spacing: 0.2px;
    opacity: 0.9;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link:focus {
    opacity: 1;
    border-bottom-color: #FFD700;
}

/* Dropdown Menu */
#mainNavbar .dropdown-menu {
    background: #002244;
    border-radius: 0 0 8px 8px;
    padding: 0.5rem 0;
    margin-top: 0;
    min-width: 220px;
}

#mainNavbar .dropdown-item {
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    padding: 0.5rem 1.2rem;
    transition: var(--transition);
}

#mainNavbar .dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: #FFD700;
    padding-left: 1.5rem;
}

/* ================================================================
   HERO SLIDER
   ================================================================ */
.hero-slide {
    position: relative;
    overflow: hidden;
    background: #003366;
}

.hero-slide img.slider-bg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-slide .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(0,51,102,0.85) 0%, rgba(0,51,102,0.3) 70%, transparent 100%);
    z-index: 2;
}

#heroCarousel .carousel-item {
    transition: transform 0.8s ease-in-out;
}

#heroCarousel .carousel-indicators {
    bottom: 30px;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background: rgba(255,255,255,0.5);
    border: 2px solid white;
}

#heroCarousel .carousel-indicators button.active {
    background: #FFD700;
    border-color: #FFD700;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    margin: 0 15px;
    backdrop-filter: blur(5px);
    opacity: 0.8;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: rgba(255,255,255,0.3);
    opacity: 1;
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ================================================================
   CARDS
   ================================================================ */
.card-hover {
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.rounded-4 { border-radius: var(--radius) !important; }
.rounded-top-4 {
    border-top-left-radius: var(--radius) !important;
    border-top-right-radius: var(--radius) !important;
}

/* ================================================================
   STATISTIK COUNTER
   ================================================================ */
.counter { font-variant-numeric: tabular-nums; }

.stat-box {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition);
}

.stat-box:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-4px);
}

/* ================================================================
   INFO BAR
   ================================================================ */
.info-bar {
    background: var(--primary-dark);
    border-bottom: 3px solid #FFD700;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
    background: var(--primary);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,82,212,0.3);
}

.btn-warning {
    background: #FFD700;
    border: none;
    color: #003366;
    font-weight: 600;
}

.btn-warning:hover {
    background: #FFC107;
    color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,215,0,0.4);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    color: white;
}

/* ================================================================
   WHATSAPP FLOAT
   ================================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: wa-pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: white;
    transform: scale(1.1);
}

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
    background: #001a33;
}

footer a:hover {
    color: #FFD700 !important;
    padding-left: 3px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
    #mainNavbar .nav-link {
        padding: 0.6rem 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    #mainNavbar .nav-link:hover {
        border-bottom-color: #FFD700;
    }

    .hero-slide h2 {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 575px) {
    .hero-slide h2 {
        font-size: 1rem !important;
    }

    .hero-slide .btn-lg {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .stat-box h2 {
        font-size: 1.5rem;
    }
}

/* ================================================================
   UTILITIES
   ================================================================ */
.bg-primary-dark { background: var(--primary-dark); }
.text-gold { color: #FFD700; }
.border-gold { border-color: #FFD700 !important; }

/* ================================================================
   SOCIAL MEDIA ICON BUTTONS - Keren & Modern
   ================================================================ */
.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(255,255,255,0.15);
}

/* Footer link hover */
footer a.text-white-50:hover {
    color: #FFD700 !important;
    padding-left: 3px;
}

footer .list-unstyled a:hover i {
    transform: scale(1.2);
}

/* ================================================================
   MITRA SLIDER - Auto Sliding Marquee
   ================================================================ */
.mitra-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.mitra-slider-track {
    display: flex;
    animation: mitraScroll 30s linear infinite;
    width: max-content;
}

.mitra-slider-track:hover {
    animation-play-state: paused;
}

.mitra-slide-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 80px;
    padding: 10px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.mitra-slide-item img {
    max-height: 55px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
}

@keyframes mitraScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================================================================
   TEXT JUSTIFY - Rata kiri kanan untuk semua konten publik
   ================================================================ */
body p,
body .lh-lg,
body .lh-lg p,
body .article-content,
body .article-content p,
body .card-body p,
div p {
    text-align: justify !important;
}

/* ================================================================
   TOMBOL KEMBALI - Fixed di halaman publik
   ================================================================ */
.btn-kembali {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 1000;
    background: #003366;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-kembali:hover {
    background: #0052D4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .btn-kembali {
        top: auto;
        bottom: 90px;
        left: 15px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}
