/* actuary.info - Pages Stylesheet */

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

:root {
    --bg-primary: #fafafa;
    --bg-card: #ffffff;
    --bg-dark: #1a1a2e;
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a72;
    --text-muted: #8a8a9a;
    --border: #e8e8ec;
    --border-light: #f0f0f4;
    --accent-blue: #2563eb;
    --accent-green: #059669;
    --accent-cyan: #0891b2;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Header */
header { background: var(--bg-dark); }

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}
.logo span { color: #60a5fa; }

.header-right { display: flex; align-items: center; gap: 1rem; }

.header-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
}

.header-actions { display: flex; gap: 0.5rem; }

.btn-signin {
    padding: 0.5rem 1rem;
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}
.btn-signin:hover { background: rgba(255,255,255,0.1); }

.btn-subscribe {
    padding: 0.5rem 1rem;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-subscribe:hover { background: #1d4ed8; }

nav {
    display: flex;
    justify-content: center;
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.08);
}

nav a {
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}
nav a:hover { color: white; }
nav a.active { color: white; border-bottom-color: white; }

/* Page Header */
.page-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 2rem;
    text-align: left;
}

.page-header h1 {
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
}

.page-header-centered {
    text-align: center;
}
.page-header-centered p {
    margin: 0 auto;
}

/* Main */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.main-narrow {
    max-width: 700px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.btn-primary:hover { background: #1d4ed8; }

.btn-secondary {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.btn-secondary:hover { background: var(--bg-primary); }

.btn-full { width: 100%; }

/* Filters */
.filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filters select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
}

.filters .btn-primary { margin-left: auto; }

/* Jobs */
.job-list { display: flex; flex-direction: column; gap: 1rem; }

.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    transition: border-color 0.15s;
}
.job-card:hover { border-color: var(--accent-blue); }

.job-header { margin-bottom: 0.5rem; }
.job-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.125rem;
}
.job-company { font-weight: 500; }

.job-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.job-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.job-tags, .consultant-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.tag {
    padding: 0.2rem 0.5rem;
    background: var(--bg-primary);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Consultants */
.consultant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.consultant-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    transition: border-color 0.15s;
}
.consultant-card:hover { border-color: var(--accent-blue); }

.consultant-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.consultant-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.consultant-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.credentials {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 500;
}

.company {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.consultant-tags { margin-bottom: 0.75rem; }
.consultant-tags .tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
}

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

.consultant-location {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Forms */
.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-intro {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

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

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
}

/* Info Section */
.info-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.info-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.steps { display: flex; flex-direction: column; gap: 1rem; }

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-num {
    width: 32px;
    height: 32px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 2rem;
    margin-top: 2rem;
}

/* News List Full (Category Pages) */
.news-list-full {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-list-full .news-item {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    background: white;
    transition: background 0.15s;
}

.news-list-full .news-item:first-child {
    border-radius: 10px 10px 0 0;
}

.news-list-full .news-item:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.news-list-full .news-item:only-child {
    border-radius: 10px;
}

.news-list-full .news-item:hover {
    background: var(--bg-primary);
}

.news-list-full .news-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-list-full .news-headline {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.35rem;
    transition: color 0.15s;
}

.news-list-full .news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-list-full .news-meta .source {
    font-weight: 500;
    color: var(--text-secondary);
}

.no-articles, .error {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    background: white;
    border-radius: 10px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.footer-brand .logo { display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.4rem; }
.footer-section a { font-size: 0.85rem; }
.footer-section a:hover { color: white; }

.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top { flex-direction: column; gap: 1rem; }
    .header-right { flex-direction: column; gap: 0.75rem; }
    nav { overflow-x: auto; justify-content: flex-start; padding: 0 1rem; }
    nav a { white-space: nowrap; }
    main { padding: 1rem; }
    .form-row { grid-template-columns: 1fr; }
    .filters { flex-direction: column; align-items: stretch; }
    .filters .btn-primary { margin-left: 0; }
    .consultant-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-links { grid-template-columns: 1fr; }
}
