/* ============================
   CARU Education Jobs - Styles
   ============================ */

/* CSS Variables - Seventh-day Adventist Colors */
:root {
    --primary-color: #003366;
    --primary-dark: #002244;
    --secondary-color: #64748b;
    --accent-gold: #D4AF37;
    --accent-gold-dark: #B8941F;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 0.5rem;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
}

.navbar-logo {
    height: 50px;
    width: auto;
}

.navbar-text {
    color: var(--dark-color);
}

.navbar-brand .logo {
    color: var(--primary-color);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

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

.inline-form {
    display: inline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #475569;
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
    color: var(--white);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

/* Hero Section - SDA Colors */
.hero {
    background: linear-gradient(135deg, #003366 0%, #00509e 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-actions .btn-primary {
    background: var(--accent-gold);
    color: var(--primary-color);
    border-color: var(--accent-gold);
    font-weight: 700;
}

.hero-actions .btn-primary:hover {
    background: var(--accent-gold-dark);
    color: var(--primary-color);
    border-color: var(--accent-gold-dark);
}

.hero-actions .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.hero-actions .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Director Message Section */
.director-message {
    background: var(--white);
    padding: 5rem 0;
}

.message-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.director-photo {
    position: relative;
}

.director-photo img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--accent-gold);
}

.message-text {
    padding: 1rem 0;
}

.message-label {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.message-text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.director-title {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.message-text blockquote {
    border-left: 4px solid var(--accent-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
}

.message-text blockquote p {
    margin-bottom: 1rem;
}

.message-text blockquote p:last-child {
    margin-bottom: 0;
}

.signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    color: var(--text-primary);
}

.signature strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.signature span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* Responsive adjustments for director message */
@media (max-width: 768px) {
    .message-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .director-photo {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .message-text h2 {
        font-size: 1.5rem;
    }
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Featured Jobs Section */
.featured-jobs {
    padding: 4rem 0;
    background: var(--white);
}

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

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.job-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.job-header h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    flex: 1;
}

.job-conference {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.job-location,
.job-subject,
.job-grade,
.job-salary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.job-description {
    color: var(--text-secondary);
    margin: 1rem 0;
    flex: 1;
}

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

.job-deadline {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
}

.badge-large {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.badge-primary {
    background: #e6f0ff;
    color: var(--primary-color);
}

.badge-secondary {
    background: #f1f5f9;
    color: #475569;
}

.badge-open {
    background: #d1fae5;
    color: #065f46;
}

.badge-closed {
    background: #fee2e2;
    color: #991b1b;
}

.badge-filled {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-reviewed {
    background: #dbeafe;
    color: #1e40af;
}

.badge-shortlisted {
    background: #e0e7ff;
    color: #4338ca;
}

.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.badge-accepted {
    background: #d1fae5;
    color: #065f46;
}

/* CTA Section - SDA Colors */
.cta {
    background: linear-gradient(135deg, #003366 0%, #00509e 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
}

.auth-card-wide {
    max-width: 700px;
}

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

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-section-title {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.error-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--danger-color);
}

.form-group-checkbox {
    margin-bottom: 1.5rem;
}

.form-group-checkbox label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.form-group-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Dashboard */
.dashboard-container {
    padding: 2rem 0;
}

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

.dashboard-header h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.dashboard-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.dashboard-section .section-header {
    margin-bottom: 1.5rem;
}

.dashboard-section h2 {
    font-size: 1.75rem;
    color: var(--dark-color);
}

/* Applications List */
.applications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.application-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.application-item:hover {
    box-shadow: var(--shadow-md);
}

.application-info h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.application-conference,
.application-job {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.application-date,
.application-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.application-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Application Cards */
.application-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.application-card:hover {
    box-shadow: var(--shadow-md);
}

.application-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.application-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.application-card-body {
    margin-bottom: 1rem;
}

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

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

.application-card-footer {
    display: flex;
    gap: 1rem;
}

/* Jobs Table */
.jobs-table {
    overflow-x: auto;
}

.jobs-table table {
    width: 100%;
    border-collapse: collapse;
}

.jobs-table th {
    background: var(--light-bg);
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
}

.jobs-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.jobs-table tr:hover {
    background: var(--light-bg);
}

/* Page Container */
.page-container {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Job Detail */
.job-detail {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.job-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.job-detail-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.job-conference-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.job-meta {
    display: flex;
    gap: 0.5rem;
}

.job-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.job-section {
    margin-bottom: 2rem;
}

.job-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.job-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.job-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item strong {
    color: var(--dark-color);
}

.info-item span {
    color: var(--text-secondary);
    text-align: right;
}

.applications-stats {
    display: flex;
    justify-content: space-around;
}

.stat-mini {
    text-align: center;
}

.stat-mini .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-mini .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Form Card */
.form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

/* Application Detail */
.application-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.info-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.info-section:last-child {
    border-bottom: none;
}

.info-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.info-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-section p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.qualification-box,
.cover-letter-box,
.notes-box {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.cover-letter-box {
    white-space: pre-wrap;
    line-height: 1.8;
}

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

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    opacity: 0.5;
}

.status-item.active {
    opacity: 1;
    background: var(--light-bg);
    border: 2px solid var(--primary-color);
}

.status-item.completed {
    opacity: 0.8;
}

.status-icon {
    font-size: 1.5rem;
}

.status-text {
    font-weight: 600;
    color: var(--dark-color);
}

/* Info Box */
.info-box {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-box ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
}

.empty-state h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Pagination */
.pagination-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* Text Utilities */
.text-muted {
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .job-detail-content,
    .application-detail-content {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.85rem 0;
    }

    .navbar .container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
    }

    .navbar-brand {
        justify-content: center;
        gap: 0.6rem;
        text-align: left;
    }

    .navbar-logo {
        height: 44px;
        flex-shrink: 0;
    }

    .navbar-text {
        max-width: 18rem;
        font-size: 1rem;
        line-height: 1.25;
    }

    .navbar-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        width: 100%;
    }

    .navbar-menu .nav-link,
    .navbar-menu .btn,
    .navbar-menu .inline-form,
    .navbar-menu .inline-form .btn {
        width: 100%;
    }

    .navbar-menu .nav-link,
    .navbar-menu .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.55rem 0.8rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .application-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .application-status {
        width: 100%;
        justify-content: space-between;
    }

    .application-card-header {
        flex-direction: column;
        gap: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .jobs-table {
        font-size: 0.85rem;
    }

    .jobs-table th,
    .jobs-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .navbar-brand {
        align-items: center;
    }

    .navbar-logo {
        height: 40px;
    }

    .navbar-text {
        max-width: 15.5rem;
        font-size: 0.95rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .features,
    .featured-jobs,
    .cta {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .page-header h1,
    .dashboard-header h1 {
        font-size: 1.75rem;
    }

    .job-detail-header {
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================
   Search & Filters
   ============================ */

.search-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

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

.search-main {
    width: 100%;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.search-btn {
    padding: 0.875rem 1.5rem;
    white-space: nowrap;
}

.filters-toggle {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filters-panel {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.sort-section label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.sort-select {
    max-width: 200px;
}

.results-info {
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.results-info strong {
    font-weight: 700;
}

@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .sort-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-select {
        max-width: 100%;
        width: 100%;
    }
}

/* ============================
   Email Verification Banner
   ============================ */

.verification-banner {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: var(--white);
    padding: 1rem;
    text-align: center;
}

.verification-banner .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.verification-banner p {
    margin: 0;
}

.verification-banner .btn {
    background: var(--white);
    color: var(--warning-color);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.verification-banner .btn:hover {
    background: var(--light-bg);
}

/* ============================
   Password Reset Styles
   ============================ */

.password-reset-info {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.password-reset-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.auth-links a {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.verification-success {
    text-align: center;
    padding: 2rem;
}

.verification-success h2 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* ============================
   Developer / Onboarding Guide
   (local env only — see partials/dev-onboarding.blade.php)
   ============================ */

.dev-guide {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004a8f 100%);
    color: var(--white);
    border: none;
}

.dev-guide h2,
.dev-guide h3 {
    color: var(--white);
    margin: 0;
}

.dev-guide p {
    color: rgba(255, 255, 255, 0.92);
}

.dev-guide a {
    color: var(--accent-gold);
}

.dev-guide-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 1rem;
    align-items: flex-start;
}

.dev-guide-banner {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.dev-guide-toggle {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.dev-guide-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-1px);
}

.dev-guide-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
}

.dev-guide-body[hidden] {
    display: none;
}

.dev-guide-block {
    background: rgba(255, 255, 255, 0.07);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dev-guide-block > h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.dev-guide-accounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.dev-guide-account {
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.dev-guide-account.is-current {
    background: rgba(212, 175, 55, 0.14);
    border: 2px solid var(--accent-gold);
}

.dev-guide-account-role {
    display: block;
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.dev-guide-account dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.15rem 0.5rem;
    margin: 0;
    font-size: 0.85rem;
}

.dev-guide-account dt {
    font-weight: 600;
    opacity: 0.75;
}

.dev-guide-account dd {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    word-break: break-all;
}

.dev-guide-account-note {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    opacity: 0.85;
}

.dev-guide-account code {
    background: rgba(255, 255, 255, 0.15);
    padding: 0 0.25rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.dev-guide-steps {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.75;
}

.dev-guide-steps li {
    margin: 0.3rem 0;
}

.dev-guide-steps kbd {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.dev-guide-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.dev-guide-checklist ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dev-guide-checklist li {
    padding: 0.3rem 0 0.3rem 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.dev-guide-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.85rem;
    height: 0.5rem;
    border-left: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    transform: rotate(-45deg);
}

.dev-guide-statuses {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
}

.dev-guide-status-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.dev-guide-status-row .badge {
    min-width: 110px;
    text-align: center;
    flex-shrink: 0;
}

.dev-guide-tip {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    opacity: 0.9;
}

.dev-guide-cta {
    margin-top: 0.5rem;
    padding: 1.25rem;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius);
    text-align: center;
}

.dev-guide-cta p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.dev-guide-cta a {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    color: var(--accent-gold);
    font-weight: 700;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--radius);
    transition: var(--transition);
}

.dev-guide-cta a:hover {
    background: rgba(212, 175, 55, 0.25);
    color: var(--white);
    border-color: var(--accent-gold);
}

@media (max-width: 768px) {
    .dev-guide-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .dev-guide-accounts,
    .dev-guide-checklist {
        grid-template-columns: 1fr;
    }

    .dev-guide-status-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
}

