/*
Theme Name: IJN Job Portal
Theme URI: https://indjobnotification.in
Author: Somnath Lohar
Author URI: https://indjobnotification.in
Description: Lightning-fast, responsive job alert portal theme for indjobnotification.in. Job cards with application start date, last date and Read More. Category/tag synchronized archives. AMP-friendly, no heavy frameworks.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.2
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: ijn-portal
Tags: job-board, news, one-column, right-sidebar, responsive-layout, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   Base / Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1e293b;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: #0859f7; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 0 0 .5em; color: #0f172a; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; }
th, td { border: 1px solid #e2e8f0; padding: .55em .7em; text-align: left; vertical-align: top; }
th { background: #f1f5f9; font-weight: 600; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; background: #0859f7; color: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar { background: #082b5c; color: #cbd5e1; font-size: 13px; padding: 6px 0; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #e2e8f0; }
.topbar-date { font-weight: 600; color: #fff; }

/* ==========================================================================
   Latest jobs ticker (breaking news style)
   ========================================================================== */
.ijn-ticker { background: #082b5c; display: flex; align-items: stretch; overflow: hidden; margin: 0 !important; border-radius: 0 !important; }
.ijn-ticker-label { flex: 0 0 auto; background: #dc2626; color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: .6px; text-transform: uppercase; display: flex; align-items: center; padding: 0 14px; white-space: nowrap; border-radius: 0 !important; }
.ijn-ticker-viewport { flex: 1; overflow: hidden; min-width: 0; }
.ijn-ticker-track { display: flex; width: max-content; animation: ijnMarquee 60s linear infinite; }
.ijn-ticker:hover .ijn-ticker-track { animation-play-state: paused; }
.ijn-ticker-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.ijn-ticker-list li { padding: 7px 26px; font-size: 13.5px; font-weight: 600; white-space: nowrap; border-right: 1px solid #1e3a6d; }
.ijn-ticker-list a { color: #e2e8f0; }
.ijn-ticker-list a:hover { color: #fff; }
@keyframes ijnMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ijn-ticker-track { animation: none; }
}
@media (max-width: 767px) {
  .ijn-ticker-label { font-size: 11px; padding: 0 10px; }
  .ijn-ticker-list li { padding: 6px 18px; font-size: 12.5px; }
}
@media (max-width: 480px) {
  .ijn-ticker-label { display: none; } /* only the scrolling posts on small screens */
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { background: #fff; border-bottom: 3px solid #0859f7; position: sticky; top: 0; z-index: 900; box-shadow: 0 1px 4px rgba(2, 22, 56, .08); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.site-branding { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-width: 0; }
.site-branding .custom-logo { max-height: 52px; width: auto; height: auto; display: block; }
.site-branding img { max-height: 52px; width: auto; height: auto; }
.site-logo { width: 42px; height: 42px; border-radius: 8px; background: linear-gradient(135deg, #0859f7, #052e8a); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 20px; flex: 0 0 auto; }
.site-title { font-size: 19px; margin: 0; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.site-title a { color: #0f172a; }
.site-title a:hover { text-decoration: none; color: #0859f7; }
.site-tagline { display: block; font-size: 11.5px; color: #64748b; font-weight: 500; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav ul li { position: relative; }
.main-nav a { display: block; padding: 10px 9px; color: #0f172a; font-weight: 600; font-size: 14px; border-radius: 8px; }
.main-nav a:hover { background: #eef4ff; color: #0859f7; text-decoration: none; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: #0859f7; }
.main-nav ul ul { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 8px 24px rgba(2,22,56,.12); padding: 6px; display: none; z-index: 950; }
.main-nav ul li:hover > ul { display: block; }
.main-nav ul ul a { padding: 8px 10px; font-size: 14px; }
.main-nav ul ul a:hover { background: #eef4ff; }
.nav-toggle { display: none; background: none; border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 20px; line-height: 1; color: #0f172a; }
.header-search { display: flex; flex: 0 1 auto; min-width: 0; }
.header-search input[type="search"] { border: 1px solid #cbd5e1; border-right: 0; border-radius: 8px 0 0 8px; padding: 8px 10px; font-size: 14px; width: 160px; max-width: 32vw; min-width: 0; outline: none; }
.header-search button { border: 0; background: #0859f7; color: #fff; border-radius: 0 8px 8px 0; padding: 8px 14px; cursor: pointer; font-size: 14px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { background: linear-gradient(135deg, #0a3d91 0%, #0859f7 55%, #1d4ed8 100%); color: #fff; padding: 52px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 40%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(26px, 4vw, 40px); margin-bottom: 10px; letter-spacing: -.5px; }
.hero p.lead { font-size: 17px; color: #dbe7ff; max-width: 720px; margin-bottom: 22px; }
.hero-search { display: flex; max-width: 640px; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 12px 30px rgba(2,22,56,.25); }
.hero-search input[type="search"] { flex: 1; border: 0; padding: 12px 16px; font-size: 16px; outline: none; border-radius: 8px; background: transparent; min-width: 0; }
.hero-search button { background: #dc2626; color: #fff; border: 0; border-radius: 8px; padding: 12px 26px; font-size: 16px; font-weight: 700; cursor: pointer; }
.hero-stats { display: flex; gap: 26px; margin-top: 24px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 24px; }
.hero-stat span { font-size: 13px; color: #c9dcff; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 44px 0; }
.section-alt { background: #fff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: 24px; margin: 0; position: relative; padding-left: 14px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 3px; background: #0859f7; }
.section-head .see-all { font-size: 14px; font-weight: 600; }

/* ==========================================================================
   Job cards
   ========================================================================== */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.job-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-shadow: 0 1px 3px rgba(2,22,56,.06); transition: box-shadow .18s ease, transform .18s ease; }
.job-card:hover { box-shadow: 0 10px 24px rgba(2,22,56,.12); transform: translateY(-2px); }
.job-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.job-badge { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; background: #eef4ff; color: #0859f7; border-radius: 20px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.job-badge.hot { background: #fee2e2; color: #b91c1c; }
.job-org { font-size: 13px; color: #475569; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-card h3 { font-size: 16.5px; margin: 0; line-height: 1.35; }
.job-card h3 a { color: #0f172a; }
.job-card h3 a:hover { color: #0859f7; }
.job-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13.5px; }
.job-meta .jm { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 8px; padding: 8px 10px; }
.job-meta .jm-label { display: block; font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.job-meta .jm-value { font-weight: 700; color: #0f172a; }
.job-meta .jm-value.deadline { color: #dc2626; }
.job-meta .jm-value.start { color: #15803d; }
.job-card-foot { display: flex; gap: 10px; margin-top: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 9px; font-size: 14.5px; font-weight: 700; border: 0; cursor: pointer; transition: filter .15s ease; }
.btn:hover { filter: brightness(.94); text-decoration: none; }
.btn-primary { background: #0859f7; color: #fff; }
.btn-outline { background: #fff; color: #0859f7; border: 1.5px solid #0859f7; }
.btn-red { background: #dc2626; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }

/* ==========================================================================
   Category chips
   ========================================================================== */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip { background: #fff; border: 1px solid #dbe4f0; border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 14px; color: #0f172a; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 1px 2px rgba(2,22,56,.05); }
.cat-chip:hover { border-color: #0859f7; color: #0859f7; text-decoration: none; box-shadow: 0 4px 12px rgba(8,89,247,.15); }
.cat-chip .count { background: #eef4ff; color: #0859f7; border-radius: 20px; font-size: 12px; padding: 1px 8px; font-weight: 700; }

/* ==========================================================================
   Steps (How to Apply)
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: #0859f7; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: #475569; margin: 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 860px; }
.faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 15px 18px; font-weight: 600; font-size: 15.5px; color: #0f172a; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: #0859f7; font-weight: 700; flex: 0 0 auto; }
.faq-item[open] summary::after { content: "-"; }
.faq-item .faq-body { padding: 0 18px 16px; font-size: 15px; color: #475569; }

/* ==========================================================================
   Layout: content + sidebar
   ========================================================================== */
.content-area { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.sidebar { position: sticky; top: 90px; }
.widget { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.widget-title { font-size: 16px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid #eef2f7; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { margin-bottom: 8px; font-size: 14.5px; }
.widget ul li a { color: #334155; display: flex; justify-content: space-between; gap: 8px; }
.widget ul li a:hover { color: #0859f7; }
.widget .count { color: #94a3b8; font-size: 13px; }

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs { font-size: 13.5px; color: #64748b; padding: 14px 0; }
.breadcrumbs a { color: #0859f7; }
.breadcrumbs .sep { margin: 0 7px; color: #94a3b8; }

/* ==========================================================================
   Page header / archive header
   ========================================================================== */
.page-header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 26px 0; }
.page-header h1 { font-size: 26px; margin: 0 0 6px; }
.page-header .archive-desc { color: #475569; font-size: 15px; max-width: 800px; }
.archive-meta { font-size: 13.5px; color: #64748b; }

/* ==========================================================================
   Single post
   ========================================================================== */
.single-body { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 26px; }
.single-body .entry-title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 14px; }
.notice-box { background: #f0f6ff; border: 1px solid #cfe0ff; border-radius: 10px; padding: 16px 18px; margin: 16px 0; }
.job-info-table td:first-child { width: 34%; font-weight: 600; background: #f8fafc; }
.apply-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.entry-content { font-size: 16px; overflow-wrap: anywhere; }
.entry-content h2 { font-size: 20px; margin-top: 26px; }
.entry-content h3 { font-size: 17px; margin-top: 20px; }
.entry-content a { text-decoration: underline; }
.entry-content a:hover { text-decoration: none; }
.post-tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { background: #f1f5f9; color: #334155; border-radius: 20px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.tag-pill:hover { background: #eef4ff; color: #0859f7; text-decoration: none; }
.related-jobs { margin-top: 26px; }
.related-jobs h3 { font-size: 18px; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination { display: flex; gap: 8px; margin: 26px 0 10px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid #dbe4f0; background: #fff; color: #334155; font-weight: 600; }
.pagination .page-numbers.current { background: #0859f7; color: #fff; border-color: #0859f7; }
.pagination a.page-numbers:hover { border-color: #0859f7; color: #0859f7; text-decoration: none; }

/* ==========================================================================
   Forms / search page
   ========================================================================== */
.search-form { display: flex; }
.search-form input[type="search"] { flex: 1; border: 1px solid #cbd5e1; border-radius: 9px 0 0 9px; padding: 11px 14px; font-size: 15px; outline: none; min-width: 0; }
.search-form button { border: 0; background: #0859f7; color: #fff; border-radius: 0 9px 9px 0; padding: 11px 20px; font-weight: 700; cursor: pointer; }
.entry-content input[type="text"], .entry-content input[type="email"], .entry-content input[type="tel"], .entry-content input[type="url"], .entry-content textarea, .entry-content select { width: 100%; max-width: 520px; border: 1px solid #cbd5e1; border-radius: 9px; padding: 11px 14px; font-size: 15px; font-family: inherit; }
.entry-content input[type="submit"], .entry-content input[type="button"], .entry-content .wpcf7-submit { background: #0859f7; color: #fff; border: 0; border-radius: 9px; padding: 12px 26px; font-size: 15px; font-weight: 700; cursor: pointer; }
.wpcf7 input, .wpcf7 textarea, .wpcf7 select { max-width: 520px; }

/* ==========================================================================
   404
   ========================================================================== */
.error-404 { text-align: center; padding: 70px 20px; }
.error-404 h1 { font-size: 80px; color: #0859f7; margin: 0; line-height: 1; }
.error-404 p { color: #64748b; font-size: 17px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #081f44; color: #c7d5ef; margin-top: 50px; font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 44px 0 30px; }
.footer-top h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-logo { max-height: 46px; width: auto; height: auto; display: inline-block; background: #fff; border-radius: 8px; padding: 6px 12px; margin-bottom: 14px; }
.footer-top a { color: #c7d5ef; }
.footer-top a:hover { color: #fff; }
.footer-about p { color: #a9bede; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links li a { display: inline-flex; gap: 7px; }
.footer-links li a::before { content: "›"; color: #5b8def; }
.footer-bottom { border-top: 1px solid #16325f; padding: 16px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #8ea6d0; }
.footer-bottom a { color: #b9c9ec; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #e2e8f0; box-shadow: 0 12px 24px rgba(2,22,56,.12); padding: 10px 16px 16px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav ul ul { position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; display: none; }
  .main-nav ul li:hover > ul { display: block; }
  .header-search { display: none; }
  .header-inner { gap: 10px; }
  .site-branding { max-width: 100%; }
  .site-title { font-size: 16px; }
  .site-tagline { max-width: 200px; font-size: 10.5px; }
  .hero { padding: 38px 0 46px; }
  .hero-search { flex-direction: column; gap: 8px; }
  .hero-search button { width: 100%; }
  .job-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 22px; }
  .job-meta { grid-template-columns: 1fr 1fr; }
  .single-body { padding: 18px; }
}
@media (max-width: 420px) {
  .job-meta { grid-template-columns: 1fr; }
  .hero-stat strong { font-size: 20px; }
}

/* ==========================================================================
   Get Alerts modal
   ========================================================================== */
.hero-alerts { margin-top: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-alerts-note { color: #c9dcff; font-size: 14px; }
.header-alerts-btn { margin-left: 4px; white-space: nowrap; flex-shrink: 0; border-radius: 0 !important; }
.ijn-modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 16px; }
.ijn-modal.open { display: flex; }
.ijn-modal-overlay { position: absolute; inset: 0; background: rgba(2, 22, 56, .65); backdrop-filter: blur(2px); }
.ijn-modal-box { position: relative; background: #fff; border-radius: 14px; max-width: 420px; width: 100%; padding: 26px; box-shadow: 0 24px 60px rgba(2, 22, 56, .35); animation: ijnPop .22s ease; }
@keyframes ijnPop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.ijn-modal-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 26px; line-height: 1; color: #94a3b8; cursor: pointer; }
.ijn-modal-close:hover { color: #0f172a; }
.ijn-modal-box h3 { font-size: 20px; margin: 0 0 6px; }
.ijn-modal-sub { color: #475569; font-size: 14.5px; margin: 0 0 16px; }
#ijn-alerts-form input[type="email"] { width: 100%; border: 1.5px solid #cbd5e1; border-radius: 10px; padding: 12px 14px; font-size: 15px; margin-bottom: 12px; outline: none; font-family: inherit; }
#ijn-alerts-form input[type="email"]:focus { border-color: #0859f7; }
.ijn-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.ijn-alerts-msg { display: none; font-size: 14px; font-weight: 600; border-radius: 8px; padding: 10px 12px; margin: 12px 0 0; }
.ijn-alerts-msg.ok { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.ijn-alerts-msg.err { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ijn-modal-foot { font-size: 12px; color: #94a3b8; margin: 14px 0 0; }
body.ijn-modal-locked { overflow: hidden; }

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .site-header, .site-footer, .sidebar, .apply-actions, .pagination, .breadcrumbs { display: none !important; }
  body { background: #fff; }
}
