/*
Theme Name: Brixey Child
Theme URI: [your-theme-uri]
Description: Child theme for Brixey
Author: [your-name]
Author URI: [your-uri]
Template: brixey
Version: 1.0.0
*/

/* Layout Styles */
.container-fluid {
  padding-left: 30px;
  padding-right: 30px;
}

/* Hero Styles based on parent theme */
.page-hero.slideshow .hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.page-hero.slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
}

/* Hero Section Styles */
.page-hero {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 15px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

/* Custom Hero Styles */
.brxy-custom-hero {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brxy-custom-hero .container {
  width: 100%;
}

.brxy-heading {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
}

.brxy-sub-heading {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 400;
}

/* Careers Page Styles */
.theme-brixey-child .careers-container {
  padding: 80px 0;
  background-color: #f7f8f9;
}

.careers-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 20px;
  text-align: center;
}

.page-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--theme-accent-color);
}

/* Job Listings Styles */
.job-listings {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2rem;
}

/* When only one job listing exists */
.job-listings > *:first-child:nth-last-child(1) {
  grid-column: 1 / -1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .job-listings {
    grid-template-columns: 1fr;
  }
}

.job-row {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.job-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.job-header {
  margin-bottom: 0.5rem;
}

.job-type-label {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: var(--theme-accent-color);
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.job-title {
  font-size: 1.2rem;
  margin: 0;
}

.job-title a {
  color: var(--brxy-heading-color);
  text-decoration: none;
}

.job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.job-location {
  color: #666;
  font-size: 0.9rem;
}

.job-location i {
  color: var(--theme-accent-color);
  margin-right: 0.5rem;
}

.job-read-more {
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: var(--theme-accent-color);
  border: 2px solid var(--theme-accent-color);
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-left: auto;
}

.job-read-more:hover {
  background-color: var(--theme-accent-color);
  color: #fff;
}

/* No jobs message styling */
.no-jobs {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: #ffffff;
  border-radius: 12px;
  border: 2px dashed #eaeaea;
}

.no-jobs i {
  font-size: 3.5rem;
  color: var(--theme-accent-color);
  margin-bottom: 1rem;
}

.no-jobs p {
  color: #666;
  font-size: 1.1rem;
}

/* Single Job Page Styles */
.job-single-container {
  padding: 60px 0;
  background-color: #f7f8f9;
}

.job-single {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.job-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.job-single .job-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

.job-single .job-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.job-single .job-meta span {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: #f8f9fa;
  border-radius: 20px;
  font-size: 0.95rem;
  color: #666;
}

.job-single .job-meta i {
  margin-right: 8px;
  color: var(--theme-accent-color);
}

.job-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 40px;
}

.job-application {
  background: #fff5e6;
  padding: 30px;
  border-radius: 8px;
  margin: 40px 0;
}

.job-application h3 {
  color: #cc7a00;
  margin-bottom: 15px;
}

.job-share {
  border-top: 1px solid #eee;
  padding-top: 30px;
  margin-top: 30px;
}

.job-share h4 {
  margin-bottom: 15px;
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  background: #f8f9fa;
  color: #666;
  transition: all 0.3s ease;
}

.share-link:hover {
  transform: translateY(-2px);
}

.share-link.linkedin:hover {
  background: #0077b5;
  color: #fff;
}

.share-link.xing:hover {
  background: #126567;
  color: #fff;
}

/* Job Application Button */
.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background-color: var(--theme-accent-color) !important;
  color: #fff !important;
  border: 2px solid var(--theme-accent-color) !important;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-apply:hover {
  background-color: transparent;
  color: var(--theme-accent-color);
}

.btn-apply i {
  font-size: 1.1em;
}

/* Team member styling */
.mate-list {
  position: relative;
  display: block !important;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.mate-list.brxy-hover {
  transform: translateY(-5px);
}

.mate-picture {
  position: relative;
  overflow: hidden;
}

.mate-picture img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.mate-list.brxy-hover .mate-picture img {
  transform: scale(1.05);
}

/* Initial info (name and position) */
.mate-info-initial {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  transition: transform 0.4s ease;
  text-align: left;
}

.mate-info-initial {
  -webkit-transition: -webkit-transform 0.4s ease;
  transition: transform 0.4s ease;
}

.mate-list.brxy-hover .mate-info-initial {
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
}

.mate-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.mate-designation {
  font-size: 14px;
  opacity: 0.8;
}

/* Hover info (description, email, phone) */
.mate-info-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 20px;
  transform: translateY(101%);
  transition: transform 0.4s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mate-info-hover {
  -webkit-transform: translateY(101%);
  transform: translateY(101%);
  -webkit-transition: -webkit-transform 0.4s ease;
  transition: transform 0.4s ease;
}

.mate-list.brxy-hover .mate-info-hover {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.mate-description {
  margin-bottom: 15px;
  flex: 1;
  overflow-y: auto;
  line-height: 1.6;
}

.mate-email,
.mate-number {
  margin-bottom: 8px;
  font-size: 14px;
}
.mate-number {
  margin-bottom: 0;
}
.mate-label {
  font-weight: 600;
  margin-right: 5px;
}

.mate-info-hover a {
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.mate-info-hover a:hover {
  opacity: 0.8;
  color: #fff;
}

/* Scrollbar styling for description */
.mate-description::-webkit-scrollbar {
  width: 4px;
}

.mate-description::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.mate-description::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .careers-container {
    padding: 40px 0;
  }

  .job-listings {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  .job-row {
    padding: 1.25rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .job-single-container {
    padding: 30px 0;
  }

  .job-single {
    padding: 20px;
  }

  .job-single .job-title {
    font-size: 2rem;
  }

  .brxy-custom-hero {
    min-height: 300px;
    padding: 100px 0 !important;
  }

  .brxy-heading {
    font-size: 36px;
  }

  .brxy-sub-heading {
    font-size: 20px;
  }

  .job-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .job-row-main {
    padding-right: 0;
  }

  .job-row .job-meta {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .left-sidebar .careers-container {
    padding-left: 30px;
  }

  .right-sidebar .careers-container {
    padding-right: 30px;
  }
}
