/*
Theme Name: Pro Job Alert Ultra
Theme URI: https://example.com/pro-job-alert-ultra/
Author: Your Name
Author URI: https://example.com/
Description: A highly optimized, ultra-fast Job Portal theme built from scratch.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: projobalertultra
Tags: job-portal, fast, lightweight, seo-optimized
*/

/*--------------------------------------------------------------
1.0 - Color & Font Mapping (CSS Custom Properties)
--------------------------------------------------------------*/
:root {
	--primary-color: #0073e6; /* A professional, catchy blue */
	--accent-color: #00a859; /* A vibrant green for call to actions */
	--text-color: #333333;
	--text-light-color: #757575;
	--border-color: #e0e0e0;
	--background-light: #f8f9fa;
	--background-white: #ffffff;
	--header-height: 90px;
	--header-height-mobile: 70px;

	/* Trending Box Colors */
	--trending-color-1: #d9534f; /* Red */
	--trending-color-2: #5cb85c; /* Green */
	--trending-color-3: #f0ad4e; /* Orange */
	--trending-color-4: #5bc0de; /* Info Blue */

	/* Job Card Detail Item Styling (Mobile View) */
	--detail-value-1-color: #404040;
	--detail-value-1-font-weight: bold;
	--detail-value-2-color: #004080;
	--detail-value-2-font-weight: bold;
	--detail-value-3-color: green;
	--detail-value-3-font-weight: bold;
	--detail-value-4-color: red;
	--detail-value-4-font-weight: bold;
}

/*--------------------------------------------------------------
2.0 - General & Reset
--------------------------------------------------------------*/
html {
	/* Prevents layout shift (CLS) caused by the scrollbar appearing/disappearing */
	scrollbar-gutter: stable;
}

body { color: var(--text-color); background-color: var(--background-white); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; line-height: 1.6; margin: 0; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.2s ease-in-out; }
a:hover { color: var(--accent-color); }
.wrap { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/* Screen-reader text */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); -webkit-clip-path: inset(50%); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* Menu Overlay */
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 99; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.mobile-menu-open .menu-overlay { opacity: 1; visibility: visible; }

/* Search Overlay */
.search-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(255, 255, 255, 0.95); z-index: 101; display: flex; align-items: center; justify-content: center; transform: translateX(100%); transition: transform 0.3s ease-in-out; visibility: hidden; }
.search-overlay-open .search-overlay { transform: translateX(0); visibility: visible; }
.search-overlay-content { max-width: 600px; width: 90%; text-align: center; position: relative; }
.search-overlay-close { position: absolute; top: -60px; right: -20px; background: none; border: none; cursor: pointer; color: var(--text-color); }
.search-overlay-close .icon { width: 32px; height: 32px; }
.search-overlay-title { display: block; font-size: 24px; font-weight: 700; margin-bottom: 20px; color: var(--text-color); }

/* Search Form Styling */
.search-form { position: relative; }
.search-field { width: 100%; height: 60px; padding: 0 70px 0 25px; font-size: 18px; border: 2px solid var(--border-color); border-radius: 50px; background-color: var(--background-white); color: var(--text-color); -webkit-appearance: none; }
.search-field:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.2); }
.search-submit { position: absolute; top: 5px; right: 5px; bottom: 5px; width: 50px; background-color: var(--primary-color); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--background-white); }
.search-submit .icon { width: 20px; height: 20px; stroke: currentColor; }
.search-submit:hover { background-color: var(--accent-color); }

@media (max-width: 768px) {
	.search-overlay-close { top: -50px; right: 0; }
	.search-overlay-title { font-size: 20px; }
	.search-field { height: 50px; font-size: 16px; padding-right: 60px; padding-left: 20px; }
	.search-submit { width: 40px; }
}

/*--------------------------------------------------------------
3.0 - Header Styling
--------------------------------------------------------------*/
.site-header { height: var(--header-height); background-color: var(--background-white); display: flex; align-items: center; transition: height 0.3s ease; border-bottom: 1px solid var(--border-color); }
.site-branding { display: flex; align-items: center; gap: 15px; flex-grow: 1; }

