/* ==========================================================================
   BMT Premium Industrial Design System Stylesheet
   Color Tokens:
   - Primary Green: #168447
   - Deep Green:    #105C32
   - White:         #FFFFFF
   - Light Grey:    #F3F5F4
   - Charcoal:      #222B27
   ========================================================================== */

/* 1. Global Reset & Typography */
body.bmt-industrial-theme {
  font-family: var(--bmt-font-sans);
  color: var(--bmt-text-body);
  background-color: var(--bmt-white);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.bmt-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* 2. Global Header */
.bmt-header {
  background-color: var(--bmt-white);
  border-bottom: 1px solid var(--bmt-border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--bmt-shadow-sm);
}

.bmt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.bmt-logo-link,
.custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.bmt-logo-img,
.custom-logo,
.bmt-logo-area img {
  max-width: 215px;
  max-height: 76px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.bmt-hamburger-btn {
  display: none !important;
}

.bmt-mobile-nav {
  display: none;
  background: var(--bmt-white);
  border-top: 1px solid var(--bmt-border-color);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.bmt-mobile-nav.is-open {
  display: block !important;
}

@media (min-width: 1025px) {
  .bmt-hamburger-btn {
    display: none !important;
  }
  .bmt-mobile-nav {
    display: none !important;
  }
  .bmt-nav-desktop {
    display: flex !important;
  }
}

.bmt-nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.bmt-nav-desktop a {
  color: var(--bmt-charcoal);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 8px 0;
  position: relative;
}

.bmt-nav-desktop a:hover,
.bmt-nav-desktop a.active {
  color: var(--bmt-primary-green);
}

.bmt-nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--bmt-primary-green);
}

/* Buttons */
.bmt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--bmt-radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.bmt-btn-primary {
  background-color: var(--bmt-primary-green);
  color: var(--bmt-white) !important;
}

.bmt-btn-primary:hover {
  background-color: var(--bmt-deep-green);
  box-shadow: var(--bmt-shadow-sm);
}

.bmt-btn-secondary {
  background-color: var(--bmt-charcoal);
  color: var(--bmt-white) !important;
}

.bmt-btn-secondary:hover {
  background-color: var(--bmt-dark-slate);
}

.bmt-btn-outline {
  background-color: transparent;
  border-color: var(--bmt-charcoal);
  color: var(--bmt-charcoal) !important;
}

.bmt-btn-outline:hover {
  background-color: var(--bmt-light-grey);
}

.bmt-btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF !important;
}

.bmt-btn-whatsapp:hover {
  background-color: #1EBE5D;
}

/* 3. Section Styling */
.bmt-section {
  padding: 80px 0;
}

.bmt-section-light {
  background-color: var(--bmt-light-grey);
}

.bmt-section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px auto;
}

.bmt-badge {
  display: inline-block;
  background-color: rgba(22, 132, 71, 0.1);
  color: var(--bmt-primary-green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.bmt-section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--bmt-charcoal);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.bmt-section-subtitle {
  font-size: 17px;
  color: var(--bmt-text-muted);
  margin: 0;
}

/* 4. Section 2: Hero */
.bmt-hero-section {
  background-color: var(--bmt-white);
  padding: 60px 0 80px 0;
  border-bottom: 1px solid var(--bmt-border-color);
}

.bmt-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.bmt-hero-headline {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--bmt-charcoal);
  margin: 0 0 20px 0;
  letter-spacing: -0.03em;
}

.bmt-hero-subtext {
  font-size: 18px;
  color: var(--bmt-text-muted);
  margin: 0 0 32px 0;
  line-height: 1.6;
}

.bmt-hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.bmt-hero-image-wrap {
  position: relative;
  border-radius: var(--bmt-radius-md);
  overflow: hidden;
  box-shadow: var(--bmt-shadow-lg);
  border: 1px solid var(--bmt-border-color);
  background-color: var(--bmt-light-grey);
}

.bmt-hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 5. Section 3: Machine Cards */
.bmt-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.bmt-machine-card,
.bmt-spare-part-card {
  background-color: var(--bmt-white);
  border: 1px solid var(--bmt-border-color);
  border-radius: var(--bmt-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bmt-machine-card:hover,
.bmt-spare-part-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bmt-shadow-md);
  border-color: #B5C4BC;
}

