/* ====================================================
   PREMIUM CSS FINAL v5 - FULL WEBSITE UPDATE
==================================================== */

/* ===============================
   BASE & COLOR SYSTEM
================================ */
:root {
    --premium-primary: linear-gradient(135deg, #2563eb, #1e40af);
    --premium-success: linear-gradient(135deg, #16a34a, #15803d);
    --premium-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --premium-danger: linear-gradient(135deg, #ef4444, #b91c1c);
    --premium-gray: #6b7280;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 25px rgba(0,0,0,.05);
    --card-shadow-hover: 0 15px 35px rgba(0,0,0,.08);
}

body {
    padding-top: 70px;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1f2937;
    background-color: #f9fafb;
    line-height: 1.6;
}

/* ===============================
   NAVBAR PREMIUM
================================ */
.navbar {
    min-height: 64px;
    padding: 0.35rem 1rem;
    background-color: #2c3e50;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.navbar-brand i { font-size: 1.25rem; }

.navbar-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem !important;
    color: rgba(255,255,255,.85) !important;
    border-radius: 999px;
    margin: 0 0.15rem;
    transition: all 0.25s ease;
}

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

.navbar-toggler {
    padding: .35rem .6rem;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,.1);
}
.navbar-toggler:focus { box-shadow: none; }

/* ===============================
   BUTTON PREMIUM
================================ */
.btn {
    border: none !important;
    border-radius: 999px;
    padding: .45rem .9rem;
    font-weight: 600;
    font-size: .85rem;
    background: var(--premium-primary);
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
    transition: all .25s ease;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    filter: brightness(1.05);
}
.btn:active { transform: scale(.97); }
.btn-success { background: var(--premium-success) !important; }
.btn-warning { background: var(--premium-warning) !important; }
.btn-danger  { background: var(--premium-danger) !important; }
.btn-secondary, .btn-outline-secondary { background: #374151 !important; }
.btn-sm { padding: .35rem .75rem; font-size: .75rem; }
.btn-link { background: none !important; box-shadow: none; color: #2563eb !important; font-weight: 600; }
.btn-link:hover { text-decoration: underline; }

/* ===============================
   BADGE PREMIUM
================================ */
.badge {
    border-radius: 999px;
    padding: .35em .7em;
    font-weight: 600;
    font-size: .7rem;
    color: #ffffff !important;
    background: linear-gradient(135deg, #64748b, #334155);
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
    transition: all .2s ease;
}
.badge-primary { background: var(--premium-primary) !important; }
.badge-success { background: var(--premium-success) !important; }
.badge-warning { background: var(--premium-warning) !important; }
.badge-danger { background: var(--premium-danger) !important; }

/* Automatic small badge for article (readtime / keywords) */
.article-content .badge,
.article-content .badge.border,
.article-content .badge.bg-warning,
.article-content .badge.bg-light {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25em 0.6em;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.article-content .badge.bg-warning {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
}
.article-content .badge.bg-light,
.article-content .badge.border {
    background: linear-gradient(135deg, #64748b, #334155) !important;
    color: #ffffff !important;
    border: none !important;
}

/* ===============================
   ARTICLE CONTENT
================================ */
.article-content p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}
.article-content mark {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0.2em 0.35em;
    border-radius: 6px;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: 'Georgia', serif;
    font-weight: 600;
    color: #111827;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}
.article-content a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.article-content a:hover { color: #1e40af; text-decoration: underline; transform: translateY(-1px); }

/* ===============================
   LINK PREMIUM - LIST / UL / OL
================================ */
ul a, ol a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
ul a:hover, ol a:hover {
    color: #1e40af;
    text-decoration: underline;
    transform: translateY(-1px);
}

/* ===============================
   CARD / FEATURED
================================ */
.card {
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    transition: all 0.25s ease;
    overflow: hidden;
    background-color: var(--card-bg);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

/* ===============================
   PAGINATION PREMIUM
================================ */
.pagination {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    gap: 0.4rem;
}
.page-item { transition: all 0.25s ease; }
.page-link {
    background: var(--premium-primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    min-width: 40px;
    text-align: center;
    border: none;
}
.page-link:hover {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    transform: translateY(-2px);
}
.page-item.active .page-link {
    background: var(--premium-success);
    box-shadow: 0 8px 22px rgba(0,0,0,.2);
}
.page-item.disabled .page-link {
    background: #9ca3af;
    color: #f3f4f6;
    cursor: not-allowed;
    box-shadow: none;
}

/* ===============================
   STICKY SIDEBAR / NAV
================================ */
.sticky-top { position: sticky; top: 80px; }

/* ===============================
   HERO IMAGE / SECTION
================================ */
.hero-image {
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,.7), rgba(0,0,0,.3));
}
.hero-image .container { position: relative; z-index: 1; }

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    body { padding-top: 60px; }
    .hero-image { height: 200px !important; }
    .display-5 { font-size: 1.4rem; }
    .article-content p { hyphens: auto; word-spacing: .02em; }
    .navbar { padding: .45rem .75rem; }
    .navbar-collapse {
        background: #1f2933;
        margin-top: .6rem;
        padding: .75rem;
        border-radius: 14px;
        box-shadow: 0 15px 30px rgba(0,0,0,.35);
    }
    .navbar-nav .nav-link { padding: .55rem .9rem !important; margin-bottom: .3rem; }
}

@media (max-width: 576px) {
    .navbar-brand { font-size: 1.1rem; }
    .btn { padding: 0.4rem 1rem; font-size: 0.8rem; }
    .card-body { padding: 1rem; }
    h1, .h1 { font-size: 1.5rem; }
    h2, .h2 { font-size: 1.3rem; }
}