/* ========================================
   SINGLE RECRUITMENT - CHI TIẾT TUYỂN DỤNG
   ======================================== */

/* Main Article */
.recruitment-detail-article {
  background: #fff;
  border-radius: 16px;
  padding: 3rem 3rem 0.2rem 3rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.text-primary {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
}

/* Thumbnail */
.recruitment-detail-thumbnail {
  margin: -3rem -3rem 2rem -3rem;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  height: 400px;
}

.recruitment-detail-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Breadcrumb */
.breadcrumb-nav {
  font-size: 14px;
  color: #666;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.breadcrumb-nav a {
  color: #003d82;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.breadcrumb-nav a:hover {
  color: #0052cc;
}

.breadcrumb-nav span {
  margin: 0 8px;
  color: var(--bs-body-color);
}

/* Title */
.recruitment-detail-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bs-info);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

/* Meta Tags */
.recruitment-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f1f5f9;
  color: #003d82;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 20px;
}

.meta-tag i {
  font-size: 0.875rem;
}

/* Content */
.recruitment-detail-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 3rem;
}

.recruitment-detail-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.recruitment-detail-content h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.recruitment-detail-content ul,
.recruitment-detail-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.recruitment-detail-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

/* Apply Section */
.recruitment-apply-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 3rem;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.apply-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #003d82;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.apply-section-title i {
  font-size: 1.5rem;
}