.bmt-card-img-wrap {
  height: 240px;
  background-color: #F0F4F2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--bmt-border-color);
}

.bmt-card-img-wrap a.bmt-card-img-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.bmt-card-img-wrap img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bmt-machine-card:hover .bmt-card-img-wrap img,
.bmt-spare-part-card:hover .bmt-card-img-wrap img {
  transform: scale(1.04);
}

/* Neutral Professional Product Placeholder */
.bmt-placeholder-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #F5F7F6 0%, #E3E9E6 100%);
  color: var(--bmt-text-muted);
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
  text-decoration: none;
  transition: background 0.25s ease;
}

.bmt-machine-card:hover .bmt-placeholder-wrap,
.bmt-spare-part-card:hover .bmt-placeholder-wrap {
  background: linear-gradient(145deg, #EBF1EE 0%, #D8E1DD 100%);
}

.bmt-placeholder-icon {
  margin-bottom: 10px;
  color: var(--bmt-primary-green);
  opacity: 0.85;
  transition: transform 0.25s ease;
}

.bmt-machine-card:hover .bmt-placeholder-icon,
.bmt-spare-part-card:hover .bmt-placeholder-icon {
  transform: scale(1.08);
}

.bmt-placeholder-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--bmt-charcoal);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.bmt-placeholder-sub {
  font-size: 12px;
  color: var(--bmt-text-muted);
  font-weight: 500;
  display: block;
}

.bmt-single-image-wrap .bmt-placeholder-wrap {
  min-height: 380px;
  border-radius: var(--bmt-radius-sm);
  border: 1px solid var(--bmt-border-color);
}

.bmt-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bmt-card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--bmt-charcoal);
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.bmt-card-title a {
  color: var(--bmt-charcoal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bmt-card-title a:hover,
.bmt-card-title a:focus {
  color: var(--bmt-primary-green);
}

.bmt-card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--bmt-text-muted);
  margin: 0 0 16px 0;
}

.bmt-spec-summary {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  font-size: 13.5px;
  color: var(--bmt-text-muted);
}

.bmt-spec-summary li {
  padding: 5px 0;
  border-bottom: 1px dashed var(--bmt-border-color);
  display: flex;
  justify-content: space-between;
}

.bmt-card-footer {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.bmt-card-footer .bmt-btn {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--bmt-radius-sm);
  white-space: nowrap;
}

.bmt-archive-cta-row {
  margin-top: 40px;
  text-align: center;
}

.bmt-archive-cta-row .bmt-btn {
  transition: all 0.25s ease;
}

.bmt-archive-cta-row .bmt-btn:hover {
  background-color: var(--bmt-primary-green);
  color: #FFFFFF;
  border-color: var(--bmt-primary-green);
  transform: translateY(-2px);
  box-shadow: var(--bmt-shadow-sm);
}

/* 6. Section 4: Why Choose BMT */
.bmt-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.bmt-feature-box {
  background-color: var(--bmt-white);
  padding: 30px 24px;
  border-radius: var(--bmt-radius-md);
  border: 1px solid var(--bmt-border-color);
}

.bmt-feature-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(22, 132, 71, 0.1);
  color: var(--bmt-primary-green);
  border-radius: var(--bmt-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 18px;
}

.bmt-feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--bmt-charcoal);
  margin: 0 0 10px 0;
}

.bmt-feature-desc {
  font-size: 14px;
  color: var(--bmt-text-muted);
  margin: 0;
}

/* 7. Gallery Section */
.bmt-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bmt-gallery-item {
  border-radius: var(--bmt-radius-md);
  overflow: hidden;
  height: 220px;
  cursor: pointer;
  border: 1px solid var(--bmt-border-color);
}

.bmt-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bmt-gallery-item:hover img {
  transform: scale(1.05);
}

