/*
Theme Name: NaukriSeeker Custom Theme
Theme URI: https://naukriseeker.in
Author: NaukriSeeker Team
Description: A high-performance, custom-built job portal theme optimized for SEO and speed.
Version: 1.0
Text Domain: naukriseeker
*/

/* ==========================================================================
   1. Base Setup & Variables
   ========================================================================== */
:root {
    --primary-color: #0056b3; /* Trustworthy Blue */
    --secondary-color: #f8f9fa; /* Light Gray Background */
    --text-color: #333333;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

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

a:hover {
    color: #003d82;
}

.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   3. Job Board Archive (archive-job_listing.php)
   ========================================================================== */
.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.job-board-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.job-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.job-card-title {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.job-card-meta {
    font-size: 14px;
    color: #666;
}

.location-divider {
    margin: 0 5px;
    color: #ccc;
}

.job-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.job-badge {
    background-color: #e6f2ff;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.btn-view-job {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.btn-view-job:hover {
    background-color: #003d82;
    color: var(--white);
}

/* ==========================================================================
   4. Single Job Post (single-job_listing.php)
   ========================================================================== */
.job-single-article {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
}

.job-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.job-title {
    font-size: 32px;
    margin: 0 0 10px 0;
}

.job-meta-top span {
    margin-right: 15px;
    font-size: 16px;
    color: #555;
}

.job-quick-facts {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.job-quick-facts ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.job-description h2 {
    font-size: 22px;
    margin-top: 30px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.job-action-area {
    margin-top: 40px;
    text-align: center;
}

.btn-apply-now {
    display: inline-block;
    background-color: #28a745; /* Action Green */
    color: var(--white);
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-apply-now:hover {
    background-color: #218838;
    color: var(--white);
}

/* ==========================================================================
   5. Responsive Design (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .job-card-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .job-single-article {
        padding: 20px;
    }
}

/* ==========================================================================
   6. Homepage Styles (front-page.php)
   ========================================================================== */
.hero-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 40px;
    margin: 0 0 15px 0;
}

.hero-subtitle {
    font-size: 20px;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

.btn-hero {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

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

.section-title {
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.view-all-container {
    text-align: center;
    margin-top: 30px;
}

.btn-view-all {
    padding: 12px 30px;
    font-size: 16px;
}

/* ==========================================================================
   7. Homepage Search Bar
   ========================================================================== */
.hero-search {
    margin-top: 30px;
}

.job-search-form {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    gap: 10px;
}

.search-field {
    flex-grow: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    outline: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-submit {
    background-color: #28a745; /* Action Green */
    color: var(--white);
    border: none;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-submit:hover {
    background-color: #218838;
}

.search-submit:active {
    transform: translateY(2px);
}

/* Mobile Adjustments for the Search Bar */
@media (max-width: 600px) {
    .job-search-form {
        flex-direction: column;
    }
    
    .search-submit {
        width: 100%;
    }
}

/* ==========================================================================
   8. Breadcrumbs
   ========================================================================== */
.nk-breadcrumbs {
    font-size: 14px;
    margin-bottom: 25px;
    color: #666;
}

.nk-breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.nk-breadcrumbs li {
    display: inline-block;
}

.nk-breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.nk-breadcrumbs a:hover {
    text-decoration: underline;
}

.nk-breadcrumbs .separator {
    margin: 0 8px;
    color: #ccc;
    font-size: 12px;
}

.nk-breadcrumbs .current-item {
    color: var(--text-color);
    font-weight: 500;
}

/* ==========================================================================
   9. Footer Styling
   ========================================================================== */
.site-footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px 20px;
    text-align: center;
    margin-top: 60px; /* Pushes the footer down away from the content */
}

.footer-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-navigation a {
    color: #666;
    font-size: 14px;
}

.footer-navigation a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.site-info {
    font-size: 14px;
    color: #999;
}

/* ==========================================================================
   10. Sidebar & Layout
   ========================================================================== */
.layout-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.layout-main {
    flex: 1; /* Takes up all remaining space */
    min-width: 0; /* Prevents overflow bugs */
}

.job-sidebar {
    width: 320px; /* Standard width for large AdSense banners */
    flex-shrink: 0;
}

.widget {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* Mobile Adjustments for Sidebar */
@media (max-width: 992px) {
    .layout-container {
        flex-direction: column;
    }
    
    .job-sidebar {
        width: 100%;
    }
}