/* ======================================================
   PREMIUM JOB PLATFORM – ADVANCED UI
   ====================================================== */

:root {
  --primary: #0a66c2;
  --primary-dark: #004182;
  --bg-light: #f4f7fb;
  --border: #e3e9f0;
  --text-dark: #1f2933;
  --text-light: #6b7280;
  --success: #16a34a;
  --featured-bg: #eef5ff;
}

/* ======================================================
   GLOBAL
   ====================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

input::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}

#app {
  width: 100%;
  min-height: 100vh;
}

/* ======================================================
   MAIN CONTAINER
   ====================================================== */

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 4%;
}

/* ======================================================
   STICKY HEADER + SEARCH
   ====================================================== */

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-light);
  padding-bottom: 1.5rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.search-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.search-row input {
  flex: 1;
  min-width: 260px;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.search-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.15);
}

/* ======================================================
   BUTTONS
   ====================================================== */

button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.9rem 1.3rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  background: var(--primary-dark);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button-secondary {
  background: #fff;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

/* ======================================================
   JOB GRID – MAX 2 COLUMNS
   ====================================================== */

.job-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ======================================================
   JOB CARD
   ====================================================== */

.job-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.8rem;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.job-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

/* Featured Job */
.job-card.featured {
  background: var(--featured-bg);
  border: 1px solid #d6e4ff;
  position: relative;
}

.job-card.featured::before {
  content: "Featured";
  position: absolute;
  top: -10px;
  right: 15px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* ======================================================
   LOGO + HEADER ROW
   ====================================================== */

.job-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}

.company-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.company-logo img {
  max-width: 70%;
  max-height: 70%;
}

/* ======================================================
   JOB TEXT
   ====================================================== */

.job-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.job-company {
  font-size: 0.85rem;
  color: var(--text-light);
}

.job-overview {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 1rem 0 1.4rem 0;
  color: #444;
}

/* ======================================================
   BADGES
   ====================================================== */

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge {
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.badge-new {
  background: #e6f0ff;
  color: var(--primary);
}

.badge-remote {
  background: #ecfdf5;
  color: var(--success);
}

/* ======================================================
   VERTICAL DIVIDER OPTION
   ====================================================== */

.job-grid.divided {
  gap: 0;
}

.job-grid.divided .job-card {
  border-radius: 0;
  border-right: 1px solid var(--border);
}

.job-grid.divided .job-card:nth-child(2n) {
  border-right: none;
}

/* ======================================================
   PAGINATION – PREMIUM BLUE BUTTONS
   ====================================================== */

.pagination {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.pagination button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination button:hover {
  background: var(--primary-dark);
}

.pagination button:disabled {
  background: #d6dee8;
  color: #8898aa;
  cursor: not-allowed;
  opacity: 1; /* override global disabled opacity */
}

/* ======================================================
   SINGLE JOB PAGE
   ====================================================== */

.job-single {
  max-width: 880px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.job-single h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.job-single .company {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.job-single .description {
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #374151;
}

.job-single h3 {
  margin-top: 2.2rem;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.job-single button {
  margin-top: 0.5rem;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 1024px) {
  .job-grid {
    grid-template-columns: 1fr;
  }

  .job-grid.divided .job-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 768px) {

  .app-container {
    padding: 1.5rem 1rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .job-card {
    padding: 1.4rem;
  }

  .job-single {
    padding: 2rem 1rem;
  }
}

.admin-form {
  max-width: 700px;
  margin-top: 2rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #374151;
}

.form-group input,
.form-group textarea {
  padding: 0.7rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.primary-btn {
  background: #0aa6b5;
  color: white;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.primary-btn:hover {
  background: #088a97;
}
/* ======================================================
   SERVICE BANNER (SINGLE JOB PAGE)
   ====================================================== */

.service-banner {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.service-banner-content strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-banner-content p {
  margin: 0 0 12px 0;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.6;
}

.service-banner-link {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.service-banner-link:hover {
  text-decoration: underline;
}
