/* =================================================================== */
/* STOCK FROM ZERO - MASTER STYLESHEET (V10 - PREMIUM & INTERACTIVE)   */
/* =================================================================== */

/* 1. VARIABLES & RESET */
:root {
    --primary-color: #004d40;    /* Deep Teal */
    --secondary-color: #00251a;  /* Darker Green */
    --accent-color: #ffab00;     /* Gold/Amber */
    
    --text-dark: #212529;
    --text-medium: #495057;
    --text-light: #6c757d;
    
    --bg-light: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    margin: 0; color: var(--text-dark);
    line-height: 1.6; overflow-x: hidden;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

.container { width: 90%; max-width: 1400px; margin: 0 auto; }

/* Spacing */
.my-5 { margin-top: 50px; margin-bottom: 50px; }
.mb-3 { margin-bottom: 30px; }
.mb-5 { margin-bottom: 50px; }

/* 2. NAVBAR */
.navbar {
    background: var(--card-bg); padding: 15px 5%;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000;
}
.navbar-logo img { width: 60px; height: auto; transition: transform 0.3s; }
.navbar-logo img:hover { transform: scale(1.05); }
.navbar-menu { display: flex; align-items: center; gap: 25px; }
.nav-link { color: var(--text-medium); font-weight: 600; font-size: 0.95rem; }
.nav-link:hover { color: var(--primary-color); }
.username { font-weight: 600; color: var(--text-dark); display: flex; align-items: center; gap: 8px; }
.logout-button {
    font-family: 'Poppins', sans-serif; background: transparent;
    border: 2px solid #e74c3c; color: #e74c3c; padding: 8px 20px;
    border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s;
}
.logout-button:hover { background: #e74c3c; color: white; transform: translateY(-2px); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-dark); }

/* 3. HERO SECTION */
.hero-section {
    position: relative; overflow: hidden; color: white;
    min-height: 480px; display: flex; align-items: center; justify-content: center;
    padding: 80px 0; margin-bottom: 60px;
}
.video-background video {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%; filter: brightness(0.4) grayscale(60%); z-index: -1;
}
.hero-content {
    position: relative; z-index: 10; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 25px;
}
.hero-text h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin: 0 0 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-text p { font-size: 1.2rem; opacity: 0.9; margin: 0; font-weight: 300; }
.hero-cta {
    background: var(--accent-color); color: var(--text-dark);
    padding: 14px 35px; border-radius: 50px; font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 171, 0, 0.4);
}
.hero-cta:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3); }

/* 4. DASHBOARD CARDS */
.section-title {
    font-size: 1.8rem; font-weight: 700; color: var(--text-dark);
    margin-bottom: 30px; position: relative; padding-bottom: 12px; text-align: center;
}
.section-title::after {
    content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 60px; height: 4px; background-color: var(--accent-color); border-radius: 2px;
}
.stat-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }
.stat-card {
    background: var(--card-bg); padding: 25px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft); display: flex; align-items: center; gap: 20px;
    transition: 0.3s; border: 1px solid var(--border-color);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--accent-color); }
