/* =============================================
   SMARTBOV WEB – PAGES SECONDAIRES CSS
   Activités, Publications, Galerie, Actualités
   ============================================= */

/* Page Header */
.page-hero {
    background: linear-gradient(135deg, var(--dark-green) 0%, #065f46 100%);
    padding: 100px 0 48px;
    position: relative;
    overflow: hidden;
}
.page-hero-compact {
    padding: 88px 0 28px;
}
.page-hero-compact .page-hero-inner { gap: 1.75rem; align-items: center; }
.page-hero-compact .page-hero-visual {
    flex: 0 0 min(38%, 360px);
    max-width: 360px;
    min-width: 220px;
}
.page-hero-visual-frame {
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 30px 70px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
}
.page-hero-compact .page-hero-visual img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 180px;
    max-height: 240px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
}
.page-hero-compact .page-hero-visual .hero-img-badge { bottom: -10px; left: 12px; padding: 6px 12px; font-size: 0.72rem; }
.page-hero-compact h1 { font-size: clamp(1.45rem, 2.8vw, 2rem); margin-bottom: 6px; }
.page-hero-compact p { font-size: 0.9rem; line-height: 1.5; margin: 0; }
.page-hero-compact .page-breadcrumb { margin-bottom: 8px; font-size: 0.78rem; }
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}
/* Two-column layout: text left + image right */
.page-hero-inner {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}
.page-hero-content {
    position: relative;
    z-index: 2;
    flex: 1 1 0;
    min-width: 0;
}
.page-hero-visual {
    position: relative;
    z-index: 2;
    flex: 0 0 380px;
    max-width: 380px;
}
.page-hero-visual img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
    display: block;
    transition: transform 0.4s ease;
}
.page-hero-visual img:hover { transform: scale(1.02); }
/* Floating badge on image */
.page-hero-visual .hero-img-badge {
    position: absolute;
    bottom: -14px;
    left: 20px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.8rem;
    white-space: nowrap;
}
.page-hero-visual .hero-img-badge i { font-size: 1.1rem; color: #34d399; }
@media (max-width: 991px) {
    .page-hero { padding: 92px 0 36px; }
    .page-hero-compact { padding: 80px 0 24px; }
    .page-hero-visual { flex: 0 0 240px; max-width: 240px; }
    .page-hero-visual img { height: 160px; }
    .page-hero-compact .page-hero-visual { flex: 0 0 min(42%, 280px); max-width: 280px; }
    .page-hero-compact .page-hero-visual img { min-height: 150px; max-height: 200px; }
}
@media (max-width: 767px) {
    .page-hero-inner { flex-direction: column; gap: 1.25rem; }
    .page-hero-compact .page-hero-inner { gap: 1rem; }
    .page-hero-visual { flex: none; max-width: 100%; width: 100%; }
    .page-hero-visual img { height: 140px; }
    .page-hero-compact .page-hero-visual img { min-height: 160px; max-height: 200px; }
    .page-hero-visual .hero-img-badge {
        white-space: normal;
        max-width: calc(100% - 24px);
        font-size: 0.72rem;
    }
    .filters-bar { top: 64px; padding: 12px 0; }
    .filter-tabs { gap: 4px; }
    .filter-tab { padding: 8px 12px; font-size: 0.78rem; }
    .search-sort-bar { flex-direction: column; align-items: stretch; }
    .search-field { min-width: 0; width: 100%; }
    .sort-select { width: 100%; }
}
.page-hero h1 { color: white; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; }
.page-breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.83rem; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.page-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.page-breadcrumb a:hover { color: var(--primary-light); }
.page-breadcrumb .sep { color: rgba(255,255,255,0.3); }
body.dark-mode .page-hero {
    background: linear-gradient(135deg, #030a06 0%, #031608 100%);
}

/* Filters Bar */
.filters-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    background: var(--bg-light);
    color: var(--text-gray);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.filter-tab:hover, .filter-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.filter-count { background: rgba(255,255,255,0.3); padding: 1px 6px; border-radius: 100px; font-size: 0.7rem; }
.filter-tab.active .filter-count { background: rgba(255,255,255,0.2); }

/* Search + Sort Bar */
.search-sort-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search-field {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.search-field input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    background: var(--bg-white);
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}
.search-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }
.search-field i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 0.85rem; pointer-events: none; }
.sort-select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    background: var(--bg-white);
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
}