/* 8. FAQ Accordion */
.bmt-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.bmt-faq-item {
  background-color: var(--bmt-white);
  border: 1px solid var(--bmt-border-color);
  border-radius: var(--bmt-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.bmt-faq-question {
  width: 100%;
  border: none;
  background: transparent;
  padding: 18px 24px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  color: var(--bmt-charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  transition: background-color 0.2s ease;
}

.bmt-faq-question:hover,
.bmt-faq-question:focus-visible {
  background-color: var(--bmt-light-grey);
  outline: none;
}

.bmt-faq-icon {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  color: var(--bmt-primary-green);
  flex-shrink: 0;
  margin-left: 16px;
  user-select: none;
  transition: color 0.2s ease;
}

.bmt-faq-item.active .bmt-faq-icon {
  color: var(--bmt-deep-green);
}

.bmt-faq-answer {
  padding: 0 24px 20px 24px;
  color: var(--bmt-text-muted);
  font-size: 15px;
  display: none;
}

.bmt-faq-item.active .bmt-faq-answer {
  display: block;
}

/* 9. Contact Section */
.bmt-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.bmt-contact-card {
  background-color: var(--bmt-charcoal);
  color: var(--bmt-white);
  padding: 40px;
  border-radius: var(--bmt-radius-md);
}

.bmt-contact-card h3 {
  color: var(--bmt-white);
  margin-top: 0;
  font-size: 24px;
}

.bmt-info-row {
  margin-bottom: 20px;
  font-size: 15px;
}

.bmt-info-label {
  font-size: 12px;
  text-transform: uppercase;
  color: #9EABA5;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.bmt-enquiry-form {
  background-color: var(--bmt-white);
  padding: 40px;
  border: 1px solid var(--bmt-border-color);
  border-radius: var(--bmt-radius-md);
  box-shadow: var(--bmt-shadow-sm);
}

.bmt-form-group {
  margin-bottom: 20px;
}

.bmt-form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--bmt-charcoal);
}

.bmt-form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--bmt-border-color);
  border-radius: var(--bmt-radius-sm);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  box-sizing: border-box;
}

select.bmt-form-control {
  height: 48px;
  min-height: 48px;
  line-height: 1.5;
  padding: 11px 40px 11px 14px;
  background-color: var(--bmt-white);
  color: var(--bmt-charcoal);
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222B27' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  vertical-align: middle;
}

select.bmt-form-control option {
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--bmt-charcoal);
  background-color: var(--bmt-white);
}

.bmt-form-control:focus {
  outline: none;
  border-color: var(--bmt-primary-green);
  box-shadow: 0 0 0 3px rgba(22, 132, 71, 0.15);
}

/* 10. Footer */
.bmt-footer {
  background-color: var(--bmt-dark-slate);
  color: #A5B3AC;
  padding: 60px 0 24px 0;
  font-size: 14px;
}

.bmt-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.bmt-footer h4 {
  color: var(--bmt-white);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 20px 0;
}

.bmt-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bmt-footer ul li {
  margin-bottom: 10px;
}

.bmt-footer ul li a {
  color: #A5B3AC;
  text-decoration: none;
  transition: color 0.2s;
}

.bmt-footer ul li a:hover {
  color: var(--bmt-white);
}

