/*
 * ========================================
 * JOURNAL BLOG - Main Stylesheet
 * Bootstrap 5 Custom Styles
 * ========================================
 */

/* ----------------------------------------
   CSS Variables
---------------------------------------- */
:root {
    --primary: #135bec;
    --primary-hover: #0d4bc9;
    --primary-light: rgba(19, 91, 236, 0.1);
    --bg-light: #f8fafc;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
}

/* ----------------------------------------
   Base Styles
---------------------------------------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--slate-900);
    line-height: 1.6;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ----------------------------------------
   Header / Navbar
---------------------------------------- */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    height: 80px;
    z-index: 10000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-left,
.header-right {
    flex: 1;
}

.header-right {
    justify-content: flex-end;
}

.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

/* Mobile slide-in menu */
.navbar-collapse-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: white;
    padding: 2rem 1.5rem;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.navbar-collapse-mobile.show {
    transform: translateX(0);
}

.navbar-collapse-mobile .navbar-nav {
    flex-direction: column;
    margin-top: 1rem;
}

.navbar-collapse-mobile .nav-link-custom {
    padding: 1rem 0 !important;
    border-bottom: 1px solid var(--slate-100);
    font-size: 1.125rem;
}

/* Mobile Search Button */
.btn-search-mobile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--slate-100);
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search-mobile:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.show {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 90%;
    max-width: 500px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.show .search-overlay-content {
    transform: translateY(0);
}

.search-overlay-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-overlay-header .material-symbols-outlined {
    color: var(--slate-400);
    font-size: 1.5rem;
}

.search-overlay-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.125rem;
    color: var(--slate-900);
    background: transparent;
}

.search-overlay-input::placeholder {
    color: var(--slate-400);
}

.search-overlay-close {
    background: none;
    border: none;
    color: var(--slate-500);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.search-overlay-close:hover {
    color: var(--danger);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--slate-900);
}

.nav-link-custom {
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-600);
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--primary);
}

.nav-link-custom.active {
    border-bottom: 2px solid var(--primary);
}

.search-input {
    padding-left: 2.5rem;
    background-color: var(--slate-100);
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    height: 40px;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 0 0 2px var(--primary);
    background-color: white;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 1.25rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--slate-200);
}

.navbar-toggler-custom {
    border: none;
    padding: 0.5rem;
    background: transparent;
}

.navbar-toggler-custom:focus {
    box-shadow: none;
}

/* ----------------------------------------
   Hero Section
---------------------------------------- */
.hero-section {
    padding: 4rem 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate-500);
    line-height: 1.6;
}

/* ----------------------------------------
   Filter Buttons
---------------------------------------- */
.filter-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    border: 1px solid var(--slate-200);
    background: white;
    color: var(--slate-600);
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(19, 91, 236, 0.3);
}

/* ----------------------------------------
   Blog Cards
---------------------------------------- */
.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--slate-100);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 10px -2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.blog-card:hover .card-img {
    transform: scale(1.05);
}

.card-img-wrapper {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-body-custom {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-date {
    font-size: 0.875rem;
    color: var(--slate-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.badge-tech {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-lifestyle {
    background: var(--success-light);
    color: #059669;
}

.badge-design {
    background: var(--warning-light);
    color: #d97706;
}

.card-title-custom {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.3;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-card:hover .card-title-custom {
    color: var(--primary);
}

.card-footer-custom {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-100);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
    font-size: 1rem;
}

.read-more:hover {
    color: var(--primary-hover);
}

.read-more:hover .material-symbols-outlined {
    transform: translateX(4px);
}

.read-more .material-symbols-outlined {
    transition: transform 0.3s ease;
    font-size: 1.25rem;
}

/* ----------------------------------------
   Pagination
---------------------------------------- */
.pagination-custom {
    margin-top: 5rem;
}

.page-link-custom {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--slate-200);
    background: white;
    color: var(--slate-600);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-link-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-link-custom.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(19, 91, 236, 0.3);
}

.page-dots {
    color: var(--slate-400);
    padding: 0 0.5rem;
    font-weight: 700;
}

/* ----------------------------------------
   Footer
---------------------------------------- */
.footer-custom {
    background: white;
    border-top: 1px solid var(--slate-200);
    padding-top: 5rem;
    padding-bottom: 2.5rem;
}

.footer-brand-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: white;
}

.footer-brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--slate-900);
}

.footer-desc {
    color: var(--slate-500);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--slate-100);
    color: var(--slate-600);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background: var(--primary);
    color: white;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--slate-900);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: var(--slate-500);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 1rem;
}

