/* =========================================
   1. VARIABLES & GLOBAL SETTINGS
   ========================================= */
:root {
    --primary-color: #1e88e5;
    --primary-hover: #1565c0;
    --secondary-color: #00bcd4;
    --text-dark: #1c1d1f;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    
    /* Signature Gradient */
    --gradient-primary: linear-gradient(135deg, #1e88e5 0%, #00bcd4 100%);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Layout Containers */
.pc-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pc-content {
    flex: 1;
}

/* =========================================
   2. NAVBAR STYLES
   ========================================= */
.navbar-custom {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 0;
    
    /* FIX BUG: Agar navbar tidak tertutup elemen sticky lain */
    z-index: 1050 !important; 
    position: sticky; /* Pastikan tetap sticky */
    top: 0;
}

/* Logo Sizing */
.navbar-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Search Bar Container */
.search-container {
    max-width: 450px;
    width: 100%;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    max-height: 300px;
    overflow-y: auto;
    display: none; /* Hidden by default, toggled via JS */
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}

.search-result-item:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* User Avatar in Navbar */
.user-nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
}

/* Dropdown Custom */
.dropdown-toggle-custom {
    border: 1px solid #e0e0e0;
    background: white;
    color: var(--text-dark);
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-toggle-custom:hover {
    background: #f7f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-color);
    color: white;
}

/* =========================================
   3. BUTTONS
   ========================================= */
/* Primary Gradient Button */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.25);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.35);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #0097a7 100%);
    color: white;
}

/* Outline Button */
.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
    font-weight: 600;
    padding: 0.55rem 1.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.25);
}

/* White Button (Used in CTA/Hero) */
.btn-white {
    background-color: #fff;
    color: #1e3a8a;
    font-weight: 700;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.btn-white:hover {
    background-color: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
}

/* =========================================
   4. HERO SECTION (New & Remastered)
   ========================================= */
.hero-section {
    padding-top: 5rem; 
    padding-bottom: 5rem;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Background Pattern (Dots) */
.hero-bg-pattern {
    background-color: #ffffff;
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    position: relative;
    overflow: hidden;
}

/* Background Blob */
.hero-blob {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* Floating Animations */
@keyframes floating-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes orbit-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -10px) rotate(5deg); }
    66% { transform: translate(-5px, 10px) rotate(-5deg); }
}

.float-slow { animation: floating-y 6s ease-in-out infinite; }
.float-medium { animation: floating-y 5s ease-in-out infinite 0.5s; }
.float-fast { animation: floating-y 4s ease-in-out infinite 1s; }
.orbit-icon { animation: orbit-float 10s ease-in-out infinite; }

/* Glassmorphism Cards (Used in Hero Floating) */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border-radius: 20px;
}

/* Fix Overflow on Mobile Hero */
.hero-content-wrapper {
    overflow: visible;
}

/* Dashboard Illustration Specific Style */
.dashboard-card-bg {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* =========================================
   5. CARDS & GENERAL COMPONENTS
   ========================================= */
/* Modern Course Card */
.course-card-modern {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    background: #fff;
}

.course-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.course-card-modern img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

/* Feature Card (Why Choose Us) */
.feature-card {
    background: #fff;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

/* Transition Hover Utility */
.transition-hover {
    transition: all 0.3s ease;
}
.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.hover-scale {
    transition: transform 0.2s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
}

/* Partner Logos */
.partner-logo {
    max-width: 140px;
    width: 100%;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    mix-blend-mode: multiply;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
    cursor: pointer;
}

/* =========================================
   6. FOOTER
   ========================================= */
.footer-custom {
    background: #1c1d1f;
    color: #fff;
    padding: 4rem 0 1.5rem;
    margin-top: auto;
}

.footer-custom h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #fff;
}

.footer-custom a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.hover-text-white {
    color: rgba(255, 255, 255, 0.5); /* Bootstrap text-white-50 equivalent */
}

.hover-text-white:hover {
    color: #ffffff !important;
    padding-left: 5px; /* Slight movement effect */
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #3e4143;
    color: #fff;
    border-radius: 4px;
    margin-right: 0.5rem;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

/* =========================================
   7. RESPONSIVE UTILITIES
   ========================================= */

/* Text Clamp */
.text-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar-custom .search-form {
        max-width: 100%;
        margin: 1rem 0;
    }

    .navbar-logo {
        width: 100px;
    }

    /* Adjust Floating Container in Hero for Tablet/Mobile */
    .floating-container {
        transform: scale(0.8);
        margin-top: 2rem;
        transform-origin: top center;
    }
}

@media (max-width: 767px) {
    .partner-logo {
        height: 45px;
        max-width: 100px;
    }
    
    .hero-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
        text-align: center;
    }
    
    .hero-content-wrapper {
        padding-right: 0 !important;
    }
    
    .floating-container {
        transform: scale(0.7);
        width: 100% !important;
        height: 400px !important;
        margin-left: auto;
        margin-right: auto;
    }
}