/* ============================================================
   BasecampAhli — Premium Design System
   ============================================================ */

/* ---------- Google Fonts Import ---------- */
:root {
    /* Color Palette */
    --primary:       #1a2744;
    --primary-light: #243460;
    --primary-dark:  #111b31;
    --accent:        #f5a623;
    --accent-light:  #ffc14e;
    --accent-dark:   #d4881a;
    --secondary:     #4361ee;
    --secondary-light: #6880f0;
    --success:       #0cb87e;
    --danger:        #f53b57;
    --warning:       #ffd166;
    --info:          #00b4d8;

    /* Neutrals */
    --bg-body:       #f0f2f8;
    --bg-card:       #ffffff;
    --bg-dark:       #0d1526;
    --text-body:     #1e293b;
    --text-muted:    #64748b;
    --text-light:    #94a3b8;
    --border:        #e2e8f0;
    --border-light:  #f1f5f9;

    /* Shadows */
    --shadow-sm:    0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md:    0 4px 16px rgba(26,39,68,.1), 0 2px 4px rgba(26,39,68,.06);
    --shadow-lg:    0 10px 40px rgba(26,39,68,.15), 0 4px 12px rgba(26,39,68,.08);
    --shadow-glow:  0 0 40px rgba(245,166,35,.25);
    --shadow-blue:  0 8px 32px rgba(67,97,238,.2);

    /* Gradients */
    --gradient-primary:  linear-gradient(135deg, #1a2744 0%, #243460 50%, #1e3a6e 100%);
    --gradient-accent:   linear-gradient(135deg, #f5a623 0%, #ffc14e 100%);
    --gradient-hero:     linear-gradient(135deg, #0d1526 0%, #1a2744 40%, #1e3a6e 100%);
    --gradient-card:     linear-gradient(145deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
    --gradient-glass:    linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Spacing */
    --section-py: 5rem;

    /* Border radius */
    --radius-sm:  0.5rem;
    --radius-md:  1rem;
    --radius-lg:  1.5rem;
    --radius-xl:  2rem;
    --radius-pill: 999px;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text-body);
    background-color: var(--bg-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-top: 72px; /* navbar height */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

a { color: var(--secondary); transition: color .2s; text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; }

/* ===== NAVBAR ===== */
#mainNavbar {
    background: rgba(13, 21, 38, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
}

#mainNavbar.scrolled {
    background: rgba(13, 21, 38, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245,166,35,0.4);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1;
}

#mainNavbar .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75) !important;
    padding: 0.5rem 0.875rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(255,255,255,0.08);
}

#mainNavbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    padding: 0.625rem 1.25rem;
    transition: all 0.25s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.12);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn:hover::before { opacity: 1; }

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(67,97,238,.3);
    color: #fff;
}

.btn-gold {
    background: var(--gradient-accent);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(245,166,35,.35);
    font-weight: 700;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--primary);
}

.btn-outline-primary {
    border: 2px solid var(--secondary) !important;
    color: var(--secondary) !important;
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--secondary) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.4) !important;
    color: #fff !important;
    background: rgba(255,255,255,0.05);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.7) !important;
    color: #fff !important;
}

.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover { box-shadow: var(--shadow-md); }

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg) !important;
}

.card-glass {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
}

.card-img-top {
    object-fit: cover;
    height: 220px;
    width: 100%;
}

/* ===== BADGES ===== */
.badge {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.35em 0.75em;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
}

.badge-role-admin  { background: rgba(245,166,35,0.15); color: var(--accent-dark); }
.badge-role-ahli   { background: rgba(67,97,238,0.12);  color: var(--secondary); }
.badge-role-member { background: rgba(12,184,126,0.12); color: var(--success); }

.badge-published { background: rgba(12,184,126,0.12); color: var(--success); }
.badge-draft     { background: rgba(100,116,139,0.12); color: var(--text-muted); }
.badge-pending   { background: rgba(255,209,102,0.2);  color: #b45309; }
.badge-under_review { background: rgba(67,97,238,0.12); color: var(--primary); }
.badge-rejected  { background: rgba(245,59,87,0.12);   color: var(--danger); }
.badge-approved  { background: rgba(12,184,126,0.12);  color: var(--success); }

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(67,97,238,.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%; right: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(245,166,35,.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 4px; height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245,166,35,.15);
    border: 1px solid rgba(245,166,35,.35);
    border-radius: var(--radius-pill);
    padding: 0.35rem 1rem;
    font-size: 0.8125rem;
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.65);
    max-width: 520px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat { text-align: left; }
.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.hero-stat-number span { color: var(--accent); }
.hero-stat-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-card-float {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    animation: float-card 4s ease-in-out infinite;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.hero-card-float:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 5s;
}

/* ===== SECTION STYLING ===== */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(67,97,238,.1);
    border: 1px solid rgba(67,97,238,.2);
    border-radius: var(--radius-pill);
    padding: 0.3rem 1rem;
    font-size: 0.8125rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== NEWS CARD ===== */
.news-card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-card-img {
    height: 210px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img { transform: scale(1.05); }

.news-card-img-wrap {
    overflow: hidden;
    position: relative;
}

.news-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.news-card-body { padding: 1.5rem; }

.news-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary);
    margin-bottom: 0.625rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.news-card-title a:hover { color: var(--secondary); }

.news-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.news-author-img {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== AHLI CARD ===== */
.ahli-card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
    transition: all 0.35s ease;
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.ahli-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ahli-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.ahli-card:hover::before { transform: scaleX(1); }

.ahli-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-light);
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: border-color 0.3s, transform 0.3s;
}