.bmt-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .bmt-header-inner {
    height: 80px;
  }
  .bmt-logo-img,
  .custom-logo,
  .bmt-logo-area img {
    max-width: 185px;
    max-height: 65px;
  }
  .bmt-nav-desktop {
    display: none !important;
  }
  .bmt-hamburger-btn {
    display: inline-flex !important;
  }
  .bmt-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 991px) {
  .bmt-hero-grid {
    grid-template-columns: 1fr;
  }
  .bmt-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bmt-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bmt-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bmt-contact-grid {
    grid-template-columns: 1fr;
  }
  .bmt-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bmt-logo-img,
  .custom-logo,
  .bmt-logo-area img {
    max-width: 155px;
    max-height: 54px;
  }
  .bmt-header-inner {
    height: 72px;
  }
  .bmt-header-cta-area {
    gap: 8px !important;
  }
  .bmt-header-cta-area .bmt-btn-primary {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
  .bmt-hamburger-btn {
    padding: 8px 10px !important;
  }
  .bmt-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .bmt-search-box {
    width: 100%;
    min-width: 100%;
  }
  .bmt-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .bmt-cards-grid {
    grid-template-columns: 1fr;
  }
  .bmt-features-grid {
    grid-template-columns: 1fr;
  }
  .bmt-gallery-grid {
    grid-template-columns: 1fr;
  }
  .bmt-footer-grid {
    grid-template-columns: 1fr;
  }
  .bmt-hero-headline {
    font-size: 30px;
  }
  .bmt-section {
    padding: 44px 0;
  }
}

@media (max-width: 360px) {
  .bmt-header-inner {
    height: 68px;
  }
  .bmt-logo-img,
  .custom-logo,
  .bmt-logo-area img {
    max-width: 140px;
    max-height: 48px;
  }
  .bmt-header-cta-area {
    gap: 6px !important;
  }
  .bmt-header-cta-area .bmt-btn-primary {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
  .bmt-hamburger-btn {
    padding: 6px 8px !important;
  }
  .bmt-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}


/* 11. Archive & Single Machine / Spare Parts Layouts */
.bmt-page-header {
  background-color: var(--bmt-charcoal);
  color: var(--bmt-white);
  padding: 48px 0;
  border-bottom: 4px solid var(--bmt-primary-green);
}

.bmt-breadcrumbs {
  font-size: 13px;
  color: #9EABA5;
  margin-bottom: 12px;
}

.bmt-breadcrumbs a {
  color: #C3CEC8;
  text-decoration: none;
}

.bmt-breadcrumbs a:hover {
  color: var(--bmt-white);
}

.bmt-page-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--bmt-white);
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.bmt-page-subtitle {
  font-size: 16px;
  color: #C3CEC8;
  margin: 0;
  max-width: 800px;
}

/* Filter Bar & Search */
.bmt-filter-wrapper {
  background-color: var(--bmt-white);
  padding: 24px;
  border-radius: var(--bmt-radius-md);
  border: 1px solid var(--bmt-border-color);
  margin-bottom: 40px;
  box-shadow: var(--bmt-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bmt-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.bmt-filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bmt-filter-btn {
  background-color: var(--bmt-light-grey);
  border: 1px solid var(--bmt-border-color);
  color: var(--bmt-charcoal);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bmt-filter-btn:hover {
  background-color: #E2E8E5;
}

.bmt-filter-btn.active {
  background-color: var(--bmt-primary-green);
  border-color: var(--bmt-primary-green);
  color: var(--bmt-white);
}

.bmt-search-box {
  min-width: 280px;
  padding: 10px 16px;
  border: 1px solid var(--bmt-border-color);
  border-radius: var(--bmt-radius-sm);
  font-size: 14px;
  font-family: inherit;
}

.bmt-search-box:focus {
  outline: none;
  border-color: var(--bmt-primary-green);
  box-shadow: 0 0 0 3px rgba(22, 132, 71, 0.15);
}

/* Single Machine Details */
.bmt-single-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.bmt-single-image-wrap {
  background-color: var(--bmt-light-grey);
  border: 1px solid var(--bmt-border-color);
  border-radius: var(--bmt-radius-md);
  overflow: hidden;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bmt-single-image-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: var(--bmt-radius-sm);
  object-fit: contain;
}

.bmt-single-summary {
  display: flex;
  flex-direction: column;
}

.bmt-single-summary h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--bmt-charcoal);
  margin: 0 0 16px 0;
}

.bmt-specs-table-wrap {
  margin: 40px 0;
}

.bmt-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: var(--bmt-white);
  border: 1px solid var(--bmt-border-color);
  border-radius: var(--bmt-radius-sm);
  overflow: hidden;
}

.bmt-specs-table th,
.bmt-specs-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--bmt-border-color);
  font-size: 15px;
}

.bmt-specs-table th {
  background-color: var(--bmt-light-grey);
  color: var(--bmt-charcoal);
  font-weight: 700;
  width: 40%;
}

.bmt-specs-table tr:last-child th,
.bmt-specs-table tr:last-child td {
  border-bottom: none;
}

.bmt-specs-table tr:nth-child(even) td {
  background-color: #FAFCFB;
}

/* Spare Parts Table */
.bmt-parts-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bmt-white);
  border: 1px solid var(--bmt-border-color);
  border-radius: var(--bmt-radius-md);
  overflow: hidden;
  box-shadow: var(--bmt-shadow-sm);
}

.bmt-parts-table th {
  background-color: var(--bmt-charcoal);
  color: var(--bmt-white);
  padding: 16px 20px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.bmt-parts-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--bmt-border-color);
  font-size: 15px;
  vertical-align: middle;
}

.bmt-parts-table tr:last-child td {
  border-bottom: none;
}

