/*
Theme Name: JobJalebi
Theme URI: https://jobjalebi.com
Author: Your Name
Author URI: https://jobjalebi.com
Description: Advanced, classic & SEO‑friendly job portal theme. 6 built‑in pages, floating social icons, reading bar, ticker, FAQ schema, and 100% responsive.
Version: 1.0
License: GPL v2 or later
Text Domain: jobjalebi
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Row 1 */
.top-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
}

.header-row1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-area {
    flex: 1;
}
.logo-area h1, .logo-area .site-title {
    font-size: 28px;
    margin: 0;
}
.logo-area a {
    text-decoration: none;
    color: #0f172a;
}

.search-area {
    flex: 2;
    max-width: 200px;
}
.search-area form {
    display: flex;
}
.search-area input {
    flex: 1;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 30px 0 0 30px;
    outline: none;
}
.search-area button {
    background: #3b82f6;
    border: none;
    padding: 0 20px;
    border-radius: 0 30px 30px 0;
    color: white;
    cursor: pointer;
}

.secondary-menu-area {
    flex: 1;
    text-align: left;
}
.secondary-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
	text-align: left;
    justify-content: flex-end;
}
.secondary-menu a {
    text-decoration: none;
    color: #475569;
    font-size: 14px;
}

/* Primary Menu */
.primary-menu {
    background: #1e293b;
    padding: 12px 0;
}
.primary-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}
.primary-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* News Ticker */
.news-ticker {
    background: #fef9c3;
    padding: 10px 0;
    border-bottom: 1px solid #facc15;
}
.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
}
.ticker {
    display: inline-block;
    animation: ticker 20s linear infinite;
}
.ticker a {
    margin-right: 40px;
    text-decoration: none;
    color: #854d0e;
}
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Category Highlight Buttons */
.cat-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    justify-content: center;
}
.cat-btn {
    background: #e2e8f0;
    padding: 8px 25px;
    border-radius: 40px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    transition: 0.3s;
}
.cat-btn:hover {
    background: #3b82f6;
    color: white;
}

/* Post Grids */
.category-section {
    margin-bottom: 50px;
}
.section-title {
    font-size: 28px;
    margin-bottom: 20px;
    border-left: 5px solid #3b82f6;
    padding-left: 15px;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.post-card:hover {
    transform: translateY(-5px);
}
.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.post-card h3 {
    padding: 15px 15px 5px;
    font-size: 18px;
}
.post-card .meta {
    padding: 0 15px 15px;
    color: #64748b;
    font-size: 14px;
}
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .header-row1 {
        flex-direction: column;
        text-align: center;
    }
    .secondary-menu ul {
        justify-content: center;
    }
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 50px 0 20px;
    margin-top: 60px;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* Single Post Elements */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #3b82f6;
    z-index: 9999;
}
.writer-profile {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    display: flex;
    gap: 20px;
    align-items: center;
}
.related-posts {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    margin: 30px 0;
}
.floating-social {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 12px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.floating-social a {
    font-size: 22px;
    text-decoration: none;
    color: #334155;
}
.toc {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}