.footer-link:hover {
    color: var(--primary);
}

.newsletter-input {
    padding: 0.625rem 1rem;
    background: var(--slate-100);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: none;
    outline: none;
}

.newsletter-btn {
    padding: 0.625rem 1rem;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(19, 91, 236, 0.2);
}

.newsletter-btn:hover {
    background: var(--primary-hover);
}

.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid var(--slate-200);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--slate-400);
}

.footer-bottom-link {
    font-size: 0.875rem;
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--slate-900);
}

/* ----------------------------------------
   Buttons
---------------------------------------- */
.btn-primary-custom {
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(19, 91, 236, 0.2);
}

.btn-primary-custom:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-custom {
    background: transparent;
    color: var(--slate-600);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ----------------------------------------
   Forms
---------------------------------------- */
.form-control-custom {
    padding: 0.75rem 1rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 91, 236, 0.1);
    background: white;
}

.form-label-custom {
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

/* ----------------------------------------
   Page Header
---------------------------------------- */
.page-header {
    padding: 3rem 0;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--slate-500);
}

/* ----------------------------------------
   Blog Detail
---------------------------------------- */
.blog-detail-header {
    padding: 4rem 0;
}

.blog-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.blog-detail-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-detail-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-detail-author-name {
    font-weight: 600;
    color: var(--slate-900);
}

.blog-detail-date {
    color: var(--slate-500);
    font-size: 0.875rem;
}

.blog-detail-cover {
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.blog-detail-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--slate-700);
}

.blog-detail-content p {
    margin-bottom: 1.5rem;
}

.blog-detail-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-detail-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-detail-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--slate-600);
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
    margin: 1.5rem auto;
}

@media (min-width: 768px) {
    .blog-detail-content img {
        max-width: 800px;
    }
}

/* ----------------------------------------
   Sidebar
---------------------------------------- */
.sidebar-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--slate-100);
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--slate-100);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    padding: 0.5rem 0;
}

.sidebar-list a {
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-list a:hover {
    color: var(--primary);
}

.sidebar-count {
    background: var(--slate-100);
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--slate-500);
}

/* ----------------------------------------
   Comments
---------------------------------------- */
.comment-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--slate-200);
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--slate-100);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author {
    font-weight: 600;
    color: var(--slate-900);
}

.comment-date {
    font-size: 0.875rem;
    color: var(--slate-400);
}

.comment-text {
    color: var(--slate-600);
    margin-top: 0.5rem;
}

/* ----------------------------------------
   Contact Page
---------------------------------------- */
.contact-info-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--slate-100);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon .material-symbols-outlined {
    font-size: 1.75rem;
}

/* ----------------------------------------
   Admin Panel Styles
---------------------------------------- */
.admin-sidebar {
    width: 260px;
    background: var(--slate-900);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.admin-sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid var(--slate-800);
}

.admin-sidebar-nav {
    padding: 1rem 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--slate-400);
    transition: all 0.3s ease;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: var(--slate-800);
    color: white;
}

.admin-nav-item.active {
    border-left: 3px solid var(--primary);
}

.admin-nav-item .material-symbols-outlined {
    font-size: 1.25rem;
}

.admin-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
    background: var(--bg-light);
}

.admin-header {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--slate-200);
    margin: -2rem -2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
}

/* Admin Stats Cards */
.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--slate-100);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.primary {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-icon.success {
    background: var(--success-light);
    color: var(--success);
}

.stat-icon.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--slate-900);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--slate-500);
}

/* Admin Tables */
.admin-table {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--slate-100);
}

.admin-table table {
    margin-bottom: 0;
}