/* ======= ACTIVITIES PAGE ======= */
.activities-timeline { position: relative; padding-left: 40px; }
.activities-timeline::before {
    content: '';
    position: absolute;
    left: 15px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(16,185,129,0.1));
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-dot {
    position: absolute;
    left: -33px; top: 20px;
    width: 18px; height: 18px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.3);
}
.timeline-date {
    position: absolute;
    left: -120px; top: 14px;
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: right;
    width: 80px;
}
.activity-detail-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.activity-detail-card:hover { border-color: rgba(16,185,129,0.4); box-shadow: var(--shadow-md); }
.adc-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 200px;
}
.adc-image {
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: rgba(255,255,255,0.7);
    overflow: hidden; min-height: 200px;
}
.adc-image img, .blog-card-img img, .bcf-image img, .blog-card-img-cover img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.blog-card-img-cover {
    height: 160px; overflow: hidden; position: relative;
}
.bcf-image { overflow: hidden; }
.adc-info { padding: 24px; flex: 1; }
.adc-badges { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.adc-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px;
}
.adc-badge.type-mission { background: rgba(16,185,129,0.1); color: var(--primary-dark); }
.adc-badge.type-formation { background: rgba(59,130,246,0.1); color: #2563eb; }
.adc-badge.type-seminar { background: rgba(124,58,237,0.1); color: #6d28d9; }
.adc-badge.type-atelier { background: rgba(245,158,11,0.1); color: #b45309; }
.adc-info h2 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; line-height: 1.3; }
.adc-meta-row { display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-gray); margin-bottom: 12px; flex-wrap: wrap; }
.adc-meta-row i { color: var(--primary); margin-right: 4px; }
.adc-description { font-size: 0.88rem; color: var(--text-gray); line-height: 1.7; }
.adc-results-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
.adc-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 24px 20px;
    margin-top: auto;
}
.adc-body { padding: 20px 24px; border-top: 1px solid var(--border); }
.adc-results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.adc-result {
    text-align: center;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 14px 10px;
}
.adc-result-val { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.adc-result-lbl { font-size: 0.72rem; color: var(--text-gray); margin-top: 3px; }

.adc-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
    transition: var(--transition);
    white-space: nowrap;
}
.adc-detail-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}
.adc-detail-btn i { font-size: 0.85rem; opacity: 0.95; }

/* Activité / Actualité — popup détail */
.act-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 15, 12, 0.72);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
}
.act-detail-overlay.active {
    opacity: 1;
    pointer-events: all;
    animation: detailOverlayIn 0.35s ease both;
}
.act-detail-modal {
    position: relative;
    width: min(1080px, 100%);
    max-height: min(92vh, 900px);
    overflow: auto;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform-origin: center center;
}
.act-detail-modal.detail-modal-animate,
.act-detail-overlay.active .act-detail-modal {
    animation: detailModalIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes detailOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes detailModalIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(28px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .act-detail-overlay.active,
    .act-detail-modal.detail-modal-animate,
    .act-detail-overlay.active .act-detail-modal {
        animation: none;
    }
}
.act-detail-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.act-detail-close:hover { background: rgba(0, 0, 0, 0.75); }
.act-detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(300px, 1fr);
    min-height: 420px;
}
.act-detail-media {
    position: relative;
    min-height: 280px;
    background: var(--bg-light);
    overflow: hidden;
}
.act-detail-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: min(72vh, 640px);
    object-fit: cover;
    display: block;
}
.act-detail-body {
    padding: 28px 30px 30px;
    overflow-y: auto;
}
.act-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.act-detail-body h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 14px;
    padding-right: 36px;
}
.act-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    font-size: 0.88rem;
    color: var(--text-gray);
    margin-bottom: 18px;
}
.act-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.act-detail-meta i { color: var(--primary); }
.act-detail-lead {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 12px;
}
.act-detail-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.8;
    white-space: pre-line;
}
.act-detail-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.act-detail-kpi {
    text-align: center;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 16px 10px;
}
.act-detail-kpi strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}
.act-detail-kpi span {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* ======= PUBLICATIONS PAGE ======= */
.publication-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: start;
}
.publication-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateX(4px); }
.pub-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(16,185,129,0.2);
    min-width: 40px;
    text-align: center;
}
.pub-category {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.pub-cat-article { background: rgba(16,185,129,0.1); color: var(--primary-dark); }
.pub-cat-these { background: rgba(59,130,246,0.1); color: #2563eb; }
.pub-cat-conference { background: rgba(245,158,11,0.1); color: #b45309; }
.pub-cat-rapport { background: rgba(124,58,237,0.1); color: #6d28d9; }
.pub-title { font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; line-height: 1.4; }
.pub-authors { font-size: 0.82rem; color: var(--primary); margin-bottom: 6px; }
.pub-journal { font-style: italic; font-size: 0.82rem; color: var(--text-gray); margin-bottom: 8px; }
.pub-meta { display: flex; gap: 14px; font-size: 0.78rem; color: var(--text-light); flex-wrap: wrap; }
.pub-meta i { margin-right: 4px; color: var(--primary); }
.pub-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.btn-download {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: var(--primary-ultra-light);
    color: var(--primary-dark);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(16,185,129,0.2);
    white-space: nowrap;
}
.btn-download:hover { background: var(--primary); color: white; }
.pub-views { font-size: 0.72rem; color: var(--text-light); text-align: center; }
.pub-abstract {
    font-size: 0.83rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-top: 10px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    display: none;
}
.pub-abstract.show { display: block; }
.pub-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.pub-text { flex: 1 1 0; min-width: 0; }
.pub-cover {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--border);
    display: block;
}

/* ======= GALLERY PAGE ======= */
.gallery-masonry {
    columns: 4;
    column-gap: 16px;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--border);
    transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.gallery-item img {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
}
.gallery-item-placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255,255,255,0.6);
    border-radius: var(--radius-md);
}
.gallery-item-placeholder.h-sm { height: 150px; }
.gallery-item-placeholder.h-md { height: 220px; }
.gallery-item-placeholder.h-lg { height: 300px; }
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(4,72,56,0.85);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { color: white; font-size: 0.9rem; font-weight: 600; text-align: center; margin-bottom: 6px; }
.gallery-overlay p { color: rgba(255,255,255,0.7); font-size: 0.75rem; text-align: center; }
.gallery-overlay .gallery-zoom { color: white; font-size: 1.4rem; margin-bottom: 10px; }
.gallery-featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.gallery-cat-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-dark);
    font-size: 0.68rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Lightbox — visionneuse galerie */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.lightbox-overlay.active { opacity: 1; pointer-events: all; }
