/* ===================================
   GOOGLE FONT: KARLA
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Karla:wght@200;300;400;500;600;700;800&display=swap');

/* ===================================
   ROOT VARIABLES
   =================================== */
:root {
  --font-primary: "Karla", system-ui, -apple-system, BlinkMacSystemFont,
                  "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --accent-teal: #019f98;
  --accent-hover: #027e78;
  --bg-light: #f9fafb;
}

/* ===================================
   GLOBAL TYPOGRAPHY
   =================================== */
html, body {
  font-family: var(--font-primary);
  color: #111827;
  margin: 0;
  padding: 0;
}

/* Force Karla everywhere */
h1, h2, h3, h4, h5, h6,
p, span, a, label, input, select, textarea, button,
li, td, th, strong {
  font-family: var(--font-primary) !important;
}

/* ===================================
   BASE INPUTS & BUTTONS
   =================================== */
.input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgb(203 213 225);
  background: white;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(45,212,191,.35);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  background: rgb(13 148 136);
  color: white;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
  float: right;
}
.btn-primary:hover {
  background: rgb(15 118 110);
}

/* ===================================
   CONTENT
   =================================== */
article { display: block; position: static; }
.grid > article { width: 100%; }

.content-html p { margin: 0 0 0.75rem; }
.content-html ul,
.content-html ol { padding-left: 1.25rem; margin: 0 0 0.75rem; }

.content-html h1,
.content-html h2,
.content-html h3,
.content-html h4,
.content-html h5,
.content-html h6 {
  margin: 0.75rem 0 0.5rem;
  font-weight: 700;
}

.content-html a { text-decoration: underline; }
.content-html img { max-width: 100%; height: auto; display: inline-block; }

.content-html table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}
.content-html th,
.content-html td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  text-align: left;
}

/* ===================================
   TEXT COLOURS (OVERRIDES)
   =================================== */
.text-slate-700,
.text-slate-500,
.text-slate-600 {
  color: #000000 !important;
}

.text-teal-700 {
  color: #0d9488 !important;
}

/* ===================================
   JOB BOARD LAYOUT
   =================================== */
body {
  background-color: var(--bg-light);
}

/* Filter sidebar */
.filter-panel {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.filter-panel h3 {
  color: var(--accent-teal);
  font-weight: 700;
  margin-bottom: 1rem;
}

.filter-panel label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
}

.filter-panel button {
  margin-top: 0.75rem;
  width: 100%;
}

/* Job cards */
.job-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}
.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.job-card h3 {
  font-weight: 700;
  font-size: 1.1rem;
  color: #111827;
  margin-bottom: 0.25rem;
}

.job-card strong {
  color: var(--accent-teal);
}

.job-card .meta {
  font-size: 0.875rem;
  color: #555;
}

.job-card .btn-primary {
  margin-top: 0.5rem;
}

.job-card a.apply-link {
  color: var(--accent-teal);
  text-decoration: none;
  font-weight: 600;
}
.job-card a.apply-link:hover {
  text-decoration: underline;
}

/* Job overview */
.job-detail-header {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}

/* Assignment cards */
.assignment-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  padding: 1rem;
  transition: box-shadow 0.2s ease;
}
.assignment-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.assignment-card .apply-link {
  color: var(--accent-teal);
  font-weight: 600;
  text-decoration: none;
}
.assignment-card .apply-link:hover {
  text-decoration: underline;
}

/* Pagination */
nav a {
  background: var(--accent-teal);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
nav a:hover {
  background: var(--accent-hover);
}

/* Headings */
h2.page-title {
  color: var(--accent-teal);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .filter-panel {
    margin-bottom: 1rem;
  }
}

/* Video handling */
#recordVideo,
.recordVideo,
#recorderContainer,
.video-js,
.vjs-tech {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Misc overrides */
.text-gray-700 { color: #ffffff !important; }

.text-gray-900.hover\:text-\[\#019f98\].font-medium.transition {
  font-weight: 700 !important;
  color: #fff;
}

.inline-flex.items-center.px-2.py-1.rounded-full {
  text-align: center !important;
  width: 100% !important;
  display: block;
}

.admin-dash-warning {
  background: yellow;
  text-align: center;
  padding: 4px;
}

.onecrmtracking .px-2.py-1.rounded-full.text-xs.font-medium {
  min-width: 80px;
  display: inline-block;
  text-align: center;
}

/* Video handling */
#recordVideo,
.recordVideo,
#recorderContainer,
.video-js,
.vjs-tech {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}