.stat-icon-wrapper {
    width: 60px; height: 60px; border-radius: 50%; background: rgba(0, 77, 64, 0.1);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon-wrapper i { font-size: 1.8rem; color: var(--primary-color); }
.stat-info h3 { margin: 0; font-size: 1.8rem; font-weight: 700; color: var(--text-dark); }
.stat-info p { margin: 0; color: var(--text-light); font-size: 0.9rem; font-weight: 500; }

/* 5. LAYOUTS */
.dashboard-main-layout { display: flex; gap: 30px; margin-top: 50px; }
.main-content { flex: 3; min-width: 0; }
.sidebar-content { flex: 1; min-width: 300px; position: sticky; top: 110px; align-self: flex-start; }

/* 6. COURSE CARDS */
.card-featured {
    display: flex; background: var(--card-bg); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft); overflow: hidden; margin-bottom: 50px;
    border: 1px solid var(--border-color); transition: 0.3s;
}
.card-featured:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card-featured-image-wrapper { flex: 1; min-height: 350px; position: relative; }
.card-featured-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.card-featured-content { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card {
    background: var(--card-bg); border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft); overflow: hidden; height: 100%;
    display: flex; flex-direction: column; transition: 0.3s; border: 1px solid var(--border-color);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card-image { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.card-tag {
    background: var(--bg-light); color: var(--text-medium); padding: 5px 12px;
    border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    margin-bottom: 12px; align-self: flex-start; letter-spacing: 0.5px;
}
.card-tag.pemula { background: #e0f7fa; color: #007bff; }
.card-tag.strategi { background: #fff3e0; color: #ffa000; }
.card-tag.analisis { background: #e8f5e9; color: #4caf50; }
.card-tag.market { background: #bbdefb; color: #0d47a1; }
.card-tag.edukasi { background: #ffcdd2; color: #b71c1c; }
.card-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 10px; color: var(--text-dark); line-height: 1.4; }
.card-description { color: var(--text-medium); margin-bottom: 20px; flex-grow: 1; font-size: 0.95rem; }
.card-rating { margin-bottom: 15px; color: var(--accent-color); font-size: 0.9rem; font-weight: 600; }
.card-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto; padding-top: 15px; border-top: 1px solid var(--border-color);
}
.card-price { font-size: 1.2rem; font-weight: 800; color: var(--primary-color); }
.card-link-btn { font-size: 0.9rem; font-weight: 700; color: var(--primary-color); display: flex; align-items: center; gap: 5px; }

/* 7. SIDEBAR ITEMS */
.sidebar-content .section-title { text-align: left; margin-bottom: 20px; }
.news-list { display: flex; flex-direction: column; gap: 15px; }
.news-item {
    display: flex; align-items: flex-start; gap: 15px;
    text-decoration: none; color: var(--text-dark);
    padding: 12px; background: var(--bg-light);
    border: 1px solid var(--border-color); border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.news-item:hover {
    background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transform: translateY(-2px); border-color: transparent;
}
.news-item-image { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.news-item-content { flex: 1; min-width: 0; }
.news-item-content h4 {
    margin: 0 0 5px 0; font-size: 0.95em; line-height: 1.4; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item-content p { margin: 0; font-size: 0.8em; color: var(--text-light); }

.event-card {
    background: var(--card-bg); padding: 25px; border-radius: 12px;
    box-shadow: var(--shadow-light); margin-top: 40px; border: 1px solid var(--border-color);
    width: 100%; box-sizing: border-box; overflow: hidden;
}
.event-title {
    font-size: 1.2rem; font-weight: 700; color: var(--text-dark);
    margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-color);
}
.event-detail-item {
    display: flex; flex-direction: column; gap: 15px;
    padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px dashed var(--border-color);
}
.event-detail-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.event-poster {
    width: 100%; height: auto; min-height: 150px;
    object-fit: contain; border-radius: 8px;
    background-color: #f0f0f0; border: 1px solid rgba(0,0,0,0.05);
}
.event-detail-content h4 { font-size: 1.1em; font-weight: 700; margin: 5px 0 10px 0; color: var(--primary-color); line-height: 1.4; }
.event-detail-content p { font-size: 0.9em; color: var(--text-medium); margin: 6px 0; display: flex; align-items: flex-start; }
.event-detail-content p i { color: var(--accent-color); margin-right: 12px; margin-top: 4px; width: 16px; text-align: center; flex-shrink: 0; }
.event-cta {
    display: block; text-align: center; background: var(--accent-color); color: var(--text-dark);
    text-decoration: none; padding: 12px; border-radius: 8px; font-weight: 700; transition: all 0.3s; margin-top: 15px;
}
.event-cta:hover { background: #ffd564; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 171, 0, 0.3); }

/* =================================================================== */
/* 8. KHUSUS HALAMAN DETAIL EVENT (PREMIUM LAYOUT)                     */
/* =================================================================== */

.event-page-container { max-width: 1280px; margin: 40px auto; padding: 0 20px; }

.event-page-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr; /* Kolom Kiri Besar, Kanan Kecil */
    gap: 50px;
    align-items: start;
}

/* -- KIRI: Content -- */
.event-header h1 {
    font-size: 2.5rem; font-weight: 800; color: var(--primary-color);
    margin-bottom: 20px; line-height: 1.2;
}

.event-main-image {
    width: 100%; height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    object-fit: contain;
    background: #f0f0f0;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

/* Icon Info Grid */
.event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px; margin-bottom: 40px;
}

/* Info Box Standard */
.info-box {
    background: #fff; padding: 20px; border-radius: var(--radius-md);
    border: 1px solid var(--border-color); display: flex; align-items: center; gap: 15px;
    box-shadow: var(--shadow-soft); transition: 0.3s;
}
.info-box:hover { transform: translateY(-5px); border-color: var(--accent-color); }

/* KHUSUS LINK MAPS */
.info-box-link { text-decoration: none; color: inherit; display: block; }
.info-box.location-active {
    cursor: pointer; border-bottom: 3px solid var(--accent-color);
}
.info-box.location-active:hover {
    background: #f0fdfa; border-color: var(--primary-color);
}
.info-box.location-active:hover .info-icon {
    background: var(--primary-color); color: #fff;
}

.info-icon {
    width: 45px; height: 45px; background: rgba(255, 171, 0, 0.1);
    color: #b45309; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    flex-shrink: 0; transition: 0.3s;
}
.info-text label { display: block; font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.info-text span { font-weight: 700; color: var(--text-dark); font-size: 1rem; line-height: 1.2; }

.event-description-content {
    background: #fff; padding: 40px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft); border: 1px solid var(--border-color);
    font-size: 1.05rem; line-height: 1.8; color: var(--text-medium);
}
.event-description-content h2 {
    color: var(--primary-color); margin-top: 0;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block; padding-bottom: 5px; margin-bottom: 25px;
}

/* -- KANAN: Sticky Form -- */
.registration-sidebar {
    background: #fff; padding: 30px; border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color); border-top: 6px solid var(--primary-color);
    position: sticky; top: 100px; z-index: 90;
}
.registration-sidebar h3 { margin: 0 0 10px 0; text-align: center; color: var(--primary-color); font-weight: 800; font-size: 1.5rem; }
.registration-subtext { text-align: center; color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; display: block; }

.quota-badge {
    display: flex; justify-content: space-between; align-items: center;
    background: #f0fdfa; padding: 12px 15px; border-radius: var(--radius-sm);
    border: 1px solid #ccfbf1; color: #047857; font-size: 0.9rem; margin-bottom: 25px; font-weight: 600;
}
.quota-badge.full { background: #fef2f2; border-color: #fee2e2; color: #b91c1c; }

/* Inputs */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--text-dark); }
.form-group input {
    width: 100%; padding: 12px 15px; border: 1px solid #ced4da;
    border-radius: var(--radius-sm); font-size: 0.95rem; transition: 0.3s;
    background-color: #fcfcfc;
}
.form-group input:focus {
    border-color: var(--primary-color); outline: none;
    box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.1); background-color: #fff;
}
.readonly-field { background-color: #e9ecef !important; color: #6c757d; cursor: not-allowed; }

/* Button */
.btn-submit {
    width: 100%; padding: 15px; border: none; border-radius: 50px;
    background: var(--accent-color); color: #212529; font-weight: 800;
    font-size: 1.1rem; cursor: pointer; transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255, 171, 0, 0.3); display: flex; justify-content: center; align-items: center; gap: 8px;
}
.btn-submit:hover:not(:disabled) {
    background: #ffc107; transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 171, 0, 0.4);
}
.btn-submit:disabled { background: #d6d6d6; cursor: not-allowed; box-shadow: none; color: #888; }

.follow-section {
    background: #fffbeb; border: 1px dashed #fbbf24; padding: 15px;
    border-radius: var(--radius-sm); margin-bottom: 20px;
}
.upload-btn-wrapper input[type=file] { font-size: 0.85em; background: #fff; width: 100%; margin-top: 5px; }

/* Alerts */
.alert-box { padding: 15px; border-radius: 8px; margin-bottom: 20px; font-size: 0.95em; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }

/* 9. PARTNER LOGO */
.partners-section { padding: 40px 0; background: transparent; }
.partners-box {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    border-radius: 24px; box-shadow: 0 10px 30px -10px rgba(0, 77, 64, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8); padding: 40px 20px; margin: 0 auto;
    max-width: 900px; position: relative; overflow: hidden;
}
.partners-box::before {
    content: ''; position: absolute; top: -50px; right: -50px;
    width: 150px; height: 150px; background: var(--accent-color);
    opacity: 0.05; border-radius: 50%; z-index: 0;
}
.logo-floating-container {
    display: flex; justify-content: center; align-items: center;
    gap: 60px; flex-wrap: wrap; padding-top: 20px; position: relative; z-index: 1;
}
.floating-item {
    width: auto; height: auto; display: flex; flex-direction: column; 
    align-items: center; justify-content: center; gap: 15px; cursor: pointer;
    animation: floatUpDn 3s ease-in-out infinite alternate;
}
.floating-item img {
    height: 60px; width: auto; max-width: 160px; object-fit: contain;
    filter: grayscale(100%); opacity: 0.6; transition: all 0.4s ease;
}
.partner-name {
    margin: 0; font-size: 15px; font-weight: 600; color: var(--text-medium);
    text-align: center; transition: color 0.3s ease; letter-spacing: 0.5px;
}
.floating-item:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }
.floating-item:hover .partner-name { color: var(--primary-color); }
@keyframes floatUpDn { 0% { transform: translateY(0); } 100% { transform: translateY(-12px); } }

/* 10. FOOTER */
.footer {
    background: var(--secondary-color); color: rgba(255,255,255,0.7);
    text-align: center; padding: 50px 0; margin-top: 80px;
}
.footer a { color: var(--accent-color); text-decoration: none; }
.footer p { margin: 5px 0; }

/* 11. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
    .event-page-grid { grid-template-columns: 1.5fr 1fr; gap: 30px; }
    .hero-content { flex-direction: column; }
    .card-featured { flex-direction: column; }
    .card-featured-image-wrapper { width: 100%; height: 280px; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; color: var(--primary-color); }
    .navbar-menu {
        position: absolute; top: 70px; left: 0; width: 100%;
        background: var(--card-bg); flex-direction: column; padding: 20px;
        display: none; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-bottom: 1px solid var(--border-color);
    }
    .navbar-menu.show { display: flex; animation: fadeDown 0.3s ease; }
    .navbar-menu .nav-link { width: 100%; text-align: center; padding: 10px 0; border-bottom: 1px dashed var(--border-color); }
    
    .dashboard-main-layout, .event-page-grid { display: flex; flex-direction: column; }
    .event-header h1 { font-size: 1.8rem; }
    .event-details-wrapper { order: 1; width: 100%; }
    .registration-sidebar { position: static; order: 2; margin-top: 30px; width: 100%; border-top: 1px solid var(--border-color); }
    .event-info-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .hero-text h1 { font-size: 2rem; }
    .logo-floating-container { gap: 40px; }
}

@media (max-width: 480px) {
    .container, .event-page-container { padding: 0 15px; width: 100%; }
    .event-info-grid { grid-template-columns: 1fr; } 
    .hero-section { min-height: 380px; padding: 60px 0; }
    .event-description-content { padding: 20px; }
    .card-image { height: 160px; }
}

@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* 12. DARK MODE */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #121212; --card-bg: #1e1e1e; --text-dark: #f1f1f1;
        --text-medium: #b0b0b0; --border-color: #333;
    }
    .navbar { background: var(--secondary-color); }
    .nav-link { color: #ddd; }
    .stat-card, .card, .event-card, .info-box, .registration-sidebar, .event-description-content, .card-featured {
        background: #1e1e1e; border-color: #333;
    }
    .form-group input { background: #2d2d2d; color: #fff; border-color: #444; }
    .form-group input:focus { background: #333; }
    .readonly-field { background: #252525 !important; }
    .quota-badge { background: #064e3b; border-color: #065f46; color: #a7f3d0; }
    .follow-section { background: #451a03; border-color: #78350f; color: #fef3c7; }
    .upload-btn-wrapper input[type=file] { background: #2d2d2d; color: #fff; }
    .event-main-image { background-color: #252525; border-color: #333; }
    .partners-box { background: linear-gradient(135deg, #1E1E1E 0%, #15201b 100%); border-color: #333; }
    .floating-item img { filter: grayscale(100%) brightness(1.5); opacity: 0.5; }
    .partner-name { color: var(--text-light); }
    .floating-item:hover img { filter: grayscale(0%) brightness(1); }
    .floating-item:hover .partner-name { color: var(--accent-color); }
    .info-box.location-active:hover { background: #064e3b; border-color: var(--accent-color); }
}