.lightbox-stage {
    position: relative;
    width: min(960px, 100%);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-content {
    width: 100%;
    max-height: min(72vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: min(72vh, 720px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    display: block;
}
.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    z-index: 2;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-counter {
    position: absolute;
    top: -48px;
    left: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.lightbox-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.24); transform: scale(1.05); }
.lightbox-info {
    width: 100%;
    margin-top: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}
.lightbox-info h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}
.lightbox-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 8px;
}
.lightbox-album {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ======= NEWS/BLOG PAGE ======= */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(16,185,129,0.3); }
.blog-img {
    height: 200px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: rgba(255,255,255,0.7);
}
.blog-tag {
    position: absolute;
    top: 0; left: 0;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 600;
}
.blog-card .news-body { padding: 20px; }
.blog-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; line-height: 1.4; }
.blog-card p { font-size: 0.83rem; color: var(--text-gray); line-height: 1.5; }
.blog-card .news-meta { display: flex; gap: 14px; font-size: 0.75rem; color: var(--text-light); margin-bottom: 10px; }

/* Sidebar Blog */
.blog-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.sw-title { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sw-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sw-tag {
    padding: 5px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    font: inherit;
}
.sw-tag:hover { background: var(--primary); color: white; border-color: var(--primary); }
.sw-tag small { opacity: 0.8; font-weight: 600; }
.recent-post {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    width: 100%;
    border-left: none;
    border-right: none;
    border-top: none;
    background: transparent;
    text-align: left;
    font: inherit;
}
.recent-post:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.rp-img { width: 60px; height: 60px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: rgba(255,255,255,0.7); }
.rp-title { font-size: 0.83rem; font-weight: 600; color: var(--text-dark); line-height: 1.4; margin-bottom: 4px; }
.rp-date { font-size: 0.72rem; color: var(--text-light); }

/* ======= ADMIN PANEL ADDITIONAL ======= */
.admin-stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex; align-items: center; gap: 16px;
    transition: var(--transition);
    cursor: default;
}
.admin-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.asc-icon { width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.asc-icon.green { background: rgba(16,185,129,0.1); color: var(--primary); }
.asc-icon.blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.asc-icon.orange { background: rgba(245,158,11,0.1); color: #f59e0b; }
.asc-icon.purple { background: rgba(124,58,237,0.1); color: #7c3aed; }
.asc-icon.red { background: rgba(239,68,68,0.1); color: #ef4444; }
.asc-content { flex: 1; }
.asc-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--text-dark); line-height: 1; }
.asc-label { font-size: 0.82rem; color: var(--text-gray); margin-top: 3px; }
.asc-trend { font-size: 0.75rem; font-weight: 600; margin-top: 6px; }
.asc-trend.up { color: #10b981; }
.asc-trend.down { color: #ef4444; }

/* Data Table */
.data-table-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.dtc-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap; gap: 10px;
}
.dtc-header h3 { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); }
.dtc-actions { display: flex; gap: 8px; }
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    background: var(--bg-light);
    color: var(--text-gray);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(229,231,235,0.5);
    font-size: 0.87rem;
    color: var(--text-dark);
}
.data-table tbody tr:hover { background: rgba(16,185,129,0.03); }
.data-table tbody tr:last-child td { border-bottom: none; }
.td-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}
.td-badge.success { background: rgba(16,185,129,0.1); color: var(--primary-dark); }
.td-badge.warning { background: rgba(245,158,11,0.1); color: #b45309; }
.td-badge.info { background: rgba(59,130,246,0.1); color: #2563eb; }
.td-badge.danger { background: rgba(239,68,68,0.1); color: #dc2626; }
.td-badge.purple { background: rgba(124,58,237,0.1); color: #6d28d9; }
.td-actions { display: flex; gap: 4px; }
.td-btn {
    width: 30px; height: 30px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}
.td-btn.edit { background: rgba(59,130,246,0.1); color: #3b82f6; }
.td-btn.edit:hover { background: #3b82f6; color: white; }
.td-btn.delete { background: rgba(239,68,68,0.1); color: #ef4444; }
.td-btn.delete:hover { background: #ef4444; color: white; }
.td-btn.view { background: rgba(16,185,129,0.1); color: var(--primary); }
.td-btn.view:hover { background: var(--primary); color: white; }

/* Pagination */
.pagination-modern { display: flex; gap: 6px; align-items: center; }
.pg-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.pg-btn:hover, .pg-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Admin Modal */
.admin-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.admin-modal-overlay.active { opacity: 1; pointer-events: all; }
.admin-modal {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.am-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
}
.am-header h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.am-close {
    width: 32px; height: 32px;
    background: var(--bg-light);
    border: none; border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: var(--transition);
}
.am-close:hover { background: #fee2e2; color: #ef4444; }
.am-body { padding: 24px; }
.am-footer {
    display: flex; gap: 10px; justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}
.form-group-admin { margin-bottom: 18px; }
.form-group-admin label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-control-admin {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    background: var(--bg-white);
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}
.form-control-admin:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }
textarea.form-control-admin { resize: vertical; min-height: 100px; }

/* Notification Toast */
.toast-container { position: fixed; top: 90px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    min-width: 280px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: flex-start; gap: 12px;
    animation: toastIn 0.3s ease;
    border-left: 3px solid var(--primary);
}
.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.warning { border-left-color: #f59e0b; }
@keyframes toastIn { from{opacity:0;transform:translateX(100%)} to{opacity:1;transform:translateX(0)} }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.toast.success .toast-icon { color: #10b981; }
.toast.error .toast-icon { color: #ef4444; }
.toast.warning .toast-icon { color: #f59e0b; }
.toast-title { font-size: 0.88rem; font-weight: 600; color: var(--text-dark); }
.toast-msg { font-size: 0.8rem; color: var(--text-gray); margin-top: 2px; }

/* Admin Sidebar */
.admin-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-width);
    background: #0d1117;
    z-index: 100;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / Edge */
    transition: var(--transition);
    border-right: 1px solid rgba(255,255,255,0.05);
}
.admin-sidebar::-webkit-scrollbar { display: none; } /* Chrome / Safari */
.admin-sidebar .sidebar-logo {
    display: flex; align-items: center; gap: 10px;
    padding: 24px 20px 16px;
    color: white;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar .sidebar-logo i { color: var(--primary); font-size: 1.6rem; }
.admin-sidebar .sidebar-logo span { color: var(--primary); }
.admin-user-info {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.05);
    margin: 12px;
    border-radius: var(--radius-md);
}
.admin-user-avatar {
    width: 36px; height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 0.9rem;
    flex-shrink: 0;
}
.admin-user-name { color: white; font-size: 0.88rem; font-weight: 600; }
.admin-user-role { color: rgba(255,255,255,0.5); font-size: 0.75rem; }
.admin-nav { padding: 12px 0; }
.admin-nav-section { margin-bottom: 4px; }
.admin-nav-title {
    padding: 8px 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}
.admin-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 10px;
    margin: 2px 10px;
    transition: var(--transition);
}
.admin-nav-link:hover { background: rgba(255,255,255,0.08); color: white; }
.admin-nav-link.active { background: rgba(16,185,129,0.15); color: var(--primary-light); border-left: 3px solid var(--primary); padding-left: 17px; }
.admin-nav-link i { font-size: 0.95rem; width: 18px; text-align: center; }
.admin-nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    padding: 2px 7px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
}
.admin-nav-link.logout { color: rgba(239,68,68,0.7); margin-top: 10px; }
.admin-nav-link.logout:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

/* Admin Main Content */
.admin-main { margin-left: var(--sidebar-width); min-height: 100vh; background: #f1f5f9; }
body.dark-mode .admin-main { background: #0f172a; }
.admin-topbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 50;
}
.admin-topbar h1 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; }
.notif-btn {
    position: relative;
    width: 36px; height: 36px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
}
.notif-btn:hover { background: var(--primary-ultra-light); color: var(--primary); }
.notif-badge {
    position: absolute; top: -4px; right: -4px;
    width: 16px; height: 16px;
    background: #ef4444;
    border-radius: 50%;
    font-size: 0.6rem;
    color: white;
    display: flex; align-items: center; justify-content: center;
}
.admin-content { padding: 28px; }
.admin-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-section-header h2 { font-size: 1rem; font-weight: 700; color: var(--text-dark); }

/* ======= ADMIN EXTENDED STYLES ======= */
.admin-body { margin: 0; padding: 0; overflow-x: hidden; }

/* Sidebar new styles */
.sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    color: white;
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
}
.sidebar-brand .brand-logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg,#10b981,#059669); display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; box-shadow: 0 4px 12px rgba(16,185,129,0.35); }
.sidebar-close { background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; font-size: 1rem; }
.sidebar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    margin: 10px 10px 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
}
.su-avatar { font-size: 1.9rem; color: var(--primary); line-height: 1; }
.su-name { font-size: 0.84rem; font-weight: 600; color: white; }
.su-role { margin-top: 3px; }
.role-badge { font-size: 0.63rem; font-weight: 700; background: rgba(16,185,129,0.18); color: #34d399; padding: 2px 8px; border-radius: 100px; letter-spacing: 0.3px; }
.sidebar-nav { padding: 4px 0 80px; }
.snav-section { font-size: 0.6rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.22); padding: 18px 18px 5px; }
.snav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 14px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.855rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 1px 8px;
    transition: all 0.18s ease;
    cursor: pointer;
    position: relative;
}
.snav-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.92); }
.snav-item.active { background: rgba(16,185,129,0.14); color: #4ade80; }
.snav-item.active::before { content:''; position:absolute; left:0; top:50%; transform:translateY(-50%); width:3px; height:58%; background:var(--primary); border-radius:0 3px 3px 0; }
.snav-item i { width: 17px; text-align: center; font-size: 0.87rem; flex-shrink: 0; }
.snav-badge { margin-left: auto; background: rgba(16,185,129,0.18); color: #34d399; font-size: 0.62rem; font-weight: 700; padding: 2px 7px; border-radius: 100px; min-width: 20px; text-align: center; }
.snav-logout { color: rgba(239,68,68,0.55) !important; margin-top: 4px; }
.snav-logout:hover { background: rgba(239,68,68,0.1) !important; color: #ef4444 !important; }
.snav-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 8px 18px; }
.sidebar-toggle { background: var(--bg-light); border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-gray); cursor: pointer; }

/* Topbar */
.atb-left { display: flex; align-items: center; gap: 14px; }
.atb-right { display: flex; align-items: center; gap: 10px; }
.atb-search { position: relative; display: inline-flex; align-items: center; }
.atb-search input { padding: 8px 36px 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-light); font-size: 0.82rem; color: var(--text-dark); outline: none; width: 220px; transition: border-color 0.18s, box-shadow 0.18s; }
.atb-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16,185,129,0.12); background: var(--bg-white); }
.atb-search i { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 0.78rem; pointer-events: none; z-index: 1; }
.atb-icon-btn { position: relative; width: 36px; height: 36px; border-radius: 8px; background: var(--bg-light); border: 1px solid var(--border); color: var(--text-gray); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: var(--transition); }
.atb-icon-btn:hover { background: var(--primary-ultra-light); color: var(--primary); }
.notif-dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; border: 2px solid var(--bg-white); }
.atb-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; cursor: pointer; }