.header-logo-img-tag {
	max-height: calc(var(--header-height) - 30px); /* Logo height will be 30px less than header height */
	width: auto; /* Maintain aspect ratio */
	display: block;
}

.header-logo-svg {
	/* The color is applied via inline style in header.php */
	line-height: 0; /* Fix potential extra space below SVG */
}

.header-logo-svg svg {
	height: calc(var(--header-height) - 30px) !important; /* Force the height */
	width: auto !important; /* Let width adjust automatically */
	display: block;
	fill: currentColor; /* Allows color change via CSS if needed */
}

.site-title { margin: 0; font-size: 24px; font-weight: 700; }
.site-title a { color: var(--text-color); }
.site-description { margin: 0; font-size: 14px; color: var(--text-light-color); }
.secondary-site-header { background-color: var(--background-white); border-bottom: 1px solid var(--border-color); z-index: 98; position: relative; }
.secondary-site-header .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.main-navigation { flex-grow: 1; } /* Allow nav to take space */
.main-navigation .menu-wrapper ul { display: flex; margin: 0; padding: 0; list-style: none; gap: 30px; }
.main-navigation a { font-weight: 600; font-size: 16px; color: var(--text-color); }
.mobile-menu-header { display: none; } /* Hide mobile header on desktop */
.mobile-navigation { display: none; } /* Hide mobile nav container on desktop */
.menu-toggle, .search-toggle, .mobile-menu-close { background: none; border: none; padding: 0; cursor: pointer; color: var(--text-color); display: flex; align-items: center; justify-content: center; }
.menu-toggle { display: none; /* Hidden on desktop */ }
.mobile-menu-close { display: none; } /* Hide mobile close button by default */
.search-toggle:hover, .menu-toggle:hover, .mobile-menu-close:hover { color: var(--primary-color); }
.menu-toggle .icon, .search-toggle .icon, .mobile-menu-close .icon { width: 24px; height: 24px; }

/*--------------------------------------------------------------
3.5 - Content & Sidebar Layout
--------------------------------------------------------------*/
.site-content .wrap { display: flex; gap: 40px; align-items: flex-start; }
#primary { flex: 1; min-width: 0; } /* min-width: 0 is a flexbox hack to prevent overflow */
#secondary { width: 300px; flex-shrink: 0; }

/*--------------------------------------------------------------
3.6 - Sidebar & Widgets
--------------------------------------------------------------*/
.widget-area .widget, .widget-area .sidebar-navigation { margin-bottom: 30px; border: 1px solid var(--border-color); border-radius: 5px; }
.widget-area .widget-title { font-size: 18px; margin: 0; padding: 15px 20px; border-bottom: 1px solid var(--border-color); }
.widget-area .widget > *:not(.widget-title) { padding: 20px; }
.widget-area .widget ul { list-style: none; margin: 0; padding: 0; }
/*--------------------------------------------------------------
3.6 - Sidebar & Widgets (Improved)
--------------------------------------------------------------*/
/* General styling for widget/sidebar-navigation containers */
.widget-area .widget,
.widget-area .sidebar-navigation {
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Added subtle shadow for a lifted effect */
    background-color: var(--background-white); /* Ensure consistent background */
}

/* Widget title styling */
.widget-area .widget-title {
    font-size: 18px;
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-light); /* Slightly different background for title */
    border-radius: 5px 5px 0 0; /* Match container border-radius */
}

/* Remove generic padding from widget content, will apply specific padding where needed */
.widget-area .widget > *:not(.widget-title) {
    padding: 0;
}

/* General list reset for all lists within widget-area (including custom menus) */
.widget-area ul {
    list-style: none;
    margin: 0;
    padding: 0; /* Ensure no default ul padding */
}

/* Styling for all list items within sidebar widgets and custom menus */
.widget-area ul li {
    border-bottom: 1px solid var(--border-color); /* Add a separator between list items */
}

