/* ============================================================
   Rajarata University Applicant Portal
   Layout — Header, Footer, Page Wrappers
   ============================================================ */

/* ── Base ── */
* { box-sizing: border-box; }

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  background: var(--rjt-cream);
  color: var(--rjt-text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
#rjt-header {
  background: var(--rjt-maroon);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(74, 18, 25, 0.35);
}

.rjt-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  max-width: 1060px;
  margin: 0 auto;
}

.rjt-crest {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}
.rjt-crest img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.rjt-header-text { flex: 1; min-width: 0; }
.rjt-header-text h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rjt-header-text p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.60);
  margin: 1px 0 0;
}

.rjt-header-badge {
  flex-shrink: 0;
  background: rgba(200, 150, 30, 0.18);
  border: 1px solid rgba(200, 150, 30, 0.45);
  color: var(--rjt-gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── GOLD ACCENT BAR ── */
.rjt-gold-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--rjt-gold) 0%, var(--rjt-gold-light) 60%, transparent 100%);
}

/* ── MAIN CONTENT ── */
main {
  flex: 1;
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── FOOTER ── */
#rjt-footer {
  background: var(--rjt-maroon-dark);
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  padding: 1.2rem 1.5rem;
  text-align: center;
  margin-top: auto;
}
#rjt-footer a { color: var(--rjt-gold-light); text-decoration: none; }
#rjt-footer a:hover { text-decoration: underline; }
.rjt-footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── PAGE HERO ── */
.rjt-hero {
  background: var(--rjt-maroon);
  border-radius: var(--rjt-radius-lg);
  padding: 2rem 2.5rem;
  color: #fff;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}
.rjt-hero::before,
.rjt-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(200,150,30,0.18);
  pointer-events: none;
}
.rjt-hero::before { width: 200px; height: 200px; right: -50px; top: -50px; }
.rjt-hero::after  { width: 120px; height: 120px; right: 20px;  top: 20px;  }

.rjt-hero h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.rjt-hero p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.68);
  margin: 0;
  max-width: 65%;  /* leaves room for decorative circles on the right */
}
.rjt-gold-line {
  width: 48px;
  height: 3px;
  background: var(--rjt-gold);
  border-radius: 2px;
  margin: 0.75rem 0;
}

/* ── VACANCY CARDS ── */
.vacancy-card {
  background: var(--rjt-white);
  border: 1px solid var(--rjt-border);
  border-radius: var(--rjt-radius-lg);
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.vacancy-card:hover {
  box-shadow: var(--rjt-shadow-md);
  border-color: var(--rjt-maroon);
  transform: translateY(-2px);
}
.vacancy-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--rjt-maroon);
  margin: 0.5rem 0 0.3rem;
}
.vacancy-card .vc-dept {
  font-size: 0.85rem;
  color: var(--rjt-text-muted);
  margin-bottom: 0.6rem;
}
.vacancy-card .vc-meta {
  font-size: 0.8rem;
  color: var(--rjt-text-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.vacancy-card .vc-apply { margin-top: auto; }

/* ── POST TYPE BADGES ── */
.badge-nonacademic {
  background: #FDE8B8;
  color: #7A5A10;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-academic {
  background: #E8D0F0;
  color: #5A1E7A;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── INSTRUCTIONS BOX ── */
.rjt-instructions {
  background: var(--rjt-white);
  border: 1px solid var(--rjt-border);
  border-left: 4px solid var(--rjt-gold);
  border-radius: var(--rjt-radius-lg);
  padding: 1.25rem 1.75rem;
  margin-top: 1.5rem;
}
.rjt-instructions h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--rjt-maroon);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.rjt-instructions ul {
  padding-left: 1.25rem;
  margin: 0;
}
.rjt-instructions li {
  font-size: 0.88rem;
  color: var(--rjt-text-muted);
  margin-bottom: 0.4rem;
}
.rjt-instructions li strong { color: var(--rjt-text); }

/* ── TABS ── */
.rjt-tabs {
  display: flex;
  gap: 0;
  background: var(--rjt-white);
  border: 1px solid var(--rjt-border);
  border-radius: var(--rjt-radius-lg);
  padding: 5px;
  width: fit-content;
  margin-bottom: 1.25rem;
}
.rjt-tab {
  padding: 8px 28px;
  border: none;
  background: transparent;
  border-radius: var(--rjt-radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--rjt-text-muted);
  transition: all 0.2s;
  font-family: inherit;
}
.rjt-tab.active {
  background: var(--rjt-maroon);
  color: #fff;
}

/* ── BUTTONS ── */
.btn-rjt-primary {
  background: var(--rjt-maroon);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: var(--rjt-radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.btn-rjt-primary:hover { background: var(--rjt-maroon-light); color: #fff; }

.btn-rjt-gold {
  background: var(--rjt-gold);
  color: var(--rjt-maroon-dark);
  border: none;
  padding: 10px 28px;
  border-radius: var(--rjt-radius);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.btn-rjt-gold:hover { background: var(--rjt-gold-light); }

.btn-rjt-outline {
  background: transparent;
  color: var(--rjt-maroon);
  border: 1.5px solid var(--rjt-maroon);
  padding: 9px 26px;
  border-radius: var(--rjt-radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-rjt-outline:hover { background: var(--rjt-maroon); color: #fff; }

/* ── APPLY BUTTON ── */
.btn-apply {
  display: inline-block;
  background: var(--rjt-maroon);
  color: #fff !important;
  border: none;
  padding: 8px 22px;
  border-radius: var(--rjt-radius);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-apply:hover { background: var(--rjt-maroon-light); color: #fff !important; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .rjt-header-badge { display: none; }
  .rjt-header-text h1 { font-size: 0.95rem; }
  main { padding: 1.25rem 1rem 3rem; }
  .rjt-hero { padding: 1.5rem; }
  .rjt-hero h2 { font-size: 1.4rem; }
}
