/* Career Single Page - Figma Design Implementation */

/* Root Variables */
:root {
  --qccb-navy: #28465a;
  --qccb-navy-dark: #234155;
  --qccb-teal: #3ca5aa;
  --qccb-orange: #ff914c;
  --qccb-cream: #f5f5f0;
  --qccb-white: #ffffff;
}

/* Hide Elementor's default page header for career posts */
.single-career .page-header {
  display: none;
}

/* Main Container */
.qccb-career-single {
  width: 100%;
  margin: 0;
  padding: 0;
  /* Hero Section - Full Width Breakout */
  .qccb-career-single__hero {
    background-color: var(--qccb-navy);
    padding: 4rem 2rem;
    margin: 0 0 3rem 0;
    /* Break out of parent container constraints */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  .qccb-career-single__hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .qccb-career-single__title {
    font-family: "Open Sans", sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--qccb-white);
    margin: 0;
    line-height: 1.2;
  }

  /* Main Content Container */
  .qccb-career-single__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 3rem;
    align-items: start;
  }

  /* Sticky Sidebar */
  .qccb-career-single__sidebar {
    position: sticky;
    top: 10rem;
    background-color: var(--qccb-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .qccb-career-single__sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }

  .qccb-career-single__sidebar-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.25rem;
  }

  .qccb-career-single__sidebar-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
  }

  .qccb-career-single__sidebar-date {
    font-size: 1rem;
    font-weight: 600;
    color: var(--qccb-navy);
  }

  .qccb-career-single__sidebar-cta {
    margin-top: 1rem;
  }

  .qccb-career-single__sidebar-cta a,
  .qccb-career-single__sidebar-cta .elementor-button,
  .qccb-apply-button {
    display: inline-block;
    width: 100%;
    background-color: var(--qccb-orange);
    color: var(--qccb-white);
    padding: 0.75rem 1.5rem;
    border-radius: 1.3rem;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 3px solid var(--qccb-orange);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
  }

  .qccb-career-single__sidebar-cta a:hover,
  .qccb-career-single__sidebar-cta .elementor-button:hover,
  .qccb-apply-button:hover {
    background-color: #e8823d;
    border-color: #e8823d;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .qccb-career-single__sidebar-closed {
    background-color: #e0e0e0;
    color: #666;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
  }

  .qccb-career-single__sidebar-posted {
    font-size: 0.875rem;
    color: #999;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
  }

  /* Main Content Area */
  .qccb-career-single__content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  /* Section Styling */
  .qccb-career-single__section {
    background-color: var(--qccb-white);
  }

  .qccb-career-single__section-heading {
    font-family: "Open Sans", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--qccb-navy);
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
  }

  .qccb-career-single__section-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
  }

  .qccb-career-single__section-content p {
    margin: 0 0 1rem 0;
  }

  .qccb-career-single__section-content ul,
  .qccb-career-single__section-content ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
  }

  .qccb-career-single__section-content li {
    margin-bottom: 0.5rem;
  }

  /* About QC Section with Decorative Background */
  .qccb-career-single__section--about-qc {
    background-image: url("../assets/images/career-bg-decorative.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 3rem 3rem 3rem;
    border-radius: 12px;
  }

  /* About the Role Section */
  .qccb-career-single__section--about-role {
    background-color: var(--qccb-cream);
    padding: 3rem;
    border-radius: 12px;
  }

  /* Requirements Section (Dark Split Layout) */
  .qccb-career-single__section--requirements {
    background-color: transparent;
    padding: 0;
  }

  .qccb-career-single__section-heading--requirements {
    color: var(--qccb-white);
    margin: 0;
    padding: 3rem 3rem 2rem 3rem;
    background-color: var(--qccb-navy);
    border-radius: 12px 12px 0 0;
  }

  .qccb-career-single__requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
  }

  .qccb-career-single__requirements-column {
    padding: 3rem;
    color: var(--qccb-white);
  }

  .qccb-career-single__requirements-column--essential {
    background-color: var(--qccb-navy);
  }

  .qccb-career-single__requirements-column--desirable {
    background-color: var(--qccb-navy-dark);
  }

  .qccb-career-single__requirements-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--qccb-white);
    margin: 0 0 1.5rem 0;
  }

  .qccb-career-single__requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .qccb-career-single__requirements-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .qccb-career-single__requirements-list li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: var(--qccb-teal);
    font-size: 1.5rem;
    line-height: 1;
  }

  /* Benefits Section */
  .qccb-career-single__section--benefits {
    background-color: var(--qccb-cream);
    padding: 3rem;
    border-radius: 12px;
  }

  .qccb-career-single__benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .qccb-career-single__benefits-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #333;
  }

  .qccb-career-single__benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--qccb-teal);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
  }

  /* Free Content Section */
  .qccb-career-single__section--free-content {
    padding: 2rem 0;
  }

  /* Mobile Meta Info Section - Shown only on mobile/tablet */
  .qccb-career-single__mobile-meta {
    display: none;
  }

  /* Responsive Design */
  @media (max-width: 1024px) {
    .qccb-career-single__title {
      font-size: 2.5rem;
    }

    .qccb-career-single__hero {
      margin-bottom: 0;
    }

    .qccb-career-single__container {
      grid-template-columns: 1fr;
      gap: 0;
      padding: 0;
    }

    /* Hide desktop sidebar on mobile/tablet */
    .qccb-career-single__sidebar {
      display: none;
    }

    /* Show mobile meta section */
    .qccb-career-single__mobile-meta {
      display: block;
      background-color: var(--qccb-cream);
      padding: 2rem;
      width: 100vw;
      left: 50%;
      right: 50%;
      margin-left: -50vw;
      margin-right: -50vw;
      position: relative;
      margin-bottom: 0;
    }

    .qccb-career-single__mobile-meta-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .qccb-career-single__mobile-meta-item {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
    }

    .qccb-career-single__mobile-meta-icon {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
      margin-top: 0.125rem;
    }

    .qccb-career-single__mobile-meta-label {
      font-size: 0.875rem;
      color: #666;
      margin-bottom: 0.25rem;
    }

    .qccb-career-single__mobile-meta-value {
      font-size: 1rem;
      font-weight: 600;
      color: var(--qccb-navy);
    }

    .qccb-career-single__mobile-meta-cta {
      grid-column: 1 / -1;
      margin-top: 1rem;
    }

    .qccb-career-single__mobile-meta-cta a,
    .qccb-career-single__mobile-meta-cta .elementor-button,
    .qccb-career-single__mobile-meta-cta .qccb-apply-button {
      display: inline-block;
      width: 100%;
      background-color: var(--qccb-orange);
      color: var(--qccb-white);
      padding: 0.75rem 1.5rem;
      border-radius: 1.3rem;
      text-align: center;
      text-decoration: none;
      font-weight: 600;
      transition: all 0.3s ease;
      border: 3px solid var(--qccb-orange);
      cursor: pointer;
      font-size: 1rem;
      line-height: 1;
    }

    .qccb-career-single__mobile-meta-cta a:hover,
    .qccb-career-single__mobile-meta-cta .elementor-button:hover,
    .qccb-career-single__mobile-meta-cta .qccb-apply-button:hover {
      background-color: #e8823d;
      border-color: #e8823d;
      text-decoration: none;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .qccb-career-single__mobile-meta-closed {
      grid-column: 1 / -1;
      background-color: #e0e0e0;
      color: #666;
      padding: 1rem;
      border-radius: 8px;
      text-align: center;
      font-weight: 600;
      margin-top: 1rem;
    }

    .qccb-career-single__content {
      gap: 0;
      padding: 0;
    }

    /* Make all sections full-width with no border-radius */
    .qccb-career-single__section--about-qc,
    .qccb-career-single__section--about-role,
    .qccb-career-single__section--benefits {
      border-radius: 0;
      width: 100vw;
      left: 50%;
      right: 50%;
      margin-left: -50vw;
      margin-right: -50vw;
      position: relative;
      padding: 2rem;
    }

    .qccb-career-single__section--requirements {
      width: 100vw;
      left: 50%;
      right: 50%;
      margin-left: -50vw;
      margin-right: -50vw;
      position: relative;
      padding: 2rem 2rem 0 2rem;
      background-color: var(--qccb-navy);
    }

    .qccb-career-single__requirements-grid {
      grid-template-columns: 1fr;
      border-radius: 0;
      width: 100vw;
      left: 50%;
      right: 50%;
      margin-left: -50vw;
      margin-right: -50vw;
      position: relative;
    }

    .qccb-career-single__section-heading--requirements {
      padding: 0;
      margin-bottom: 1.5rem;
      color: var(--qccb-white);
      border-radius: 0;
    }

    .qccb-career-single__requirements-column {
      width: 100vw;
      position: relative;
    }

    .qccb-career-single__requirements-column--essential {
      padding: 2rem;
    }

    .qccb-career-single__requirements-column--desirable {
      padding: 2rem;
    }

    /* Mobile meta section after benefits - appears seamless */
    .qccb-career-single__mobile-meta--bottom {
      display: block;
      background-color: var(--qccb-cream);
      padding: 2rem;
      width: 100vw;
      left: 50%;
      right: 50%;
      margin-left: -50vw;
      margin-right: -50vw;
      position: relative;
      margin-top: 0;
      border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
  }

  @media (max-width: 768px) {
    .qccb-career-single__hero {
      padding: 2rem 1.5rem;
    }

    .qccb-career-single__hero-content {
      padding: 0;
    }

    .qccb-career-single__title {
      font-size: 2rem;
    }

    .qccb-career-single__section-heading {
      font-size: 1.5rem;
    }

    .qccb-career-single__section--about-qc,
    .qccb-career-single__section--about-role,
    .qccb-career-single__section--benefits {
      padding: 2rem 1.5rem;
    }

    .qccb-career-single__mobile-meta {
      padding: 1.5rem;
    }

    .qccb-career-single__mobile-meta-grid {
      grid-template-columns: 1fr;
      gap: 1.25rem;
    }

    .qccb-career-single__section--requirements {
      padding: 1.5rem 1.5rem 0 1.5rem;
    }

    .qccb-career-single__requirements-column {
      padding: 1.5rem 1rem;
    }

    .qccb-career-single__mobile-meta--bottom {
      padding: 1.5rem;
    }

    .qccb-career-single__section-content {
      font-size: 1rem;
    }

    .qccb-career-single__benefits-list li {
      font-size: 1rem;
    }
  }

  @media (max-width: 480px) {
    .qccb-career-single__hero {
      padding: 1.5rem 1rem;
    }

    .qccb-career-single__title {
      font-size: 1.75rem;
    }

    .qccb-career-single__mobile-meta {
      padding: 1.5rem 1rem;
    }

    .qccb-career-single__section--about-qc,
    .qccb-career-single__section--about-role,
    .qccb-career-single__section--benefits {
      padding: 1.5rem 1rem;
    }

    .qccb-career-single__section--requirements {
      padding: 1.5rem 1rem 0 1rem;
    }

    .qccb-career-single__requirements-column {
      padding: 1.5rem 1rem;
    }

    .qccb-career-single__mobile-meta--bottom {
      padding: 1.5rem 1rem;
    }
  }
}
