/**
 * Frontend Styles for Job Offers Manager
 */

/* Container */
.jom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.jom-btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.jom-btn-primary {
  background-color: #e63946;
  color: #fff;
}

.jom-btn-primary:hover {
  background-color: #d62839;
  color: #fff;
}

.jom-btn-secondary {
  background-color: #fff;
  color: #e63946;
  border: 2px solid #e63946;
}

.jom-btn-secondary:hover {
  background-color: #e63946;
  color: #fff;
}

.jom-btn-lg {
  padding: 15px 40px;
  font-size: 18px;
}

/* Hero Section */
.jom-hero {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.jom-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.jom-offer-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
}

/* Offer Meta Information */
.jom-offer-meta {
  margin-bottom: 30px;
}

.jom-meta-item {
  font-size: 16px;
  color: #444;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.jom-meta-item strong {
  color: #1a1a1a;
  min-width: 150px;
}

.jom-dates-text {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.jom-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Conditions Section */
.jom-conditions {
  padding: 80px 0;
}

.jom-conditions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.jom-conditions-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.jom-conditions h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: #1a1a1a;
}

.jom-requirements {
  line-height: 1.8;
}

.jom-requirements ul {
  list-style: none;
  padding: 0;
}

.jom-requirements li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
}

.jom-requirements li:before {
  content: "●";
  position: absolute;
  left: 0;
  color: #e63946;
  font-size: 20px;
}

/* Development Section */
.jom-development {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.jom-development h2 {
  font-size: 36px;
  margin-bottom: 30px;
  text-align: center;
  color: #1a1a1a;
}

.jom-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 16px;
}

/* Process Section */
.jom-process {
  padding: 80px 0;
}

.jom-process h2 {
  font-size: 36px;
  margin-bottom: 15px;
  text-align: center;
  color: #1a1a1a;
}

.jom-process-subtitle {
  text-align: center;
  font-size: 20px;
  color: #666;
  margin-bottom: 50px;
}

.jom-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.jom-step {
  text-align: center;
  padding: 30px 20px;
}

.jom-step-number {
  display: inline-block;
  padding: 8px 20px;
  background-color: #e63946;
  color: #fff;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.jom-step h3 {
  font-size: 18px;
  line-height: 1.6;
  color: #1a1a1a;
}

/* CTA Section */
.jom-cta {
  padding: 80px 0;
  background-color: #e63946;
  text-align: center;
}

.jom-cta h2 {
  font-size: 42px;
  color: #fff;
  margin-bottom: 30px;
}

/* Related Offers */
.jom-related {
  padding: 80px 0;
}

.jom-related h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  color: #1a1a1a;
}

.jom-offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.jom-offer-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.jom-offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.jom-card-image {
  height: 200px;
  overflow: hidden;
}

.jom-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jom-card-content {
  padding: 25px;
}

.jom-card-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.jom-card-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.jom-card-title a:hover,
.jom-card-title a:focus {
  color: #e63946;
  text-decoration: none !important;
  border-bottom: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

.jom-offer-card .jom-btn,
.jom-offer-card .jom-btn:hover,
.jom-offer-card .jom-btn:focus {
  text-decoration: none !important;
  border-bottom: none !important;
  background-image: none !important;
}

.jom-card-meta {
  margin-bottom: 15px;
}

.jom-card-meta p {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.4;
}

.jom-card-meta strong {
  color: #444;
}

.jom-card-dates {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.jom-card-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Archive Page */
.jom-archive {
  padding: 60px 0;
}

.jom-archive-header {
  text-align: center;
  margin-bottom: 50px;
}

.jom-archive-title {
  font-size: 48px;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.jom-archive-count {
  font-size: 18px;
  color: #666;
}

/* Pagination */
.jom-pagination {
  margin-top: 50px;
  text-align: center;
}

.jom-pagination .page-numbers {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  background-color: #f8f9fa;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.jom-pagination .page-numbers:hover,
.jom-pagination .page-numbers.current {
  background-color: #e63946;
  color: #fff;
}

.jom-no-results {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: #666;
}

/* Modal */
.jom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.jom-modal.active {
  display: block;
}

.jom-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.jom-modal-content {
  position: relative;
  max-width: 600px;
  margin: 50px auto;
  background-color: #fff;
  border-radius: 10px;
  padding: 40px;
  max-height: 90vh;
  overflow-y: auto;
}

.jom-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  line-height: 30px;
}

.jom-modal-close:hover {
  color: #e63946;
}

.jom-modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.jom-modal-header h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.jom-modal-subtitle {
  color: #666;
  font-size: 16px;
}

/* Form */
.jom-form-group {
  margin-bottom: 20px;
}

.jom-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a1a1a;
}

.jom-form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.jom-form-control:focus {
  outline: none;
  border-color: #e63946;
}

.jom-form-actions {
  text-align: center;
  margin-top: 30px;
}

.jom-form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
}

.jom-form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.jom-form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
  .jom-hero-content,
  .jom-conditions-grid {
    grid-template-columns: 1fr;
  }

  .jom-offer-title {
    font-size: 32px;
  }

  .jom-steps {
    grid-template-columns: 1fr;
  }

  .jom-offers-grid {
    grid-template-columns: 1fr;
  }

  .jom-modal-content {
    margin: 20px;
    padding: 30px 20px;
  }
}