.widget-area ul li:last-child {
    border-bottom: none; /* Remove border from the last item */
}

.widget-area ul li a {
    display: block; /* Make the entire list item area clickable */
    padding: 12px 20px; /* Padding inside the link for better spacing */
    color: var(--text-color); /* Default link color */
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    position: relative; /* Needed for the arrow icon */
}

/*--------------------------------------------------------------
3.7 - Front Page: Hero Dashboard
--------------------------------------------------------------*/
.hero-dashboard { padding: 60px 0; text-align: center; background-color: var(--background-light); border-radius: 8px; margin-bottom: 40px; }
.hero-title { font-size: 42px; font-weight: 800; margin: 0 0 10px; color: var(--text-color); }
.hero-subtitle { font-size: 18px; color: var(--text-light-color); margin: 0 0 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

.tag-cloud-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 40px; padding: 0 20px; }
.tag-cloud-links a { display: inline-block; padding: 8px 18px; background-color: var(--background-white); border: 1px solid var(--border-color); border-radius: 50px; font-size: 14px; font-weight: 500; color: var(--text-light-color); transition: all 0.2s ease; }
.tag-cloud-links a:hover { background-color: var(--primary-color); color: var(--background-white); border-color: var(--primary-color); }

.social-share-title { font-size: 16px; font-weight: 600; color: var(--text-color); margin: 0 0 15px; }
.social-share-links { display: flex; justify-content: center; gap: 20px; }
.social-share-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: transform 0.2s ease; }
.social-share-links a:hover { transform: translateY(-2px); }
.social-share-links .icon { width: 20px; height: 20px; }
/* .social-share-links .icon path { fill: #fff; } */ /* Removed: We will use currentColor */

.whatsapp-link { background-color: #25D366; color: #fff; }
.telegram-link { background-color: #0088cc; color: #fff; }

/*--------------------------------------------------------------
3.8 - General Section Styling
--------------------------------------------------------------*/
.section-title { font-size: 28px; font-weight: 700; margin-bottom: 30px; text-align: center; }

/*--------------------------------------------------------------
3.8.5 - Trending Jobs Section
--------------------------------------------------------------*/
.trending-jobs-section { margin-bottom: 40px; }
.trending-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.trending-grid-item { display: flex; align-items: center; justify-content: center; padding: 20px; border-radius: 5px; text-align: center; font-weight: 700; color: var(--background-white); text-decoration: none; transition: transform 0.2s ease; min-height: 80px; }
.trending-grid-item:hover { transform: translateY(-3px); }
.trending-grid-item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }

.trending-grid-item:nth-child(4n+1) { background-color: var(--trending-color-1); }
.trending-grid-item:nth-child(4n+2) { background-color: var(--trending-color-2); }
.trending-grid-item:nth-child(4n+3) { background-color: var(--trending-color-3); }
.trending-grid-item:nth-child(4n+4) { background-color: var(--trending-color-4); }

/*--------------------------------------------------------------
3.9 - Info Grid Section
--------------------------------------------------------------*/
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-grid-box { border: 1px solid var(--border-color); border-radius: 5px; display: flex; flex-direction: column; }
.info-grid-title { font-size: 20px; text-align: center; background-color: var(--primary-color); color: var(--background-white); margin: 0; padding: 12px; border-radius: 5px 5px 0 0; }
.info-grid-box ul { list-style: none; margin: 0; padding: 15px; flex-grow: 1; }
.info-grid-box ul li { margin-bottom: 10px; }
.info-grid-box ul li:last-child { margin-bottom: 0; }
.info-grid-box ul a { font-weight: 500; color: var(--text-color); }
.info-grid-box ul a:hover { color: var(--primary-color); }
.info-grid-footer { text-align: center; padding: 15px; border-top: 1px solid var(--border-color); }
.view-all-link { font-weight: 700; color: var(--accent-color); }
.no-posts-found { padding: 15px; color: var(--text-light-color); }

/*--------------------------------------------------------------
3.10 - SEO Content Section
--------------------------------------------------------------*/
.seo-content-section { margin-top: 60px; padding: 40px; background-color: var(--background-light); border-radius: 8px; }
.seo-content-block { margin-bottom: 40px; }
.seo-content-block:last-child { margin-bottom: 0; }
.seo-content-title { font-size: 22px; margin-bottom: 15px; }
.seo-content-body p, .seo-content-body ul { margin-bottom: 1em; }
.seo-content-body ul { list-style-position: inside; padding-left: 10px; }
.seo-content-body li { margin-bottom: 0.8em; }

/*--------------------------------------------------------------
3.11 - Single Post Header
--------------------------------------------------------------*/
.entry-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }

