/*
Theme Name: JobJalebi
Theme URI: https://jobjalebi.com
Author: JobJalebi
Version: 5.3
Description: Ultra‑fast, SEO‑friendly, accessible job portal theme.
*/

*{margin:0;padding:0;box-sizing:border-box}
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #222;
  background: #fff;
}

h1 { font-size: 30px; font-weight: 600; color:#0f172a; }
h2 { font-size: 24px; font-weight: 600; margin-top:20px; color:#0f172a; }
h3 { font-size: 20px; font-weight: 500; color:#0f172a; }
a { color: #0B5ED7; text-decoration: none; }

.container { max-width:1200px; margin:0 auto; padding:0 15px; }

.apply-btn {
  background: #198754;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 500;
}
.highlight-box {
  background: #FF8C00;
  padding: 15px;
  border-left: 4px solid #0B5ED7;
  margin: 15px 0;
}

/* Header */
.sticky-header{position:sticky;top:0;z-index:999;background:#fff;box-shadow:0 2px 2px rgba(0,0,0,0.05);border-bottom:1px solid #e2e8f0}
.header-one-col{padding:10px}
.header-row-1{display:flex;flex-wrap:nowrap;align-items:center;gap:5px}
.header-col-logo{width:40%}
.header-col-search{width:30%;position:relative;text-align:right}
.header-col-menu-icon{width:30%;text-align:right}
.search-icon-btn{background:none;border:none;font-size:1.5rem;cursor:pointer;padding:6px 10px}
.search-form-container{position:absolute;top:45px;right:0;width:280px;background:#fff;border:1px solid #cbd5e1;border-radius:30px;padding:6px;z-index:1000;box-shadow:0 4px 12px rgba(0,0,0,0.1)}
.search-form-container form{display:flex}
.search-form-container input{flex:1;padding:6px 10px;border:1px solid #cbd5e1;border-radius:30px 0 0 30px}
.search-form-container input::placeholder{color:#4b5563;opacity:1}
.search-form-container button{background:#3b82f6;border:none;padding:0 12px;border-radius:0 30px 30px 0;color:#fff;cursor:pointer}
.site-title{margin:0;font-size:1.4rem}
.site-title a{color:#0f172a;text-decoration:none}
.custom-logo{max-width:180px;height:auto}
.hamburger{background:none;border:1px solid #cbd5e1;font-size:1.5rem;padding:4px 10px;border-radius:8px;cursor:pointer}
.header-row-2{margin-top:2px;padding-top:2px;border-top:1px solid #e2e8f0}
.secondary-menu-horizontal{list-style:none;display:flex;flex-wrap:wrap;gap:0}
.secondary-menu-horizontal a{display:inline-block;padding:2px 4px;font-size:0.75rem;font-weight:500;color:#0f172a;border:1px solid #cbd5e1;text-decoration:none}
.secondary-menu-horizontal li:nth-child(odd) a{background:#f1f5f9}
.primary-menu-hidden{display:none;background:#fff;border-top:1px solid #e2e8f0;padding:6px 0}
.primary-menu-hidden.show{display:block}
.primary-menu-links{list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.primary-menu-links a{font-size:0.75rem;color:#1e293b;font-weight:500;text-decoration:none}

/* News ticker */
.news-ticker{background:#fef9c3;padding:6px 0;overflow:hidden}
.ticker-wrap{white-space:nowrap}
.ticker{display:inline-block;animation:ticker 80s linear infinite}
.ticker a{margin-right:35px;color:#854d0e;font-size:0.85rem}
@keyframes ticker{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}

/* Category buttons */
.category-buttons-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:15px 0}
.cat-btn-box{background:#f1f5f9;text-align:center;padding:8px 4px;border-radius:10px;font-weight:500;font-size:0.75rem;color:#1f2937;border:1px solid #e2e8f0;transition:background 0.2s, color 0.2s}
.cat-btn-box:hover{background:#3b82f6;color:#fff}

/* Homepage category boxes */
.home-category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:20px 0}
.category-box{background:#fff;border-radius:16px;padding:16px;box-shadow:0 1px 3px rgba(0,0,0,0.05);border:1px solid #eef2ff;transition:transform 0.2s, box-shadow 0.2s}
.category-box:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.1)}
.box-title{font-size:1.2rem;font-weight:600;margin-bottom:12px;padding-bottom:6px;border-bottom:2px solid #3b82f6;display:inline-block}
.post-list{list-style:none}
.post-list-item{margin-bottom:14px}
.post-title{font-weight:600;color:#0f172a;display:block;margin-bottom:4px;font-size:0.9rem}
.post-excerpt{font-size:0.7rem;color:#475569}
.view-more{display:inline-block;margin-top:10px;font-size:0.7rem;font-weight:500;color:#3b82f6}
.view-more:hover{text-decoration:underline}

/* About sections (now with <h3>) */
.about-sarkari{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}
.about-item{background:#fff;padding:12px;border-radius:12px;box-shadow:0 1px 2px rgba(0,0,0,0.05)}
.about-item h3{font-size:0.95rem;margin-bottom:6px;color:#0f172a;font-weight:600}
.about-item p{font-size:0.8rem;color:#334155}

/* Single post */
.single-post-container{background:#fff;border-radius:20px;padding:20px;margin:20px auto}
.single-article h1{font-size:1.8rem;margin-bottom:12px}
.single-article h2,.single-article h3,.single-article h4{margin:1.2em 0 0.4em;font-weight:600}
.post-meta-top{font-size:0.7rem;color:#334155;margin-bottom:15px;border-bottom:1px solid #e2e8f0;padding-bottom:8px}
.post-intro{background:#f8fafc;padding:12px;border-left:4px solid #3b82f6;margin:15px 0}
.toc{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:15px 20px;margin:20px 0}
.toc ul{margin:10px 0 0 20px}
.toc li{margin-bottom:5px}

/* Share & motivate line */
.share-motivate-line{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:15px;padding:12px 0;margin:15px 0;border-top:1px solid #eee;border-bottom:1px solid #eee}
.share-buttons{display:flex;gap:8px}
.share-buttons a{background:#eee;color:#333;padding:5px 12px;border-radius:30px;font-size:0.75rem;font-weight:500;text-decoration:none;transition:background 0.2s, color 0.2s}
.share-buttons a:hover{background:#3b82f6;color:#fff}
.motivate-text{font-weight:600;color:#d35400;font-size:15px}

/* Related / tag / latest posts boxes */
.related-posts-box,.tag-posts-box,.latest-posts-box{background:#f8fafc;border-radius:16px;padding:16px;margin:20px 0}
.related-posts-box h3,.tag-posts-box h3,.latest-posts-box h3{font-size:1.2rem;margin-bottom:12px;border-left:3px solid #3b82f6;padding-left:12px}
.related-item,.tag-item,.latest-item{margin-bottom:15px;border-bottom:1px solid #e2e8f0;padding-bottom:10px}
.related-item a,.tag-item a,.latest-item a{font-weight:500;color:#1e293b}
.related-excerpt,.tag-excerpt,.latest-excerpt{font-size:0.7rem;color:#475569;margin-top:4px}
.latest-excerpt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* Author box */
.author-box{background:#f1f2f6;padding:15px;border-radius:8px;margin:20px 0;display:flex;align-items:center;gap:15px}
.author-box img{border-radius:50%}

/* Category/Tag Pages Grid */
.sarkari-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:20px 0}
.sarkari-box{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:16px}
.sarkari-box h3{font-size:1rem;margin-bottom:8px}
.sarkari-box h3 a{color:#0f172a}
.sarkari-excerpt{font-size:0.75rem;color:#475569;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pagination{margin:30px 0;text-align:center}
.pagination .page-numbers{padding:6px 12px;border:1px solid #cbd5e1;border-radius:6px;margin:0 3px}
.latest-posts-section{margin:30px 0}
.latest-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}

/* Floating Social (bottom-left, compact, text-only) */
.floating-social{
  position:fixed;
  left:10px;
  bottom:10px;
  background:#0f172a;
  padding:5px;
  border-radius:20px;
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
  z-index:999;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.floating-social a{
  font-size:0.68rem;
  padding:4px 6px;
  border-radius:50%;
  background:#f1f5f9;
  color:#334155;
  text-align:center;
  font-weight:600;
  text-decoration:none;
  transition:transform 0.2s, background 0.2s;
  line-height:1;
  min-width:24px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.floating-social a:hover{transform:scale(1.1);background:#3b82f6;color:#fff}

/* Progress bar */
.progress-bar{position:fixed;top:0;left:0;height:3px;background:#3b82f6;z-index:10000;width:0%}

/* Footer */
.footer{background:#0f172a;color:#94a3b8;padding:40px 0 20px;margin-top:50px;text-align:center}
.footer-intro{margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid #1e293b}
.footer-intro p{max-width:600px;margin:0 auto;font-size:0.85rem;color:#cbd5e1;line-height:1.5}
.footer-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;text-align:center}
.footer-col{display:flex;flex-direction:column;align-items:center}
.footer-col h4{color:#e2e8f0;margin-bottom:12px;font-size:1rem;font-weight:600}
.footer-menu,.footer-categories{list-style:none;padding:0;margin:0}
.footer-menu li,.footer-categories li{margin-bottom:6px;list-style:none}
.footer-menu a,.footer-categories a{color:#fff;font-size:0.8rem;text-decoration:none;transition:color 0.2s}
.footer-menu a:hover,.footer-categories a:hover{color:#3b82f6;text-decoration:underline}
.footer-social{display:flex;flex-direction:column;gap:8px;align-items:center}
.footer-social a{font-size:0.8rem;color:#e2e8f0;text-decoration:none;padding:2px 8px;border-radius:6px;transition:color 0.2s, background 0.2s}
.footer-social a:hover{color:#fff;background:#3b82f6}
.copyright{text-align:center;margin-top:30px;padding-top:15px;border-top:1px solid #1e293b;font-size:0.7rem;color:#64748b}

/* Comments */
.comment-section{margin-top:30px;padding-top:20px;border-top:2px solid #e2e8f0}
.comment-list{list-style:none;margin:0 0 20px;padding:0}
.comment{background:#f8fafc;border-radius:12px;padding:15px;margin-bottom:15px}
.comment-author{font-weight:600;margin-bottom:5px}
.comment-meta{font-size:0.7rem;color:#64748b;margin-bottom:8px}
.comment-content p{font-size:0.85rem;line-height:1.5}
.comment-reply-link{font-size:0.7rem;color:#3b82f6;text-decoration:none}
.comment-respond{background:#f1f5f9;padding:20px;border-radius:16px;margin-top:20px}
.comment-form input,.comment-form textarea{width:100%;padding:8px 12px;border:1px solid #cbd5e1;border-radius:8px;margin-bottom:10px}
.comment-form .submit{background:#3b82f6;color:white;border:none;padding:8px 20px;border-radius:30px;cursor:pointer}

/* Focus for accessibility */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #3b82f6;outline-offset:2px;border-radius:3px}

/* Responsive */
@media (max-width:768px){
  .hamburger,.search-icon-btn{padding:4px 6px;font-size:0.9rem}
  .site-title{font-size:0.9rem}
  .custom-logo{max-width:100px}
  .search-form-container{width:220px;right:0}
  .secondary-menu-horizontal a{font-size:0.65rem;padding:2px 6px}
  .home-category-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .sarkari-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .category-buttons-grid{grid-template-columns:repeat(5,1fr);gap:5px}
  .about-sarkari{grid-template-columns:repeat(2,1fr);gap:8px}
  .footer-columns{grid-template-columns:1fr;gap:20px}
  .footer-col{align-items:center}
  .floating-social{left:5px;bottom:5px;padding:4px;gap:4px}
  .floating-social a{font-size:0.62rem;padding:3px 5px;min-width:20px}
}
@media (max-width:480px){
  .about-sarkari{grid-template-columns:1fr}
}