.ahli-card:hover .ahli-avatar {
    border-color: var(--accent);
    transform: scale(1.05);
}

.ahli-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.ahli-expertise {
    font-size: 0.8125rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.ahli-institution {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.ahli-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.ahli-stat-item { text-align: center; }
.ahli-stat-num {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}
.ahli-stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.stats-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.stat-box {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.stat-box-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-box-label {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.stat-box-icon {
    width: 56px; height: 56px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0 auto 1rem;
}

/* ===== ACTIVITY CARD ===== */
.activity-card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.activity-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.activity-date-box {
    min-width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.activity-date-day {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1;
}

.activity-date-month {
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== FEATURED NEWS HERO ===== */
.featured-news-hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.featured-news-hero:hover { transform: scale(1.01); }

.featured-news-hero-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-news-hero:hover .featured-news-hero-img { transform: scale(1.06); }

.featured-news-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,21,38,.95) 0%, rgba(13,21,38,.5) 50%, transparent 100%);
}

.featured-news-hero-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    width: 100%;
}

/* ===== SIDEBAR LAYOUT ===== */
.sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

/* ===== DASHBOARD ===== */
.dashboard-wrap {
    padding: 2rem 0;
    min-height: calc(100vh - 72px);
}

.dashboard-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.dashboard-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted) !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.dashboard-nav .nav-link:hover,
.dashboard-nav .nav-link.active {
    color: var(--secondary) !important;
    background: rgba(67,97,238,.06);
    border-left-color: var(--secondary);
}

.dashboard-nav .nav-link i { font-size: 1rem; width: 20px; text-align: center; }

/* ===== STAT WIDGET ===== */
.stat-widget {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.stat-widget:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.stat-widget-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

.stat-widget-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-widget-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-widget-bg {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 5rem;
    opacity: 0.04;
    pointer-events: none;
}

/* ===== FORMS ===== */
.form-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-body);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: var(--text-body);
    background: var(--bg-card);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(67,97,238,.1);
    background: var(--bg-card);
    color: var(--text-body);
}

.form-control::placeholder { color: var(--text-light); }

.input-group-text {
    border: 1.5px solid var(--border);
    background: var(--bg-body);
    color: var(--text-muted);
}

/* ===== TABLE ===== */
.table-custom {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-custom thead {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
}

.table-custom thead th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    border: none;
}

.table-custom tbody td {
    padding: 1rem 1.25rem;
    border-color: var(--border-light);
    vertical-align: middle;
}

.table-custom tbody tr:hover { background: rgba(67,97,238,.03); }

/* ===== ALERTS ===== */
.alert-float {
    position: fixed;
    top: 90px;
    right: 1.5rem;
    z-index: 9999;
    min-width: 320px;
    max-width: 480px;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    animation: slideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

/* ===== FOOTER ===== */
.footer-main {
    background: var(--bg-dark);
    padding: 4rem 0 0;
    margin-top: 5rem;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a,
.footer-links li {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-social {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5) !important;
    font-size: 0.9375rem;
    transition: all 0.2s;
}
.footer-social:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary) !important;
    transform: translateY(-3px);
}

/* ===== PROFILE PAGE ===== */
.profile-hero {
    background: var(--gradient-primary);
    padding: 3rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.profile-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: var(--bg-body);
    border-radius: 60px 60px 0 0;
}

.profile-avatar-wrap {
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.profile-avatar-lg {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

/* ===== TABS ===== */
.nav-tabs-custom {
    border-bottom: 2px solid var(--border);
    gap: 0.25rem;
}

.nav-tabs-custom .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.75rem 1.25rem;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.nav-tabs-custom .nav-link:hover { color: var(--secondary); background: transparent; }
.nav-tabs-custom .nav-link.active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
    background: transparent;
}

/* ===== AUTH PAGES ===== */
.auth-wrap {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-wrap::before {
    content: '';
    position: absolute;
    top: 20%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(67,97,238,.2) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-card {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(30px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.1);
    padding: 3rem;
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 2;
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,.4); }
    50% { box-shadow: 0 0 0 12px rgba(245,166,35,0); }
}

/* ===== BREADCRUMB ===== */
.breadcrumb-wrap {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.breadcrumb { margin: 0; font-size: 0.8125rem; }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item a { color: var(--secondary); }

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--gradient-primary);
    padding: 3rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    right: -5%;
    top: -30%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245,166,35,.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.025em;
    margin: 0;
}

.page-header-subtitle { color: rgba(255,255,255,.6); font-size: 0.9375rem; margin-top: 0.5rem; }

