html {
  font-size: 16px;
}

@media (min-width: 1200px) {
  html {
    font-size: 18px; /* Increase base size on large screens */
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #D32F2F;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  margin-bottom: 60px;
  padding: 0;
  background-color: #ffffff;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
  text-align: start;
}

/* ========================================
   BANNER / HERO - Ensure all titles & text are WHITE
   Applies to: Jobs, Tenders, Details, Apply, Submit, Dashboard, Home
   ======================================== */
.hero-section,
.hero-section h1,
.hero-section p,
.jobs-hero,
.jobs-hero h1,
.jobs-hero p,
.jobs-hero .breadcrumb,
.jobs-hero .breadcrumb a,
.jobs-hero .breadcrumb-item,
.tenders-hero,
.tenders-hero h1,
.tenders-hero p,
.tenders-hero .breadcrumb,
.tenders-hero .breadcrumb a,
.tenders-hero .breadcrumb-item,
.job-detail-hero,
.job-detail-hero h1,
.job-detail-hero .breadcrumb-custom,
.job-detail-hero .breadcrumb-custom .breadcrumb-item,
.job-detail-hero .breadcrumb-custom .breadcrumb-item a,
.job-detail-hero .hero-badge,
.tender-detail-hero,
.tender-detail-hero h1,
.tender-detail-hero .breadcrumb-custom,
.tender-detail-hero .breadcrumb-custom .breadcrumb-item,
.tender-detail-hero .breadcrumb-custom .breadcrumb-item a,
.tender-detail-hero .hero-badge,
.apply-hero,
.apply-hero h1,
.apply-hero p,
.tender-submit-hero,
.tender-submit-hero h1,
.tender-submit-hero .breadcrumb-custom,
.tender-submit-hero .breadcrumb-custom .breadcrumb-item,
.tender-submit-hero .breadcrumb-custom .breadcrumb-item a,
.tender-submit-hero .hero-badge,
.dashboard-hero,
.dashboard-hero h1,
.dashboard-hero p,
.applications-hero,
.applications-hero h1,
.applications-hero p,
.profile-hero,
.profile-hero h1,
.profile-hero p {
  color: #ffffff !important;
}

/* Breadcrumb separator in hero - keep white */
.job-detail-hero .breadcrumb-item + .breadcrumb-item::before,
.tender-detail-hero .breadcrumb-item + .breadcrumb-item::before,
.tender-submit-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero badge icons - white */
.job-detail-hero .hero-badge i,
.tender-detail-hero .hero-badge i,
.tender-submit-hero .hero-badge i {
  color: #ffffff !important;
}

/* Status badge keeps its red text (white bg) - do not override */
.job-detail-hero .status-badge,
.tender-detail-hero .status-badge {
  color: #D32F2F !important;
}

/* Dark overlay on image banners - ensures white text is readable */
.jobs-hero::before,
.tenders-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
}

/* ========================================
   JOBS & TENDERS TABLES - Mobile Responsive
   Same table layout, works with screen width
   ======================================== */
@media (max-width: 991px) {
  .jobs-table-wrapper,
  .tenders-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
    margin-right: 0;
    border-radius: 8px;
  }

  .jobs-table {
    min-width: 620px;
    width: 100%;
    display: table;
    table-layout: auto;
  }

  .tenders-table {
    min-width: 520px;
    width: 100%;
    display: table;
    table-layout: auto;
  }

  .jobs-table th,
  .jobs-table td,
  .tenders-table th,
  .tenders-table td {
    padding: 12px 14px;
    font-size: 1rem;
    white-space: normal;
    word-wrap: break-word;
  }

  .jobs-table thead th,
  .tenders-table thead th {
    font-size: 1.05rem;
    white-space: normal;
  }

  .full-width-content {
    padding: 0 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .jobs-count,
  .tenders-count {
    padding: 12px 20px;
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .jobs-count strong,
  .tenders-count strong {
    font-size: 1.2rem;
  }

  .pagination-container {
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 8px;
    justify-content: center;
  }

  .pagination-btn {
    padding: 8px 14px;
    font-size: 1rem;
  }

  .pagination-info {
    font-size: 1rem;
    width: 100%;
    text-align: center;
    margin: 8px 0 0;
  }

  .btn-view-job,
  .btn-already-applied,
  .btn-view-tender,
  .btn-already-submitted {
    padding: 10px 18px;
    font-size: 1rem;
    white-space: nowrap;
  }

  .tenders-table .d-flex.gap-2 {
    flex-wrap: wrap;
    gap: 6px !important;
  }
}

@media (max-width: 576px) {
  .jobs-table {
    min-width: 580px;
  }

  .tenders-table {
    min-width: 480px;
  }

  .jobs-table th,
  .jobs-table td,
  .tenders-table th,
  .tenders-table td {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .full-width-content {
    padding: 0 10px;
  }
}