.bmt-parts-table tr:hover td {
  background-color: #F8FAF9;
}

.bmt-part-code {
  font-family: monospace;
  background-color: #EDF1EE;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--bmt-charcoal);
  font-weight: 600;
}

@media (max-width: 991px) {
  .bmt-single-grid {
    grid-template-columns: 1fr;
  }
}

/* 12. Legal Documents & Form Consent Styling */
.bmt-legal-document {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bmt-white);
  padding: 48px;
  border: 1px solid var(--bmt-border-color);
  border-radius: var(--bmt-radius-md);
  box-shadow: var(--bmt-shadow-sm);
  color: var(--bmt-text-body);
  line-height: 1.8;
}

.bmt-legal-document h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--bmt-charcoal);
  margin: 36px 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #EDF1EE;
  letter-spacing: -0.01em;
}

.bmt-legal-document h2:first-of-type {
  margin-top: 0;
}

.bmt-legal-document h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--bmt-primary-green);
  margin: 24px 0 10px 0;
}

.bmt-legal-document p {
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 16px 0;
  color: var(--bmt-text-body);
}

.bmt-legal-document ul,
.bmt-legal-document ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.8;
}

.bmt-legal-document li {
  margin-bottom: 8px;
}

.bmt-legal-callout {
  background-color: #F4F8F5;
  border-left: 4px solid var(--bmt-primary-green);
  padding: 18px 22px;
  border-radius: 4px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.7;
}

.bmt-legal-flag-box {
  background-color: #FFFDF0;
  border: 1px solid #F1E5AC;
  border-left: 4px solid #D4A017;
  padding: 18px 22px;
  border-radius: 4px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #7A5E0B;
}

.bmt-form-consent-text {
  font-size: 12px;
  color: var(--bmt-text-muted);
  line-height: 1.55;
  margin: 16px 0 20px 0;
}

.bmt-form-consent-text a {
  color: var(--bmt-primary-green);
  text-decoration: underline;
}

.bmt-form-consent-text a:hover {
  color: var(--bmt-deep-green);
}

.bmt-footer-legal-links a {
  color: #7E8E87;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bmt-footer-legal-links a:hover {
  color: var(--bmt-white);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .bmt-legal-document {
    padding: 24px 18px;
  }
  .bmt-legal-document h2 {
    font-size: 19px;
  }
  .bmt-footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* 13. Block Editor Content, Gallery & Lightbox */
.bmt-page-content-wrap {
  line-height: 1.8;
  color: var(--bmt-text-body);
}

.bmt-page-content-wrap h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--bmt-charcoal);
  margin: 36px 0 16px 0;
  letter-spacing: -0.01em;
}

.bmt-page-content-wrap h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--bmt-charcoal);
  margin: 28px 0 12px 0;
}

.bmt-page-content-wrap p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 18px 0;
}

/* ==========================================================================
   13. BMT Industrial Gallery & Gutenberg Image Grid System (Scoped & Robust)
   ========================================================================== */

/* 1. Main Gallery Grid Container */
.bmt-gallery-content-wrap .wp-block-gallery,
.wp-block-gallery.columns-2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 32px !important;
  margin: 32px 0 48px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.wp-block-gallery.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* 2. Gallery Image Card Item - Fills Full Column Width */
.bmt-gallery-content-wrap .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image),
.bmt-gallery-content-wrap .wp-block-gallery figure.wp-block-image,
.bmt-gallery-content-wrap .wp-block-gallery .wp-block-image,
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image),
.wp-block-gallery figure.wp-block-image,
.wp-block-gallery .wp-block-image {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background-color: var(--bmt-white) !important;
  border: 1px solid var(--bmt-border-color) !important;
  border-radius: var(--bmt-radius-md) !important;
  overflow: hidden !important;
  box-shadow: var(--bmt-shadow-sm) !important;
  display: block !important;
  position: relative !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  box-sizing: border-box !important;
}

.bmt-gallery-content-wrap .wp-block-gallery figure.wp-block-image:hover,
.wp-block-gallery figure.wp-block-image:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--bmt-shadow-md) !important;
}