.admin-table th {
    background: var(--slate-50);
    font-weight: 600;
    color: var(--slate-700);
    border-bottom: 1px solid var(--slate-200);
    padding: 1rem;
}

.admin-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--slate-100);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* Action Buttons */
.btn-action {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
}

.btn-action.edit {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-action.edit:hover {
    background: var(--primary);
    color: white;
}

.btn-action.delete {
    background: var(--danger-light);
    color: var(--danger);
}

.btn-action.delete:hover {
    background: var(--danger);
    color: white;
}

/* Admin Form Card */
.admin-form-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--slate-100);
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.published {
    background: var(--success-light);
    color: #059669;
}

.status-badge.draft {
    background: var(--warning-light);
    color: #d97706;
}

.status-badge.pending {
    background: var(--primary-light);
    color: var(--primary);
}

/* Login Page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #0d4bc9 100%);
}

.login-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--slate-900);
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--slate-500);
    text-align: center;
    margin-bottom: 2rem;
}

/* ----------------------------------------
   Responsive Styles
---------------------------------------- */

/* Desktop: navbar always visible */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        transform: none;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (max-width: 991.98px) {

    /* Mobile Slide-in Menu */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: white;
        padding: 2rem 1.5rem;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-radius: 0;
        margin-top: 0;
        display: block !important;
        overflow-y: auto;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .navbar-collapse .navbar-nav {
        flex-direction: column;
        margin-top: 1rem;
    }

    .nav-link-custom {
        padding: 1rem 0 !important;
        border-bottom: 1px solid var(--slate-100);
        font-size: 1.125rem;
    }

    .nav-link-custom.active {
        border-bottom: 1px solid var(--slate-100);
        color: var(--primary);
    }

    /* Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Close button inside menu */
    .mobile-menu-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        color: var(--slate-600);
        cursor: pointer;
        padding: 0.5rem;
    }

    .mobile-menu-close:hover {
        color: var(--primary);
    }

    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .card-body-custom {
        padding: 1.5rem;
    }

    .card-title-custom {
        font-size: 1.25rem;
    }

    .pagination-custom {
        margin-top: 3rem;
    }

    .footer-custom {
        padding-top: 3rem;
    }

    .blog-detail-title {
        font-size: 1.75rem;
    }

    .blog-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .page-link-custom {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
}

/* ----------------------------------------
   Admin Table Action Buttons
---------------------------------------- */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-right: 4px;
}

.btn-action:last-child {
    margin-right: 0;
}

.btn-action.edit {
    color: var(--primary);
}

.btn-action.edit:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-action.delete {
    color: var(--danger);
}

.btn-action.delete:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.btn-action.view {
    color: var(--success);
}

.btn-action.view:hover {
    background: var(--success-light);
    color: var(--success);
}

/* Admin table td actions container */
td:last-child {
    white-space: nowrap;
}

/* ----------------------------------------
   Admin Dashboard Stats
---------------------------------------- */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-icon.success {
    background: var(--success-light);
    color: var(--success);
}

.stat-icon.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-icon.danger {
    background: var(--danger-light);
    color: var(--danger);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--slate-500);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Mobile/Tablet: Compact stat cards */
@media (max-width: 991.98px) {
    .stat-card {
        padding: 0.875rem 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        height: 100%;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .stat-icon .material-symbols-outlined {
        font-size: 20px;
    }

    .stat-value {
        font-size: 1.125rem;
        margin-bottom: 0;
        line-height: 1.1;
    }

    .stat-label {
        font-size: 0.7rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Extra small screens: Even more compact */
@media (max-width: 575.98px) {
    .stat-card {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .stat-icon .material-symbols-outlined {
        font-size: 16px;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.625rem;
    }
}

/* ----------------------------------------
   Header Auth Styles
---------------------------------------- */
.header-login-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--slate-100);
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-login-btn:hover {
    background: var(--primary);
    color: white;
}

.header-login-btn .material-symbols-outlined {
    font-size: 1.25rem;
}

.header-profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.header-profile-link:hover {
    transform: scale(1.05);
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(19, 91, 236, 0.2);
}