/* ===== INDEX SELECTOR ===== */
.index-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.index-scopus  { background: rgba(245,166,35,.15); color: #92610a; }
.index-sinta1  { background: rgba(67,97,238,.12);  color: #2041c8; }
.index-sinta2  { background: rgba(67,97,238,.08);  color: #3352d0; }
.index-wos     { background: rgba(245,59,87,.12);  color: #b81c35; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    body { padding-top: 60px; }
    .hero-section { padding: 4rem 0 3rem; min-height: auto; }
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 1.25rem; }
    .auth-card { padding: 2rem; }
    .featured-news-hero { min-height: 300px; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 1.75rem; }
    .section-title { font-size: 1.5rem; }
    .stat-box-number { font-size: 2.25rem; }
    .auth-card { padding: 1.5rem; border-radius: var(--radius-lg); }
}

/* ===== UTILITIES ===== */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-primary-gradient { background: var(--gradient-primary) !important; }
.bg-accent-gradient  { background: var(--gradient-accent) !important; }

.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-lg  { border-radius: var(--radius-lg) !important; }
.rounded-md  { border-radius: var(--radius-md) !important; }

.shadow-custom { box-shadow: var(--shadow-md) !important; }
.shadow-glow   { box-shadow: var(--shadow-glow) !important; }

.gap-icon { gap: 0.5rem; }

.section-py { padding-top: var(--section-py); padding-bottom: var(--section-py); }

/* Level badge colors per category */
.level-internasional { background: rgba(245,59,87,.1); color: var(--danger); }
.level-nasional       { background: rgba(67,97,238,.1); color: var(--secondary); }
.level-regional       { background: rgba(12,184,126,.1); color: var(--success); }
.level-lokal          { background: rgba(100,116,139,.1); color: var(--text-muted); }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f2f8 25%, #e2e8f0 50%, #f0f2f8 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.4s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== HOME FORUM SECTION ===== */
.home-forum-stat {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: .4rem 1.1rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.home-forum-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: .4rem 1rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 700;
    background: var(--bg-card);
    border: 1.5px solid;
    text-decoration: none;
    transition: all .2s;
    letter-spacing: .01em;
}
.home-forum-cat-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    opacity: .85;
}

.home-forum-cat-tag {
    display: inline-flex;
    align-items: center;
    padding: .15rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.home-forum-thread-card {
    display: block;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 1rem;
    padding: 1.1rem 1.25rem;
    margin-bottom: .625rem;
    text-decoration: none;
    transition: all .25s;
    color: inherit;
}
.home-forum-thread-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: inherit;
}
.home-forum-thread-title {
    font-family: var(--font-heading);
    font-size: .9375rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .25rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.home-forum-thread-card:hover .home-forum-thread-title { color: var(--accent); }
.home-forum-thread-excerpt {
    font-size: .8125rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .4rem;
}
.home-forum-thread-meta {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .75rem;
    color: var(--text-light);
    font-weight: 500;
    flex-wrap: wrap;
}
.home-forum-author {
    color: var(--primary);
    font-weight: 600;
    font-size: .8rem;
}

.home-forum-cta-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
}
.home-forum-cta-icon {
    width: 56px; height: 56px;
    background: var(--gradient-primary);
    border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}
.home-forum-cta-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: .5rem;
}
.home-forum-cta-desc {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Quick action buttons on thread cards (index page) */
.forum-quick-action-btn {
    background: none;
    border: none;
    padding: .25rem .4rem;
    font-size: .8125rem;
    cursor: pointer;
    border-radius: .375rem;
    transition: background .15s, opacity .15s;
    opacity: .5;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.forum-quick-action-btn:hover { opacity: 1; background: rgba(0,0,0,.06); }

/* ===== CATEGORY COUNT BADGE ===== */
/* Dark pill badge — always readable on any tab state */
.forum-cat-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 .4rem;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 700;
    line-height: 1;
    background: rgba(0,0,0,.35);
    color: #fff;
    letter-spacing: .01em;
}
/* On active (colored) tab, keep white but slightly brighter */
.forum-cat-tab.active .forum-cat-count-badge {
    background: rgba(0,0,0,.25);
}

/* ===== PAGINATION (Bootstrap 5 override) ===== */
.pagination {
    gap: .25rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.page-link {
    border-radius: .5rem !important;
    border: 1.5px solid var(--border) !important;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .8125rem;
    padding: .35rem .7rem;
    line-height: 1.5;
    background: var(--bg-card);
    transition: all .2s;
    min-width: 2rem;
    text-align: center;
}
.page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary) !important;
    color: var(--primary);
}
.page-item.active .page-link {
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: #fff;
    box-shadow: 0 2px 8px rgba(67,97,238,.3);
}
.page-item.disabled .page-link {
    background: var(--bg-body);
    color: var(--text-light);
    border-color: var(--border) !important;
    opacity: .6;
}
/* Shrink the prev/next arrow icons */
.page-link[rel="prev"],
.page-link[rel="next"],
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    font-size: .8125rem;
    padding: .35rem .65rem;
}
