/* OG Jobs Board – styled to match the Opportunities Guide theme
   (Raleway, brand red #C0382A, maroon #661E16, light grey #F1F1F1). */

:root {
	--ogjb-red: #C0382A;
	--ogjb-red-dark: #A83022;
	--ogjb-maroon: #661E16;
	--ogjb-grey: #F1F1F1;
	--ogjb-border: #CDC4C4;
	--ogjb-text: #000;
	--ogjb-muted: #404040;
}

.ogjb-board, .ogjb-single, .ogjb-single-hero, .ogjb-hero { font-family: "Raleway", sans-serif; }
.ogjb-board *, .ogjb-single * { box-sizing: border-box; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* ---------- Jobs page hero ---------- */
#scholarships-hero.ogjb-hero { height: auto; min-height: 50vh; padding: 140px 15px 70px; }
#scholarships-hero.ogjb-hero .hero-content p.hero-para2 { max-width: 680px; margin: 0 auto; }

/* ---------- Board ---------- */
.ogjb-board-section { padding: 60px 15px; background: #fff; }
.ogjb-container { width: 100%; max-width: 1200px; margin: 0 auto; }
h2.primary-heading.ogjb-heading { text-align: center; margin-bottom: 30px; }

.ogjb-search {
	display: flex; align-items: stretch; gap: 0;
	background: #fff; border-radius: 12px; overflow: hidden;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .10); border: 1px solid #eee;
	margin: 0 auto 28px;
}
.ogjb-search-fields { display: flex; flex: 1; flex-wrap: wrap; align-items: stretch; }
.ogjb-field { display: flex; align-items: center; gap: 8px; flex: 1 1 160px; padding: 0 16px; border-right: 1px solid #eee; min-height: 62px; color: #6b6b6b; }
.ogjb-field-kw { flex: 2 1 260px; }
.ogjb-field input, .ogjb-field select {
	width: 100%; border: 0; outline: 0; background: transparent;
	font-family: "Raleway", sans-serif; font-size: 15px; font-weight: 600; color: #000; padding: 10px 0;
	-webkit-appearance: none; appearance: none;
}
.ogjb-field select {
	cursor: pointer; padding-right: 18px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23C0382A'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right center;
}
.ogjb-field input::placeholder { color: #0000008a; font-weight: 500; }
.ogjb-search-btn {
	background: var(--ogjb-red); color: #fff; border: 0; padding: 0 34px; min-height: 62px;
	font-family: "Raleway", sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .3s ease;
}
.ogjb-search-btn:hover, .ogjb-search-btn:focus-visible { background: #000; }

.ogjb-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.ogjb-count { font-size: 16px; color: var(--ogjb-muted); margin: 0; }
.ogjb-count strong { color: var(--ogjb-red); font-size: 20px; font-weight: 800; }
.ogjb-clear { margin-left: 12px; font-size: 14px; font-weight: 600; color: var(--ogjb-red); }
.ogjb-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.ogjb-sort select {
	font-family: "Raleway", sans-serif; font-size: 14px; font-weight: 600; padding: 8px 12px; border: 1px solid var(--ogjb-border);
	border-radius: 8px; background: #fff; cursor: pointer;
}

/* ---------- Cards ---------- */
.ogjb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.ogjb-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ogjb-border); border-radius: 14px;
	padding: 22px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; position: relative;
}
.ogjb-card:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(0, 0, 0, .10); border-color: var(--ogjb-red); }
.ogjb-card.is-featured { border-top: 4px solid var(--ogjb-red); }
.ogjb-card.is-closed { opacity: .75; }
.ogjb-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ogjb-logo {
	flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; background: var(--ogjb-red); color: #fff;
	display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; letter-spacing: 1px; overflow: hidden;
}
.ogjb-logo.has-img { background: #fff; border: 1px solid #e5e5e5; }
.ogjb-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ogjb-card-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ogjb-posted { font-size: 12px; font-weight: 600; color: #6b6b6b; }
.ogjb-cat { font-size: 12px; font-weight: 700; color: var(--ogjb-red); text-transform: uppercase; letter-spacing: .5px; }
.ogjb-badges { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ogjb-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.ogjb-badge-featured { background: var(--ogjb-red); color: #fff; }
.ogjb-badge-soon { background: #fff4d6; color: #7a5a00; }
.ogjb-badge-closed { background: #e9e9e9; color: #555; }
.ogjb-card-title { font-size: 18px; font-weight: 800; line-height: 1.35; margin: 0 0 6px; }
.ogjb-card-title a { color: #000; text-decoration: none; transition: color .3s ease; }
.ogjb-card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.ogjb-card:hover .ogjb-card-title a { color: var(--ogjb-red); }
.ogjb-company { font-size: 14px; font-weight: 600; color: var(--ogjb-muted); margin: 0 0 12px; }
.ogjb-dot { color: var(--ogjb-red); margin: 0 4px; }
.ogjb-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; }
.ogjb-tags li { background: var(--ogjb-grey); color: #3c3c3c; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 20px; }
.ogjb-excerpt {
	font-size: 14px; line-height: 21px; color: #252525; margin: 0 0 16px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ogjb-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid #eee; }
.ogjb-pay { font-weight: 800; font-size: 15px; color: #000; }
.ogjb-btn {
	display: inline-block; background: var(--ogjb-red); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 14px;
	padding: 10px 18px; border-radius: 8px; transition: background .3s ease; position: relative; z-index: 2; white-space: nowrap;
}
.ogjb-btn:hover, .ogjb-btn:focus-visible { background: #000; }
.ogjb-btn-block { display: block; text-align: center; margin-top: 18px; padding: 14px; font-size: 16px; }

.ogjb-empty { text-align: center; background: var(--ogjb-grey); border-radius: 14px; padding: 50px 20px; }
.ogjb-empty h3 { font-size: 22px; margin-bottom: 8px; }
.ogjb-empty p { color: var(--ogjb-muted); margin-bottom: 20px; }

.ogjb-pagination { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; }
.ogjb-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
	border-radius: 8px; text-decoration: none; color: var(--ogjb-red); font-weight: 700; border: 1px solid var(--ogjb-border);
	transition: all .3s ease;
}
.ogjb-pagination a.page-numbers:hover { background: var(--ogjb-red); border-color: var(--ogjb-red); color: #fff; }
.ogjb-pagination .page-numbers.current { background: var(--ogjb-red); border-color: var(--ogjb-red); color: #fff; }
.ogjb-pagination .prev, .ogjb-pagination .next { background: var(--ogjb-red); color: #fff; border-color: var(--ogjb-red); }
.ogjb-pagination .prev:hover, .ogjb-pagination .next:hover { background: #000 !important; border-color: #000 !important; }

/* ---------- Single job hero ---------- */
#scholarships-detail.ogjb-single-hero { height: auto; min-height: 60vh; padding: 140px 15px 60px; }
#scholarships-detail.ogjb-single-hero .hero-content { max-width: 900px; margin: 0 auto; }
section#scholarships-detail.ogjb-single-hero h1 { font-size: 38px; line-height: 1.25; max-width: 820px; margin: 10px auto 16px; }
.ogjb-crumbs { font-size: 14px; font-weight: 600; display: flex; justify-content: center; gap: 8px; color: #d3b1ae; }
.ogjb-crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; }
.ogjb-crumbs a:hover { border-bottom-color: #fff; }
.hero-content p.ogjb-hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-size: 15px; font-weight: 600; margin-bottom: 28px; text-shadow: none; }
.ogjb-hero-meta span + span::before { content: "•"; margin: 0 10px; color: #d3b1ae; }
.ogjb-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.ogjb-hero-actions a.scholarshiphero-btn { background: var(--ogjb-red); border-color: var(--ogjb-red); }
.ogjb-hero-actions a.scholarshiphero-btn:hover { background: #fff; border-color: #fff; color: #000; }
.ogjb-share-toggle {
	font-family: "Raleway", sans-serif; background: transparent; color: #fff; border: 1px solid #fff; border-radius: 4px;
	padding: 10px 28px; font-size: 18px; font-weight: 600; cursor: pointer; transition: all .4s ease;
}
.ogjb-share-toggle:hover, .ogjb-share-toggle[aria-expanded="true"] { background: #fff; color: #000; }
.ogjb-closed-pill { background: #fff; color: var(--ogjb-maroon); font-weight: 700; padding: 10px 24px; border-radius: 4px; }
.ogjb-share { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.ogjb-share[hidden] { display: none; }
.ogjb-share a, .ogjb-share button {
	font-family: "Raleway", sans-serif; font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.5); padding: 7px 14px; border-radius: 20px; cursor: pointer;
}
.ogjb-share a:hover, .ogjb-share button:hover { background: #fff; color: #000; }

/* ---------- Single job content ---------- */
.ogjb-single .scholarshipcontent-left.ogjb-left { gap: 34px; }
.ogjb-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ogjb-fact { background: var(--ogjb-grey); border-radius: 9px; padding: 14px 16px; border-left: 3px solid var(--ogjb-red); }
.ogjb-fact-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #6b6b6b; margin-bottom: 4px; }
.ogjb-fact-value { display: block; font-size: 16px; font-weight: 700; color: #000; }

.ogjb-desc > *:first-child { margin-top: 0; }
.ogjb-desc h2 { font-size: 24px; margin: 28px 0 12px; }
.ogjb-desc h3 { font-size: 20px; margin: 24px 0 10px; }
.scholarshipcontent-left .ogjb-desc p { margin-block: 0 18px; }
.ogjb-desc ul, .ogjb-desc ol { margin: 0 0 18px 24px; }

.ogjb-notice { padding: 14px 18px; border-radius: 9px; font-weight: 600; font-size: 15px; line-height: 1.5; }
.ogjb-notice a { color: inherit; text-decoration: underline; }
.ogjb-notice-ok { background: #e3f4e8; color: #1e6b34; border-left: 4px solid #2e8b4a; }
.ogjb-notice-err { background: #f6e3e1; color: #77231A; border-left: 4px solid var(--ogjb-red); }

.ogjb-apply { background: var(--ogjb-grey); border-radius: 14px; padding: 30px; scroll-margin-top: 110px; display: flex; flex-direction: column; gap: 16px; }
.scholarshipcontent-left .ogjb-apply h2 { font-size: 26px; margin: 0; }
.scholarshipcontent-left .ogjb-apply p { margin: 0; font-size: 15px; line-height: 24px; }
.ogjb-apply a.officiallink-btn { align-self: flex-start; }
.ogjb-req { color: var(--ogjb-red); }
.ogjb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ogjb-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-bottom: 18px; }
.ogjb-wide { grid-column: 1 / -1; }
.ogjb-input { display: flex; flex-direction: column; gap: 6px; }
.ogjb-input > span { font-size: 14px; font-weight: 700; color: #000; }
.ogjb-input input, .ogjb-input select, .ogjb-input textarea {
	width: 100%; font-family: "Raleway", sans-serif; font-size: 15px; color: #000; background: #fff;
	border: 1px solid #A2A2A2; border-radius: 8px; padding: 12px 14px; outline: 0; transition: border-color .3s ease, box-shadow .3s ease;
}
.ogjb-input textarea { resize: vertical; min-height: 120px; }
.ogjb-input input:focus, .ogjb-input select:focus, .ogjb-input textarea:focus { border-color: var(--ogjb-red); box-shadow: 0 0 0 3px rgba(192, 56, 42, .12); }
.ogjb-input.is-invalid input, .ogjb-input.is-invalid select, .ogjb-input.is-invalid .ogjb-file-box { border-color: var(--ogjb-red); background: #fff7f6; }
.ogjb-file { position: relative; display: block; cursor: pointer; }
.ogjb-file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.ogjb-file-box {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
	background: #fff; border: 2px dashed #A2A2A2; border-radius: 10px; padding: 22px 14px; transition: border-color .3s ease;
}
.ogjb-file:hover .ogjb-file-box, .ogjb-file input:focus + .ogjb-file-box { border-color: var(--ogjb-red); }
.ogjb-file-name { color: var(--ogjb-red); font-size: 15px; word-break: break-all; }
.ogjb-file-box small { color: #6b6b6b; font-size: 13px; }
.ogjb-file.has-file .ogjb-file-box { border-style: solid; border-color: #2e8b4a; }
.ogjb-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #252525; cursor: pointer; }
.ogjb-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ogjb-red); flex: 0 0 auto; }
.ogjb-consent a { color: var(--ogjb-red); }
.ogjb-consent.is-invalid span { color: var(--ogjb-red); }
.scholarshipcontent-left .ogjb-form-error { color: #77231A; font-weight: 700; margin: 0 0 14px; }
.ogjb-submit {
	font-family: "Raleway", sans-serif; background: var(--ogjb-red); color: #fff; border: 0; border-radius: 6px;
	padding: 16px 34px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .4s ease;
}
.ogjb-submit:hover, .ogjb-submit:focus-visible { background: #000; }
.ogjb-submit[disabled] { opacity: .7; cursor: wait; }
.scholarshipcontent-left .ogjb-note { margin-top: 12px; font-size: 13px; color: #6b6b6b; }

/* Sidebar */
.ogjb-right .scholarshipcontent-rightpara { margin-top: 0; }
.ogjb-right .scholarshipcontent-rightpara ~ .scholarshipcontent-rightpara { margin-top: 30px; }
.ogjb-overview { background: var(--ogjb-grey); border: 1px solid #00000030; border-radius: 9px; padding: 20px; }
.ogjb-overview-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid #ddd; }
.ogjb-overview-head strong { display: block; font-size: 16px; color: #000; }
.ogjb-overview-head a { font-size: 13px; font-weight: 600; color: var(--ogjb-red); }
.ogjb-overview dl { margin: 0; }
.ogjb-overview dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #ddd; font-size: 14px; }
.ogjb-overview dl > div:last-child { border-bottom: 0; }
.ogjb-overview dt { color: #6b6b6b; font-weight: 600; flex: 0 0 auto; }
.ogjb-overview dd { margin: 0; color: #000; font-weight: 700; text-align: right; }
.ogjb-similar { gap: 18px; }
.ogjb-similar .scholarshipright-card { max-width: none; }
.ogjb-similar-meta { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: #404040; }
.ogjb-similar-meta span + span::before { content: "·"; margin: 0 6px; color: var(--ogjb-red); }
.ogjb-similar-pay { margin: 8px 0 0; font-weight: 800; font-size: 14px; color: #000; }
.ogjb-all-link { display: inline-block; margin-top: 20px; font-weight: 700; color: var(--ogjb-red); text-decoration: none; }
.ogjb-all-link:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ogjb-right { margin-top: 10px; }
	.ogjb-right .scholarshipright-cards { flex-direction: column; }
}
@media (max-width: 900px) {
	.ogjb-search { flex-direction: column; }
	.ogjb-field { border-right: 0; border-bottom: 1px solid #eee; flex: 1 1 45%; }
	.ogjb-field-kw { flex-basis: 100%; }
	.ogjb-search-btn { min-height: 54px; }
}
@media (max-width: 767px) {
	#scholarships-hero.ogjb-hero { min-height: 40vh; padding-top: 120px; }
	section#scholarships-detail.ogjb-single-hero h1 { font-size: 26px; }
	.hero-content p.ogjb-hero-meta { font-size: 13px; }
	.ogjb-hero-actions a.scholarshiphero-btn, .ogjb-share-toggle { font-size: 16px; padding: 10px 22px; }
	.ogjb-grid { grid-template-columns: 1fr; }
	.ogjb-field { flex-basis: 100%; }
	.ogjb-form-grid { grid-template-columns: 1fr; }
	.ogjb-apply { padding: 22px 16px; }
	.ogjb-submit { width: 100%; }
	.ogjb-card { padding: 18px; }
	.ogjb-card-foot { flex-wrap: wrap; }
}
