/*
Theme Name: Sombhavona Career Theme
Theme URI: https://carrier.sombhavona.com
Author: Sombhavona
Author URI: https://sombhavona.com
Description: Companion theme for the Sombhavona Career plugin. A clean, Bengali-first job board theme with a hero search, department grid, latest job cards and full Contact Form 7 styling. Works standalone as a simple blog theme when the plugin is inactive.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sombhavona-career-theme
Tags: job-board, career, bengali, custom-logo, custom-menu, featured-images, custom-colors
*/

/* ------------------------------------------------ variables & base */

:root {
	--sbct-primary: #0b6e4f;
	--sbct-primary-dark: #095c42;
	--sbct-ink: #1f2937;
	--sbct-muted: #6b7280;
	--sbct-border: #e5e7eb;
	--sbct-soft: #f3f7f5;
	--sbct-bg: #ffffff;
	--sbct-warn-bg: #fef3c7;
	--sbct-warn-ink: #92400e;
	--sbct-danger: #b91c1c;
	--sbct-radius: 12px;
	--sbct-header-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--sbct-ink);
	background: var(--sbct-bg);
	line-height: 1.65;
	font-size: 16.5px;
}

img { max-width: 100%; height: auto; }

a { color: var(--sbct-primary); }

h1, h2, h3, h4 { line-height: 1.3; color: var(--sbct-ink); }

.sbct-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 18px;
}

.sbct-narrow { max-width: 820px; }
.sbct-narrow.sbct-container { max-width: 820px; }

.sbct-skip {
	position: absolute; left: -9999px; top: 0;
	background: var(--sbct-primary); color: #fff;
	padding: 8px 16px; z-index: 200;
}
.sbct-skip:focus { left: 8px; top: 8px; }

/* ------------------------------------------------ buttons */

.sbct-btn {
	display: inline-block;
	background: var(--sbct-primary);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	padding: 10px 24px;
	border-radius: 8px;
	border: 2px solid var(--sbct-primary);
	transition: background .15s ease, color .15s ease;
	cursor: pointer;
}

.sbct-btn:hover, .sbct-btn:focus { background: var(--sbct-primary-dark); border-color: var(--sbct-primary-dark); }

.sbct-btn-big { padding: 14px 38px; font-size: 1.08em; }

