@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Font Families */
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-accent: 'Outfit', sans-serif;

    /* Light Theme Palette */
    --bg-base: #f1f5f9;
    --bg-surface: rgba(255, 255, 255, 0.65);
    --bg-surface-solid: #ffffff;
    --bg-hover: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: rgba(226, 232, 240, 0.8);
    
    /* Brand Colors (Dark Blue & Sky Blue Theme) */
    --primary: #1e3a8a;
    --primary-hover: #172554;
    --primary-light: rgba(30, 58, 138, 0.1);
    --secondary: #2563eb;
    --secondary-light: rgba(37, 99, 235, 0.1);
    --accent: #0284c7;
    
    /* Semantic Colors */
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --danger: #f43f5e;
    --danger-light: rgba(244, 63, 94, 0.1);
    --info: #0ea5e9;
    --info-light: rgba(14, 165, 233, 0.1);

    /* Card Details / Glassmorphism */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 20px -5px rgba(0,0,0,0.05), 0 3px 8px -3px rgba(0,0,0,0.02);
    --shadow-lg: 0 20px 35px -10px rgba(0,0,0,0.07), 0 10px 15px -5px rgba(0,0,0,0.04);
    --glass-blur: 24px;
    --glass-border: rgba(255, 255, 255, 0.6);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Dark Theme Palette override */
[data-theme="dark"] {
    --bg-base: #060913;
    --bg-surface: rgba(15, 23, 42, 0.45);
    --bg-surface-solid: #0f172a;
    --bg-hover: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: rgba(51, 65, 85, 0.4);
    --glass-border: rgba(255, 255, 255, 0.04);
    
    /* Dark Theme Brighter Brand Colors */
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: rgba(59, 130, 246, 0.2);
    --secondary: #60a5fa;
    --secondary-light: rgba(96, 165, 250, 0.2);
    --accent: #38bdf8;
    --success-light: rgba(16, 185, 129, 0.2);
    --warning-light: rgba(245, 158, 11, 0.2);
    --danger-light: rgba(244, 63, 94, 0.2);
    --info-light: rgba(14, 165, 233, 0.2);
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.4);
    --shadow-md: 0 10px 20px -5px rgba(0,0,0,0.6);
    --shadow-lg: 0 25px 40px -10px rgba(0,0,0,0.8);
}

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

body {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-accent);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

input, button, select, textarea {
    font-family: inherit;
}

/* Glassmorphism Background Pattern */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.25;
    animation: float 25s infinite ease-in-out;
}

[data-theme="dark"] .blob {
    opacity: 0.15;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.blob-2 {
    width: 700px;
    height: 700px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    bottom: -250px;
    right: -150px;
    animation-delay: 6s;
}

.blob-3 {
    width: 500px;
    height: 500px;
    background: var(--info);
    top: 35%;
    right: 15%;
    animation-delay: 12s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.15); }
}

/* Glass Card Definition */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

/* Typography Helpers */
.title-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.65rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    margin: 0.5rem 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.logo i {
    color: var(--primary);
    font-size: 1.5rem;
    filter: drop-shadow(0 4px 10px var(--primary-light));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-item {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: var(--text-secondary);
}

.nav-item:hover, .nav-item.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

[data-theme="dark"] .nav-item:hover, [data-theme="dark"] .nav-item.active {
    color: #a5b4fc;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background-color: var(--bg-surface-solid);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-hover);
    transform: translateY(-2px);
}

.share-btn {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    border-radius: 50% !important;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.share-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.2);
}

.btn-danger:hover {
    background-color: #e11d48;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(244, 63, 94, 0.4);
}

.btn-success {
    background-color: var(--success);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.4);
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 50%;
    aspect-ratio: 1/1;
    width: 38px;
    height: 38px;
}

