/*
Theme Name: Janaseva
Theme URI: https://example.com/
Author: Janaseva
Description: ಜನಸೇವಾ — ಉದ್ಯೋಗ, ಸರ್ಕಾರಿ ಯೋಜನೆ ಮತ್ತು ಶಿಕ್ಷಣ ಮಾಹಿತಿ ಕನ್ನಡದಲ್ಲಿ. Dark blue, white and black news theme for Kannada job, scheme and education information.
Version: 1.0.2
Requires at least: 6.0
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: janaseva
*/

:root {
  --navy: #0A1F44;
  --black: #0D0D0D;
  --white: #FFFFFF;
  --bg: #F3F5F9;
  --line: #D5DBE5;
  --line-soft: #E4E8EF;
  --muted: #3D4452;
  --link-hover: #1E4DB7;
  --display: 'Baloo Tamma 2', 'Noto Sans Kannada', sans-serif;
  --body: 'Noto Sans Kannada', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); background: var(--bg); color: var(--black); font-size: 17px; line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #5B8DEF; outline-offset: 2px; }
h1, h2, h3 { line-height: 1.35; }

.screen-reader-text, .skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; padding: 10px 16px; background: var(--white); color: var(--black); z-index: 1000; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 64px; }

/* Top bar */
.topbar { background: var(--black); color: var(--white); font-size: 14px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 16px; }

/* Header */
.site-header { background: var(--navy); color: var(--white); }
.header-in { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand:hover, .brand:focus { color: var(--white); }
.brand-block { width: 14px; height: 36px; background: var(--white); display: block; flex-shrink: 0; }
.brand-name { font-family: var(--display); font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: .5px; }
.main-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.main-nav a { color: var(--white); font-size: 17px; font-weight: 600; padding: 6px 0; border-bottom: 3px solid transparent; display: inline-block; }
.main-nav a:hover, .main-nav a:focus { color: var(--white); border-bottom-color: rgba(255,255,255,.6); }
.main-nav .current-menu-item > a, .main-nav .current > a, .main-nav .current-cat > a { border-bottom-color: var(--white); }
.menu-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid rgba(255,255,255,.5); color: var(--white); cursor: pointer; align-items: center; justify-content: center; }