.sbct-btn-outline {
	background: transparent;
	color: var(--sbct-primary) !important;
}
.sbct-btn-outline:hover { background: var(--sbct-primary); color: #fff !important; }

.sbct-btn-light {
	background: #fff; border-color: #fff;
	color: var(--sbct-primary-dark) !important;
}
.sbct-btn-light:hover { background: var(--sbct-soft); border-color: #fff; }

/* ------------------------------------------------ header */

.sbct-header-wrap {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
}
body.admin-bar .sbct-header-wrap { top: 32px; }
@media (max-width: 782px) { body.admin-bar .sbct-header-wrap { top: 46px; } }

.sbct-topbar {
	background: var(--sbct-primary-dark);
	color: #e7f4ee;
	font-size: 13.5px;
}
.sbct-topbar-in {
	display: flex; justify-content: space-between; align-items: center;
	gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap;
}
.sbct-topbar a { color: #fff; text-decoration: none; }
.sbct-topbar a:hover { text-decoration: underline; }
.sbct-topbar-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.sbct-topbar-social { display: flex; gap: 14px; }
.sbct-topbar-social a { font-weight: 600; }

.sbct-header {
	background: #fff;
	border-bottom: 1px solid var(--sbct-border);
	transition: box-shadow .2s ease;
}
.sbct-header.sbct-scrolled { box-shadow: 0 6px 22px rgba(9, 92, 66, .12); }

.sbct-header-in {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; min-height: var(--sbct-header-h); padding-top: 8px; padding-bottom: 8px;
}

.sbct-branding { display: flex; align-items: center; gap: 12px; }
.sbct-branding .custom-logo { max-height: 48px; width: auto; }

.sbct-site-name {
	font-size: 1.45em; font-weight: 700; color: var(--sbct-ink);
	text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}

.sbct-career-badge {
	background: var(--sbct-primary); color: #fff;
	font-size: .52em; font-weight: 700; letter-spacing: .04em;
	padding: 3px 9px; border-radius: 999px; text-transform: uppercase;
}

.sbct-nav { display: flex; align-items: center; gap: 22px; }

.sbct-menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; gap: 4px; flex-wrap: wrap;
}
.sbct-menu li { position: relative; }
.sbct-menu a {
	display: block; padding: 8px 12px;
	color: var(--sbct-ink); text-decoration: none; font-weight: 600;
	border-radius: 8px;
}
.sbct-menu a:hover, .sbct-menu .current-menu-item > a { color: var(--sbct-primary); background: var(--sbct-soft); }
.sbct-menu .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
	background: #fff; border: 1px solid var(--sbct-border); border-radius: 10px;
	box-shadow: 0 14px 34px rgba(0,0,0,.10); padding: 8px; list-style: none; z-index: 50;
}
.sbct-menu li:hover > .sub-menu, .sbct-menu li:focus-within > .sub-menu { display: block; }

.sbct-nav-toggle {
	display: none;
	background: none; border: 0; cursor: pointer; padding: 10px;
	flex-direction: column; gap: 5px;
}
.sbct-nav-toggle span {
	display: block; width: 24px; height: 2px;
	background: var(--sbct-ink); border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}
.sbct-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sbct-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sbct-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------ hero */

.sbct-hero {
	background: linear-gradient(135deg, var(--sbct-primary-dark), var(--sbct-primary));
	color: #fff;
	padding: 64px 0 58px;
	text-align: center;
}
.sbct-hero-title { color: #fff; font-size: 2.5em; margin: 0 0 12px; }
.sbct-hero-sub { font-size: 1.13em; opacity: .92; max-width: 660px; margin: 0 auto 30px; }

.sbct-hero-search {
	display: flex; gap: 10px; flex-wrap: wrap;
	max-width: 780px; margin: 0 auto;
	background: #fff; padding: 10px; border-radius: 14px;
	box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.sbct-hero-search input[type="search"],
.sbct-hero-search select {
	flex: 1 1 190px;
	padding: 12px 14px; font-size: 16px;
	border: 1px solid var(--sbct-border); border-radius: 9px;
	background: #fff; color: var(--sbct-ink);
	font-family: inherit;
}
.sbct-hero-search button {
	padding: 12px 30px; border: 0; border-radius: 9px;
	background: var(--sbct-primary); color: #fff;
	font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.sbct-hero-search button:hover { background: var(--sbct-primary-dark); }

.sbct-hero-stats {
	display: flex; justify-content: center; gap: 44px;
	margin-top: 32px; flex-wrap: wrap;
}
.sbct-stat strong { display: block; font-size: 1.9em; line-height: 1.1; }
.sbct-stat span { opacity: .9; font-size: .95em; }

/* ------------------------------------------------ sections */

.sbct-section { padding: 46px 0; }
.sbct-section-soft { background: var(--sbct-soft); }

.sbct-section-head {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 14px; flex-wrap: wrap; margin-bottom: 6px;
}
.sbct-section-title { font-size: 1.65em; margin: 0 0 20px; }
.sbct-section-more { font-weight: 700; text-decoration: none; }
.sbct-section-more:hover { text-decoration: underline; }

.sbct-page-head {
	background: var(--sbct-soft);
	border-bottom: 1px solid var(--sbct-border);
	padding: 34px 0;
}
.sbct-page-title { font-size: 2em; margin: 0 0 6px; }
.sbct-page-sub { color: var(--sbct-muted); margin: 0; }

.sbct-empty {
	text-align: center; color: var(--sbct-muted);
	padding: 34px 0; font-size: 1.05em;
}

/* ------------------------------------------------ category grid */

.sbct-cat-grid {
	display: grid; gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.sbct-cat-card {
	display: block; background: #fff;
	border: 1px solid var(--sbct-border); border-radius: var(--sbct-radius);
	padding: 20px; text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sbct-cat-card:hover {
	border-color: var(--sbct-primary);
	box-shadow: 0 10px 26px rgba(9,92,66,.12);
	transform: translateY(-2px);
}
.sbct-cat-name { display: block; font-size: 1.15em; font-weight: 700; color: var(--sbct-ink); margin-bottom: 4px; }
.sbct-cat-count { color: var(--sbct-primary); font-weight: 600; font-size: .95em; }

/* ------------------------------------------------ job cards */

.sbct-jobs-grid {
	display: grid; gap: 18px;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.sbct-job-card {
	background: #fff; border: 1px solid var(--sbct-border);
	border-radius: var(--sbct-radius); padding: 18px;
	display: flex; flex-direction: column;
	transition: box-shadow .15s ease, border-color .15s ease;
}
.sbct-job-card:hover { box-shadow: 0 12px 28px rgba(9,92,66,.10); border-color: #cfdcd6; }
.sbct-job-card-expired { opacity: .75; }

.sbct-job-card-thumb { display: block; margin: -18px -18px 14px; }
.sbct-job-card-thumb img {
	width: 100%; height: auto; display: block;
	border-radius: var(--sbct-radius) var(--sbct-radius) 0 0;
}

.sbct-job-card-cats { margin-bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

.sbct-chip {
	display: inline-block; background: var(--sbct-soft); color: var(--sbct-primary-dark);
	font-size: 12.5px; font-weight: 700; padding: 3px 11px;
	border-radius: 999px; text-decoration: none;
}
a.sbct-chip:hover { background: var(--sbct-primary); color: #fff; }
.sbct-chip-plain { background: #f3f4f6; color: var(--sbct-ink); }

.sbct-job-card-title { margin: 0 0 10px; font-size: 1.18em; line-height: 1.35; }
.sbct-job-card-title a { color: var(--sbct-ink); text-decoration: none; }
.sbct-job-card-title a:hover { color: var(--sbct-primary); }

.sbct-job-card-meta { list-style: none; margin: 0 0 14px; padding: 0; font-size: 14.5px; }
.sbct-job-card-meta li { padding: 3px 0; }
.sbct-job-card-meta span { color: var(--sbct-muted); }

.sbct-job-card-foot {
	margin-top: auto; display: flex; align-items: center;
	justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.sbct-job-card-link { font-weight: 700; color: var(--sbct-primary); text-decoration: none; }
.sbct-job-card-link:hover { text-decoration: underline; }

.sbct-badge {
	display: inline-block; font-size: 12px; font-weight: 700;
	padding: 3px 10px; border-radius: 999px;
}
.sbct-badge-soon { background: var(--sbct-warn-bg); color: var(--sbct-warn-ink); }
.sbct-badge-expired { background: #fee2e2; color: var(--sbct-danger); }

/* ------------------------------------------------ steps & CTA */

.sbct-steps {
	display: grid; gap: 18px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.sbct-step {
	background: #fff; border: 1px solid var(--sbct-border);
	border-radius: var(--sbct-radius); padding: 24px; text-align: center;
}
.sbct-step-no {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--sbct-primary); color: #fff;
	font-size: 1.3em; font-weight: 700; margin-bottom: 12px;
}
.sbct-step h3 { margin: 0 0 8px; }
.sbct-step p { margin: 0; color: var(--sbct-muted); }

.sbct-cta {
	background: linear-gradient(135deg, var(--sbct-primary-dark), var(--sbct-primary));
	color: #fff; padding: 52px 0; text-align: center;
}
.sbct-cta h2 { color: #fff; margin: 0 0 10px; font-size: 1.8em; }
.sbct-cta p { opacity: .92; margin: 0 0 24px; }
.sbct-cta .sbct-btn { background: #fff; border-color: #fff; color: var(--sbct-primary-dark) !important; }
.sbct-cta .sbct-btn:hover { background: var(--sbct-soft); }

/* ------------------------------------------------ single job */

.sbct-job-single-title { font-size: 2em; margin: 0 0 14px; }
.sbct-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.sbct-job-single-thumb { margin: 0 0 22px; }
.sbct-job-single-thumb img { border-radius: var(--sbct-radius); width: 100%; }

.sbct-entry-content { overflow-wrap: break-word; }
.sbct-entry-content h2, .sbct-entry-content h3 { margin-top: 1.4em; }
.sbct-entry-content ul, .sbct-entry-content ol { padding-left: 1.4em; }
.sbct-entry-content img { border-radius: 8px; }
.sbct-entry-content table { border-collapse: collapse; width: 100%; }
.sbct-entry-content table th, .sbct-entry-content table td {
	border: 1px solid var(--sbct-border); padding: 8px 10px; text-align: left;
}

.sbct-back-link { margin: 26px 0 8px; }
.sbct-back-link a { font-weight: 700; text-decoration: none; }
.sbct-back-link a:hover { text-decoration: underline; }
.sbct-related { margin-top: 34px; }
.sbct-page-links { margin: 18px 0; font-weight: 700; }

/* ------------------------------------------------ blog */

.sbct-with-sidebar {
	display: grid; gap: 34px;
	grid-template-columns: minmax(0, 1fr) 300px;
}
.sbct-sidebar .sbct-widget {
	border: 1px solid var(--sbct-border); border-radius: var(--sbct-radius);
	padding: 18px; margin-bottom: 18px; background: #fff;
}
.sbct-widget-title { margin: 0 0 12px; font-size: 1.1em; }
.sbct-widget ul { margin: 0; padding-left: 1.2em; }

.sbct-post-card {
	border: 1px solid var(--sbct-border); border-radius: var(--sbct-radius);
	padding: 20px; margin-bottom: 20px; background: #fff;
}
.sbct-post-card-thumb { display: block; margin: -20px -20px 14px; }
.sbct-post-card-thumb img { width: 100%; display: block; border-radius: var(--sbct-radius) var(--sbct-radius) 0 0; }
.sbct-post-card-title { margin: 0 0 6px; font-size: 1.3em; }
.sbct-post-card-title a { color: var(--sbct-ink); text-decoration: none; }
.sbct-post-card-title a:hover { color: var(--sbct-primary); }

.sbct-post-title { font-size: 2em; margin: 0 0 8px; }
.sbct-post-meta { color: var(--sbct-muted); font-size: .92em; margin: 0 0 14px; }
.sbct-post-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.sbct-post-nav a { font-weight: 700; text-decoration: none; }

.sbct-search-results { margin-top: 22px; }
.sbct-search-item { border-bottom: 1px solid var(--sbct-border); padding: 16px 0; }
.sbct-search-item-title { margin: 0 0 4px; font-size: 1.25em; }
.sbct-search-item-title a { color: var(--sbct-ink); text-decoration: none; }
.sbct-search-item-title a:hover { color: var(--sbct-primary); }

/* pagination (the_posts_pagination) */
.sbct-nav-links, .nav-links {
	display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 28px;
}
.nav-links .page-numbers {
	display: inline-block; padding: 7px 13px;
	border: 1px solid var(--sbct-border); border-radius: 8px;
	color: var(--sbct-ink); text-decoration: none;
}
.nav-links .page-numbers.current {
	background: var(--sbct-primary); border-color: var(--sbct-primary);
	color: #fff; font-weight: 700;
}

/* ------------------------------------------------ 404 */

.sbct-404 { text-align: center; padding: 20px 0; }
.sbct-404-code { font-size: 4.2em; font-weight: 700; color: var(--sbct-primary); margin: 0; line-height: 1; }
.sbct-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ------------------------------------------------ footer */

.sbct-footer { background: #10201a; color: #cfd8d3; margin-top: 0; }
.sbct-footer-grid {
	display: grid; gap: 30px; padding-top: 48px; padding-bottom: 34px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.sbct-footer-title { color: #fff; font-size: 1.12em; margin: 0 0 14px; }
.sbct-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sbct-footer-brand .custom-logo { max-height: 40px; width: auto; }
.sbct-footer-name { color: #fff; font-weight: 700; font-size: 1.25em; }
.sbct-footer-about { margin: 0 0 14px; font-size: .96em; }
.sbct-footer a { color: #a7d7c5; text-decoration: none; }
.sbct-footer a:hover { color: #fff; text-decoration: underline; }
.sbct-footer-menu, .sbct-footer-cats, .sbct-footer-contact {
	list-style: none; margin: 0; padding: 0;
}
.sbct-footer-menu li, .sbct-footer-cats li { padding: 4px 0; }
.sbct-footer-contact li { padding: 5px 0; }
.sbct-footer-contact span { color: #8fa79d; }
.sbct-footer-social { display: flex; gap: 14px; margin-bottom: 14px; font-weight: 600; }
.sbct-footer .sbct-btn { margin-top: 14px; }
.sbct-footer-widget { margin-top: 16px; }

.sbct-copyright {
	border-top: 1px solid rgba(255,255,255,.12);
	padding: 16px 0; text-align: center; font-size: .92em;
}
.sbct-copyright p { margin: 0; }

/* ------------------------------------------------ Contact Form 7 */

.wpcf7 {
	background: #fff;
	border: 1px solid var(--sbct-border);
	border-radius: var(--sbct-radius);
	padding: 26px;
	max-width: 720px;
	margin: 0 auto;
}
.wpcf7 p { margin: 0 0 16px; }
.wpcf7 label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--sbct-ink); }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 input[type="number"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	padding: 11px 13px; font-size: 16px; font-family: inherit;
	border: 1px solid var(--sbct-border); border-radius: 8px;
	background: #fff; color: var(--sbct-ink);
}
.wpcf7 textarea { min-height: 120px; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
	outline: none; border-color: var(--sbct-primary);
	box-shadow: 0 0 0 3px rgba(11,110,79,.15);
}
.wpcf7 input[readonly] { background: var(--sbct-soft); }
.wpcf7 input[type="file"] {
	width: 100%; padding: 10px;
	border: 1px dashed var(--sbct-border); border-radius: 8px; background: var(--sbct-soft);
}
.wpcf7 input[type="submit"], .wpcf7 .wpcf7-submit {
	background: var(--sbct-primary); color: #fff;
	border: 0; border-radius: 8px;
	padding: 13px 40px; font-size: 1.05em; font-weight: 700;
	cursor: pointer; font-family: inherit; width: 100%;
}
.wpcf7 input[type="submit"]:hover { background: var(--sbct-primary-dark); }
.wpcf7 .wpcf7-not-valid-tip { color: var(--sbct-danger); font-size: .88em; margin-top: 4px; display: block; }
.wpcf7 form .wpcf7-response-output {
	margin: 16px 0 0; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--sbct-border);
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--sbct-primary); background: var(--sbct-soft); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: var(--sbct-danger); background: #fef2f2; }
.wpcf7 .screen-reader-response { position: absolute; left: -9999px; }

/* ------------------------------------------------ responsive */

@media (max-width: 900px) {
	.sbct-with-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
	.sbct-nav-toggle { display: inline-flex; }
	.sbct-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--sbct-border);
		box-shadow: 0 18px 34px rgba(0,0,0,.10);
		flex-direction: column; align-items: stretch;
		padding: 14px 18px 18px; gap: 10px;
	}
	.sbct-header-in { position: relative; }
	.sbct-header { position: relative; }
	.sbct-nav.sbct-open { display: flex; }
	.sbct-menu { flex-direction: column; gap: 2px; }
	.sbct-menu .sub-menu { position: static; box-shadow: none; border: 0; display: block; padding-left: 14px; }
	.sbct-btn-head { text-align: center; }
	.sbct-hero { padding: 44px 0; }
	.sbct-hero-title { font-size: 1.9em; }
}

@media (max-width: 560px) {
	body { font-size: 15.5px; }
	.sbct-hero-search { flex-direction: column; }
	.sbct-hero-search button { width: 100%; }
	.sbct-hero-stats { gap: 26px; }
	.sbct-page-title { font-size: 1.6em; }
	.sbct-job-single-title, .sbct-post-title { font-size: 1.55em; }
	.wpcf7 { padding: 18px; }
	.sbct-topbar-contact { gap: 10px; }
}