/* Breadcrumbs */
.breadcrumbs { font-size: 14px; color: var(--text-light-color); margin-bottom: 10px; }
.breadcrumbs a { color: var(--text-light-color); }
.breadcrumbs a:hover { color: var(--primary-color); }

/* Post Title */
.entry-title { font-size: 32px; font-weight: 700; margin-top: 0; margin-bottom: 15px; line-height: 1.2; }

/* Post Categories */
.entry-meta { font-size: 14px; color: var(--text-light-color); margin-bottom: 15px; }
.cat-links a { color: var(--primary-color); font-weight: 500; }
.cat-links a:hover { text-decoration: underline; }

/* Social Share Buttons */
.social-share-buttons { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.social-share-buttons .share-label { font-weight: 600; color: var(--text-color); font-size: 15px; }
.social-share-buttons .share-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; transition: transform 0.2s ease; }
.social-share-buttons .share-button:hover { transform: translateY(-2px); }
.social-share-buttons .share-button .icon { width: 20px; height: 20px; fill: #fff; }

.whatsapp-share { background-color: #25D366; color: #fff; }
.telegram-share { background-color: #0088cc; color: #fff; }

/* Entry Content */
.entry-content { line-height: 1.7; }
.entry-content p { margin-bottom: 1em; }
.entry-content ul, .entry-content ol { margin-bottom: 1em; padding-left: 20px; }
.entry-content li { margin-bottom: 0.5em; }

/*--------------------------------------------------------------
3.12 - Social Connect Box (Single Post)
--------------------------------------------------------------*/
.social-connect-box { margin: 40px 0; padding: 30px; background-color: var(--background-light); border-radius: 8px; text-align: center; }
.social-connect-title { font-size: 22px; font-weight: 700; margin-top: 0; margin-bottom: 20px; color: var(--text-color); }
.social-connect-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.social-connect-links .social-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: 600; color: var(--background-white); transition: transform 0.2s ease; }
.social-connect-links .social-link:hover { transform: translateY(-3px); }
.social-connect-links .icon { width: 22px; height: 22px; }

.social-connect-links .whatsapp-link { background-color: #25D366; }
.social-connect-links .telegram-link { background-color: #0088cc; }

@media (max-width: 500px) {
	.social-connect-box { padding: 20px; }
}

/*--------------------------------------------------------------
3.12 - Job Overview Table
--------------------------------------------------------------*/
.job-overview-table-wrapper { margin: 2em 0; }
.job-overview-table { width: 100%; border: 1px solid var(--border-color); border-collapse: collapse; }
.job-overview-table td { padding: 12px 15px; border: 1px solid var(--border-color); vertical-align: middle; }
.job-overview-table tr:nth-child(even) { background-color: var(--background-light); }

/* Table Header */
.job-overview-table .table-header-brand { background-color: var(--primary-color); color: var(--background-white); font-size: 20px; font-weight: 700; text-align: center; }
.job-overview-table .table-header-title { text-align: center; }
.job-overview-table .job-title-short { display: block; font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.job-overview-table .advt-no { display: block; font-size: 14px; color: var(--text-light-color); }

/* Table Footer */
.job-overview-table .table-footer-actions { text-align: center; }
.job-overview-table .action-button { display: inline-block; padding: 10px 20px; margin: 5px; border-radius: 5px; color: var(--background-white); font-weight: 600; text-decoration: none; transition: opacity 0.2s ease; }
.job-overview-table .action-button:hover { opacity: 0.9; }
.job-overview-table .apply-button { background-color: var(--accent-color); }

/*--------------------------------------------------------------
3.13 - Post Info Grid
--------------------------------------------------------------*/
.post-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 2em 0; }
.info-block { border: 1px solid var(--border-color); border-radius: 5px; }
.info-block-title { font-size: 20px; margin: 0; padding: 12px 15px; border-bottom: 1px solid var(--border-color); background-color: var(--background-light); }
.info-block-title small { font-size: 13px; font-weight: 400; color: var(--text-light-color); }
.info-list { list-style: none; margin: 0; padding: 15px; font-size: 15px; }
.info-list li { padding-left: 20px; position: relative; margin-bottom: 10px; }
.info-list li:last-child { margin-bottom: 0; }
.info-list li::before { content: '✔'; position: absolute; left: 0; color: var(--accent-color); }

/* Specific colors for dates/age */
.date-start, .age-min { color: #38761d; }
.date-end, .age-max { color: #cc0000; }

/*--------------------------------------------------------------
3.14 - Post Content Sections
--------------------------------------------------------------*/
.single-post .post-section { margin: 2.5em 0; }
.single-post .section-heading { font-size: 24px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); margin-bottom: 1em; }
.single-post .sub-heading { font-size: 20px; margin-top: 1.5em; margin-bottom: 1em; color: var(--text-color); }

.single-post .table-container { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--border-color); border-radius: 5px; }
.single-post .data-table { width: 100%; border-collapse: collapse; text-align: left; }
.single-post .data-table caption { font-weight: 700; padding: 10px; background-color: var(--background-light); border-bottom: 1px solid var(--border-color); }
.single-post .data-table th { background-color: var(--background-light); padding: 12px 15px; }
.single-post .data-table td, .single-post .data-table th { border: 1px solid var(--border-color); padding: 12px 15px; }
.single-post .data-table tbody tr:nth-child(even) { background-color: var(--background-light); }
.single-post .data-table td[rowspan] { vertical-align: middle; text-align: center; }

/* Step by step list */
.single-post .step-by-step-list { padding-left: 20px; }
.single-post .step-by-step-list li { margin-bottom: 0.8em; }

/*--------------------------------------------------------------
3.15 - Important Links & FAQ Section
--------------------------------------------------------------*/
/* Links Table */
.single-post .links-table { width: 100%; border-collapse: collapse; }
.single-post .links-table td { padding: 12px 15px; border: 1px solid var(--border-color); }
.single-post .links-table td:first-child { font-weight: 700; background-color: var(--accent-color); color: var(--background-white); text-align: center; }
.single-post .links-table td:last-child { text-align: center; }
.single-post .links-table a { font-weight: 700; }

/* FAQ Section */
.single-post .faq-section { margin-top: 2.5em; }
.single-post .faq-item { margin-bottom: 1.5em; }
.single-post .faq-question { font-size: 18px; margin: 0 0 0.5em 0; padding: 10px; background-color: var(--background-light); border-left: 3px solid var(--primary-color); }
.single-post .faq-answer { padding-left: 13px; }
.single-post .faq-answer p { margin: 0; }

/*--------------------------------------------------------------
3.16 - Archive Job Listing (Card on Mobile, Table on Desktop)
--------------------------------------------------------------*/
.job-listing-container {
        display: table;
        width: 100%;
        border-collapse: collapse; /* This is the key for "puri touch" borders */
        table-layout: fixed; /* This is the key fix */
        border: none; /* Remove outer border from container, cells will form it */
        border-radius: 8px;
        overflow: hidden; /* To make border-radius work with table */
    }

/* Hide table header on mobile */
.job-listing-header {
    display: none;
}

/* Mobile Card View (Default) */
.job-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--background-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.job-col-title {
    background-color: var(--primary-color);
    padding: 15px;
}

.job-item-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.job-item-title a {
    color: var(--background-white);
    text-decoration: none;
}

.detail-item {
    display: flex;
    font-size: 15px;
    /* justify-content: space-between; is removed to allow left alignment */
    padding: 15px;
    line-height: 1.4;
    position: relative; /* Needed for the pseudo-element border */
    border-bottom: 1px solid var(--border-color);
}

.job-item > .detail-item:first-of-type {
    /* Adds a border between the title and the first detail item */
    border-top: 1px solid var(--border-color);
}

/* The new vertical border using a pseudo-element */
.detail-item::before {
    content: '';
    position: absolute;
    left: 35%; /* Position where the label ends */
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--border-color);
}

.detail-label {
    font-weight: 600;
    color: var(--text-color);
    flex-basis: 35%; /* Set a smaller width for the label column */
    flex-shrink: 0; /* Prevent it from shrinking */
}

.detail-value {
    color: var(--text-light-color);
    text-align: left;
    padding-left: 15px; /* Space after the new border */
}

/* Apply custom properties for each detail item */
.detail-item-1 .detail-value {
    color: var(--detail-value-1-color);
    font-weight: var(--detail-value-1-font-weight);
}

.detail-item-2 .detail-value {
    color: var(--detail-value-2-color);
    font-weight: var(--detail-value-2-font-weight);
}

.detail-item-3 .detail-value {
    color: var(--detail-value-3-color);
    font-weight: var(--detail-value-3-font-weight);
}

.detail-item-4 .detail-value {
    color: var(--detail-value-4-color);
    font-weight: var(--detail-value-4-font-weight);
}

.job-col-action {
    padding: 15px;
    background-color: var(--background-light);
    border-top: 1px solid var(--border-color); /* Add border above the action button */
    text-align: left;
}

.job-item-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--background-white);
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.job-item-button:hover {
    background-color: #008f4a; /* A slightly darker green */
}

	/* Post Info Grid on Mobile */
	.post-info-grid { grid-template-columns: 1fr; }

	/* SEO Content on Mobile */
	.seo-content-section { padding: 30px 20px; }

@media (max-width: 500px) {
	/* Make grid 1 column on very small screens */
	.info-grid { grid-template-columns: 1fr; }
}

/* Desktop Table View */
@media (min-width: 769px) {
    .job-listing-container {
        display: table;
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        border-radius: 8px;
        overflow: hidden; /* To make border-radius work with table */
    }

    .job-listing-header,
    .job-item {
        display: table-row;
    }

    .job-listing-header > div,
    .job-item > div {
        display: table-cell;
        padding: 15px;
        vertical-align: middle;
        border: 1px solid var(--border-color); /* Apply border to all cells */
        word-break: break-word;
    }

    .job-listing-header {
        display: table-header-group; /* Correct role for header */
        font-weight: 700;
        background-color: var(--background-light);
    }

    .detail-item {
        padding: 0;
        border: none;
        font-size: 14px;
        text-align: left;
        display: block; /* Reset flex for desktop cell content */
    }

    /* FIX: Hide the mobile-only vertical border on desktop */
    .detail-item::before {
        display: none;
    }

    /* Hide the label inside the cell on desktop */
    .detail-item .detail-label {
        display: none;
    }

    .detail-value {
        color: var(--text-color);
        text-align: left;
        padding-left: 0; /* Reset mobile padding */
    }

    /* Remove top border for the header row cells */
    .job-listing-header > div {
        border-top: none;
    }

    /* Remove left border for the first column cells */
    .job-listing-header > div:first-child,
    .job-item > div:first-child {
        border-left: none;
    }

    /* Set column widths */
    .job-col-title, .job-header-title { width: 25%; }
    .detail-item, .job-header-detail { width: 12%; }
    .job-col-action, .job-header-action { width: 15%; text-align: center; }

    .job-item {
        transition: background-color 0.2s ease;
    }
    .job-item:hover {
        background-color: var(--background-light);
    }
    .job-col-title {
        background-color: transparent; /* Reset mobile background color */
    }

    .job-item-title { font-size: 18px; }
    .job-item-title a { color: var(--primary-color); }

    /* Ensure post-info-grid is 2 columns on desktop */
    .post-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*--------------------------------------------------------------
4.0 - Mobile Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
	.site-header { height: var(--header-height-mobile); }
	.site-header .wrap { justify-content: center; padding: 0 15px; } /* Center branding on mobile */
	.site-description { display: none; }
	.secondary-site-header .wrap { height: 50px; }

	/* Stack content and sidebar on mobile */
	.site-content .wrap { flex-direction: column; }
	#secondary { width: 100%; margin-top: 40px; }

	/* Responsive Hero */
	.hero-title { font-size: 32px; }

	/* Trending Grid on Mobile */
	.trending-grid { grid-template-columns: repeat(2, 1fr); }

	/* Info Grid on Mobile */
	.info-grid { grid-template-columns: repeat(2, 1fr); }

	/* Single Post Header on Mobile */
	.entry-title { font-size: 28px; }

	/* Post Info Grid on Mobile */
	.post-info-grid { grid-template-columns: 1fr; }

	/* SEO Content on Mobile */
	.seo-content-section { padding: 30px 20px; }

	/* Mobile Menu */
	.menu-toggle { display: block; /* Shown on mobile */ }
	.main-navigation { display: none; } /* Hide desktop nav on mobile */
	.mobile-menu-close { display: flex; } /* Show mobile close button */
	body.mobile-menu-open { overflow: hidden; }

	.mobile-navigation {
		/* Mobile Menu Container Styles */
		position: fixed;
		top: 0; /* Menu will start from the top of the screen */
		left: 0;
		bottom: 0; /* Ensures it goes to the bottom of the screen */
		width: 80%; /* Menu width */
		max-width: 300px; /* Max width for the menu */
		z-index: 100;
		background-color: var(--background-white);
		box-shadow: 2px 0 15px rgba(0,0,0,0.1);
		transform: translateX(-100%);
		transition: transform 0.3s ease-in-out;
		display: flex; flex-direction: column;
	}

	.mobile-menu-open .mobile-navigation { transform: translateX(0); }
	.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--border-color); padding-top: 50px; }
	.mobile-menu-title { font-weight: 700; font-size: 18px; color: var(--text-light-color); }

	.mobile-navigation .menu-wrapper { padding: 20px; flex-grow: 1; overflow-y: auto; }
	.mobile-navigation .menu-wrapper ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
	.mobile-navigation .menu-wrapper a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
	.mobile-navigation .menu-wrapper li:last-child a { border-bottom: none; }
}