/* Hero */
.hero { background: var(--navy); color: var(--white); border-top: 1px solid rgba(255,255,255,.15); }
.hero-in { padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font-family: var(--display); font-size: 54px; line-height: 1.25; font-weight: 800; max-width: 900px; }
.hero p { margin: 0; font-size: 20px; line-height: 1.7; max-width: 760px; color: #DCE4F2; }
.hero-search { display: flex; max-width: 680px; margin-top: 8px; }
.hero-search input { flex-grow: 1; min-width: 0; height: 56px; border: 0; padding: 0 20px; font-size: 17px; font-family: var(--body); color: var(--black); background: var(--white); border-radius: 0; }
.hero-search button, .search-form .search-submit { height: 56px; padding: 0 32px; border: 0; background: var(--black); color: var(--white); font-size: 17px; font-weight: 700; font-family: var(--body); cursor: pointer; border-radius: 0; }
.hero-search button:hover { background: #262626; }
.chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.chips a { color: var(--white); border: 1px solid rgba(255,255,255,.5); padding: 8px 16px; font-size: 15px; }
.chips a:hover, .chips a:focus { color: var(--navy); background: var(--white); }

/* News strip */
.news-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.news-in { padding-top: 14px; padding-bottom: 14px; display: flex; gap: 16px; align-items: center; }
.news-badge { background: var(--black); color: var(--white); font-size: 14px; font-weight: 700; padding: 4px 12px; flex-shrink: 0; }
.news-in a, .news-in span.news-text { color: var(--black); font-size: 16px; }

/* Layout */
.layout { padding-top: 48px; padding-bottom: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
.stack { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.section { display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid var(--navy); padding-bottom: 10px; gap: 12px; }
.section-head h2 { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--navy); }
.section-head a { font-size: 16px; font-weight: 600; white-space: nowrap; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.tag { font-size: 13px; font-weight: 700; color: var(--white); background: var(--navy); padding: 3px 10px; align-self: flex-start; line-height: 1.6; }
.tag-black { background: var(--black); }
.card-title { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 700; }
.card-title a { color: var(--black); }
.card-title a:hover { color: var(--navy); text-decoration: underline; }
.card-meta { margin: 0; font-size: 15px; color: var(--muted); }
.card-date { margin: 0; font-size: 15px; font-weight: 600; }
.more { font-size: 15px; font-weight: 700; }

.rows { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.row-item { display: flex; align-items: center; gap: 16px; padding: 12px 22px 12px 12px; border-bottom: 1px solid var(--line-soft); }
.row-item:last-child { border-bottom: 0; }
.rows .row-link { flex-grow: 1; min-width: 0; padding: 0; border-bottom: 0; }
.rows .row-link:hover { background: transparent; }
.row-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); color: var(--black); }
.row-link:last-child { border-bottom: 0; }
.row-link:hover { color: var(--navy); background: #F8FAFD; }
.row-title { font-size: 18px; font-weight: 600; line-height: 1.5; }
.row-date { font-size: 14px; color: var(--muted); white-space: nowrap; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--black); display: flex; flex-direction: column; }
.tile:hover { border-top-color: var(--navy); }
.tile-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; color: var(--black); }
.tile-body:hover { color: var(--navy); }
.tile-title { font-size: 20px; font-weight: 700; line-height: 1.5; }
.tile-text { font-size: 15px; color: var(--muted); line-height: 1.6; }

.empty { background: var(--white); border: 1px dashed var(--line); padding: 22px; color: var(--muted); margin: 0; }

/* Thumbnails */
.thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.thumb:hover img { transform: scale(1.03); }
.thumb-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-family: var(--display); font-size: 26px; font-weight: 800; }
.card-thumb { margin: -22px -22px 6px; }
.row-thumb { width: 140px; flex-shrink: 0; }
.row-thumb .thumb-empty { font-size: 16px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.box-dark { background: var(--black); color: var(--white); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.box-dark h2 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 800; }
.box-dark p { margin: 0; font-size: 15px; line-height: 1.7; color: #E2E2E2; }
.btn-white { background: var(--white); color: var(--black); font-weight: 700; font-size: 16px; padding: 12px 16px; text-align: center; }
.btn-white:hover, .btn-white:focus { background: #E8ECF3; color: var(--black); }
.box { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.box h2 { margin: 0 0 8px; font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--navy); }
.box ul { list-style: none; margin: 0; padding: 0; }
.box li { border-bottom: 1px solid var(--line-soft); }
.box li:last-child { border-bottom: 0; }
.box li a { display: block; padding: 10px 0; font-size: 16px; font-weight: 600; }
.notice { border: 2px solid var(--navy); background: var(--white); padding: 20px; font-size: 14px; line-height: 1.7; }
.notice strong { color: var(--navy); }

/* Page title band */
.title-band { background: var(--black); color: var(--white); }
.title-band-in { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 8px; }
.crumbs { font-size: 15px; color: #CFCFCF; }
.crumbs a { color: #CFCFCF; }
.crumbs a:hover { color: var(--white); }
.title-band h1 { margin: 0; font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1.3; }
.title-band .post-date { font-size: 15px; color: #CFCFCF; }

/* Article */
.page-main { padding-top: 48px; padding-bottom: 56px; display: flex; justify-content: center; }
.article { background: var(--white); border: 1px solid var(--line); padding: 48px; font-size: 18px; line-height: 1.85; min-width: 0; }
.page-main .article { width: 100%; max-width: 820px; }
.article > *:first-child { margin-top: 0; }
.article h2 { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--navy); border-bottom: 3px solid var(--navy); padding-bottom: 6px; margin: 36px 0 16px; }
.article h3 { font-size: 22px; color: var(--navy); margin: 28px 0 12px; }
.article a { text-decoration: underline; }
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 16px; }
.article th, .article td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.article th { background: var(--navy); color: var(--white); }
.article tr:nth-child(even) td { background: #F8FAFD; }
.article blockquote { margin: 20px 0; padding: 12px 20px; border: 2px solid var(--navy); }
.article .wp-block-button__link { background: var(--navy); color: var(--white); text-decoration: none; border-radius: 0; }

.job-table { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: 16px; }
.job-table th, .job-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.job-table th { width: 38%; background: #F3F5F9; color: var(--navy); }

.share { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.share a { background: var(--black); color: var(--white); padding: 10px 18px; font-size: 15px; font-weight: 700; text-decoration: none; }
.share a:hover { background: var(--navy); color: var(--white); }
.article .notice { margin-top: 28px; font-size: 15px; }

/* Listing / pagination */
.list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { background: var(--white); border: 1px solid var(--line); padding: 8px 14px; color: var(--black); font-weight: 600; }
.pagination .page-numbers.current { background: var(--navy); color: var(--white); border-color: var(--navy); }

.search-form { display: flex; max-width: 560px; }
.search-form label { flex-grow: 1; }
.search-form .search-field { width: 100%; height: 52px; border: 1px solid var(--line); padding: 0 16px; font-size: 16px; font-family: var(--body); border-radius: 0; }
.search-form .search-submit { height: 52px; }

/* Comments */
.comments-area { margin-top: 40px; font-size: 16px; }
.comments-area h2, .comments-area .comment-reply-title { font-family: var(--display); font-size: 24px; color: var(--navy); border-bottom: 3px solid var(--navy); padding-bottom: 6px; margin: 0 0 16px; }
.comments-area label { display: block; font-weight: 600; margin-bottom: 4px; }
.comments-area .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { border: 1px solid var(--line); padding: 16px; margin-bottom: 12px; }
.comments-area textarea, .comments-area input[type=text], .comments-area input[type=email], .comments-area input[type=url] { width: 100%; border: 1px solid var(--line); padding: 10px; font-family: var(--body); font-size: 16px; }
.comments-area .submit { background: var(--navy); color: var(--white); border: 0; padding: 12px 24px; font-size: 16px; font-weight: 700; font-family: var(--body); cursor: pointer; }

/* Footer */
.site-footer { background: var(--black); color: var(--white); }
.footer-in { padding-top: 48px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { font-family: var(--display); font-size: 32px; font-weight: 800; line-height: 1.2; }
.footer-col p, .footer-col span.info { margin: 0; font-size: 15px; line-height: 1.7; color: #CFCFCF; }
.footer-title { font-size: 17px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--white); font-size: 15px; }
.footer-col a:hover { color: #BFD0F5; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; font-size: 14px; color: #BDBDBD; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); }

/* Tablet */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .main-nav .nav-list { gap: 20px; }
}

/* Mobile */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .header-in { min-height: 64px; position: relative; }
  .brand-block { width: 10px; height: 28px; }
  .brand-name { font-size: 30px; }
  .menu-toggle { display: flex; }
  .main-nav { display: none; position: absolute; left: -16px; right: -16px; top: 64px; background: var(--navy); border-top: 1px solid rgba(255,255,255,.15); z-index: 50; padding: 8px 16px 16px; }
  .main-nav.is-open { display: block; }
  .main-nav .nav-list { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .hero-in { padding-top: 28px; padding-bottom: 32px; gap: 16px; }
  .hero h1 { font-size: 32px; line-height: 1.3; }
  .hero p { font-size: 16px; }
  .hero-search input, .hero-search button { height: 50px; }
  .hero-search button { padding: 0 18px; font-size: 16px; }
  .chips { gap: 8px; }
  .chips a { font-size: 14px; padding: 6px 12px; }
  .layout { padding-top: 24px; gap: 32px; }
  .stack { gap: 32px; }
  .section { gap: 14px; }
  .section-head h2 { font-size: 24px; }
  .card-grid, .list-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { padding: 16px; }
  .card-thumb { margin: -16px -16px 6px; }
  .row-item { padding: 12px; gap: 12px; }
  .row-thumb { width: 110px; }
  .row-thumb .thumb-empty { font-size: 14px; }
  .card-title { font-size: 18px; }
  .row-link { padding: 16px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .row-title { font-size: 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile-body { padding: 12px 14px 14px; }
  .tile-thumb .thumb-empty { font-size: 18px; }
  .tile-title { font-size: 16px; }
  .tile-text { display: none; }
  .title-band-in { padding-top: 24px; padding-bottom: 24px; }
  .title-band h1 { font-size: 28px; }
  .page-main { padding-top: 20px; padding-bottom: 32px; }
  .article { padding: 20px 16px; font-size: 17px; }
  .article h2 { font-size: 23px; }
  .footer-in { padding-top: 28px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-brand { font-size: 28px; }
}