/* 3. Disable Core Gutenberg Dark Blur Overlays & Pseudo-elements */
.bmt-gallery-content-wrap .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before,
.bmt-gallery-content-wrap .wp-block-gallery figure.wp-block-image::before,
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before,
.wp-block-gallery figure.wp-block-image::before {
  content: none !important;
  display: none !important;
  backdrop-filter: none !important;
  mask-image: none !important;
}

/* 4. Image Wrapper & Anchor Link - Wide Landscape Ratio */
.bmt-gallery-content-wrap .wp-block-gallery figure.wp-block-image > a,
.bmt-gallery-content-wrap .wp-block-gallery figure.wp-block-image > div,
.wp-block-gallery figure.wp-block-image > a,
.wp-block-gallery figure.wp-block-image > div {
  display: block !important;
  width: 100% !important;
  height: 380px !important;
  min-height: 380px !important;
  overflow: hidden !important;
  background-color: var(--bmt-light-grey) !important;
  position: relative !important;
  cursor: zoom-in !important;
  margin: 0 !important;
  flex: none !important;
}

/* 5. Image Inside Card */
.bmt-gallery-content-wrap .wp-block-gallery figure.wp-block-image img,
.wp-block-gallery figure.wp-block-image img {
  width: 100% !important;
  height: 380px !important;
  min-height: 380px !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  flex: none !important;
  transition: transform 0.35s ease !important;
}

.bmt-gallery-content-wrap .wp-block-gallery figure.wp-block-image:hover img,
.wp-block-gallery figure.wp-block-image:hover img {
  transform: scale(1.03) !important;
}

/* 6. Caption Displayed Clearly BELOW the Image */
.bmt-gallery-content-wrap .wp-block-gallery.has-nested-images figure.wp-block-image figcaption,
.bmt-gallery-content-wrap .wp-block-gallery figure.wp-block-image figcaption,
.bmt-gallery-content-wrap .wp-block-gallery .wp-element-caption,
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption,
.wp-block-gallery figure.wp-block-image figcaption,
.wp-block-gallery .wp-element-caption {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  max-height: none !important;
  background: var(--bmt-white) !important;
  background-color: var(--bmt-white) !important;
  border-top: 1px solid var(--bmt-border-color) !important;
  padding: 18px 20px !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--bmt-text-body) !important;
  text-align: left !important;
  text-shadow: none !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  z-index: 1 !important;
  flex: none !important;
}

/* 7. Responsive Breakpoints */
@media (max-width: 900px) {
  .bmt-gallery-content-wrap .wp-block-gallery,
  .wp-block-gallery.columns-2 {
    gap: 20px !important;
  }
  .bmt-gallery-content-wrap .wp-block-gallery figure.wp-block-image > a,
  .wp-block-gallery figure.wp-block-image > a {
    height: 300px !important;
  }
}

@media (max-width: 640px) {
  .bmt-gallery-content-wrap .wp-block-gallery,
  .wp-block-gallery.columns-2,
  .wp-block-gallery.columns-3 {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin: 20px 0 36px 0 !important;
  }
  .bmt-gallery-content-wrap .wp-block-gallery figure.wp-block-image > a,
  .wp-block-gallery figure.wp-block-image > a {
    height: 240px !important;
    min-height: 240px !important;
  }
  .bmt-gallery-content-wrap .wp-block-gallery figure.wp-block-image img,
  .wp-block-gallery figure.wp-block-image img {
    height: 240px !important;
    min-height: 240px !important;
  }
  .bmt-gallery-content-wrap .wp-block-gallery.has-nested-images figure.wp-block-image figcaption,
  .wp-block-gallery figure.wp-block-image figcaption {
    padding: 14px 16px !important;
    font-size: 13.5px !important;
  }
}

/* Lightbox Modal */
.bmt-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 20, 0.92);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.bmt-lightbox-overlay.active {
  opacity: 1;
}

.bmt-lightbox-modal {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.bmt-lightbox-modal img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--bmt-radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bmt-lightbox-caption {
  color: #E2E8E5;
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
  max-width: 700px;
  line-height: 1.5;
}

.bmt-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.bmt-lightbox-close:hover {
  color: var(--bmt-primary-green);
}

@media (max-width: 640px) {
  .wp-block-gallery.columns-2,
  .wp-block-gallery.columns-3 {
    grid-template-columns: 1fr !important;
  }
  .wp-block-gallery .wp-block-image a {
    height: 260px;
  }
}


