/* ============================================
   OUR MINES SECTION - Mining Operations
   ============================================ */
.our-mines-section {
  padding: var(--section-padding-y) var(--section-padding-x);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.our-mines-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.our-mines__container {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Section Header */
.our-mines__header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 5rem;
}

.our-mines__title {
  font-family: var(--font-heading);
  font-size: var(--display-size);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.our-mines__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Quality Assurance Bento Grid */
.qa-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card Outer Shell (Double-Bezel) */
.qa-card__outer-shell {
  background: rgba(17, 30, 47, 0.03);
  border: 1px solid rgba(17, 30, 47, 0.08);
  padding: 8px;
  height: 100%;
  transition: all 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Card Inner Core (Double-Bezel Content) */
.qa-card__inner-core {
  background: #111e2f; /* Dark background to showcase high-end laboratory aesthetics */
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem;
  height: 100%;
  position: relative;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), var(--shadow-sm);
  transition: all 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Asymmetric Bento Span Definitions */
.qa-card--large {
  grid-column: span 7;
}

.qa-card--medium {
  grid-column: span 5;
}

/* Card Image Background (e.g. for Lab testing card) */
.qa-card__bg-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.qa-card__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  transition: transform 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}

.qa-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 30, 47, 0.2) 0%, rgba(17, 30, 47, 0.95) 100%);
}

.qa-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-grow: 1;
}

/* Align text to bottom for lab image card */
.qa-card--lab .qa-card__content {
  justify-content: flex-end;
  min-height: 380px;
}

/* Icons */
.qa-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(230, 92, 26, 0.06);
  border: 1px solid rgba(230, 92, 26, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}

.qa-card__icon svg {
  color: var(--primary-gold-400);
}

/* Eyebrow tag */
.qa-card__tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-gold-400);
  margin-bottom: 1rem;
}

/* Heading */
.qa-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Description */
.qa-card__text {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--navy-100);
  margin-bottom: 2rem;
  flex-grow: 1;
  text-align: justify;
}

/* Metrics row */
.qa-card__metrics {
  display: flex;
  gap: 2.0rem;
  justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.qa-card__metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  flex: 1;
}

.qa-card__metric-val {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--primary-gold-400);
  letter-spacing: 0.02em;
}

.qa-card__metric-lbl {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--navy-200);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Interactive Hover States */
.qa-card:hover .qa-card__outer-shell {
  border-color: rgba(230, 92, 26, 0.22);
  box-shadow: 0 16px 40px rgba(230, 92, 26, 0.04);
  background: rgba(230, 92, 26, 0.02);
}

.qa-card:hover .qa-card__inner-core {
  border-color: rgba(230, 92, 26, 0.4);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08), 0 20px 48px rgba(10, 22, 40, 0.25);
  transform: translateY(-2px);
}

.qa-card:hover .qa-card__bg-image {
  transform: scale(1.04);
  opacity: 0.28;
}

.qa-card:hover .qa-card__icon {
  transform: scale(1.08);
  background: rgba(230, 92, 26, 0.12);
  border-color: rgba(230, 92, 26, 0.35);
  box-shadow: 0 0 15px rgba(230, 92, 26, 0.1);
}

/* Responsive Collapses */
@media (max-width: 992px) {
  .qa-card--large, .qa-card--medium {
    grid-column: span 12;
  }
  
  .qa-card--lab .qa-card__content {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .qa-bento-grid {
    gap: 1.5rem;
  }
  
  .qa-card__inner-core {
    padding: 2rem;
  }
  
  .qa-card__metrics {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
}