/*--------------------------------------------------------------
5.0 - Footer Styling
--------------------------------------------------------------*/
.site-footer {
    background-color: #2d3748; /* Dark Slate */
    color: #cbd5e0; /* Light gray text */
    font-size: 15px;
    padding-top: 60px;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer a:hover {
    color: #a0aec0; /* Lighter gray on hover */
}

.footer-top-area {
    padding-bottom: 40px;
}

.footer-about {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--background-white);
    border: 3px solid var(--background-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.footer-about-text p {
    margin: 0 0 1em;
    line-height: 1.7;
}

.footer-follow {
    margin-top: 30px;
}

.footer-widget-title {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-social-icons { display: flex; justify-content: center; gap: 15px; }
.footer-social-icons .social-icon-link { color: #ffffff; display: block; }
.footer-social-icons .social-icon-link .icon { width: 24px; height: 24px; transition: transform 0.2s ease; }
.footer-social-icons .social-icon-link:hover .icon { transform: scale(1.1); }

.footer-navigation { padding: 15px 0; background-color: rgba(0,0,0,0.2); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px 30px; }
.footer-menu a { font-weight: 600; }

.site-info {
    background-color: rgba(0,0,0,0.3);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #a0aec0;
}
.site-info a { color: #a0aec0; }
.site-info a:hover { color: #ffffff; }

@media (max-width: 500px) {
	/* Make grid 1 column on very small screens */
	.info-grid { grid-template-columns: 1fr; }
}