/* Admin Card */
.admin-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.admin-card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.admin-card-title { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 8px; }
.module-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Stat cards */
.admin-stat-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.asc-green .asc-icon { background: rgba(16,185,129,0.1); color: var(--primary); }
.asc-blue .asc-icon { background: rgba(59,130,246,0.1); color: #3b82f6; }
.asc-amber .asc-icon { background: rgba(245,158,11,0.1); color: #f59e0b; }
.asc-purple .asc-icon { background: rgba(124,58,237,0.1); color: #7c3aed; }
.asc-red .asc-icon { background: rgba(239,68,68,0.1); color: #ef4444; }
.asc-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--text-dark); line-height: 1.1; }
.asc-label { font-size: 0.8rem; color: var(--text-gray); }
.asc-trend { font-size: 0.72rem; font-weight: 600; }
.asc-trend.up { color: #10b981; }
.asc-trend.down { color: #ef4444; }

/* TD Btn extended */
.td-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 8px;
    font-size: 0.8rem; font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-light);
    color: var(--text-gray);
    cursor: pointer; transition: all 0.18s ease;
    white-space: nowrap;
}
.td-btn:hover { background: var(--bg-white); color: var(--text-dark); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.td-btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white; border-color: transparent;
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}
.td-btn-primary:hover { background: linear-gradient(135deg,#0ea571,#047857); box-shadow: 0 4px 14px rgba(16,185,129,0.4); transform: translateY(-1px); }
.td-btn-edit { background: rgba(59,130,246,0.1); color: #2563eb; border-color: rgba(59,130,246,0.2); width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 8px; }
.td-btn-edit:hover { background: #3b82f6; color: white; border-color: #3b82f6; box-shadow: 0 3px 10px rgba(59,130,246,0.35); }
.td-btn-delete { background: rgba(239,68,68,0.1); color: #dc2626; border-color: rgba(239,68,68,0.2); width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 8px; }
.td-btn-delete:hover { background: #ef4444; color: white; border-color: #ef4444; box-shadow: 0 3px 10px rgba(239,68,68,0.35); }
.td-btn-view { background: rgba(16,185,129,0.1); color: var(--primary); border-color: rgba(16,185,129,0.2); width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 8px; }
.td-btn-view:hover { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 3px 10px rgba(16,185,129,0.35); }
.td-btn-danger { background: #ef4444; color: white; border-color: #ef4444; box-shadow: 0 2px 8px rgba(239,68,68,0.3); }
.td-btn-danger:hover { background: #dc2626; border-color: #dc2626; box-shadow: 0 4px 14px rgba(239,68,68,0.45); transform: translateY(-1px); }
.btn-actions-group { display: flex; align-items: center; gap: 6px; }

/* ── Card header action buttons ─────────────────────────── */
.btn-hdr-primary,
.btn-hdr-amber,
.btn-hdr-danger {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: 10px;
    font-size: 0.8rem; font-weight: 700;
    border: none; cursor: pointer;
    letter-spacing: 0.01em; white-space: nowrap;
    transition: all 0.2s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.btn-hdr-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 3px 12px rgba(16,185,129,0.35);
}
.btn-hdr-primary:hover {
    background: linear-gradient(135deg, #0ea571, #047857);
    box-shadow: 0 5px 18px rgba(16,185,129,0.5);
    transform: translateY(-2px);
}
.btn-hdr-amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 3px 12px rgba(245,158,11,0.35);
}
.btn-hdr-amber:hover {
    background: linear-gradient(135deg, #e8960a, #b45309);
    box-shadow: 0 5px 18px rgba(245,158,11,0.5);
    transform: translateY(-2px);
}
.btn-hdr-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 3px 12px rgba(239,68,68,0.3);
}
.btn-hdr-danger:hover {
    background: linear-gradient(135deg, #e03e3e, #b91c1c);
    box-shadow: 0 5px 18px rgba(239,68,68,0.45);
    transform: translateY(-2px);
}
.btn-hdr-primary:active,
.btn-hdr-amber:active,
.btn-hdr-danger:active { transform: translateY(0); }
.btn-hdr-outline {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 8px;
    font-size: 0.78rem; font-weight: 600;
    border: 1.5px solid var(--border);
    background: transparent; color: var(--text-gray);
    cursor: pointer; white-space: nowrap;
    transition: all 0.18s ease;
}
.btn-hdr-outline:hover {
    border-color: var(--primary); color: var(--primary);
    background: rgba(16,185,129,0.06);
}

/* TD Badges */
.td-badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px; border-radius: 4px; font-size: 0.72rem; font-weight: 600; }
.badge-mission { background: rgba(16,185,129,0.1); color: #059669; }
.badge-formation { background: rgba(59,130,246,0.1); color: #2563eb; }
.badge-seminar { background: rgba(124,58,237,0.1); color: #6d28d9; }
.badge-done { background: rgba(16,185,129,0.1); color: #059669; }
.badge-progress { background: rgba(245,158,11,0.12); color: #b45309; }
.badge-planned { background: rgba(59,130,246,0.1); color: #2563eb; }
.badge-article { background: rgba(16,185,129,0.1); color: #059669; }
.badge-draft { background: rgba(156,163,175,0.15); color: var(--text-gray); }

/* Form inputs admin (applies to plain inputs in admin) */
.admin-modal input[type=text],
.admin-modal input[type=email],
.admin-modal input[type=password],
.admin-modal input[type=number],
.admin-modal input[type=date],
.admin-modal input[type=file],
.admin-modal select,
.admin-modal textarea,
.admin-content input[type=text],
.admin-content input[type=email],
.admin-content input[type=password],
.admin-content input[type=number],
.admin-content select,
.admin-content textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.87rem;
    background: var(--bg-white);
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
    font-family: var(--font-body);
}
.admin-modal input:focus, .admin-modal select:focus, .admin-modal textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }
.admin-modal textarea { resize: vertical; min-height: 90px; }

/* am-title */
.am-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; color: var(--text-dark); }

/* Quick link buttons */
.quick-link-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: left;
}
.quick-link-btn:hover { border-color: var(--primary); background: var(--primary-ultra-light); color: var(--primary-dark); transform: translateX(3px); }
.quick-link-btn i { width: 18px; text-align: center; color: var(--primary); }

/* System bar */
.sys-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-gray); }

/* Gallery admin overlay */
.gal-admin-item { transition: var(--transition); }
.gal-admin-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center; gap: 6px;
    opacity: 0; transition: var(--transition);
}
.gal-admin-item:hover .gal-admin-overlay { opacity: 1; }

/* View item preview modal */
.vi-body  { padding: 16px 20px 20px; }
.vi-rows  { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.vi-row   { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-gray); }
.vi-row i { width: 16px; text-align: center; color: var(--primary); flex-shrink: 0; }
.vi-desc  { font-size: 0.875rem; line-height: 1.7; color: var(--text-dark); margin: 0; padding-top: 12px; border-top: 1px solid var(--border); }

/* Dashboard list items */
.db-list-item  { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.db-list-item:last-child { border-bottom: none; }
.db-thumb-book { width: 36px; height: 50px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.db-thumb-news { width: 52px; height: 36px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.db-thumb-empty { background: var(--bg-light); }
.db-list-text  { min-width: 0; flex: 1; }
.db-list-title { font-size: 0.83rem; font-weight: 600; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-list-sub   { font-size: 0.75rem; color: var(--text-gray); margin-top: 2px; }
.db-empty      { font-size: 0.85rem; color: var(--text-gray); text-align: center; padding: 16px 0; }

/* Delete confirm modal */
.del-modal-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(239,68,68,0.1);
    display: flex; align-items: center; justify-content: center;
    margin: 28px auto 18px;
    font-size: 1.6rem; color: #ef4444;
    animation: delIconPop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes delIconPop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
/* Admin toast */
.admin-toast {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}
.admin-toast.show { opacity: 1; transform: translateX(0); }

/* Blog page extended */
.blog-card-featured { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.blog-card-featured:hover { box-shadow: var(--shadow-lg); border-color: rgba(16,185,129,0.3); }
.blog-meta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.blog-cat { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 4px; font-size: 0.72rem; font-weight: 600; }
.cat-news { background: rgba(16,185,129,0.1); color: var(--primary-dark); }
.cat-tech { background: rgba(59,130,246,0.1); color: #2563eb; }
.cat-event { background: rgba(245,158,11,0.1); color: #b45309; }
.cat-partner { background: rgba(124,58,237,0.1); color: #6d28d9; }
.blog-date, .blog-read { font-size: 0.78rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.blog-title { font-family: var(--font-display); font-weight: 700; color: var(--text-dark); line-height: 1.35; margin-bottom: 10px; }
.blog-excerpt { font-size: 0.88rem; color: var(--text-gray); line-height: 1.65; margin-bottom: 16px; }
.btn-read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: var(--transition); }
button.btn-read-more { border: none; background: none; padding: 0; cursor: pointer; font: inherit; }
.btn-read-more:hover { color: var(--primary-dark); gap: 10px; }
.blog-card-body { padding: 20px; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* Actualités — liste horizontale */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.news-list-card {
    display: grid;
    grid-template-columns: minmax(200px, 300px) 1fr;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    min-height: 200px;
}
.news-list-card:hover {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: var(--shadow-md);
}
.news-list-card--featured {
    grid-template-columns: minmax(240px, 44%) 1fr;
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: var(--shadow-sm);
}
.news-list-media {
    position: relative;
    min-height: 200px;
    background: var(--bg-light);
    overflow: hidden;
}
.news-list-card--featured .news-list-media { min-height: 260px; }
.news-list-media img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
}
.news-list-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.news-list-body {
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-list-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 10px;
    font-size: 1.05rem;
}
.news-list-card--featured .news-list-title { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.news-list-excerpt {
    font-size: 0.92rem;
    color: var(--text-gray);
    line-height: 1.75;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-list-card--featured .news-list-excerpt { -webkit-line-clamp: 5; }
.recent-post:hover .rp-title { color: var(--primary); }
.recent-post .rp-img {
    width: 64px;
    height: 64px;
    overflow: hidden;
}
.recent-post .rp-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cat-training { background: rgba(59,130,246,0.1); color: #2563eb; }
.cat-award { background: rgba(245,158,11,0.12); color: #b45309; }

/* Recent posts extended */
.rp-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.rp-item:last-child { border-bottom: none; }
.rp-img { width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: rgba(255,255,255,0.7); }

/* SW categories */
.sw-categories { display: flex; flex-direction: column; gap: 6px; }
.sw-cat-btn { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-light); font-size: 0.83rem; color: var(--text-dark); cursor: pointer; transition: var(--transition); }
.sw-cat-btn:hover, .sw-cat-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.sw-cat-btn span { background: rgba(0,0,0,0.1); padding: 1px 7px; border-radius: 100px; font-size: 0.7rem; font-weight: 600; }

/* Gradient helpers */
.gradient-1 { background: linear-gradient(135deg, #044838, #10b981); }
.gradient-2 { background: linear-gradient(135deg, #1e3a5f, #3b82f6); }
.gradient-3 { background: linear-gradient(135deg, #4c1d95, #a78bfa); }

/* CTA */
.cta-section { padding: 60px 0; background: var(--bg-light); }
.cta-card { background: linear-gradient(135deg, var(--dark-green) 0%, #065f46 100%); border-radius: var(--radius-xl); padding: 60px 40px; position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 60px 60px; }
.cta-content { position: relative; z-index: 2; }
.cta-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #34d399; padding: 6px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; margin-bottom: 16px; }
.cta-card h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: white; margin-bottom: 12px; }
.cta-card p { color: rgba(255,255,255,0.7); font-size: 1rem; margin-bottom: 28px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: white; padding: 13px 28px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: var(--transition); }
.btn-cta-primary:hover { background: var(--primary-dark); transform: translateY(-2px); color: white; }
.btn-cta-secondary { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); color: white; padding: 13px 28px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.9rem; text-decoration: none; border: 1px solid rgba(255,255,255,0.2); transition: var(--transition); }
.btn-cta-secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); color: white; }

/* Btn outline custom */
.btn-outline-custom { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border: 2px solid var(--primary); border-radius: var(--radius-md); color: var(--primary); background: transparent; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: var(--transition); }
.btn-outline-custom:hover { background: var(--primary); color: white; }

/* Live dot small */
.live-dot-sm { display: inline-block; width: 7px; height: 7px; background: currentColor; border-radius: 50%; animation: livePulse 1.5s ease infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.4); } }

/* ======= RESPONSIVE ADMIN ======= */
@media (max-width: 992px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .adc-header { grid-template-columns: 1fr; }
    .adc-results-grid { grid-template-columns: repeat(2,1fr); }
    .act-detail-layout { grid-template-columns: 1fr; }
    .act-detail-media img { max-height: 48vh; }
    .news-list-card,
    .news-list-card--featured { grid-template-columns: 1fr; }
    .news-list-media { min-height: 220px; }
}
@media (max-width: 768px) {
    .gallery-masonry { columns: 2; column-gap: 12px; }
    .blog-grid { grid-template-columns: 1fr; }
    .publication-card { grid-template-columns: 1fr; }
    .pub-actions { flex-direction: row; flex-wrap: wrap; }
    .activities-timeline { padding-left: 28px; }
    .timeline-dot { left: -25px; }
    .act-detail-layout { gap: 1rem; }
    .news-list-card-body { padding: 16px; }
    .lightbox-overlay { padding: 10px; gap: 0; }
    .lightbox-stage { width: 100%; padding-top: 44px; }
    .lightbox-nav {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10062;
        width: 42px;
        height: 42px;
    }
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }
    .lightbox-close { position: fixed; top: 12px; right: 12px; }
    .lightbox-counter { position: fixed; top: 18px; left: 14px; }
}
@media (max-width: 576px) {
    .gallery-masonry { columns: 1; }
    .adc-results-grid { grid-template-columns: 1fr 1fr; }
    .page-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .page-hero p { font-size: 0.92rem; }
    .activities-timeline { padding-left: 20px; }
    .timeline-item { margin-bottom: 24px; }
    .activity-card-body { padding: 16px; }
    .pub-card-body { padding: 14px; }
}