/* Page Layouts */
main {
    flex: 1;
    padding: 1.25rem 1.5rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.hero {
    text-align: center;
    padding: 1.5rem 1rem 1rem;
}

.hero h1 {
    font-size: 2.15rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.hero p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 1.25rem;
    line-height: 1.5;
}

/* Search bar component */
.search-container {
    max-width: 750px;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    background: var(--bg-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-lg);
    background: var(--bg-surface-solid);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0.75rem;
}

.search-icon {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.search-container:focus-within .search-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.search-container select {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    outline: none;
    cursor: pointer;
    padding-right: 1.75rem;
    border-left: 2px solid var(--border-color);
    padding-left: 1.25rem;
    font-size: 0.875rem;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 1.1rem;
}

[data-theme="dark"] .search-container select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.search-container select:hover {
    color: var(--primary);
}

/* Tabs Navigation */
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.4rem;
    flex-wrap: wrap;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 0.45rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.tab-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

/* Grid Layouts for Sections */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.15rem;
    margin-top: 1rem;
}

/* Content Cards with Type Borders */
.card {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Glow indicators based on type */
.card[data-category] {
    border-top: 5px solid var(--primary);
}

/* Customized border gradients per section */
.badge-study, .card:has(.badge-study) { border-top-color: var(--info) !important; }
.badge-job, .card:has(.badge-job) { border-top-color: var(--success) !important; }
.badge-apprentice, .card:has(.badge-apprentice) { border-top-color: var(--primary) !important; }
.badge-notice, .card:has(.badge-notice) { border-top-color: var(--warning) !important; }
.badge-staff, .card:has(.badge-staff) { border-top-color: var(--danger) !important; }

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

/* Add custom box glows on hover */
.card:has(.badge-study):hover { box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.2); }
.card:has(.badge-job):hover { box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.2); }
.card:has(.badge-apprentice):hover { box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.2); }
.card:has(.badge-notice):hover { box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.2); }
.card:has(.badge-staff):hover { box-shadow: 0 20px 40px -10px rgba(244, 63, 94, 0.2); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
}

.card-badge {
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.25;
}

.card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.85rem;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    font-size: 0.8rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.detail-value {
    color: var(--text-secondary);
    font-weight: 600;
    text-align: right;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: auto;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Authentication Page */
.auth-container {
    max-width: 450px;
    width: 100%;
    margin: auto;
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 10px var(--primary-light));
}

.auth-header h2 {
    font-size: 2rem;
}

/* Forms styling */
.form-group {
    margin-bottom: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface-solid);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--bg-surface-solid);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    list-style: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 700;
    transition: var(--transition);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.dashboard-main {
    padding: 1.5rem;
    overflow-y: auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.15rem;
}

