/*
Theme Name: My NGO Jobs Premium
Theme URI: https://myngojobs.com
Author: Digital Entrepreneur
Description: A high-performance, SEO-optimized job board theme with JSON-LD Schema.
Version: 1.0.1
Text Domain: mnj
*/

/* 1. RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a202c;
    line-height: 1.6;
    margin: 0;
    background: #f9fafb;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Focus Accessibility */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* 2. WORDPRESS CORE CLASSES */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }

.wp-caption {
    border: 1px solid #f0f0f0;
    padding: 5px;
    text-align: center;
}

.wp-caption img {
    margin: 0 auto;
}

/* 3. PREMIUM PAGINATION */
.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.nav-links .page-numbers {
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-links .page-numbers.current {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.nav-links .page-numbers:hover:not(.current) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #2563eb;
}

/* 4. FORM ELEMENTS */

/* Select dropdown */
select {
    width: 100%;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 1em;
    padding: 10px 40px 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    appearance: none;
    cursor: pointer;
}

/* Inputs */
input {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px;
    width: 100%;
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
}

/* 5. JOB CONTENT TYPOGRAPHY */

.job-description-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.job-description-content p {
    margin-bottom: 1.2rem;
}

.job-description-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.job-description-content li {
    margin-bottom: 0.5rem;
}

/* 6. LAYOUT FIXES */

/* Sticky sidebar mobile fix */
@media (max-width: 1024px) {
    aside .sticky {
        position: static !important;
    }
}

/* 7. ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article {
    animation: fadeIn 0.4s ease both;
    will-change: transform, opacity;
}

/* 8. TRUST ELEMENTS (Google Jobs UX Boost) */
.verified-badge {
    display: inline-flex;
    align-items: center;
    background: #dcfce7;
    color: #166534;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* 9. UTILITIES */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 2.5rem; }

/* Add .blog-content to your existing typography rules */
.job-content,
.prose-content,
.blog-content {
    line-height: 1.8;
    color: #374151;
}

/* Bullet points and Numbering for Blogs */
.blog-content ul {
    list-style-type: disc !important;
    margin-left: 2rem !important;
    padding-left: 1rem;
    margin-bottom: 1.5rem !important;
}

.blog-content ol {
    list-style-type: decimal !important;
    margin-left: 2rem !important;
    padding-left: 1rem;
    margin-bottom: 1.5rem !important;
}

.blog-content li {
    margin-bottom: 0.75rem;
}

/* Images in Blog Posts */
.blog-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem auto;
}

/* Blockquotes for NGO Quotes */
.blog-content blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 1.5rem;
    font-style: italic;
    color: #1e3a8a;
    margin: 2rem 0;
}