:root {
    --primary: #00B352;
    --primary-light: #f0fdf4;
    --primary-hover: #009c48;
    --dark: #0f172a;
    --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;
    --red-alert: #ef4444;
    --red-bg: #fef2f2;
    --blue-tag: #e0f2fe;
    --blue-tag-text: #0369a1;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: #f3f7f9;
    font-family: 'Outfit', sans-serif;
    color: var(--slate-800);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Header & Nav */
.top-nav {
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left { display: flex; align-items: center; gap: 48px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-dot { width: 12px; height: 12px; background: var(--primary); border-radius: 3px; }
.brand-name { font-weight: 700; font-size: 18px; color: var(--slate-900); }

.main-links { display: flex; gap: 24px; }
.main-links a { 
    text-decoration: none; 
    color: var(--slate-500); 
    font-size: 14px; 
    font-weight: 500; 
    transition: color 0.2s;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.main-links a.active { color: var(--primary); border-bottom-color: var(--primary); }
.main-links a:hover { color: var(--slate-900); }

.nav-right { display: flex; align-items: center; gap: 20px; }

.search-bar-top {
    display: flex;
    align-items: center;
    background: var(--slate-100);
    padding: 8px 12px;
    border-radius: 8px;
    width: 280px;
    color: var(--slate-500);
}
.search-bar-top input {
    background: none;
    border: none;
    outline: none;
    margin-left: 8px;
    width: 100%;
    font-size: 13px;
    color: var(--slate-900);
}

/* Layout */
.main-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}



/* Tabs */
.dept-tabs-container {
    margin: 32px 0;
    background: #e1edf3;
    padding: 6px;
    border-radius: 12px;
    display: flex;
}
.dept-tabs { display: flex; gap: 4px; width: 100%; }
.tab-btn {
    flex: 1;
    padding: 10px 16px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--slate-600);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.tab-btn:hover { background: rgba(255,255,255,0.4); }
.tab-btn.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }

.tab-unread {
    background: var(--red-alert);
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.local-search {
    flex: 1;
    background: white;
    padding: 11px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--slate-200);
}

.sort-filters {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--slate-200);
    background: white;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-700);
    outline: none;
    cursor: pointer;
    transition: 0.2s;
}

.filter-select:hover { border-color: var(--primary); }

.dept-badge {
    background: var(--slate-100);
    color: var(--slate-500);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 8px;
}
.local-search input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    color: var(--slate-900);
}

.posts-stack { display: flex; flex-direction: column; gap: 16px; }

/* Post Card */
.post-card {
    background: white;
    border-radius: 10px;
    padding: 12px 18px;
    border: 1px solid var(--slate-200);
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.post-card-title { font-size: 15px; font-weight: 600; color: var(--slate-900); }
.post-tag-badge { background: var(--blue-tag); color: var(--blue-tag-text); padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; }

.post-card-footer { display: flex; gap: 16px; font-size: 11px; color: var(--slate-400); font-weight: 500; margin-top: 4px; }
.post-footer-item { display: flex; align-items: center; gap: 6px; }

/* Sidebar */
.sidebar-card { background: #fdfefe; border-radius: 12px; padding: 24px; border: 1px solid #eef2f5; margin-bottom: 24px; }
.sidebar-card h3 { font-size: 12px; font-weight: 700; color: var(--slate-500); margin-bottom: 20px; letter-spacing: 0.05em; }

.metric-row { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 14px; font-weight: 500; }
.metric-val { color: var(--slate-900); font-weight: 700; }
.metric-val.highlight { color: var(--primary); font-size: 16px; }

/* Important Pinned Box */
.pinned-alert {
    background: var(--red-bg);
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    margin-bottom: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}
.pinned-alert:hover { transform: scale(1.02); }
.pinned-alert .alert-icon { color: var(--red-alert); margin-bottom: 10px; display: block; }
.pinned-alert-title { font-weight: 700; font-size: 14px; color: #991b1b; margin-bottom: 6px; }
.pinned-alert-desc { font-size: 12px; color: #b91c1c; opacity: 0.8; line-height: 1.4; }

/* Accordion in Card */
.post-body { display: none; padding-top: 20px; border-top: 1px solid var(--slate-100); margin-top: 20px; animation: slideIn 0.3s ease; }
.post-card.expanded .post-body { display: block; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* Bell & Notifications Redesign */
.bell-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bell-btn {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--slate-600);
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bell-btn:hover {
    background: var(--slate-100);
    color: var(--primary);
}

.bell-icon {
    width: 22px;
    height: 22px;
}

.bell-icon.ringing {
    animation: bell-ring 1s ease infinite;
    color: var(--primary);
}

.unread-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.bell-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
    display: none;
    z-index: 1000;
    overflow: hidden;
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bell-dropdown.active {
    display: block;
}

.dropdown-header {
    padding: 16px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-100);
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-900);
}

.dropdown-list {
    max-height: 350px;
    overflow-y: auto;
}

.dropdown-item {
    display: block;
    padding: 16px;
    text-decoration: none;
    border-bottom: 1px solid var(--slate-50);
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--slate-50);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--slate-400);
}

.dropdown-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--slate-400);
    font-size: 13px;
}

.dropdown-footer {
    padding: 12px;
    background: white;
    border-top: 1px solid var(--slate-100);
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.view-all-btn:hover {
    text-decoration: underline;
}

/* Utilities */
.btn-load-more { width: 100%; padding: 14px; background: white; border: 1px solid var(--slate-200); border-radius: 10px; font-weight: 600; color: var(--primary); cursor: pointer; transition: 0.2s; margin-top: 24px; }
.btn-load-more:hover { background: var(--primary-light); border-color: var(--primary); }

@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 10%, 30%, 50%, 70%, 90% { transform: rotate(10deg); } 20%, 40%, 60%, 80% { transform: rotate(-10deg); } }

/* Article specific styles (if needed) */
.article-view { max-width: 800px; margin: 40px auto; padding: 0 24px; }
.article-header { margin-bottom: 32px; }
.article-title { font-size: 36px; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.article-meta { display: flex; gap: 24px; color: var(--slate-500); font-size: 14px; }
.article-content { font-size: 17px; line-height: 1.8; color: var(--slate-800); }
.article-content p { margin-bottom: 20px; }
.article-content img { max-width: 100%; border-radius: 12px; margin: 24px 0; }
.hero-section{display:none;}