/* CF7 Form Styling */
.apply-form-wrapper .wpcf7-form {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.apply-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.apply-form-wrapper input[type="text"],
.apply-form-wrapper input[type="email"],
.apply-form-wrapper input[type="tel"],
.apply-form-wrapper input[type="url"],
.apply-form-wrapper select,
.apply-form-wrapper textarea {
  width: 100%;
  padding: 0px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
}

.apply-form-wrapper input:focus,
.apply-form-wrapper select:focus,
.apply-form-wrapper textarea:focus {
  outline: none;
  border-color: #003d82;
  box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

.apply-form-wrapper input[type="file"] {
  padding: 10px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.apply-form-wrapper input[type="file"]:hover {
  border-color: #003d82;
  background: #f1f5f9;
}

/* Acceptance checkbox */
.apply-form-wrapper .wpcf7-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 1rem;
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.apply-form-wrapper .wpcf7-acceptance input[type="checkbox"] {
  margin-top: 4px;
  width: auto;
}

.apply-form-wrapper .wpcf7-acceptance a {
  color: #003d82;
  font-weight: 600;
}

/* Submit Button */
.btn-submit-apply {
  width: 100%;
  padding: 16px 32px;
  background: #003d82;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 61, 130, 0.3);
}

.btn-submit-apply:hover {
  background: #0052cc;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 61, 130, 0.4);
}

/* CF7 Response Messages */
.apply-form-wrapper .wpcf7-response-output {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.apply-form-wrapper .wpcf7-mail-sent-ok {
  background: #d1fae5;
  color: #059669;
  border-left: 4px solid #10b981;
}

.apply-form-wrapper .wpcf7-validation-errors {
  background: #fee2e2;
  color: #dc2626;
  border-left: 4px solid #ef4444;
}

.recruitment-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.recruitment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.widget-related-jobs .recruitment-card .recruitment-card__title {
  font-size: 1rem;
}

/* CTA Widget */
.widget-cta-recruitment {
  background: linear-gradient(135deg, #003d82 0%, #0052cc 100%);
  color: #fff;
}

.widget-cta-recruitment .widget-title {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.widget-cta-recruitment p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: gray;
}

.btn-contact-us {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: var(--bs-info);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-contact-us:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  color: #fff;
}

.sidebar-recruitment {
  padding-left: 2rem;
  position: sticky;
  top: 80px;
}

.sidebar-recruitment .widget {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   VIEW ALL JOBS WIDGET
   ======================================== */

.widget-view-all-jobs {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: visible;
  position: relative;
}

.view-all-jobs-card {
  text-align: center;
  color: black;
}

.view-all-jobs-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--bs-info);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.view-all-jobs-icon svg {
  color: white;
}

.view-all-jobs-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: black;
  margin-bottom: 1rem;
}

.view-all-jobs-desc {
  color: black;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: left;
}

.btn-view-all-jobs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #fff;
  color: var(--bs-info);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-view-all-jobs:hover {
  background: var(--bs-info);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.btn-view-all-jobs svg {
  transition: transform 0.3s ease;
}

.btn-view-all-jobs:hover svg {
  transform: translateX(5px);
}

/* Contact Info */
.contact-info {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bs-gray-900);
  border-radius: 8px;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}

.contact-item i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 1.125rem;
  color: #fff;
  flex-shrink: 0;
}

.contact-item div {
  flex: 1;
  text-align: left;
}

.contact-item strong {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}

.contact-item a {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #f59e0b;
}

/* No jobs message */
.no-jobs {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-size: 0.9375rem;
  font-style: italic;
}

/* Widget Title cho recruitment sidebar */
.sidebar-recruitment .widget-title {
  border-bottom-color: #e5e7eb;
}

.sidebar-recruitment .widget-title span::before {
  background: linear-gradient(135deg, #003d82, #0052cc);
}

/* Ensure no horizontal scroll */
.recruitment-detail-page {
  overflow-x: hidden;
}

.recruitment-detail-article,
.recruitment-apply-section,
.apply-form-wrapper .wpcf7-form,
.apply-form-grid,
.form-field {
  max-width: 100%;
  box-sizing: border-box;
}

.apply-form-wrapper input,
.apply-form-wrapper select,
.apply-form-wrapper textarea {
  box-sizing: border-box;
  max-width: 100%;
}

/* Style cho text điều khoản dài */
.apply-form-wrapper .wpcf7-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 1rem;
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.7;
  text-align: left;
}

.apply-form-wrapper .wpcf7-acceptance label {
  font-weight: 400;
  margin: 0;
}

.apply-form-wrapper .wpcf7-acceptance input[type="checkbox"] {
  margin-top: 4px;
  width: auto;
  min-width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.countdown {
  font-size: 12px;
  padding: 6px 10px;
}

.closed-title {
  font-size: 1.2rem;
}

/* Responsive */

@media (max-width: 64em) {
  .sidebar-recruitment {
    padding-left: 0;
    padding-top: 2rem;
  }

  .view-all-jobs-icon {
    width: 60px;
    height: 60px;
  }

  .view-all-jobs-title {
    font-size: 1.125rem;
  }
  .recruitment-detail-article {
    padding: 2rem 1.5rem;
  }

  .recruitment-detail-thumbnail {
    margin: -2rem -1.5rem 2rem -1.5rem;
    height: 250px;
  }

  .recruitment-detail-title {
    font-size: 1.75rem;
  }

  .apply-form-grid {
    grid-template-columns: 1fr;
  }

  .recruitment-apply-section {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 48em) {
  /* Article padding nhỏ hơn */
  .recruitment-detail-article {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }

  .recruitment-detail-thumbnail {
    margin: -1.5rem -1rem 1.5rem -1rem;
    height: 250px;
    border-radius: 12px 12px 0 0;
  }

  .recruitment-detail-title {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  /* Apply Section */
  .recruitment-apply-section {
    padding: 1.5rem 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 12px;
  }

  .apply-section-title {
    font-size: 1.25rem;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Form wrapper */
  .apply-form-wrapper .wpcf7-form {
    padding: 1.5rem 1rem;
  }

  /* Grid 1 column on mobile */
  .apply-form-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* Form fields */
  .form-field {
    margin-bottom: 0;
  }

  .form-field label {
    font-size: 0.875rem;
    margin-bottom: 6px;
  }

  .apply-form-wrapper input[type="text"],
  .apply-form-wrapper input[type="email"],
  .apply-form-wrapper input[type="tel"],
  .apply-form-wrapper input[type="url"],
  .apply-form-wrapper select,
  .apply-form-wrapper textarea {
    /* padding: 12px 14px; */
    font-size: 0.9375rem;
  }

  /* File upload */
  .apply-form-wrapper input[type="file"] {
    padding: 8px;
    font-size: 0.875rem;
  }

  /* Acceptance */
  .apply-form-wrapper .wpcf7-acceptance {
    padding: 0.75rem;
    font-size: 0.8125rem;
  }

  /* Submit button */
  .btn-submit-apply {
    padding: 14px 24px;
    font-size: 1rem;
  }

  /* Sidebar */
  .sidebar-recruitment {
    padding-left: 0;
    padding-top: 2rem;
    position: static;
  }

  /* Mini cards mobile */
  .recruitment-card--mini {
    padding: 1rem;
  }

  .recruitment-card--mini .recruitment-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .recruitment-card--mini .recruitment-card__logo {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
  }

  .recruitment-card--mini .recruitment-card__title {
    font-size: 0.9375rem;
  }

  .recruitment-card--mini .recruitment-card__actions {
    flex-direction: column;
  }

  .recruitment-card--mini .btn-detail,
  .recruitment-card--mini .btn-apply {
    width: 100%;
  }

  .recruitment-detail-page .row-main {
    margin-left: 0;
    margin-right: 0;
  }

  .recruitment-detail-page .large-8.col,
  .recruitment-detail-page .large-4.col {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 36em) {
  .sidebar-recruitment .widget {
    padding: 1rem;
  }

  .recruitment-card .countdown {
    font-size: 10px;
    flex-wrap: wrap;
  }

  .form-field {
    max-width: 100%;
  }

  .widget-content {
    gap: 0;
  }

  /* Extra small mobile */
  .recruitment-detail-article {
    padding: 1rem 0.75rem;
  }

  .recruitment-detail-thumbnail {
    margin: -1rem -0.75rem 1rem -0.75rem;
    height: 200px;
  }

  .recruitment-detail-title {
    font-size: 1.25rem;
  }

  .recruitment-apply-section {
    padding: 1.25rem 0.75rem;
    margin: 0 auto;
  }

  .apply-form-wrapper .wpcf7-form {
    padding: 1.25rem 0.75rem;
  }

  .apply-form-grid {
    gap: 0.75rem;
    text-align: center;
    width: 100%;
  }

  .apply-form-wrapper input,
  .apply-form-wrapper select,
  .apply-form-wrapper textarea {
    padding: 0px 12px;
    font-size: 0.875rem;
    width: 100%;
  }

  .btn-submit-apply {
    padding: 12px 20px;
    font-size: 0.9375rem;
  }

  /* Meta tags wrap */
  .recruitment-detail-meta {
    gap: 8px;
  }

  .meta-tag {
    padding: 6px 12px;
    font-size: 0.8125rem;
  }

  /* Content */
  .recruitment-detail-content {
    font-size: 0.9375rem;
  }

  .recruitment-detail-content h2 {
    font-size: 1.375rem;
  }

  .recruitment-detail-content h3 {
    font-size: 1.125rem;
  }

  .closed-title {
    font-size: 1rem;
  }
}

@media (max-width: 30em) {
  .apply-form-wrapper .wpcf7-acceptance {
    padding: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.6;
  }

  .apply-form-wrapper .wpcf7-acceptance input[type="checkbox"] {
    min-width: 16px;
    height: 16px;
  }
}

@media (max-width: 26.875em) {
}
