/* Common styles for all pages */
* { margin: 0; padding: 0; box-sizing: border-box; }

p { 
    margin: 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    line-height: 1.5 !important;
}

.content p,
.article-body p,
.article-content p {
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; line-height: 1.6; color: #333; background: #f8f9fa; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* Header */
.header { background: #fff; padding: 16px 30px; border-bottom: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
.logo { font-size: 22px; font-weight: 700; color: #008060; text-decoration: none; }

/* Navigation */
.nav { display: flex; gap: 24px; align-items: center; position: relative; }
.nav a { color: #333; text-decoration: none; font-size: 15px; position: relative; z-index: 1; }
.nav a:hover { color: #008060; }
.nav a.active { color: #008060; font-weight: 600; }
.nav-close { display: none; position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 24px; cursor: pointer; }

/* User Menu */
.user-menu { position: relative; }
.user-dropdown a:hover { background: #f5f5f5; }

/* Login Modal */
.login-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 9999; display: none; align-items: center; justify-content: center; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* Buttons */
.btn { display: inline-block; padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; text-decoration: none; }
.btn, .btn-sm { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', Roboto, Oxygen, Ubuntu, sans-serif; }
.btn-primary { background: #008060; color: #fff; }
.btn-primary:hover { background: #006e50; }
.btn-secondary { background: #f0f0f0; color: #333; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* Messages */
.message { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Toast */
.toast { position: fixed; top: 20px; right: 20px; background: #28a745; color: #fff; padding: 16px 24px; border-radius: 8px; z-index: 10000; opacity: 0; transform: translateY(-20px); transition: opacity 0.3s, transform 0.3s; box-shadow: 0 4px 12px rgba(0,0,0,0.15); pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast.error { background: #dc3545; }
.toast.info { background: #17a2b8; }

/* Sections */
.section { background: #fff; border-radius: 8px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.section-title { font-size: 20px; font-weight: 700; color: #333; margin-bottom: 16px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.card-image { height: 200px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-content { padding: 16px; }
.card-content h3 { font-size: 18px; margin-bottom: 8px; }
.card-content p { color: #666; font-size: 14px; }

/* Page Header */
.page-header { background: linear-gradient(135deg, #008060 0%, #004d3a 100%); color: #fff; padding: 40px 20px; text-align: center; margin-bottom: 20px; border-radius: 8px; }
.page-header h1 { font-size: 32px; margin-bottom: 8px; }
.page-header p { opacity: 0.9; }

/* Search Box */
.search-section { margin-bottom: 20px; }
.search-box { display: flex; gap: 10px; max-width: 600px; margin: 0 auto; }
.search-box input { flex: 1; padding: 12px 16px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; }
.search-box button { padding: 12px 24px; background: #008060; color: #fff; border: none; border-radius: 6px; cursor: pointer; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
.table th { font-weight: 600; background: #f8f9fa; }

/* Forms */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

/* Footer */
.footer { background: #333; color: #fff; padding: 40px 20px; margin-top: 40px; }
.footer a { color: #fff; }

/* Mobile Navigation */
.mobile-nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; padding: 8px; }
.mobile-nav-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); z-index: 99; }

@media (max-width: 768px) {
    .header { padding: 12px 16px; }
    .mobile-nav-toggle { display: block; }
    .nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #fff; z-index: 1000; flex-direction: column; padding: 20px; }
    .nav.mobile-open { display: flex; }
    .nav-close { display: block; }
    .nav a { padding: 12px 0; border-bottom: 1px solid #eee; }
    .mobile-nav-overlay.open { display: block; }
    .user-menu { width: 100%; margin-top: 20px; }
    .form-row { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
    .nav a { padding: 8px 0; }
}