/* Strictly scoped – won't affect theme */
#scandia-careers-page {
  width: 100%;
  display: block;
  clear: both;
  color: #111 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

#scandia-careers-page .hero-wrap {
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 0 auto;
}

#scandia-careers-page .scandia-hero {
  height: clamp(380px, 45vh, 520px);
  overflow: hidden;
  border-radius: 14px;
  position: relative;
}

#scandia-careers-page .scandia-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

#scandia-careers-page .scandia-wrap {
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 40px 0;
}

#scandia-careers-page .section {
  margin: 42px 0;
}

#scandia-careers-page .section-title {
  font: 800 26px/1.2 system-ui;
  margin: 0 0 12px;
}

#scandia-careers-page h1 {
  font: 800 32px/1.2 system-ui;
  margin: 0 0 24px;
}

#scandia-careers-page h2 {
  font: 700 24px/1.3 system-ui;
  margin: 0 0 16px;
}

#scandia-careers-page h3 {
  font: 700 20px/1.3 system-ui;
  margin: 0 0 12px;
}

/* Company sections - Rounded logo containers like job cards */
.company-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e5e7eb;
}

.company-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.company-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 0;
}

/* RECTANGLE LOGOS: 250x100px with rounded corners */
.company-logo-rondel {
  width: 250px;
  height: 100px;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(221, 221, 221, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  background: #fff;
  padding: 12px;
  border-radius: 14px;
}

.company-name {
  font-size: 22px;
  font-weight: 800;
  color: #b02a1a;
  margin: 0;
}

/* FIXED 3-COLUMN GRID - Always 350px wide regardless of job count */
.company-jobs-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 350px); /* Fixed 350px columns */
  gap: 20px;
  margin-top: 16px;
  padding: 0;
  max-width: 1100px; /* 3 × 350px + 2 × 20px gaps */
}

.job-card-wide {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 22px 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform .2s, box-shadow .2s;
  width: 100%;
  box-sizing: border-box;
}

.job-card-wide:hover {
  transform: translateY(-4px);
}

.job-card-wide .title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.job-card-wide a {
  font-weight: 600;
  color: #b02a1a;
  text-decoration: none;
  display: inline-block;
  padding: 6px 0;
}

.job-card-wide a:hover {
  text-decoration: underline;
}



.job-card-wide .summary {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  margin: 0 0 10px;
}

/* Forms */
.form-block {
  padding: 30px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 10px;
}

@media (min-width: 640px) {
  #scandia-careers-page .fields {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 600;
  color: #111;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  transition: border-color .2s;
}

.field input:focus {
  outline: none;
  border-color: #b02a1a;
}

.field .note {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.field .file-help {
  font-size: 11px;
  color: #999;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
}

.checkbox input[type="checkbox"] {
  margin-top: 3px;
}

/* GREEN BUTTON - Maximum priority */
#scandia-careers-page .btn,
#scandia-careers-page button.btn,
#scandia-careers-page input[type="submit"].btn,
#scandia-careers-page .job-application-form .btn {
  background: #4CAF50 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 24px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

#scandia-careers-page .btn:hover,
#scandia-careers-page button.btn:hover {
  background: #43A047 !important;
}

#scandia-careers-page .btn:disabled {
  background: #9ca3af !important;
  cursor: not-allowed !important;
}

/* SINGLE JOB PAGE - NEW LAYOUT */
.single-job-page .job-content-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.single-job-page .job-content-main {
  min-width: 0;
}

.single-job-page .job-content-sidebar {
  position: sticky;
  top: 20px;
}

.single-job-page .job-content-sections {
  max-width: 800px;
}

.single-job-page .job-section {
  margin-bottom: 32px;
}

.single-job-page .section-content {
  line-height: 1.7;
  color: #333;
}

.single-job-page .contact-box {
  margin-top: 40px;
}

/* Notices */
.notice-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* RESPONSIVE - Fixed columns */
@media (max-width: 1200px) {
  .company-jobs-horizontal {
    grid-template-columns: repeat(2, 350px); /* 2 columns on tablets */
  }
}

@media (max-width: 768px) {
  #scandia-careers-page .scandia-hero {
    height: clamp(280px, 35vh, 360px);
  }
  
  #scandia-careers-page .company-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  #scandia-careers-page .company-logo-rondel {
    width: 200px;
    height: 80px;
    padding: 8px;
  }
  
  #scandia-careers-page .company-name {
    font-size: 20px;
  }
  
  .company-jobs-horizontal {
    grid-template-columns: 1fr !important; /* Full width on mobile */
  }
  
  #scandia-careers-page h1 {
    font-size: 24px;
  }
  
  #scandia-careers-page .scandia-wrap {
    padding: 20px 0;
  }
}

/* Permanent Companies Logos - LARGER Minimal Gallery */
.companies-logos-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 250px);
  gap: 30px;
  margin: 30px auto;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.company-logo-thumb {
  width: 250px;
  height: 250px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  border-radius: 0 !important;
}

/* Responsive: 2x2 on mobile and tablets */
@media (max-width: 1024px) {
  .companies-logos-thumbnails {
    grid-template-columns: repeat(2, 200px);
    gap: 25px;
  }
  
  .company-logo-thumb {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .companies-logos-thumbnails {
    grid-template-columns: repeat(2, 180px);
    gap: 20px;
  }
  
  .company-logo-thumb {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .companies-logos-thumbnails {
    grid-template-columns: repeat(2, 150px);
    gap: 15px;
  }
  
  .company-logo-thumb {
    width: 150px;
    height: 150px;
  }
}

/* Mobile job description fix */
@media (max-width: 768px) {
    /* Fix job content layout on mobile */
    .single-job-page .job-content-wrapper {
        display: block; /* Remove grid on mobile */
    }
    
    .single-job-page .job-content-sidebar {
        position: static; /* Remove sticky on mobile */
        margin-bottom: 20px;
        text-align: center;
    }
    
    /* Ensure text wraps properly */
    .single-job-page .section-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    /* Make job sections full width */
    .single-job-page .job-content-sections {
        max-width: 100%;
    }
    
    /* Fix form fields on mobile */
    .fields {
        grid-template-columns: 1fr !important;
    }
    
    /* Ensure proper spacing */
    .job-section {
        margin-bottom: 24px;
    }
    
    /* Make button full width for easier tapping */
    .actions button.btn {
        width: 100%;
    }
}