.stat-card {
    padding: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info h4 {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.stat-info p {
    font-size: 1.65rem;
    font-weight: 800;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary);
    background: var(--primary-light);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Post Status Indicators */
.status-badge {
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.05em;
}
.status-draft { background: var(--bg-hover); color: var(--text-secondary); }
.status-pending_approval { background: var(--warning-light); color: var(--warning); }
.status-published { background: var(--success-light); color: var(--success); }
.status-rejected { background: var(--danger-light); color: var(--danger); }
.status-archived { background: #334155; color: #f8fafc; }

/* Custom Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th {
    padding: 0.6rem 0.85rem;
    background: var(--bg-hover);
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: 0.05em;
}

.table td {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.table tr:hover td {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.action-row {
    display: flex;
    gap: 0.65rem;
}

/* Alert system */
.alerts-container {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alert-toast {
    padding: 1.15rem 1.75rem;
    border-radius: var(--radius-sm);
    color: white;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    animation: slideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 320px;
    font-weight: 600;
}

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

.alert-toast.success { background: var(--success); }
.alert-toast.error { background: var(--danger); }
.alert-toast.warning { background: var(--warning); }
.alert-toast.info { background: var(--info); }

/* Useful Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.link-card {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    border-top: 5px solid var(--secondary) !important;
}

.link-card i {
    font-size: 2rem;
    color: var(--secondary);
    transition: var(--transition);
}

.link-card:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 10px var(--secondary-light));
}

.link-card:hover {
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.2);
}

/* Footer Section */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.35rem;
    color: var(--text-secondary);
    padding: 0.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

/* Layout Grids */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
}

/* Mobile hamburger button */
.nav-mobile-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1010;
    transition: var(--transition);
}

.nav-mobile-btn:hover {
    color: var(--primary);
}

/* Live News Ticker */
.ticker-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 1rem 1rem;
    padding: 0.35rem 1rem;
    height: 36px;
    border-radius: 50px;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 600;
}

.ticker-badge {
    background: linear-gradient(135deg, var(--danger) 0%, #be123c 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.25);
    white-space: nowrap;
}

.ticker-bar marquee {
    flex: 1;
    color: var(--text-secondary);
}

.ticker-bar marquee a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Stats Trust Banner */
.stats-trust-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem auto 0;
    max-width: 800px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-item .val {
    font-family: var(--font-accent);
    font-weight: 800;
    font-size: 2.25rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-item .lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.trust-sep {
    width: 2px;
    height: 40px;
    background-color: var(--border-color);
}

/* FAQ Accordion Section */
.faq-section {
    padding: 1.5rem 0;
}

.faq-item {
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.faq-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-answer {
    max-height: 200px !important;
    margin-top: 0.5rem;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--danger) !important;
}

.faq-question i {
    transition: var(--transition);
}

@media (max-width: 900px) {
    .nav-mobile-btn {
        display: flex;
    }
    
    header {
        position: relative;
        padding: 1rem 1.5rem;
        margin: 0.5rem;
        gap: 1rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface-solid);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius-md);
        padding: 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
        z-index: 999;
        margin: 0.5rem 0.5rem;
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-actions {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .trust-sep {
        display: none;
    }
    
    .stats-trust-banner {
        gap: 1.5rem;
    }
    
    .trust-item .val {
        font-size: 1.75rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .search-container {
        flex-direction: column;
        border-radius: 24px;
        padding: 0.85rem;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .search-container select {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0.5rem;
        padding-top: 0.85rem;
        margin-top: 0.25rem;
        width: 100%;
        background-position: right 0.5rem center;
    }
    
    main {
        padding: 1.5rem 1rem;
    }

    .about-grid, .vision-mission-grid, .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Update Columns inside News Grid */
.update-col {
    background: var(--bg-surface);
    transition: var(--transition);
}

.update-col:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.update-item {
    transition: var(--transition);
}

.update-item:hover .update-text {
    color: var(--primary) !important;
    transform: translateX(4px);
}

.update-text {
    transition: var(--transition);
}

.news-feed-item {
    transition: var(--transition);
}

.news-feed-item:hover {
    padding-left: 0.75rem;
    border-color: var(--primary-light) !important;
}

/* CKEditor Dark Theme Overrides */
[data-theme="dark"] .ck.ck-editor__main>.ck-editor__editable {
    background: var(--bg-surface-solid) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}
[data-theme="dark"] .ck.ck-toolbar {
    background: var(--bg-surface-solid) !important;
    border-color: var(--border-color) !important;
}
[data-theme="dark"] .ck.ck-button {
    color: var(--text-secondary) !important;
}
[data-theme="dark"] .ck.ck-button:hover {
    background: var(--bg-hover) !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .ck.ck-button.ck-on {
    background: var(--primary) !important;
    color: #ffffff !important;
}
[data-theme="dark"] .ck.ck-dropdown__panel {
    background: var(--bg-surface-solid) !important;
    border-color: var(--border-color) !important;
}

/* Contributors Horizontal Scrollbar Styles */
.contributors-scroll::-webkit-scrollbar {
    height: 6px;
}
.contributors-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}
[data-theme="dark"] .contributors-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.contributors-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}
.contributors-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* CKEditor Custom Sizing */
.ck.ck-editor__main > .ck-editor__editable {
    min-height: 400px;
}
